Advanced package
Hypothetical example: an inventory agent with scripts, a custom UI, a domain database, and its own UAM.
Example purpose
Theo manages a small shop’s inventory. He imports stock CSV files, validates quantities, produces reorder reports, and remembers how the user likes those reports. The inventory rows and the agent’s experience have different responsibilities.
Installed file structure
RuXt-Dashboard/
├── agents/
│ └── theo-inventory/
│ ├── manifest.json
│ ├── ruxt-package.json
│ ├── listing.json
│ ├── COPYRIGHT.md
│ ├── personalization.json
│ ├── agent.md
│ ├── avatar.png
│ ├── workflow.rwxb
│ ├── bridge.js
│ ├── platform.js
│ ├── scripts/
│ │ ├── import_stock.py
│ │ └── export_report.py
│ ├── migrations/
│ │ └── 001_inventory.sql
│ └── ui/
│ ├── index.html
│ ├── studio.css
│ └── studio.js
├── data/
│ ├── uam/
│ │ └── theo-inventory.uam
│ └── agent-databases/
│ └── theo-inventory.sqlite
└── outputs/
└── inventory-reports/
└── reorder-report.csvThe package provides the runtime framework and migration scripts. In this commercial example, workflow.rwxb is the internal signed Ruxt Workflow Bundle containing the protected action graph and prompts. An open-source version would use readable workflow.json and prompts/ files in the same place. A marketplace submission may also include guide/ and approved media. RuXt initializes UAM. The developer’s initialization code creates the domain database; the output report appears only after a task produces it.
Manifest example
{
"format": "ruxt-agent-package/v1",
"slug": "theo-inventory",
"name": "Inventory specialist",
"role": "Inventory specialist",
"description": "Imports stock and prepares reorder reports.",
"capabilities": ["stock import", "inventory reports", "reorder analysis"],
"allowSupervisors": true,
"ui": { "type": "custom", "entry": "ui/index.html" },
"agent": { "name": "Inventory specialist", "role": "Inventory specialist", "avatar": "avatar.png" },
"licenseMode": "commercial",
"personalization": { "usesUserName": true, "agentNameEditable": true }
}Domain database example
CREATE TABLE stock_items (
id TEXT PRIMARY KEY,
sku TEXT NOT NULL UNIQUE,
name TEXT NOT NULL,
quantity INTEGER NOT NULL CHECK (quantity >= 0),
reorder_level INTEGER NOT NULL DEFAULT 0,
updated_at TEXT NOT NULL
);Store stock quantities here. Store preferences, validated methods, feedback, and task experience in theo-inventory.uam. The domain schema is developer-owned and requires versioned migrations and backup recovery.
Bridge and script responsibilities
bridge.js validates requests, resolves approved paths, starts tracked tasks, and returns status through RuXt. import_stock.py validates and imports rows within a database transaction. export_report.py writes the actual report and returns evidence of its saved path. platform.js resolves supported tools on macOS and Windows.
Choose dependencies explicitly. If a script needs Python or an additional library, detect it during setup and provide a supported installation route. Do not assume a helper executable built for one operating system runs on the other.
Example request and memory
User: “Import this stock sheet and show items below the reorder level.”
- Validate the selected file and check the agent’s access.
- Read the domain schema and retrieve only relevant import preferences from UAM.
- Run the import with validation and a transaction.
- Query items below their reorder level and generate the report.
- Verify the output and record the real task outcome.
- Save a compact experience linked to that task; link later feedback to the same task.
If the user changes the preferred report columns, update the scoped preference. Do not copy the entire inventory database into AI prompts or UAM experiences.
Delivery and failure handling
The UI shows the current task, supports Stop, and restores history after reopening. A task is complete only when the import and report are verified. A script error, cancellation, or missing output must clear the working indicator and preserve an honest task status.
Install and check
- Build the framework package with scripts and migrations.
- Import it through Add Agent on a clean RuXt workspace.
- Run initialization and confirm the separate UAM and domain database exist.
- Import a small fixture with known stock counts and verify the report.
- Test invalid rows, duplicate SKUs, cancellation, and interrupted imports.
- Back up and restore both databases with their ownership and schema versions preserved.
- Update the package and confirm data remains available.