@robota-sdk/agent-sdk 3.0.0-beta.43 → 3.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/node/index.cjs +850 -639
- package/dist/node/index.d.cts +344 -314
- package/dist/node/index.d.ts +344 -314
- package/dist/node/index.js +881 -652
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -129,6 +129,13 @@ session.abort();
|
|
|
129
129
|
// Cancel queued prompt without aborting current execution
|
|
130
130
|
session.cancelQueue();
|
|
131
131
|
|
|
132
|
+
// Execute system commands
|
|
133
|
+
const result = await session.executeCommand('context', '');
|
|
134
|
+
// result.message, result.success, result.data
|
|
135
|
+
|
|
136
|
+
// List all registered system commands
|
|
137
|
+
session.listCommands(); // Array<{ name, description }>
|
|
138
|
+
|
|
132
139
|
// State queries
|
|
133
140
|
session.isExecuting(); // boolean
|
|
134
141
|
session.getPendingPrompt(); // string | null
|
|
@@ -196,7 +203,7 @@ const registry = new CommandRegistry();
|
|
|
196
203
|
registry.addSource(new BuiltinCommandSource());
|
|
197
204
|
registry.addSource(new SkillCommandSource(process.cwd()));
|
|
198
205
|
|
|
199
|
-
// Get all commands (returns
|
|
206
|
+
// Get all commands (returns ICommand[])
|
|
200
207
|
const commands = registry.getCommands();
|
|
201
208
|
|
|
202
209
|
// Filter by prefix (for autocomplete)
|