@robota-sdk/agent-command 3.0.0-beta.68 → 3.0.0-beta.69
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-command",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.69",
|
|
4
4
|
"description": "Consolidated command module implementations for Robota SDK CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
28
|
-
"@robota-sdk/agent-framework": "3.0.0-beta.
|
|
27
|
+
"@robota-sdk/agent-core": "3.0.0-beta.69",
|
|
28
|
+
"@robota-sdk/agent-framework": "3.0.0-beta.69"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.14.0",
|
|
@@ -45,6 +45,18 @@ const PROMPT_REFERENCE: IContextReferenceItem = {
|
|
|
45
45
|
lastUsedAt: '2026-05-05T00:00:01.000Z',
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
+
const SYSTEM_REFERENCE: IContextReferenceItem = {
|
|
49
|
+
id: 'system:AGENTS.md',
|
|
50
|
+
sourcePath: '/workspace/AGENTS.md',
|
|
51
|
+
relativePath: 'AGENTS.md',
|
|
52
|
+
originalReference: 'AGENTS.md',
|
|
53
|
+
loadType: 'system',
|
|
54
|
+
status: 'active',
|
|
55
|
+
byteLength: 1024,
|
|
56
|
+
loadedAt: '2026-05-05T00:00:00.000Z',
|
|
57
|
+
lastUsedAt: '2026-05-05T00:00:00.000Z',
|
|
58
|
+
};
|
|
59
|
+
|
|
48
60
|
function createRuntime(state: { threshold: number | false }): ICommandSessionRuntime {
|
|
49
61
|
let mode: TPermissionMode = 'default';
|
|
50
62
|
return {
|
|
@@ -291,4 +303,34 @@ describe('createContextCommandModule', () => {
|
|
|
291
303
|
expect(result?.success).toBe(false);
|
|
292
304
|
expect(result?.message).toContain('greater than 0% and at most 100%');
|
|
293
305
|
});
|
|
306
|
+
|
|
307
|
+
it('lists system context references with [system, active] label', async () => {
|
|
308
|
+
const context = createCommandHostContext();
|
|
309
|
+
context.references.push(SYSTEM_REFERENCE);
|
|
310
|
+
|
|
311
|
+
const result = await createExecutor().execute('context', context, 'list');
|
|
312
|
+
|
|
313
|
+
expect(result?.success).toBe(true);
|
|
314
|
+
expect(result?.message).toContain('AGENTS.md [system, active] 1,024 B');
|
|
315
|
+
expect(result?.data?.references).toEqual([SYSTEM_REFERENCE]);
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
it('includes system references in context summary active count', async () => {
|
|
319
|
+
const context = createCommandHostContext();
|
|
320
|
+
context.references.push(SYSTEM_REFERENCE, MANUAL_REFERENCE);
|
|
321
|
+
|
|
322
|
+
const result = await createExecutor().execute('context', context, '');
|
|
323
|
+
|
|
324
|
+
expect(result?.success).toBe(true);
|
|
325
|
+
expect(result?.message).toContain('References: 2 active, 0 observed');
|
|
326
|
+
});
|
|
327
|
+
|
|
328
|
+
it('shows no context references message when only system refs are absent', async () => {
|
|
329
|
+
const context = createCommandHostContext();
|
|
330
|
+
|
|
331
|
+
const result = await createExecutor().execute('context', context, 'list');
|
|
332
|
+
|
|
333
|
+
expect(result?.success).toBe(true);
|
|
334
|
+
expect(result?.message).toBe('No context references.');
|
|
335
|
+
});
|
|
294
336
|
});
|