@myagentroam/agent 0.9.19 → 0.9.22
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/dist/cli/main.js +1 -1
- package/dist/host/local-agent-host.d.ts +11 -0
- package/dist/host/local-agent-host.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/model/contracts.d.ts +1 -0
- package/dist/model/openai-responses.js +1 -1
- package/dist/prompts/execution-budget.d.ts +6 -0
- package/dist/prompts/execution-budget.js +2 -0
- package/dist/prompts/index.d.ts +7 -1
- package/dist/prompts/index.js +1 -1
- package/dist/prompts/modes.js +1 -1
- package/dist/prompts/output.d.ts +1 -1
- package/dist/prompts/output.js +1 -1
- package/dist/prompts/resources.d.ts +15 -0
- package/dist/prompts/resources.js +2 -0
- package/dist/prompts/subagent.d.ts +6 -0
- package/dist/prompts/subagent.js +1 -1
- package/dist/prompts/workflow.js +1 -1
- package/dist/runtime/execution-policy.d.ts +5 -2
- package/dist/runtime/execution-policy.js +1 -1
- package/dist/runtime/rollout-budget.d.ts +22 -0
- package/dist/runtime/rollout-budget.js +2 -0
- package/dist/sdk/agent.js +1 -1
- package/dist/sdk/types.d.ts +21 -1
- package/dist/session/jsonl-store.d.ts +23 -0
- package/dist/session/jsonl-store.js +1 -1
- package/dist/subagent/scheduler.d.ts +6 -1
- package/dist/subagent/scheduler.js +1 -1
- package/dist/tools/exec.d.ts +11 -1
- package/dist/tools/exec.js +1 -1
- package/dist/tools/local-registry.d.ts +9 -2
- package/dist/tools/local-registry.js +1 -1
- package/dist/tools/runtime-context.d.ts +2 -0
- package/dist/tools/runtime.js +1 -1
- package/dist/tools/todo-read.js +1 -1
- package/dist/tools/todo-write.js +1 -1
- package/dist/tools/todo.d.ts +7 -0
- package/dist/tools/todo.js +1 -1
- package/package.json +1 -1
package/dist/tools/todo.d.ts
CHANGED
|
@@ -3,8 +3,13 @@ export interface TodoItem {
|
|
|
3
3
|
step: string;
|
|
4
4
|
status: 'pending' | 'in_progress' | 'completed';
|
|
5
5
|
}
|
|
6
|
+
export interface TodoSnapshot {
|
|
7
|
+
revision: number;
|
|
8
|
+
items: TodoItem[];
|
|
9
|
+
}
|
|
6
10
|
export declare class TodoStore {
|
|
7
11
|
#private;
|
|
12
|
+
static restore(snapshot: TodoSnapshot): TodoStore;
|
|
8
13
|
read(): {
|
|
9
14
|
revision: number;
|
|
10
15
|
items: {
|
|
@@ -25,3 +30,5 @@ export declare class TodoStore {
|
|
|
25
30
|
}[];
|
|
26
31
|
};
|
|
27
32
|
}
|
|
33
|
+
export declare function todoItemsFromSnapshot(snapshot: unknown): TodoItem[] | undefined;
|
|
34
|
+
export declare function restoreTodoStore(snapshots: readonly unknown[]): TodoStore;
|
package/dist/tools/todo.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
|
|
2
|
+
const _0x486262=_0x5c09;function _0x3ed6(){const _0x16904c=['Aw5JBhvKzxm','tufsx0fhru5ux1rpre9Fq09orKXjq1q','zxHWzwn0zwrszxzPC2LVBG','Aw5FChjVz3jLC3m','nduWotaZmNn3Bgvdrq','B2jQzwn0','C29Tzq','vg9KBYbYzxzPC2LVBIbPCYbPBNzHBgLKlG','C2L6zq','AxntywzLsw50zwDLCG','mtG3odu2mK9iBfvlqq','ndiYnJKWnhfxsKfWqW','C3rLCa','nZuXmdG3nezQCKvkuG','C3rHDhvZ','DhjPBq','vg9KBYbYzxzPC2LVBIbPCYbZDgfSzs4','tufsx0fhru5ux1rpt0XFsu5qvvrFsu5wquXjra','otKYnJa3DgLJEKDb','CgvUzgLUzW','zMLSDgvY','CMv2AxnPB24','AxrLBxm','y29TCgXLDgvK','AxnbCNjHEq','BwfW','odvOuKXrD1m','CMvZDg9Yzq','CMvHza','mJq5mtG4n0HhywjWuG','C3rYAw5N','vg9KBYbPDgvTCYbHCMuGAw52ywXPzc4','D3jPDgu','BgvUz3rO','y29Kzq','mJKZmtK2vwXcs05N'];_0x3ed6=function(){return _0x16904c;};return _0x3ed6();}(function(_0x2c8f99,_0x3292dd){const _0x2c54b3=_0x5c09,_0x4212b7=_0x2c8f99();while(!![]){try{const _0x4a69da=-parseInt(_0x2c54b3(0x16e))/(0x1958+0x1dc0+0x3*-0x125d)+-parseInt(_0x2c54b3(0x166))/(-0x1870+-0x2231+0x373*0x11)+-parseInt(_0x2c54b3(0x179))/(0x18d8+0x1*0x45d+0x2*-0xe99)+parseInt(_0x2c54b3(0x160))/(-0x2f*0x63+-0x2*0x5d4+0x1dd9)+-parseInt(_0x2c54b3(0x176))/(0x25b*0xc+0xdd0+0x3*-0xe05)*(-parseInt(_0x2c54b3(0x17f))/(0x1d0d+0x1f85*-0x1+0x27e))+parseInt(_0x2c54b3(0x169))/(-0x24b1+-0x1f*-0xfb+0x653)+parseInt(_0x2c54b3(0x167))/(-0x1*0x1d7+-0x178d+0xcb6*0x2);if(_0x4a69da===_0x3292dd)break;else _0x4212b7['push'](_0x4212b7['shift']());}catch(_0xba3f16){_0x4212b7['push'](_0x4212b7['shift']());}}}(_0x3ed6,0x4f70b*0x1+-0x113b00+0x186c7d));import{MarAgentError}from'../error.js';export class TodoStore{#revision=-0x1669+-0x17f0+0x2e59;#items=[];static[_0x486262(0x177)](_0x284654){const _0x431ab9=_0x486262;if(!Number[_0x431ab9(0x165)](_0x284654[_0x431ab9(0x171)])||_0x284654[_0x431ab9(0x171)]<0x2*0x121d+-0x11*0x49+-0x1f61)throw new MarAgentError(_0x431ab9(0x16d),_0x431ab9(0x163));const _0x2abcdf=new TodoStore();return _0x2abcdf.#revision=_0x284654[_0x431ab9(0x171)],_0x2abcdf.#items=normalizeTodoItems(_0x284654[_0x431ab9(0x172)]),_0x2abcdf;}[_0x486262(0x178)](){const _0x2de077=_0x486262;return{'revision':this.#revision,'items':this.#items[_0x2de077(0x175)](_0x538df8=>({..._0x538df8}))};}[_0x486262(0x17c)](_0x466276){const _0x4ee65c=_0x486262;if(_0x466276[_0x4ee65c(0x15e)]!==this.#revision)throw new MarAgentError(_0x4ee65c(0x15d),_0x4ee65c(0x16c),{'details':{'revision':this.#revision}});return this.#items=normalizeTodoItems(_0x466276[_0x4ee65c(0x172)]),this.#revision++,this[_0x4ee65c(0x178)]();}}function _0x5c09(_0x31ac36,_0x427354){_0x31ac36=_0x31ac36-(0x761*0x1+0xde*0x26+-0x26f8);const _0x47c5a7=_0x3ed6();let _0xc1a640=_0x47c5a7[_0x31ac36];if(_0x5c09['bmoymQ']===undefined){var _0x3a1600=function(_0x37897f){const _0x40e4c7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eec95='',_0x1ebff9='';for(let _0x5836f4=-0xeec+-0x42d+0x1319,_0x41706a,_0x304b80,_0x1c68ba=-0xc76+-0x2*0x470+0x2*0xaab;_0x304b80=_0x37897f['charAt'](_0x1c68ba++);~_0x304b80&&(_0x41706a=_0x5836f4%(0xd80+0x261*-0x8+0x58c)?_0x41706a*(-0x1369+-0x2209+0x57*0x9e)+_0x304b80:_0x304b80,_0x5836f4++%(0x3*-0xb9+0x1*-0x23bc+0x25eb))?_0x4eec95+=String['fromCharCode'](-0x1*-0x39b+0x2443*-0x1+0x21a7&_0x41706a>>(-(0x1a5*-0xe+-0x145c*0x1+0x2b64)*_0x5836f4&-0x1*0xfa1+-0xd1b+0x1cc2)):-0x94d+-0x1a5e+0x1*0x23ab){_0x304b80=_0x40e4c7['indexOf'](_0x304b80);}for(let _0x34d244=0x156a+0x6*0x1f6+0x1f*-0x112,_0x4e9f73=_0x4eec95['length'];_0x34d244<_0x4e9f73;_0x34d244++){_0x1ebff9+='%'+('00'+_0x4eec95['charCodeAt'](_0x34d244)['toString'](0xa59+-0x25e2+-0x9*-0x311))['slice'](-(-0x4c4+0x1*-0x1687+0x1b4d));}return decodeURIComponent(_0x1ebff9);};_0x5c09['IizMTR']=_0x3a1600,_0x5c09['bDKvJd']={},_0x5c09['bmoymQ']=!![];}const _0x10c59a=_0x47c5a7[-0x1*-0x1abf+0x458*0x4+-0x2c1f];_0x5c09['jvOxCw']!==_0x10c59a&&(_0x5c09['bDKvJd']={},_0x5c09['jvOxCw']=_0x10c59a);const _0x201fdf=_0x5c09['bDKvJd'][_0x31ac36];return _0x201fdf===undefined?(_0xc1a640=_0x5c09['IizMTR'](_0xc1a640),_0x5c09['bDKvJd'][_0x31ac36]=_0xc1a640):_0xc1a640=_0x201fdf,_0xc1a640;}export function todoItemsFromSnapshot(_0x2d0b20){const _0xd042a=_0x486262;if(_0x2d0b20===null||typeof _0x2d0b20!==_0xd042a(0x161)||Array[_0xd042a(0x174)](_0x2d0b20))return undefined;const _0x413046=_0x2d0b20[_0xd042a(0x172)];if(!Array[_0xd042a(0x174)](_0x413046))return undefined;try{return normalizeTodoItems(_0x413046);}catch(_0x44fe4a){if(_0x44fe4a instanceof MarAgentError&&_0x44fe4a[_0xd042a(0x17e)]===_0xd042a(0x16d))return undefined;throw _0x44fe4a;}}export function restoreTodoStore(_0x3a4b7e){const _0x400458=_0x486262,_0x56f530=new TodoStore();for(const _0x30db99 of _0x3a4b7e){const _0x147e4b=todoItemsFromSnapshot(_0x30db99);if(!_0x147e4b)continue;_0x56f530[_0x400458(0x17c)]({'expectedRevision':_0x56f530[_0x400458(0x178)]()[_0x400458(0x171)],'items':_0x147e4b});}return _0x56f530;}function normalizeTodoItems(_0x341634){const _0x584aff=_0x486262;if(_0x341634[_0x584aff(0x170)](_0x36e7b8=>_0x36e7b8?.[_0x584aff(0x16a)]===_0x584aff(0x15f))[_0x584aff(0x17d)]>0xb3d+0x1f80+-0x2abc||new Set(_0x341634[_0x584aff(0x175)](_0x3beb12=>_0x3beb12?.['id']))[_0x584aff(0x164)]!==_0x341634[_0x584aff(0x17d)]||_0x341634[_0x584aff(0x162)](_0x24affb=>_0x24affb===null||typeof _0x24affb!==_0x584aff(0x161)||Array[_0x584aff(0x174)](_0x24affb)||typeof _0x24affb['id']!==_0x584aff(0x17a)||!_0x24affb['id']||typeof _0x24affb[_0x584aff(0x168)]!==_0x584aff(0x17a)||!_0x24affb[_0x584aff(0x168)][_0x584aff(0x16b)]()||![_0x584aff(0x16f),_0x584aff(0x15f),_0x584aff(0x173)][_0x584aff(0x180)](_0x24affb[_0x584aff(0x16a)])))throw new MarAgentError(_0x584aff(0x16d),_0x584aff(0x17b));return _0x341634[_0x584aff(0x175)](_0x365c77=>({..._0x365c77,'step':_0x365c77[_0x584aff(0x168)][_0x584aff(0x16b)]()}));}
|