@robota-sdk/agent-sdk 3.0.0-beta.44 → 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 +7 -0
- package/dist/node/index.cjs +7 -0
- package/dist/node/index.d.cts +5 -0
- package/dist/node/index.d.ts +5 -0
- package/dist/node/index.js +7 -0
- package/package.json +4 -4
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
|
package/dist/node/index.cjs
CHANGED
|
@@ -2274,6 +2274,13 @@ var InteractiveSession = class {
|
|
|
2274
2274
|
await this.ensureInitialized();
|
|
2275
2275
|
return this.commandExecutor.execute(name, this, args);
|
|
2276
2276
|
}
|
|
2277
|
+
/** List all registered system commands. */
|
|
2278
|
+
listCommands() {
|
|
2279
|
+
return this.commandExecutor.listCommands().map((cmd) => ({
|
|
2280
|
+
name: cmd.name,
|
|
2281
|
+
description: cmd.description
|
|
2282
|
+
}));
|
|
2283
|
+
}
|
|
2277
2284
|
/** Abort current execution and clear queue. */
|
|
2278
2285
|
abort() {
|
|
2279
2286
|
this.pendingPrompt = null;
|
package/dist/node/index.d.cts
CHANGED
|
@@ -460,6 +460,11 @@ declare class InteractiveSession {
|
|
|
460
460
|
success: boolean;
|
|
461
461
|
data?: Record<string, unknown>;
|
|
462
462
|
} | null>;
|
|
463
|
+
/** List all registered system commands. */
|
|
464
|
+
listCommands(): Array<{
|
|
465
|
+
name: string;
|
|
466
|
+
description: string;
|
|
467
|
+
}>;
|
|
463
468
|
/** Abort current execution and clear queue. */
|
|
464
469
|
abort(): void;
|
|
465
470
|
/** Cancel queued prompt without aborting current execution. */
|
package/dist/node/index.d.ts
CHANGED
|
@@ -460,6 +460,11 @@ declare class InteractiveSession {
|
|
|
460
460
|
success: boolean;
|
|
461
461
|
data?: Record<string, unknown>;
|
|
462
462
|
} | null>;
|
|
463
|
+
/** List all registered system commands. */
|
|
464
|
+
listCommands(): Array<{
|
|
465
|
+
name: string;
|
|
466
|
+
description: string;
|
|
467
|
+
}>;
|
|
463
468
|
/** Abort current execution and clear queue. */
|
|
464
469
|
abort(): void;
|
|
465
470
|
/** Cancel queued prompt without aborting current execution. */
|
package/dist/node/index.js
CHANGED
|
@@ -2224,6 +2224,13 @@ var InteractiveSession = class {
|
|
|
2224
2224
|
await this.ensureInitialized();
|
|
2225
2225
|
return this.commandExecutor.execute(name, this, args);
|
|
2226
2226
|
}
|
|
2227
|
+
/** List all registered system commands. */
|
|
2228
|
+
listCommands() {
|
|
2229
|
+
return this.commandExecutor.listCommands().map((cmd) => ({
|
|
2230
|
+
name: cmd.name,
|
|
2231
|
+
description: cmd.description
|
|
2232
|
+
}));
|
|
2233
|
+
}
|
|
2227
2234
|
/** Abort current execution and clear queue. */
|
|
2228
2235
|
abort() {
|
|
2229
2236
|
this.pendingPrompt = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-sdk",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.45",
|
|
4
4
|
"description": "Programmatic SDK for building AI agents with Robota — provides Session, query(), built-in tools, permissions, hooks, and context loading",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"chalk": "^5.3.0",
|
|
26
26
|
"zod": "^3.24.0",
|
|
27
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
28
|
-
"@robota-sdk/agent-sessions": "3.0.0-beta.
|
|
29
|
-
"@robota-sdk/agent-tools": "3.0.0-beta.
|
|
27
|
+
"@robota-sdk/agent-core": "3.0.0-beta.45",
|
|
28
|
+
"@robota-sdk/agent-sessions": "3.0.0-beta.45",
|
|
29
|
+
"@robota-sdk/agent-tools": "3.0.0-beta.45"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"rimraf": "^5.0.5",
|