@skillstate/core 2.0.2 → 2.0.4
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/schemas/generic-procedure.d.ts +11 -0
- package/dist/schemas/generic-procedure.d.ts.map +1 -0
- package/dist/schemas/generic-procedure.js +64 -0
- package/dist/schemas/generic-procedure.js.map +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default neutral spec for `skillstate init` — domain-agnostic state-based
|
|
3
|
+
* execution. Projects differ; the task spec is the user's concern
|
|
4
|
+
* (`skillstate init --spec <path>`). This schema only fixes the universal
|
|
5
|
+
* bookkeeping fields every stateful procedure needs.
|
|
6
|
+
*
|
|
7
|
+
* The CTF example remains available explicitly via `skillstate init --example ctf`.
|
|
8
|
+
*/
|
|
9
|
+
import type { ProceduralSpec } from '../types.js';
|
|
10
|
+
export declare const GENERIC_PROCEDURE_SPEC: ProceduralSpec;
|
|
11
|
+
//# sourceMappingURL=generic-procedure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-procedure.d.ts","sourceRoot":"","sources":["../../src/schemas/generic-procedure.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,sBAAsB,EAAE,cA8DpC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export const GENERIC_PROCEDURE_SPEC = {
|
|
2
|
+
id: 'generic-procedure',
|
|
3
|
+
name: 'State-based Execution',
|
|
4
|
+
version: '1.0.0',
|
|
5
|
+
instructions: [
|
|
6
|
+
'You are operating in state-based execution mode on an arbitrary task.',
|
|
7
|
+
'',
|
|
8
|
+
'Your execution state is persisted externally and restored between',
|
|
9
|
+
'steps. Conversation history is trimmed automatically: never rely on',
|
|
10
|
+
'it to carry information. Anything you need later MUST go into',
|
|
11
|
+
'state_patch this step.',
|
|
12
|
+
'',
|
|
13
|
+
'Process for every step:',
|
|
14
|
+
'1. Read the current state and the latest observation.',
|
|
15
|
+
'2. Reason about the single next action that makes the most progress',
|
|
16
|
+
' toward the goal.',
|
|
17
|
+
'3. Emit a JSON block with exactly two keys:',
|
|
18
|
+
' { "state_patch": { ... }, "action": "<what you are doing next>" }',
|
|
19
|
+
'',
|
|
20
|
+
'State discipline:',
|
|
21
|
+
'- Keep `goal` accurate; refine it as understanding improves.',
|
|
22
|
+
'- Move finished work into `progress`; keep `next_steps` current.',
|
|
23
|
+
'- Record produced or modified files in `artifacts`.',
|
|
24
|
+
'- Track unknowns and obstacles in `blockers` instead of memory.',
|
|
25
|
+
'- Use `notes` for anything else worth persisting.',
|
|
26
|
+
'- Set a key to null in state_patch to delete it.',
|
|
27
|
+
'',
|
|
28
|
+
'Iterate observation -> reasoning -> state_patch -> action until the',
|
|
29
|
+
'goal is achieved and `progress` reflects it.',
|
|
30
|
+
].join('\n'),
|
|
31
|
+
schema: {
|
|
32
|
+
goal: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
default: '',
|
|
35
|
+
description: 'What the current procedure is trying to achieve',
|
|
36
|
+
},
|
|
37
|
+
progress: {
|
|
38
|
+
type: 'array',
|
|
39
|
+
default: [],
|
|
40
|
+
description: 'Completed steps or milestones',
|
|
41
|
+
},
|
|
42
|
+
next_steps: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
default: [],
|
|
45
|
+
description: 'Planned next actions',
|
|
46
|
+
},
|
|
47
|
+
artifacts: {
|
|
48
|
+
type: 'array',
|
|
49
|
+
default: [],
|
|
50
|
+
description: 'Files or paths produced or modified so far',
|
|
51
|
+
},
|
|
52
|
+
blockers: {
|
|
53
|
+
type: 'array',
|
|
54
|
+
default: [],
|
|
55
|
+
description: 'Current obstacles or unknowns',
|
|
56
|
+
},
|
|
57
|
+
notes: {
|
|
58
|
+
type: 'string',
|
|
59
|
+
default: '',
|
|
60
|
+
description: 'Free-form working notes persisted between steps',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=generic-procedure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-procedure.js","sourceRoot":"","sources":["../../src/schemas/generic-procedure.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,sBAAsB,GAAmB;IACpD,EAAE,EAAE,mBAAmB;IACvB,IAAI,EAAE,uBAAuB;IAC7B,OAAO,EAAE,OAAO;IAChB,YAAY,EAAE;QACZ,uEAAuE;QACvE,EAAE;QACF,mEAAmE;QACnE,qEAAqE;QACrE,+DAA+D;QAC/D,wBAAwB;QACxB,EAAE;QACF,yBAAyB;QACzB,uDAAuD;QACvD,qEAAqE;QACrE,qBAAqB;QACrB,6CAA6C;QAC7C,sEAAsE;QACtE,EAAE;QACF,mBAAmB;QACnB,8DAA8D;QAC9D,kEAAkE;QAClE,qDAAqD;QACrD,iEAAiE;QACjE,mDAAmD;QACnD,kDAAkD;QAClD,EAAE;QACF,qEAAqE;QACrE,8CAA8C;KAC/C,CAAC,IAAI,CAAC,IAAI,CAAC;IACZ,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,iDAAiD;SAC/D;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,+BAA+B;SAC7C;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,sBAAsB;SACpC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,4CAA4C;SAC1D;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,+BAA+B;SAC7C;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,iDAAiD;SAC/D;KACF;CACF,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
// Canonical procedural specifications (paper §3.1 datasets)
|
|
1
|
+
// Canonical procedural specifications (paper §3.1 datasets) plus the
|
|
2
|
+
// neutral default used by `skillstate init` (domain-agnostic).
|
|
2
3
|
export * from './intercode-ctf.js';
|
|
4
|
+
export * from './generic-procedure.js';
|
|
3
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,+DAA+D;AAC/D,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|