dsh-completion-guard 0.6.0 → 0.6.2
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/CHANGELOG.md +44 -1
- package/CHANGELOG.zh-CN.md +29 -1
- package/README.md +52 -9
- package/README.zh-CN.md +24 -8
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +2 -2
- package/dist/{domain-COehX7MB.js → domain-BtR3J5aL.js} +914 -95
- package/dist/{index-BJPVGdg9.d.ts → index-CZSt3D0G.d.ts} +277 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +293 -43
- package/docs/ARCHITECTURE.md +2 -0
- package/docs/CROSS_END_RESULT_CONTRACT.md +60 -0
- package/docs/DEVELOPMENT_PLAN_0_6_2.md +86 -0
- package/docs/LOCAL_ACCEPTANCE.md +153 -1
- package/docs/RELEASE_PLAN_0_6_2.md +41 -0
- package/docs/SEMANTIC_COMPATIBILITY.md +15 -0
- package/package.json +2 -2
- package/docs/NEXT_VERSION_REPAIR_NOTES.md +0 -81
|
@@ -121,7 +121,7 @@ interface InterpretOptions {
|
|
|
121
121
|
coordinationSplit?: boolean;
|
|
122
122
|
}
|
|
123
123
|
/** What one scope does with the action it names. */
|
|
124
|
-
type DirectiveClass = "directive" | "prohibition" | "conditional" | "informational" | "narrative";
|
|
124
|
+
type DirectiveClass = "directive" | "prohibition" | "conditional" | "informational" | "narrative" | "unresolved";
|
|
125
125
|
/** Who is expected to perform the action. */
|
|
126
126
|
type Executee = "agent" | "user" | "unresolved";
|
|
127
127
|
/** How the scope's authority reads. */
|
|
@@ -190,6 +190,147 @@ declare function statefulActionsOfScope(body: string): StatefulAction[];
|
|
|
190
190
|
/** Actions this interpretation names, in source order (diagnostics only). */
|
|
191
191
|
declare function namedActions(text: string): string[];
|
|
192
192
|
//#endregion
|
|
193
|
+
//#region src/domain/capability-semantics.d.ts
|
|
194
|
+
/**
|
|
195
|
+
* 0.6.2 D062-01/D062-02: the shared, versioned semantics for WHAT the guard
|
|
196
|
+
* knows, WHY it cannot certify, and WHICH remedy is actually reachable.
|
|
197
|
+
*
|
|
198
|
+
* The verdict is deliberately one closed projection instead of a pile of
|
|
199
|
+
* ad-hoc strings, because every consumer (prepare, checkpoint detail, recovery
|
|
200
|
+
* packet, rebind query, status) must render the same answer. Two failure modes
|
|
201
|
+
* are excluded by construction:
|
|
202
|
+
*
|
|
203
|
+
* 1. The guard never turns its own missing adapter into a user-authority gap.
|
|
204
|
+
* An unsupported capability says "complete the work honestly and do not
|
|
205
|
+
* claim a certificate"; it never asks the user to restate the request as
|
|
206
|
+
* install/modify, and it never asks for input the user already gave.
|
|
207
|
+
* 2. The guard never claims a fact it did not read. `declaredExitCode:
|
|
208
|
+
* 'unknown'` stays unknown however successful the host tool call looked,
|
|
209
|
+
* and an opaque compound runner stays `operationAttribution: 'unknown'`
|
|
210
|
+
* rather than inheriting the last command's exit status.
|
|
211
|
+
*
|
|
212
|
+
* The taxonomy is written once here and consumed by every lane, so a future
|
|
213
|
+
* capability must declare its own gap kind and remedy instead of drifting into
|
|
214
|
+
* a sentence list. Nothing in this module mutates contract, evidence, digest,
|
|
215
|
+
* certificate, or historical record state.
|
|
216
|
+
*/
|
|
217
|
+
/** Fine-grained, mutually exclusive reasons a contract item is not certified. */
|
|
218
|
+
type CapabilityGap = "none" | "closed" | "constraint" | "interpretation_unknown" | "missing_adapter" | "target_missing" | "input_ambiguous" | "legacy_migration_required" | "host_unavailable" | "historical_preevidence_missing" | "operation_unattributable" | "condition_pending" | "delivery_pending";
|
|
219
|
+
/** The reachable remedy for one gap. `remedy` is the machine-readable form of
|
|
220
|
+
* `next_action`; the two are produced together so they cannot disagree. */
|
|
221
|
+
type CapabilityRemedy = "none" | "collect_evidence" | "supply_target" | "await_root_input" | "deliver_answer" | "record_interpretation" | "report_uncertified" | "report_uncertified_capability_gap" | "restore_host" | "readback_only" | "fresh_root_instruction";
|
|
222
|
+
interface CapabilityFact {
|
|
223
|
+
/**
|
|
224
|
+
* Whether this obligation's OWN action belongs to the certification action
|
|
225
|
+
* set in the installed cohort. It is deliberately independent of
|
|
226
|
+
* authorization: `false` says the build has no such capability, NEVER that
|
|
227
|
+
* the user did not authorize the work, and NEVER that the work may not be
|
|
228
|
+
* done. A `generic_run` obligation has no concrete action to support.
|
|
229
|
+
*/
|
|
230
|
+
actionSupported: boolean;
|
|
231
|
+
/** A durable certification path exists for this item's own contract. */
|
|
232
|
+
certifiable: boolean;
|
|
233
|
+
gap: CapabilityGap;
|
|
234
|
+
remedy: CapabilityRemedy;
|
|
235
|
+
/** Reason codes that describe the evidence chain, never new authority. */
|
|
236
|
+
blockingReasonCodes: string[];
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Whether the item's obligation has a certification path in this cohort at
|
|
240
|
+
* all. A generic_run item names no concrete action: the manifest still has a
|
|
241
|
+
* generic entry (the guard may run and observe ordinary commands) but no
|
|
242
|
+
* user-level completion contract can be certified from it, so the item is
|
|
243
|
+
* uncertifiable while ordinary execution remains entirely permitted.
|
|
244
|
+
*/
|
|
245
|
+
declare function actionHasCertificationPath(action: SemanticAction, legacyMigration: boolean): boolean;
|
|
246
|
+
/** The capability classification of an item's own obligation contract. */
|
|
247
|
+
declare function capabilityFactOf(item: GuardItem): CapabilityFact;
|
|
248
|
+
/**
|
|
249
|
+
* What the console itself declared about the process. `declaredExitCode` is
|
|
250
|
+
* `'unknown'` unless a real marker or a structured host fact said otherwise:
|
|
251
|
+
* a host tool call that was not marked as an error is NOT a read exit code.
|
|
252
|
+
*/
|
|
253
|
+
type ProcessExitStatus = number | "unknown";
|
|
254
|
+
/**
|
|
255
|
+
* Why `outcome` says what it says, so a display or a consumer never reads more
|
|
256
|
+
* than the source supports.
|
|
257
|
+
*/
|
|
258
|
+
type ProcessOutcomeReason = "declared_exit_code" | "declared_negative_marker" | "host_error_flag" | "unmarked_renderer_success" | "marker_unclassified" | "backgrounded" | "text_scan_inconclusive";
|
|
259
|
+
/**
|
|
260
|
+
* How far the console let the guard attribute effects to the obligation's own
|
|
261
|
+
* operation. `unknown` is the honest answer for every opaque compound runner:
|
|
262
|
+
* the last command's success never covers an earlier failure.
|
|
263
|
+
*/
|
|
264
|
+
type OperationAttribution = "single_operation" | "declared_per_operation" | "unknown";
|
|
265
|
+
/** A credible per-operation subset the host itself declared. */
|
|
266
|
+
interface DeclaredOperationResult {
|
|
267
|
+
action: string;
|
|
268
|
+
outcome: "success" | "failure" | "unknown";
|
|
269
|
+
}
|
|
270
|
+
/** Which source declared the terminal facts this reading is based on. */
|
|
271
|
+
type ProcessFactSource = "run_declaration" | "structured_meta" | "rendered_markers";
|
|
272
|
+
interface DerivedProcessFacts {
|
|
273
|
+
/** What the host tool call returned, before any interpretation. */
|
|
274
|
+
hostToolReturned: "result" | "error";
|
|
275
|
+
/** The console's own exit status, or `unknown` when never read. */
|
|
276
|
+
declaredExitCode: ProcessExitStatus;
|
|
277
|
+
/** Whether an explicit terminal marker (positive or negative) was read. */
|
|
278
|
+
terminalMarkerRead: boolean;
|
|
279
|
+
/** The outcome THIS LAYER derives from its own sources. It is deliberately a
|
|
280
|
+
* separate value from the frozen evidence `outcome`: the frozen field keeps
|
|
281
|
+
* the historical rule (0.6.1 and earlier read only `meta.exitCode` and the
|
|
282
|
+
* rendered markers, never the run declaration), while this layer reads the
|
|
283
|
+
* run declaration first. The two may therefore differ, and when they do the
|
|
284
|
+
* difference is stated in `frozenOutcomeConflict` rather than hidden by
|
|
285
|
+
* rewriting the historical field. */
|
|
286
|
+
outcome: "success" | "failure" | "unknown";
|
|
287
|
+
/** Why this layer's outcome is what it is. */
|
|
288
|
+
outcomeReason: ProcessOutcomeReason;
|
|
289
|
+
/** The highest-priority source that declared the facts used here. */
|
|
290
|
+
source: ProcessFactSource;
|
|
291
|
+
/** True when this layer's outcome differs from the frozen evidence
|
|
292
|
+
* `outcome`. A consumer that needs the historical reading uses the frozen
|
|
293
|
+
* field; a consumer that needs the run's own declaration uses this layer and
|
|
294
|
+
* can see that the two disagree. */
|
|
295
|
+
frozenOutcomeConflict: boolean;
|
|
296
|
+
/** How far the guard could attribute effects to the operation. */
|
|
297
|
+
operationAttribution: OperationAttribution;
|
|
298
|
+
/** Exactly the sub-results a trusted producer declared, if any. */
|
|
299
|
+
declaredOperationResults?: DeclaredOperationResult[];
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* `partial_failure` may be reported only from a credible structured
|
|
303
|
+
* per-operation result, and only for the exact declared subset. `unknown`
|
|
304
|
+
* stays unknown: the guard never reconstructs a per-operation verdict from
|
|
305
|
+
* stderr text, and never widens a declared subset into a claim about the rest.
|
|
306
|
+
*/
|
|
307
|
+
declare function partialFailureOf(facts: DerivedProcessFacts): {
|
|
308
|
+
failed: DeclaredOperationResult[];
|
|
309
|
+
} | undefined;
|
|
310
|
+
/** The one-line consequence of a gap kind, shared so no lane re-invents it. */
|
|
311
|
+
declare function capabilityConsequence(gap: CapabilityGap): string;
|
|
312
|
+
/**
|
|
313
|
+
* D062-03: the applicable condition every removal-like outcome must carry.
|
|
314
|
+
* "Clean" or "no longer listed" never proves "no dependants", so a completed
|
|
315
|
+
* subset stays reported as the subset it is. These are the execution-side
|
|
316
|
+
* facts the guard can name but cannot observe; it states them instead of
|
|
317
|
+
* inventing a generic remover or promising an automatic block.
|
|
318
|
+
*/
|
|
319
|
+
declare const DEPENDENCY_FREE_ONLY_CONDITION: readonly string[];
|
|
320
|
+
/** The per-object dependency status a report must keep separate. */
|
|
321
|
+
type DependencyStatus = "dependency_free" | "in_use" | "unknown";
|
|
322
|
+
/** Whether one candidate object may enter the automatic removal set. */
|
|
323
|
+
declare function admissibleForRemoval(status: DependencyStatus): boolean;
|
|
324
|
+
interface RemovalOutcomeReport {
|
|
325
|
+
metadataRemoved: "yes" | "no" | "unknown";
|
|
326
|
+
contentRemoved: "yes" | "no" | "partial" | "unknown";
|
|
327
|
+
directoryRemoved: "yes" | "no" | "unknown";
|
|
328
|
+
}
|
|
329
|
+
/** Only an object proven dependency-free AND fully removed may read as done. */
|
|
330
|
+
declare function removalIsComplete(report: RemovalOutcomeReport, status: DependencyStatus): boolean;
|
|
331
|
+
/** A partially removed object or an unknown dependant is never "no impact". */
|
|
332
|
+
declare function removalIsPartiallyKnown(report: RemovalOutcomeReport, status: DependencyStatus): boolean;
|
|
333
|
+
//#endregion
|
|
193
334
|
//#region src/domain/rebind.d.ts
|
|
194
335
|
interface RebindArgs {
|
|
195
336
|
operation: "propose" | "query" | "withdraw";
|
|
@@ -541,6 +682,37 @@ interface VerificationContract {
|
|
|
541
682
|
* on the same canonical subject — mentioning the file is not enough. */
|
|
542
683
|
operation?: GuardOperation;
|
|
543
684
|
}
|
|
685
|
+
/**
|
|
686
|
+
* 0.6.1 (W060-01): the durable identity of one non-text root input part. The
|
|
687
|
+
* asset obligation binds the exact message sequence, part index and content
|
|
688
|
+
* digest of the ORIGINAL input — never a model description of it — so an
|
|
689
|
+
* interpretation can only ever be recorded against the asset it interpreted.
|
|
690
|
+
*/
|
|
691
|
+
interface AssetObligation {
|
|
692
|
+
/** Sequence of the root message that carried the part. */
|
|
693
|
+
messageSeq: number;
|
|
694
|
+
/** Index of the non-text part inside that message. */
|
|
695
|
+
partIndex: number;
|
|
696
|
+
/** sha256 of the canonical JSON of the part: the media identity. */
|
|
697
|
+
mediaSha256: string;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* 0.6.1 (W060-01): one durable per-asset interpretation record, derived from a
|
|
701
|
+
* confirmed `context_guard_interpret` result that replay re-validated against
|
|
702
|
+
* the contract (call arguments, item, revision, asset identity). It is the
|
|
703
|
+
* model's explicit declaration that it read THAT obligation's asset in THAT
|
|
704
|
+
* host turn; it never proves the interpretation is correct, and it closes
|
|
705
|
+
* nothing by itself — an asset obligation closes only when a delivery of the
|
|
706
|
+
* interpretation's own turn exists. Absent from logs written before this
|
|
707
|
+
* entrypoint existed, which is what keeps upgrade replays from retroactively
|
|
708
|
+
* interpreting old assets.
|
|
709
|
+
*/
|
|
710
|
+
interface AssetInterpretationFact {
|
|
711
|
+
itemId: string;
|
|
712
|
+
resultSeq: number;
|
|
713
|
+
/** The host turn the interpretation happened in. */
|
|
714
|
+
turn: number;
|
|
715
|
+
}
|
|
544
716
|
interface GuardItem {
|
|
545
717
|
id: string;
|
|
546
718
|
revision: number;
|
|
@@ -625,6 +797,23 @@ interface GuardItem {
|
|
|
625
797
|
* keeps its own history.
|
|
626
798
|
*/
|
|
627
799
|
clarifiesItemId?: string;
|
|
800
|
+
/**
|
|
801
|
+
* 0.6.1 (W060-01 review round 10): set on the sub-items created when an
|
|
802
|
+
* unresolved clause is superseded by its recorded interpretation
|
|
803
|
+
* partition. Names the superseded unresolved obligation; the information
|
|
804
|
+
* sub-items close through the interpreting turn's delivery, while unknown
|
|
805
|
+
* and undeclared sub-spans stay pending.
|
|
806
|
+
*/
|
|
807
|
+
interpretedFromUnresolved?: string;
|
|
808
|
+
/**
|
|
809
|
+
* 0.6.1 (W060-01): present only on an asset-interpretation obligation. The
|
|
810
|
+
* item's information slot closes through the SAME trusted-delivery fact as
|
|
811
|
+
* any inquiry of its turn; the closing answers the request that carried the
|
|
812
|
+
* asset, never the correctness of the interpretation, and visual-comparison
|
|
813
|
+
* proof (strict surface 'visual') stays a separate obligation. Absent on
|
|
814
|
+
* every other item, so legacy and ordinary text items are unchanged.
|
|
815
|
+
*/
|
|
816
|
+
asset?: AssetObligation;
|
|
628
817
|
}
|
|
629
818
|
interface GuardEvidence {
|
|
630
819
|
id: string;
|
|
@@ -663,6 +852,18 @@ interface GuardEvidence {
|
|
|
663
852
|
adapterVersion?: string;
|
|
664
853
|
externalOperationRef?: ExternalOperation;
|
|
665
854
|
/**
|
|
855
|
+
* 0.6.2 D062-02: the LAYERED reading of a shell result, kept beside — never
|
|
856
|
+
* instead of — the frozen `outcome`/`parseStatus` pair. It separates four
|
|
857
|
+
* different claims the historical single `outcome` conflated: what the host
|
|
858
|
+
* tool call returned, what the console actually declared about the process
|
|
859
|
+
* (an exit code and its signal, or `unknown` when none was read), how far the
|
|
860
|
+
* effect could be attributed to this obligation's own operation, and the
|
|
861
|
+
* resulting business outcome. It is derived at replay from the same bytes, is
|
|
862
|
+
* excluded from every historical digest and certificate domain, and never
|
|
863
|
+
* rewrites an old `outcome`. Only shell-tool facts carry it.
|
|
864
|
+
*/
|
|
865
|
+
processFacts?: DerivedProcessFacts;
|
|
866
|
+
/**
|
|
666
867
|
* 0.6.0 C04: this fact came from a delegated subagent/task round-trip. A
|
|
667
868
|
* delegated result is BOUNDED evidence for the parent unit — it is recorded
|
|
668
869
|
* and visible, and it can never close a parent obligation or a parent unit
|
|
@@ -850,6 +1051,12 @@ interface GuardProjection {
|
|
|
850
1051
|
*/
|
|
851
1052
|
trustedSelections: TrustedSelection[];
|
|
852
1053
|
/**
|
|
1054
|
+
* 0.6.1 (W060-01): the derived per-asset interpretation records (bounded to
|
|
1055
|
+
* the last 64), one per confirmed `context_guard_interpret` result. Derived,
|
|
1056
|
+
* never written by a caller.
|
|
1057
|
+
*/
|
|
1058
|
+
interpretationFacts: AssetInterpretationFact[];
|
|
1059
|
+
/**
|
|
853
1060
|
* 0.6.0 C07 sandbox approvals, derived from the host's own
|
|
854
1061
|
* `approval/asked` + `approval/decided` audit pair (last 16). Recorded for
|
|
855
1062
|
* provenance only: an approval is never a target authority.
|
|
@@ -1498,6 +1705,12 @@ type ReasonClass = "parameter_missing" | "source_insufficient" | "condition_unme
|
|
|
1498
1705
|
//#region src/domain/diagnostics.d.ts
|
|
1499
1706
|
type TaskKind = "inquiry" | "action" | "deliverable" | "constraint" | "unresolved";
|
|
1500
1707
|
type CertificationSupport = "supported" | "unsupported" | "needs_target" | "needs_evidence" | "unavailable";
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether anything can still be repaired, and by whom (0.5, corrected by 0.6.2
|
|
1710
|
+
* D062-01). `user_input_required` means a real root choice was never made
|
|
1711
|
+
* (a genuinely absent identity or target selection) — never a capability this
|
|
1712
|
+
* build simply does not have, and never a request to re-word an instruction.
|
|
1713
|
+
*/
|
|
1501
1714
|
type Repairability = "agent_repairable" | "user_input_required" | "unsupported" | "historical_gap" | "none";
|
|
1502
1715
|
interface DiagnosisNextAction {
|
|
1503
1716
|
kind: "report_only" | "collect_evidence" | "checkpoint" | "clarify_target" | "restore_host" | "none";
|
|
@@ -1518,6 +1731,13 @@ interface UnifiedItemDiagnosis {
|
|
|
1518
1731
|
/** The seven-class label this fine-grained reason code belongs to (C12). */
|
|
1519
1732
|
reason_class: ReasonClass;
|
|
1520
1733
|
repairability: Repairability;
|
|
1734
|
+
/**
|
|
1735
|
+
* 0.6.2 D062-01: WHAT the guard knows and WHICH remedy is reachable, shared
|
|
1736
|
+
* by every consumer. `reason_code` stays the fine display code; the
|
|
1737
|
+
* capability fact explains the remedy, so no lane infers a root cause — or
|
|
1738
|
+
* invents a reachable path — from one enum.
|
|
1739
|
+
*/
|
|
1740
|
+
capability: CapabilityFact;
|
|
1521
1741
|
missing_fields: string[];
|
|
1522
1742
|
missing_facets: Array<"resolution" | "effect" | "state">;
|
|
1523
1743
|
next_action: DiagnosisNextAction;
|
|
@@ -1546,6 +1766,13 @@ declare function itemDiagnosis(p: GuardProjection, item: GuardItem): {
|
|
|
1546
1766
|
declare function evidenceAvailabilityReason(evidence: GuardEvidence): string | undefined;
|
|
1547
1767
|
/** Shared display filter; certification remains the full domain check. */
|
|
1548
1768
|
declare function relevantEvidence(p: GuardProjection, item: GuardItem, evidence: GuardEvidence): boolean;
|
|
1769
|
+
/**
|
|
1770
|
+
* The bounded, one-phrase form of a reachable remedy (0.6.2 D062-01). The
|
|
1771
|
+
* capability consequence above is the full explanation; a bounded page lists
|
|
1772
|
+
* many items, so it uses this phrase and leaves the prose to the detail and
|
|
1773
|
+
* preparation surfaces. Both come from the SAME capability fact.
|
|
1774
|
+
*/
|
|
1775
|
+
declare function capabilityRemedyPhrase(remedy: CapabilityRemedy): string;
|
|
1549
1776
|
//#endregion
|
|
1550
1777
|
//#region src/domain/evidence.d.ts
|
|
1551
1778
|
interface ToolCallInput {
|
|
@@ -1584,6 +1811,8 @@ interface ToolSubject {
|
|
|
1584
1811
|
reasonCode?: string;
|
|
1585
1812
|
adapterId?: string;
|
|
1586
1813
|
adapterVersion?: string;
|
|
1814
|
+
/** 0.6.2 D062-02: the layered shell reading, present only for shell tools. */
|
|
1815
|
+
processFacts?: DerivedProcessFacts;
|
|
1587
1816
|
externalOperationRef?: ExternalOperation;
|
|
1588
1817
|
}
|
|
1589
1818
|
declare function extractToolSubject(call: ToolCallInput, result: ToolResultInput, defaultCwd?: string, hostLock?: HostLockEvaluation): ToolSubject;
|
|
@@ -1728,7 +1957,7 @@ interface GitEffectRunner {
|
|
|
1728
1957
|
}
|
|
1729
1958
|
interface GitEffectExecution {
|
|
1730
1959
|
status: "executed" | "rejected";
|
|
1731
|
-
reasonCode?: GitPrestateCheck["reasonCode"] | "repository_missing";
|
|
1960
|
+
reasonCode?: GitPrestateCheck["reasonCode"] | "repository_missing" | "effect_already_applied";
|
|
1732
1961
|
}
|
|
1733
1962
|
interface LinearCommitReadback {
|
|
1734
1963
|
/** Commit reached after the guarded effect. */
|
|
@@ -1890,6 +2119,8 @@ interface FirstStepPreviewInput {
|
|
|
1890
2119
|
boundaryPresent: boolean;
|
|
1891
2120
|
/** The session is a delegated/subagent session, never a root conversation. */
|
|
1892
2121
|
delegated: boolean;
|
|
2122
|
+
/** 0.6.1 (W060-05): the effective responsibility tier shapes the guidance. */
|
|
2123
|
+
policy?: "standard" | "strict" | "release";
|
|
1893
2124
|
}
|
|
1894
2125
|
/**
|
|
1895
2126
|
* Pure decision for the first-step activation injection when protection is enabled. The
|
|
@@ -1905,10 +2136,16 @@ interface FirstStepPreviewInput {
|
|
|
1905
2136
|
declare function previewFirstStepInjection(input: FirstStepPreviewInput, claimedRealInput: boolean): FirstStepInjection | undefined;
|
|
1906
2137
|
/**
|
|
1907
2138
|
* Compact first-step guidance: protection has started, what it protects, and
|
|
1908
|
-
* the
|
|
1909
|
-
*
|
|
2139
|
+
* when the guarded producer path is needed. 0.6.1 (W060-05): the stateful
|
|
2140
|
+
* workflow is stated CONDITIONALLY — only an obligation whose own clause
|
|
2141
|
+
* demands a certified stateful action runs through prepare/producer/checkpoint.
|
|
2142
|
+
* The 0.6.0 text demanded that order for every stateful action unconditionally,
|
|
2143
|
+
* which ordinary business work correctly read as a Guard approval gate.
|
|
2144
|
+
* Ordinary answers, investigations, and ordinary tool work are never gated, and
|
|
2145
|
+
* missing Guard evidence is never a reason to repeat a completed action.
|
|
1910
2146
|
*/
|
|
1911
|
-
declare
|
|
2147
|
+
declare function firstStepGuidance(policy?: "standard" | "strict" | "release"): string;
|
|
2148
|
+
declare const FIRST_STEP_GUIDANCE: string;
|
|
1912
2149
|
/**
|
|
1913
2150
|
* Lifecycle phase derived from durable facts. `enabled` is the log-derived
|
|
1914
2151
|
* enablement (`always`, or the explicit `on`/`off` command sequence), and
|
|
@@ -2167,6 +2404,40 @@ interface RecoveryOptions {
|
|
|
2167
2404
|
declare const DEFAULT_RECOVERY_CHAR_BUDGET = 4e3;
|
|
2168
2405
|
declare const MIN_RECOVERY_CHAR_BUDGET = 512;
|
|
2169
2406
|
/**
|
|
2407
|
+
* 0.6.2 D062-03: the standing condition a removal or cleanup outcome must keep.
|
|
2408
|
+
* The guard cannot observe another process's cwd or handles, so it states the
|
|
2409
|
+
* condition instead of inferring "no dependants" from a clean tree, an empty
|
|
2410
|
+
* `git worktree list`, or a directory that merely looks empty. This is one
|
|
2411
|
+
* shared wording, not an incident phrase list, and it never claims the plugin
|
|
2412
|
+
* can block a dangerous removal on its own.
|
|
2413
|
+
*/
|
|
2414
|
+
declare const CLEANUP_CONDITION_RULE: string;
|
|
2415
|
+
/**
|
|
2416
|
+
* The same condition at a medium budget (0.6.2 review): shorter than the full
|
|
2417
|
+
* rule, and still explicit that an unknown dependant forbids the claim.
|
|
2418
|
+
*/
|
|
2419
|
+
declare const CLEANUP_CONDITION_RULE_SHORT: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* The same condition at emergency budget (0.6.2 review). A packet with fewer
|
|
2422
|
+
* than 1000 characters cannot carry the longer sentences AND its own rules, so
|
|
2423
|
+
* the condition is compressed — but it is NEVER omitted: the one thing a compact
|
|
2424
|
+
* packet must not lose is that an unknown dependant forbids a removal claim.
|
|
2425
|
+
*/
|
|
2426
|
+
declare const CLEANUP_CONDITION_RULE_COMPACT: string;
|
|
2427
|
+
/**
|
|
2428
|
+
* Pick the longest form of the condition the packet's budget can actually
|
|
2429
|
+
* afford. The caller reserves this line's length before any optional row, so
|
|
2430
|
+
* the condition is never the text that gets clipped.
|
|
2431
|
+
*/
|
|
2432
|
+
declare function cleanupConditionFor(budget: number): string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Whether this gap needs the cleanup condition spelled out. The condition
|
|
2435
|
+
* belongs to every uncertifiable lane that could describe removal-like work —
|
|
2436
|
+
* which the guard cannot identify from text — so it rides the CAPABILITY
|
|
2437
|
+
* limitation itself, never a vocabulary of destructive verbs.
|
|
2438
|
+
*/
|
|
2439
|
+
declare function carriesCleanupCondition(gap: CapabilityGap): boolean;
|
|
2440
|
+
/**
|
|
2170
2441
|
* An actionable one-line hint for how an open item's verification contract can
|
|
2171
2442
|
* be closed. It never weakens the contract; it only names the missing facet so
|
|
2172
2443
|
* the agent can produce the right evidence shape instead of reverse-engineering
|
|
@@ -2357,4 +2628,4 @@ declare function latestAssistantText(events: readonly {
|
|
|
2357
2628
|
//#region src/domain/supersession.d.ts
|
|
2358
2629
|
declare function supersedeItem(items: Map<string, GuardItem>, oldId: string, replacement: GuardItem): boolean;
|
|
2359
2630
|
//#endregion
|
|
2360
|
-
export {
|
|
2631
|
+
export { ProofSurface as $, ScopeInterpretation as $a, GuardItemStatus as $i, deriveProjection as $n, TaskIntent as $r, GIT_COMMAND_MANIFEST_IDS as $t, MIN_RECOVERY_CHAR_BUDGET as A, CapabilityFact as Aa, AssetObligation as Ai, ToolCallInput as An, semanticActionFromText as Ao, evaluateExternalWaitCapability as Ar, ClaimedMessage as At, PROOF_KINDS as B, ProcessOutcomeReason as Ba, EvidenceBinding as Bi, Repairability as Bn, ParsedHostVersion as Br, HostProfileError as Bt, RC015_RC2_HOST_PACKAGES as C, confirmRebind as Ca, GoalActivationState as Ci, ShellParseStatus as Cn, actionCompatible as Co, HostLockStatus as Cr, evidenceMatchesItem as Ct, CLEANUP_CONDITION_RULE_COMPACT as D, rebindAttemptKey as Da, isCurrentAcceptedBoundary as Di, parseShellCommand as Dn, requestedTargetAuthorizesMutation as Do, LEGACY_HOST_COHORTS as Dr, ManifestIssue as Dt, CLEANUP_CONDITION_RULE as E, proposeRebindV042 as Ea, effectuateBoundary as Ei, parsePwshCommand as En, requestedIdentityKey as Eo, HostToolSurface as Er, CommandSurfaceManifest as Et, openItems as F, DependencyStatus as Fa, DelegationRef as Fi, extractToolSubject as Fn, normalizeClause as Fo, selectHostCohort as Fr, claimedBatchHasRealRootInput as Ft, ProofHostSurface as G, capabilityFactOf as Ga, ExternalOperation as Gi, evidenceAvailabilityReason as Gn, parseHostVersion as Gr, injectActiveProfileHostLock as Gt, PROOF_MANIFEST_DOMAIN_V2 as H, actionHasCertificationPath as Ha, EvidenceParseStatus as Hi, UnifiedItemDiagnosis as Hn, SUPPORTED_HOST_VERSIONS as Hr, combineHostPolicy as Ht, recoveryDigest as I, DerivedProcessFacts as Ia, DeriveConfig as Ii, isDeterministicCheck as In, sanitizeClauseText as Io, HostVersionDecision as Ir, firstStepGuidance as It, ProofKindV2 as J, removalIsPartiallyKnown as Ja, GuardCheckpoint as Ji, CAPTURE_V042_NOTICE as Jn, AuthorityBlock as Jr, packageRowsFromPnpmLock as Jt, ProofKind as K, partialFailureOf as Ka, GoalRef as Ki, itemDiagnosis as Kn, satisfiesSupportedHostRange as Kr, inspectTargetHostGraph as Kt, renderRecoveryPacket as L, OperationAttribution as La, DeriveResult as Li, withDurability as Ln, sanitizeUrl as Lo, HostVersionStatus as Lr, lifecyclePhase as Lt, carriesCleanupCondition as M, CapabilityRemedy as Ma, BoundaryDisposition as Mi, ToolSubject as Mn, validateActionTarget as Mo, evaluateHostLock as Mr, FirstStepInjection as Mt, cleanupConditionFor as N, DEPENDENCY_FREE_ONLY_CONDITION as Na, BoundaryQualificationKind as Ni, evidenceFromPersistedToolResult as Nn, canonicalizePath as No, evaluateToolSurfaceCapability as Nr, FirstStepPreviewInput as Nt, CLEANUP_CONDITION_RULE_SHORT as O, rebindResponse as Oa, qualifyBoundary as Oi, goalCompletionDenial as On, requestedTargetMatchesResolved as Oo, bindExecutableIdentity as Or, OperationVerbEntry as Ot, closingHint as P, DeclaredOperationResult as Pa, DeferAuthorization as Pi, extractTextContent as Pn, digestStrings as Po, hostVersionFromPackages as Pr, LifecyclePhase as Pt, ProofObligationV2 as Q, InterpretOptions as Qa, GuardItemKind as Qi, PROTOCOL_V5_NOTICE as Qn, segmentAuthorityBlocks as Qr, verifyComposedHostLockDump as Qt, ALPHA3_HOST_PACKAGES as R, ProcessExitStatus as Ra, DeriveScope as Ri, CertificationSupport as Rn, sha256 as Ro, LATEST_SUPPORTED_HOST_VERSION as Rr, previewFirstStepInjection as Rt, snapshotSessionEvents as S, RebindProposal as Sa, BoundaryRequest as Si, ParsedShell as Sn, StatefulAction as So, HostLockEvaluation as Sr, evidenceCoverage as St, RC1_HOST_PACKAGES as T, proposeRebindOutcome as Ta, availableBoundaryQualifications as Ti, isRunExecutable as Tn, isStatefulAction as To, HostProfileKind as Tr, COMMAND_SURFACE_MANIFEST as Tt, PROOF_PROTOCOL_VERSION as U, admissibleForRemoval as Ua, EvidenceRole as Ui, capabilityRemedyPhrase as Un, compareHostVersions as Ur, hostLockContextFromComposedDump as Ut, PROOF_KINDS_V2 as V, RemovalOutcomeReport as Va, EvidenceOutcome as Vi, TaskKind as Vn, SUPPORTED_HOST_RANGE as Vr, TargetHostGraph as Vt, PROOF_PROTOCOL_VERSION_V2 as W, capabilityConsequence as Wa, ExpectedTransition as Wi, deriveItemDiagnosis as Wn, evaluateMinimumHostVersion as Wr, hostLockRowsFromComposedDump as Wt, ProofManifestV2 as X, DirectiveClass as Xa, GuardIntegrity as Xi, PROTOCOL_V3_NOTICE as Xn, AuthorityKind as Xr, resolveActiveProfileHostLock as Xt, ProofManifest as Y, AuthorityDisposition as Ya, GuardEvidence as Yi, DEFAULT_DELEGATION_TOOL_NAMES as Yn, AuthorityBlockKind as Yr, readActiveHostGraph as Yt, ProofObligation as Z, Executee as Za, GuardItem as Zi, PROTOCOL_V4_NOTICE as Zn, authorityCaptureCounts as Zr, resolveInstalledHostLock as Zt, progressFingerprint as _, ReleaseOperation as _a, extractOperation as _i, parseGitCommandManifest as _n, STATEFUL_ACTIONS as _o, HostCapabilityRequest as _r, sessionQueryV2 as _t, NO_PROGRESS_RECORD_PREFIX as a, SourceSpan as aa, isFrozenV042RebindResponse as ai, GitCommandRejected as an, maskCodeSpans as ao, AuditedExecutable as ar, createProofManifest as at, SessionApiError as b, ProposeOutcome as ba, BoundaryEffectuation as bi, CanonicalArgv as bn, SUPPORTED_EVIDENCE_ADAPTERS as bo, HostCohortSelectionReason as br, EvidenceFacetCoverage as bt, classifyCompletionClaim as c, TargetTuple as ca, RejectedBinding as ci, GitPrestateCheck as cn, statefulActionsOfScope as co, EXPECTED_HOST_PACKAGES as cr, proofDigest as ct, decisionBoundaryKey as d, WaitAuthorization as da, ClauseSegment as di, LinearCommitReadback as dn, ActionManifest as do, GOAL_HOST_PACKAGES as dr, proofHostSurfacesOf as dt, GuardOperation as ea, UserInteractionKind as ei, GIT_COMMAND_TEMPLATES as en, interpretClause as eo, ACTIVE_HOST_COHORT_ID as er, SessionQuery as et, isRootPauseRequest as f, WorkUnit as fa, captureClause as fi, commitIndexSnapshotDigest as fn, ActionSpec as fo, HOST_CAPABILITY_PACKAGE_GROUPS as fr, proofOperationMatches as ft, observeAssistantOutcome as g, ReleaseObservedIdentity as ga, extractMethod as gi, gitCommandMatchesTarget as gn, SEMANTIC_ACTIONS as go, HostCapabilityId as gr, sessionQuery as gt, latestRootInstruction as h, ReleaseGateDecision as ha, extractArtifactPaths as hi, executeRevalidatedGitEffect as hn, CERTIFICATE_VERSION_V2 as ho, HostCapabilityEvaluation as hr, scopeCoverageDigest as ht, CompletionDisposition as i, PersistenceAuthorization as ia, ParsedConfirmation as ii, GitCommandParseResult as in, kindOfScope as io, ALPHA2_HOST_PACKAGES as ir, canonicalProjection as it, RecoveryOptions as j, CapabilityGap as ja, BindingActionClosure as ji, ToolResultInput as jn, validateActionManifest as jo, evaluateHostCapability as jr, FIRST_STEP_GUIDANCE as jt, DEFAULT_RECOVERY_CHAR_BUDGET as k, replayRebindResult as ka, AssetInterpretationFact as ki, hasCurrentCertificate as kn, semanticActionFromCommand as ko, bindLiveGoalCapability as kr, validateManifest as kt, decideTurnBoundary as l, TargetValue as la, certifyCheckpoint as li, GitPrestateEnvelope as ln, ACTION_MANIFEST as lo, ExecutableIdentity as lr, proofDigestV2 as lt, latestAssistantText as m, PackageRow as ma, classifyClause as mi, createGitPrestateEnvelope as mn, CERTIFICATE_VERSION as mo, HostAuditProvenance as mr, requiredSubjectsOf as mt, AssistantOutcomeObservation as n, HostStatus as na, classifyUserInteraction as ni, GitCommandAccepted as nn, isExecutableItem as no, ACTIVE_HOST_LAUNCHER_VERSION as nr, bindProofToProjection as nt, NO_PROGRESS_TURNS_BEFORE_STOP as o, TargetCaptureReasonCode as oa, parseConfirmationMessage as oi, GitEffectExecution as on, namedActions as oo, BASE_HOST_PACKAGES as or, createProofManifestV2 as ot, isWholeTaskCompletionClaim as p, createProjection as pa, captureItem as pi, commitTreeSnapshotDigest as pn, BOUNDED_ARTIFACT_TYPES as po, HOST_COHORTS as pr, proofV2Rejection as pt, ProofKindCapability as q, removalIsComplete as qa, GuardBoundary as qi, relevantEvidence as qn, currentContractDigest as qr, packageRowsFromActiveGraph as qt, CONTROL_RECORD_PREFIX as r, MessageCoverage as ra, CONFIRM_LINE_PATTERN as ri, GitCommandManifest as rn, isOpenObligation as ro, ALPHA2_DSHMARKET_139_HOST_PACKAGES as rr, bindProofV2ToProjection as rt, TurnStoppingDecision as s, TargetCaptureStatus as sa, CheckpointResult as si, GitEffectRunner as sn, semanticActionOfScope as so, DEFAULT_HOST_LOCK as sr, proofCapabilityReport as st, supersedeItem as t, GuardProjection as ta, classifyTaskIntent as ti, GitAdapterAction as tn, interpretMessage as to, ACTIVE_HOST_COHORT_IDS as tr, SessionQueryV2 as tt, decideTurnStopping as u, VerificationContract as ua, CaptureScope as ui, GitTargetIdentity as un, ACTION_MANIFEST_VERSION as uo, ExecutableIdentityBinding as ur, proofEvidenceConstraints as ut, SESSION_API_UNSUPPORTED as v, ReleaseSettlement as va, isInformationalMessage as vi, revalidateGitPrestate as vn, STOP_PROTOCOL_VERSION as vo, HostCohort as vr, validateProofManifest as vt, RC015_HOST_PACKAGES as w, proposeRebind as wa, GoalBoundaryAccess as wi, canonicalArgvFromCommand as wn, boundedArtifactChoiceMatches as wo, HostPlatform as wr, isVerifyingCapability as wt, V3SessionLike as x, RebindArgs as xa, BoundaryQualification as xi, CanonicalCommandSurface as xn, SemanticAction as xo, HostLockContext as xr, bindingSatisfies as xt, SESSION_EVENT_ENVELOPE_INVALID as y, BoundedSource as ya, segmentClauses as yi, verifiedLinearCommitReadback as yn, STOP_PROTOCOL_VERSION_V2 as yo, HostCohortSelection as yr, validateProofManifestV2 as yt, PROOF_CAPABILITY_MATRIX as z, ProcessFactSource as za, DerivedEnvelope as zi, DiagnosisNextAction as zn, MIN_SUPPORTED_HOST_VERSION as zr, ActiveProfileHostLock as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as ProofSurface, $a as ScopeInterpretation, $i as GuardItemStatus, $n as deriveProjection, $r as TaskIntent, $t as GIT_COMMAND_MANIFEST_IDS, A as MIN_RECOVERY_CHAR_BUDGET, Aa as CapabilityFact, Ai as AssetObligation, An as ToolCallInput, Ao as semanticActionFromText, Ar as evaluateExternalWaitCapability, At as ClaimedMessage, B as PROOF_KINDS, Ba as ProcessOutcomeReason, Bi as EvidenceBinding, Bn as Repairability, Br as ParsedHostVersion, Bt as HostProfileError, C as RC015_RC2_HOST_PACKAGES, Ca as confirmRebind, Ci as GoalActivationState, Cn as ShellParseStatus, Co as actionCompatible, Cr as HostLockStatus, Ct as evidenceMatchesItem, D as CLEANUP_CONDITION_RULE_COMPACT, Da as rebindAttemptKey, Di as isCurrentAcceptedBoundary, Dn as parseShellCommand, Do as requestedTargetAuthorizesMutation, Dr as LEGACY_HOST_COHORTS, Dt as ManifestIssue, E as CLEANUP_CONDITION_RULE, Ea as proposeRebindV042, Ei as effectuateBoundary, En as parsePwshCommand, Eo as requestedIdentityKey, Er as HostToolSurface, Et as CommandSurfaceManifest, F as openItems, Fa as DependencyStatus, Fi as DelegationRef, Fn as extractToolSubject, Fo as normalizeClause, Fr as selectHostCohort, Ft as claimedBatchHasRealRootInput, G as ProofHostSurface, Ga as capabilityFactOf, Gi as ExternalOperation, Gn as evidenceAvailabilityReason, Gr as parseHostVersion, Gt as injectActiveProfileHostLock, H as PROOF_MANIFEST_DOMAIN_V2, Ha as actionHasCertificationPath, Hi as EvidenceParseStatus, Hn as UnifiedItemDiagnosis, Hr as SUPPORTED_HOST_VERSIONS, Ht as combineHostPolicy, I as recoveryDigest, Ia as DerivedProcessFacts, Ii as DeriveConfig, In as isDeterministicCheck, Io as sanitizeClauseText, Ir as HostVersionDecision, It as firstStepGuidance, J as ProofKindV2, Ja as removalIsPartiallyKnown, Ji as GuardCheckpoint, Jn as CAPTURE_V042_NOTICE, Jr as AuthorityBlock, Jt as packageRowsFromPnpmLock, K as ProofKind, Ka as partialFailureOf, Ki as GoalRef, Kn as itemDiagnosis, Kr as satisfiesSupportedHostRange, Kt as inspectTargetHostGraph, L as renderRecoveryPacket, La as OperationAttribution, Li as DeriveResult, Ln as withDurability, Lo as sanitizeUrl, Lr as HostVersionStatus, Lt as lifecyclePhase, M as carriesCleanupCondition, Ma as CapabilityRemedy, Mi as BoundaryDisposition, Mn as ToolSubject, Mo as validateActionTarget, Mr as evaluateHostLock, Mt as FirstStepInjection, N as cleanupConditionFor, Na as DEPENDENCY_FREE_ONLY_CONDITION, Ni as BoundaryQualificationKind, Nn as evidenceFromPersistedToolResult, No as canonicalizePath, Nr as evaluateToolSurfaceCapability, Nt as FirstStepPreviewInput, O as CLEANUP_CONDITION_RULE_SHORT, Oa as rebindResponse, Oi as qualifyBoundary, On as goalCompletionDenial, Oo as requestedTargetMatchesResolved, Or as bindExecutableIdentity, Ot as OperationVerbEntry, P as closingHint, Pa as DeclaredOperationResult, Pi as DeferAuthorization, Pn as extractTextContent, Po as digestStrings, Pr as hostVersionFromPackages, Pt as LifecyclePhase, Q as ProofObligationV2, Qa as InterpretOptions, Qi as GuardItemKind, Qn as PROTOCOL_V5_NOTICE, Qr as segmentAuthorityBlocks, Qt as verifyComposedHostLockDump, R as ALPHA3_HOST_PACKAGES, Ra as ProcessExitStatus, Ri as DeriveScope, Rn as CertificationSupport, Ro as sha256, Rr as LATEST_SUPPORTED_HOST_VERSION, Rt as previewFirstStepInjection, S as snapshotSessionEvents, Sa as RebindProposal, Si as BoundaryRequest, Sn as ParsedShell, So as StatefulAction, Sr as HostLockEvaluation, St as evidenceCoverage, T as RC1_HOST_PACKAGES, Ta as proposeRebindOutcome, Ti as availableBoundaryQualifications, Tn as isRunExecutable, To as isStatefulAction, Tr as HostProfileKind, Tt as COMMAND_SURFACE_MANIFEST, U as PROOF_PROTOCOL_VERSION, Ua as admissibleForRemoval, Ui as EvidenceRole, Un as capabilityRemedyPhrase, Ur as compareHostVersions, Ut as hostLockContextFromComposedDump, V as PROOF_KINDS_V2, Va as RemovalOutcomeReport, Vi as EvidenceOutcome, Vn as TaskKind, Vr as SUPPORTED_HOST_RANGE, Vt as TargetHostGraph, W as PROOF_PROTOCOL_VERSION_V2, Wa as capabilityConsequence, Wi as ExpectedTransition, Wn as deriveItemDiagnosis, Wr as evaluateMinimumHostVersion, Wt as hostLockRowsFromComposedDump, X as ProofManifestV2, Xa as DirectiveClass, Xi as GuardIntegrity, Xn as PROTOCOL_V3_NOTICE, Xr as AuthorityKind, Xt as resolveActiveProfileHostLock, Y as ProofManifest, Ya as AuthorityDisposition, Yi as GuardEvidence, Yn as DEFAULT_DELEGATION_TOOL_NAMES, Yr as AuthorityBlockKind, Yt as readActiveHostGraph, Z as ProofObligation, Za as Executee, Zi as GuardItem, Zn as PROTOCOL_V4_NOTICE, Zr as authorityCaptureCounts, Zt as resolveInstalledHostLock, _ as progressFingerprint, _a as ReleaseOperation, _i as extractOperation, _n as parseGitCommandManifest, _o as STATEFUL_ACTIONS, _r as HostCapabilityRequest, _t as sessionQueryV2, a as NO_PROGRESS_RECORD_PREFIX, aa as SourceSpan, ai as isFrozenV042RebindResponse, an as GitCommandRejected, ao as maskCodeSpans, ar as AuditedExecutable, at as createProofManifest, b as SessionApiError, ba as ProposeOutcome, bi as BoundaryEffectuation, bn as CanonicalArgv, bo as SUPPORTED_EVIDENCE_ADAPTERS, br as HostCohortSelectionReason, bt as EvidenceFacetCoverage, c as classifyCompletionClaim, ca as TargetTuple, ci as RejectedBinding, cn as GitPrestateCheck, co as statefulActionsOfScope, cr as EXPECTED_HOST_PACKAGES, ct as proofDigest, d as decisionBoundaryKey, da as WaitAuthorization, di as ClauseSegment, dn as LinearCommitReadback, do as ActionManifest, dr as GOAL_HOST_PACKAGES, dt as proofHostSurfacesOf, ea as GuardOperation, ei as UserInteractionKind, en as GIT_COMMAND_TEMPLATES, eo as interpretClause, er as ACTIVE_HOST_COHORT_ID, et as SessionQuery, f as isRootPauseRequest, fa as WorkUnit, fi as captureClause, fn as commitIndexSnapshotDigest, fo as ActionSpec, fr as HOST_CAPABILITY_PACKAGE_GROUPS, ft as proofOperationMatches, g as observeAssistantOutcome, ga as ReleaseObservedIdentity, gi as extractMethod, gn as gitCommandMatchesTarget, go as SEMANTIC_ACTIONS, gr as HostCapabilityId, gt as sessionQuery, h as latestRootInstruction, ha as ReleaseGateDecision, hi as extractArtifactPaths, hn as executeRevalidatedGitEffect, ho as CERTIFICATE_VERSION_V2, hr as HostCapabilityEvaluation, ht as scopeCoverageDigest, i as CompletionDisposition, ia as PersistenceAuthorization, ii as ParsedConfirmation, in as GitCommandParseResult, io as kindOfScope, ir as ALPHA2_HOST_PACKAGES, it as canonicalProjection, j as RecoveryOptions, ja as CapabilityGap, ji as BindingActionClosure, jn as ToolResultInput, jo as validateActionManifest, jr as evaluateHostCapability, jt as FIRST_STEP_GUIDANCE, k as DEFAULT_RECOVERY_CHAR_BUDGET, ka as replayRebindResult, ki as AssetInterpretationFact, kn as hasCurrentCertificate, ko as semanticActionFromCommand, kr as bindLiveGoalCapability, kt as validateManifest, l as decideTurnBoundary, la as TargetValue, li as certifyCheckpoint, ln as GitPrestateEnvelope, lo as ACTION_MANIFEST, lr as ExecutableIdentity, lt as proofDigestV2, m as latestAssistantText, ma as PackageRow, mi as classifyClause, mn as createGitPrestateEnvelope, mo as CERTIFICATE_VERSION, mr as HostAuditProvenance, mt as requiredSubjectsOf, n as AssistantOutcomeObservation, na as HostStatus, ni as classifyUserInteraction, nn as GitCommandAccepted, no as isExecutableItem, nr as ACTIVE_HOST_LAUNCHER_VERSION, nt as bindProofToProjection, o as NO_PROGRESS_TURNS_BEFORE_STOP, oa as TargetCaptureReasonCode, oi as parseConfirmationMessage, on as GitEffectExecution, oo as namedActions, or as BASE_HOST_PACKAGES, ot as createProofManifestV2, p as isWholeTaskCompletionClaim, pa as createProjection, pi as captureItem, pn as commitTreeSnapshotDigest, po as BOUNDED_ARTIFACT_TYPES, pr as HOST_COHORTS, pt as proofV2Rejection, q as ProofKindCapability, qa as removalIsComplete, qi as GuardBoundary, qn as relevantEvidence, qr as currentContractDigest, qt as packageRowsFromActiveGraph, r as CONTROL_RECORD_PREFIX, ra as MessageCoverage, ri as CONFIRM_LINE_PATTERN, rn as GitCommandManifest, ro as isOpenObligation, rr as ALPHA2_DSHMARKET_139_HOST_PACKAGES, rt as bindProofV2ToProjection, s as TurnStoppingDecision, sa as TargetCaptureStatus, si as CheckpointResult, sn as GitEffectRunner, so as semanticActionOfScope, sr as DEFAULT_HOST_LOCK, st as proofCapabilityReport, t as supersedeItem, ta as GuardProjection, ti as classifyTaskIntent, tn as GitAdapterAction, to as interpretMessage, tr as ACTIVE_HOST_COHORT_IDS, tt as SessionQueryV2, u as decideTurnStopping, ua as VerificationContract, ui as CaptureScope, un as GitTargetIdentity, uo as ACTION_MANIFEST_VERSION, ur as ExecutableIdentityBinding, ut as proofEvidenceConstraints, v as SESSION_API_UNSUPPORTED, va as ReleaseSettlement, vi as isInformationalMessage, vn as revalidateGitPrestate, vo as STOP_PROTOCOL_VERSION, vr as HostCohort, vt as validateProofManifest, w as RC015_HOST_PACKAGES, wa as proposeRebind, wi as GoalBoundaryAccess, wn as canonicalArgvFromCommand, wo as boundedArtifactChoiceMatches, wr as HostPlatform, wt as isVerifyingCapability, x as V3SessionLike, xa as RebindArgs, xi as BoundaryQualification, xn as CanonicalCommandSurface, xo as SemanticAction, xr as HostLockContext, xt as bindingSatisfies, y as SESSION_EVENT_ENVELOPE_INVALID, ya as BoundedSource, yi as segmentClauses, yn as verifiedLinearCommitReadback, yo as STOP_PROTOCOL_VERSION_V2, yr as HostCohortSelection, yt as validateProofManifestV2, z as PROOF_CAPABILITY_MATRIX, za as ProcessFactSource, zi as DerivedEnvelope, zn as DiagnosisNextAction, zr as MIN_SUPPORTED_HOST_VERSION, zt as ActiveProfileHostLock } from "./index-CZSt3D0G.js";
|
|
2
2
|
import "@deepseek-ai/dsh-tools";
|
|
3
3
|
import "@deepseek-ai/dsh-session";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
@@ -152,4 +152,4 @@ declare function apply(ctx: Context, rawConfig?: {
|
|
|
152
152
|
hostLockProfileRoot?: unknown;
|
|
153
153
|
}, seams?: RuntimeExecutorSeams): void;
|
|
154
154
|
//#endregion
|
|
155
|
-
export { ACTION_MANIFEST, ACTION_MANIFEST_VERSION, ACTIVE_HOST_COHORT_ID, ACTIVE_HOST_COHORT_IDS, ACTIVE_HOST_LAUNCHER_VERSION, ALPHA2_DSHMARKET_139_HOST_PACKAGES, ALPHA2_HOST_PACKAGES, ALPHA3_HOST_PACKAGES, ActionManifest, ActionSpec, ActiveProfileHostLock, AssistantOutcomeObservation, AuditedExecutable, AuthorityBlock, AuthorityBlockKind, AuthorityDisposition, AuthorityKind, BASE_HOST_PACKAGES, BOUNDED_ARTIFACT_TYPES, BindingActionClosure, BoundaryDisposition, BoundaryEffectuation, BoundaryQualification, BoundaryQualificationKind, BoundaryRequest, BoundedSource, CAPTURE_V042_NOTICE, CERTIFICATE_VERSION, CERTIFICATE_VERSION_V2, COMMAND_SURFACE_MANIFEST, CONFIRM_LINE_PATTERN, CONTROL_RECORD_PREFIX, CanonicalArgv, CanonicalCommandSurface, CaptureScope, CertificationSupport, CheckpointResult, ClaimedMessage, ClauseSegment, CommandSurfaceManifest, CompletionDisposition, Config, DEFAULT_DELEGATION_TOOL_NAMES, DEFAULT_HOST_LOCK, DEFAULT_RECOVERY_CHAR_BUDGET, DeferAuthorization, DelegationRef, DeriveConfig, DeriveResult, DeriveScope, DerivedEnvelope, DiagnosisNextAction, DirectiveClass, EXPECTED_HOST_PACKAGES, EvidenceBinding, EvidenceFacetCoverage, EvidenceOutcome, EvidenceParseStatus, EvidenceRole, ExecutableIdentity, ExecutableIdentityBinding, Executee, ExpectedTransition, ExternalOperation, FIRST_STEP_GUIDANCE, FirstStepInjection, FirstStepPreviewInput, GIT_COMMAND_MANIFEST_IDS, GIT_COMMAND_TEMPLATES, GOAL_HOST_PACKAGES, GitAdapterAction, GitCommandAccepted, GitCommandManifest, GitCommandParseResult, GitCommandRejected, GitEffectExecution, GitEffectRunner, GitPrestateCheck, GitPrestateEnvelope, GitTargetIdentity, GoalActivationState, GoalBoundaryAccess, GoalRef, GuardBoundary, GuardCheckpoint, GuardEvidence, GuardIntegrity, GuardItem, GuardItemKind, GuardItemStatus, GuardOperation, GuardProjection, HOST_CAPABILITY_PACKAGE_GROUPS, HOST_COHORTS, HostAuditProvenance, HostCapabilityEvaluation, HostCapabilityId, HostCapabilityRequest, HostCohort, HostCohortSelection, HostCohortSelectionReason, HostLockContext, HostLockEvaluation, HostLockStatus, HostPlatform, HostProfileError, HostProfileKind, HostStatus, HostToolSurface, HostVersionDecision, HostVersionStatus, InterpretOptions, LATEST_SUPPORTED_HOST_VERSION, LEGACY_HOST_COHORTS, LifecyclePhase, LinearCommitReadback, MIN_RECOVERY_CHAR_BUDGET, MIN_SUPPORTED_HOST_VERSION, ManifestIssue, MessageCoverage, NO_PROGRESS_RECORD_PREFIX, NO_PROGRESS_TURNS_BEFORE_STOP, OperationVerbEntry, PROOF_CAPABILITY_MATRIX, PROOF_KINDS, PROOF_KINDS_V2, PROOF_MANIFEST_DOMAIN_V2, PROOF_PROTOCOL_VERSION, PROOF_PROTOCOL_VERSION_V2, PROTOCOL_V3_NOTICE, PROTOCOL_V4_NOTICE, PROTOCOL_V5_NOTICE, ParsedConfirmation, ParsedHostVersion, ParsedShell, PersistenceAuthorization, ProofHostSurface, ProofKind, ProofKindCapability, ProofKindV2, ProofManifest, ProofManifestV2, ProofObligation, ProofObligationV2, ProofSurface, ProposeOutcome, RC015_HOST_PACKAGES, RC015_RC2_HOST_PACKAGES, RC1_HOST_PACKAGES, RebindArgs, RebindProposal, RecoveryOptions, RejectedBinding, Repairability, SEMANTIC_ACTIONS, SESSION_API_UNSUPPORTED, SESSION_EVENT_ENVELOPE_INVALID, STATEFUL_ACTIONS, STOP_PROTOCOL_VERSION, STOP_PROTOCOL_VERSION_V2, SUPPORTED_EVIDENCE_ADAPTERS, SUPPORTED_HOST_RANGE, SUPPORTED_HOST_VERSIONS, ScopeInterpretation, SemanticAction, SessionApiError, SessionQuery, SessionQueryV2, ShellParseStatus, SourceSpan, StatefulAction, TargetCaptureReasonCode, TargetCaptureStatus, TargetHostGraph, TargetTuple, TargetValue, TaskIntent, TaskKind, ToolCallInput, ToolResultInput, ToolSubject, TurnStoppingDecision, UnifiedItemDiagnosis, UserInteractionKind, V3SessionLike, VerificationContract, WaitAuthorization, WorkUnit, actionCompatible, apply, authorityCaptureCounts, availableBoundaryQualifications, bindExecutableIdentity, bindLiveGoalCapability, bindProofToProjection, bindProofV2ToProjection, bindingSatisfies, boundedArtifactChoiceMatches, canonicalArgvFromCommand, canonicalProjection, canonicalizePath, captureClause, captureItem, certifyCheckpoint, claimedBatchHasRealRootInput, classifyClause, classifyCompletionClaim, classifyTaskIntent, classifyUserInteraction, closingHint, combineHostPolicy, commitIndexSnapshotDigest, commitTreeSnapshotDigest, compareHostVersions, confirmRebind, createGitPrestateEnvelope, createProjection, createProofManifest, createProofManifestV2, currentContractDigest, decideTurnBoundary, decideTurnStopping, decisionBoundaryKey, deriveItemDiagnosis, deriveProjection, digestStrings, effectuateBoundary, evaluateExternalWaitCapability, evaluateHostCapability, evaluateHostLock, evaluateMinimumHostVersion, evaluateToolSurfaceCapability, evidenceAvailabilityReason, evidenceCoverage, evidenceFromPersistedToolResult, evidenceMatchesItem, executeRevalidatedGitEffect, extractArtifactPaths, extractMethod, extractOperation, extractTextContent, extractToolSubject, gitCommandMatchesTarget, goalCompletionDenial, hasCurrentCertificate, hostLockContextFromComposedDump, hostLockRowsFromComposedDump, hostVersionFromPackages, inject, injectActiveProfileHostLock, inspectTargetHostGraph, interpretClause, interpretMessage, isCurrentAcceptedBoundary, isDeterministicCheck, isExecutableItem, isFrozenV042RebindResponse, isInformationalMessage, isOpenObligation, isRootPauseRequest, isRunExecutable, isStatefulAction, isVerifyingCapability, isWholeTaskCompletionClaim, itemDiagnosis, kindOfScope, latestAssistantText, latestRootInstruction, lifecyclePhase, maskCodeSpans, name, namedActions, normalizeClause, observeAssistantOutcome, openItems, packageRowsFromActiveGraph, packageRowsFromPnpmLock, parseConfirmationMessage, parseGitCommandManifest, parseHostVersion, parsePwshCommand, parseShellCommand, previewFirstStepInjection, progressFingerprint, proofCapabilityReport, proofDigest, proofDigestV2, proofEvidenceConstraints, proofHostSurfacesOf, proofOperationMatches, proofV2Rejection, proposeRebind, proposeRebindOutcome, proposeRebindV042, qualifyBoundary, readActiveHostGraph, rebindAttemptKey, rebindResponse, recoveryDigest, relevantEvidence, renderRecoveryPacket, replayRebindResult, requestedIdentityKey, requestedTargetAuthorizesMutation, requestedTargetMatchesResolved, requiredSubjectsOf, resolveActiveProfileHostLock, resolveInstalledHostLock, revalidateGitPrestate, sanitizeClauseText, sanitizeUrl, satisfiesSupportedHostRange, scopeCoverageDigest, segmentAuthorityBlocks, segmentClauses, selectHostCohort, semanticActionFromCommand, semanticActionFromText, semanticActionOfScope, sessionQuery, sessionQueryV2, sha256, snapshotSessionEvents, statefulActionsOfScope, supersedeItem, validateActionManifest, validateActionTarget, validateManifest, validateProofManifest, validateProofManifestV2, verifiedLinearCommitReadback, verifyComposedHostLockDump, withDurability };
|
|
155
|
+
export { ACTION_MANIFEST, ACTION_MANIFEST_VERSION, ACTIVE_HOST_COHORT_ID, ACTIVE_HOST_COHORT_IDS, ACTIVE_HOST_LAUNCHER_VERSION, ALPHA2_DSHMARKET_139_HOST_PACKAGES, ALPHA2_HOST_PACKAGES, ALPHA3_HOST_PACKAGES, ActionManifest, ActionSpec, ActiveProfileHostLock, AssetInterpretationFact, AssetObligation, AssistantOutcomeObservation, AuditedExecutable, AuthorityBlock, AuthorityBlockKind, AuthorityDisposition, AuthorityKind, BASE_HOST_PACKAGES, BOUNDED_ARTIFACT_TYPES, BindingActionClosure, BoundaryDisposition, BoundaryEffectuation, BoundaryQualification, BoundaryQualificationKind, BoundaryRequest, BoundedSource, CAPTURE_V042_NOTICE, CERTIFICATE_VERSION, CERTIFICATE_VERSION_V2, CLEANUP_CONDITION_RULE, CLEANUP_CONDITION_RULE_COMPACT, CLEANUP_CONDITION_RULE_SHORT, COMMAND_SURFACE_MANIFEST, CONFIRM_LINE_PATTERN, CONTROL_RECORD_PREFIX, CanonicalArgv, CanonicalCommandSurface, CapabilityFact, CapabilityGap, CapabilityRemedy, CaptureScope, CertificationSupport, CheckpointResult, ClaimedMessage, ClauseSegment, CommandSurfaceManifest, CompletionDisposition, Config, DEFAULT_DELEGATION_TOOL_NAMES, DEFAULT_HOST_LOCK, DEFAULT_RECOVERY_CHAR_BUDGET, DEPENDENCY_FREE_ONLY_CONDITION, DeclaredOperationResult, DeferAuthorization, DelegationRef, DependencyStatus, DeriveConfig, DeriveResult, DeriveScope, DerivedEnvelope, DerivedProcessFacts, DiagnosisNextAction, DirectiveClass, EXPECTED_HOST_PACKAGES, EvidenceBinding, EvidenceFacetCoverage, EvidenceOutcome, EvidenceParseStatus, EvidenceRole, ExecutableIdentity, ExecutableIdentityBinding, Executee, ExpectedTransition, ExternalOperation, FIRST_STEP_GUIDANCE, FirstStepInjection, FirstStepPreviewInput, GIT_COMMAND_MANIFEST_IDS, GIT_COMMAND_TEMPLATES, GOAL_HOST_PACKAGES, GitAdapterAction, GitCommandAccepted, GitCommandManifest, GitCommandParseResult, GitCommandRejected, GitEffectExecution, GitEffectRunner, GitPrestateCheck, GitPrestateEnvelope, GitTargetIdentity, GoalActivationState, GoalBoundaryAccess, GoalRef, GuardBoundary, GuardCheckpoint, GuardEvidence, GuardIntegrity, GuardItem, GuardItemKind, GuardItemStatus, GuardOperation, GuardProjection, HOST_CAPABILITY_PACKAGE_GROUPS, HOST_COHORTS, HostAuditProvenance, HostCapabilityEvaluation, HostCapabilityId, HostCapabilityRequest, HostCohort, HostCohortSelection, HostCohortSelectionReason, HostLockContext, HostLockEvaluation, HostLockStatus, HostPlatform, HostProfileError, HostProfileKind, HostStatus, HostToolSurface, HostVersionDecision, HostVersionStatus, InterpretOptions, LATEST_SUPPORTED_HOST_VERSION, LEGACY_HOST_COHORTS, LifecyclePhase, LinearCommitReadback, MIN_RECOVERY_CHAR_BUDGET, MIN_SUPPORTED_HOST_VERSION, ManifestIssue, MessageCoverage, NO_PROGRESS_RECORD_PREFIX, NO_PROGRESS_TURNS_BEFORE_STOP, OperationAttribution, OperationVerbEntry, PROOF_CAPABILITY_MATRIX, PROOF_KINDS, PROOF_KINDS_V2, PROOF_MANIFEST_DOMAIN_V2, PROOF_PROTOCOL_VERSION, PROOF_PROTOCOL_VERSION_V2, PROTOCOL_V3_NOTICE, PROTOCOL_V4_NOTICE, PROTOCOL_V5_NOTICE, ParsedConfirmation, ParsedHostVersion, ParsedShell, PersistenceAuthorization, ProcessExitStatus, ProcessFactSource, ProcessOutcomeReason, ProofHostSurface, ProofKind, ProofKindCapability, ProofKindV2, ProofManifest, ProofManifestV2, ProofObligation, ProofObligationV2, ProofSurface, ProposeOutcome, RC015_HOST_PACKAGES, RC015_RC2_HOST_PACKAGES, RC1_HOST_PACKAGES, RebindArgs, RebindProposal, RecoveryOptions, RejectedBinding, RemovalOutcomeReport, Repairability, SEMANTIC_ACTIONS, SESSION_API_UNSUPPORTED, SESSION_EVENT_ENVELOPE_INVALID, STATEFUL_ACTIONS, STOP_PROTOCOL_VERSION, STOP_PROTOCOL_VERSION_V2, SUPPORTED_EVIDENCE_ADAPTERS, SUPPORTED_HOST_RANGE, SUPPORTED_HOST_VERSIONS, ScopeInterpretation, SemanticAction, SessionApiError, SessionQuery, SessionQueryV2, ShellParseStatus, SourceSpan, StatefulAction, TargetCaptureReasonCode, TargetCaptureStatus, TargetHostGraph, TargetTuple, TargetValue, TaskIntent, TaskKind, ToolCallInput, ToolResultInput, ToolSubject, TurnStoppingDecision, UnifiedItemDiagnosis, UserInteractionKind, V3SessionLike, VerificationContract, WaitAuthorization, WorkUnit, actionCompatible, actionHasCertificationPath, admissibleForRemoval, apply, authorityCaptureCounts, availableBoundaryQualifications, bindExecutableIdentity, bindLiveGoalCapability, bindProofToProjection, bindProofV2ToProjection, bindingSatisfies, boundedArtifactChoiceMatches, canonicalArgvFromCommand, canonicalProjection, canonicalizePath, capabilityConsequence, capabilityFactOf, capabilityRemedyPhrase, captureClause, captureItem, carriesCleanupCondition, certifyCheckpoint, claimedBatchHasRealRootInput, classifyClause, classifyCompletionClaim, classifyTaskIntent, classifyUserInteraction, cleanupConditionFor, closingHint, combineHostPolicy, commitIndexSnapshotDigest, commitTreeSnapshotDigest, compareHostVersions, confirmRebind, createGitPrestateEnvelope, createProjection, createProofManifest, createProofManifestV2, currentContractDigest, decideTurnBoundary, decideTurnStopping, decisionBoundaryKey, deriveItemDiagnosis, deriveProjection, digestStrings, effectuateBoundary, evaluateExternalWaitCapability, evaluateHostCapability, evaluateHostLock, evaluateMinimumHostVersion, evaluateToolSurfaceCapability, evidenceAvailabilityReason, evidenceCoverage, evidenceFromPersistedToolResult, evidenceMatchesItem, executeRevalidatedGitEffect, extractArtifactPaths, extractMethod, extractOperation, extractTextContent, extractToolSubject, firstStepGuidance, gitCommandMatchesTarget, goalCompletionDenial, hasCurrentCertificate, hostLockContextFromComposedDump, hostLockRowsFromComposedDump, hostVersionFromPackages, inject, injectActiveProfileHostLock, inspectTargetHostGraph, interpretClause, interpretMessage, isCurrentAcceptedBoundary, isDeterministicCheck, isExecutableItem, isFrozenV042RebindResponse, isInformationalMessage, isOpenObligation, isRootPauseRequest, isRunExecutable, isStatefulAction, isVerifyingCapability, isWholeTaskCompletionClaim, itemDiagnosis, kindOfScope, latestAssistantText, latestRootInstruction, lifecyclePhase, maskCodeSpans, name, namedActions, normalizeClause, observeAssistantOutcome, openItems, packageRowsFromActiveGraph, packageRowsFromPnpmLock, parseConfirmationMessage, parseGitCommandManifest, parseHostVersion, parsePwshCommand, parseShellCommand, partialFailureOf, previewFirstStepInjection, progressFingerprint, proofCapabilityReport, proofDigest, proofDigestV2, proofEvidenceConstraints, proofHostSurfacesOf, proofOperationMatches, proofV2Rejection, proposeRebind, proposeRebindOutcome, proposeRebindV042, qualifyBoundary, readActiveHostGraph, rebindAttemptKey, rebindResponse, recoveryDigest, relevantEvidence, removalIsComplete, removalIsPartiallyKnown, renderRecoveryPacket, replayRebindResult, requestedIdentityKey, requestedTargetAuthorizesMutation, requestedTargetMatchesResolved, requiredSubjectsOf, resolveActiveProfileHostLock, resolveInstalledHostLock, revalidateGitPrestate, sanitizeClauseText, sanitizeUrl, satisfiesSupportedHostRange, scopeCoverageDigest, segmentAuthorityBlocks, segmentClauses, selectHostCohort, semanticActionFromCommand, semanticActionFromText, semanticActionOfScope, sessionQuery, sessionQueryV2, sha256, snapshotSessionEvents, statefulActionsOfScope, supersedeItem, validateActionManifest, validateActionTarget, validateManifest, validateProofManifest, validateProofManifestV2, verifiedLinearCommitReadback, verifyComposedHostLockDump, withDurability };
|