@deepstrike/core 0.1.10 → 0.1.11
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/index.d.ts +45 -0
- package/package.json +8 -8
package/index.d.ts
CHANGED
|
@@ -48,6 +48,38 @@ export interface ToolSchema {
|
|
|
48
48
|
export interface RuntimeTask {
|
|
49
49
|
goal: string
|
|
50
50
|
criteria?: Array<string>
|
|
51
|
+
/** `"orchestrate"` | `"implement"` (default) | `"retrieve"` | `"verify"` */
|
|
52
|
+
lane?: string
|
|
53
|
+
}
|
|
54
|
+
export interface AcceptanceCriterion {
|
|
55
|
+
id: string
|
|
56
|
+
text: string
|
|
57
|
+
required: boolean
|
|
58
|
+
weight: number
|
|
59
|
+
machineCheckable: boolean
|
|
60
|
+
}
|
|
61
|
+
export interface VerificationContract {
|
|
62
|
+
id: string
|
|
63
|
+
goal: string
|
|
64
|
+
acceptance: Array<AcceptanceCriterion>
|
|
65
|
+
antiPatterns: Array<string>
|
|
66
|
+
evidenceRequired: Array<string>
|
|
67
|
+
}
|
|
68
|
+
export interface ContractCheckResult {
|
|
69
|
+
criterionId: string
|
|
70
|
+
passed: boolean
|
|
71
|
+
evidence?: string
|
|
72
|
+
}
|
|
73
|
+
export interface HandoffArtifact {
|
|
74
|
+
goal: string
|
|
75
|
+
sprint: number
|
|
76
|
+
progressSummary: string
|
|
77
|
+
openTasks: Array<string>
|
|
78
|
+
/** JSON-encoded context snapshot. */
|
|
79
|
+
contextSnapshot: string
|
|
80
|
+
contractStatus: Array<ContractCheckResult>
|
|
81
|
+
driftRate24H: number
|
|
82
|
+
blockedOn: Array<string>
|
|
51
83
|
}
|
|
52
84
|
export interface LoopPolicy {
|
|
53
85
|
maxTokens: number
|
|
@@ -106,6 +138,12 @@ export interface LoopObservation {
|
|
|
106
138
|
action?: string
|
|
107
139
|
rhoAfter?: number
|
|
108
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Format a VerificationContract as a markdown string suitable for injection
|
|
143
|
+
* into an agent's system prompt. The returned string is ready to pass to
|
|
144
|
+
* `LoopStateMachine.addSystemMessage()` or `LoopStateMachine.setContract()`.
|
|
145
|
+
*/
|
|
146
|
+
export declare function formatContractForSystemPrompt(contract: VerificationContract): string
|
|
109
147
|
/** JS-friendly governance verdict returned by `Governance.evaluate`. */
|
|
110
148
|
export interface GovernanceVerdict {
|
|
111
149
|
/** `"allow"` | `"deny"` | `"rate_limited"` | `"ask_user"` */
|
|
@@ -246,6 +284,13 @@ export declare class LoopStateMachine {
|
|
|
246
284
|
* `tokens` is a caller-supplied estimate; pass at least 1.
|
|
247
285
|
*/
|
|
248
286
|
addMemoryMessage(content: string, tokens: number): void
|
|
287
|
+
/**
|
|
288
|
+
* Inject a VerificationContract into the system partition.
|
|
289
|
+
* The contract is formatted as markdown and pushed to the `system` partition
|
|
290
|
+
* (Priority::Critical) so it survives context renewal and compression.
|
|
291
|
+
* Call before `start()`.
|
|
292
|
+
*/
|
|
293
|
+
setContract(contract: VerificationContract): void
|
|
249
294
|
setTools(tools: Array<ToolSchema>): void
|
|
250
295
|
start(task: RuntimeTask): LoopAction
|
|
251
296
|
feedLlmResponse(message: Message): LoopAction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepstrike/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "DeepStrike kernel — pre-built native addon",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@deepstrike/core-darwin-arm64": "0.1.
|
|
27
|
-
"@deepstrike/core-darwin-x64": "0.1.
|
|
28
|
-
"@deepstrike/core-linux-arm64-gnu": "0.1.
|
|
29
|
-
"@deepstrike/core-linux-arm64-musl": "0.1.
|
|
30
|
-
"@deepstrike/core-linux-x64-gnu": "0.1.
|
|
31
|
-
"@deepstrike/core-linux-x64-musl": "0.1.
|
|
32
|
-
"@deepstrike/core-win32-x64-msvc": "0.1.
|
|
26
|
+
"@deepstrike/core-darwin-arm64": "0.1.11",
|
|
27
|
+
"@deepstrike/core-darwin-x64": "0.1.11",
|
|
28
|
+
"@deepstrike/core-linux-arm64-gnu": "0.1.11",
|
|
29
|
+
"@deepstrike/core-linux-arm64-musl": "0.1.11",
|
|
30
|
+
"@deepstrike/core-linux-x64-gnu": "0.1.11",
|
|
31
|
+
"@deepstrike/core-linux-x64-musl": "0.1.11",
|
|
32
|
+
"@deepstrike/core-win32-x64-msvc": "0.1.11"
|
|
33
33
|
}
|
|
34
34
|
}
|