dsh-run2skill 0.3.0 → 0.3.1
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/README.en.md +13 -7
- package/README.md +13 -7
- package/lib/client.js +324 -46
- package/lib/index.d.ts +110 -4
- package/lib/index.js +2243 -594
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1406,6 +1406,7 @@ declare const TurnObservationV2Schema: z.ZodObject<{
|
|
|
1406
1406
|
observationId: z.ZodString;
|
|
1407
1407
|
sessionLifecycleKey: z.ZodString;
|
|
1408
1408
|
turn: z.ZodNumber;
|
|
1409
|
+
turnStartSeq: z.ZodOptional<z.ZodNumber>;
|
|
1409
1410
|
turnEndSeq: z.ZodNumber;
|
|
1410
1411
|
turnInstanceDigest: z.ZodString;
|
|
1411
1412
|
observedAt: z.ZodString;
|
|
@@ -1478,6 +1479,7 @@ declare const SessionBatchV2Schema: z.ZodObject<{
|
|
|
1478
1479
|
}>>;
|
|
1479
1480
|
observationManifest: z.ZodArray<z.ZodObject<{
|
|
1480
1481
|
observationId: z.ZodString;
|
|
1482
|
+
turnStartSeq: z.ZodOptional<z.ZodNumber>;
|
|
1481
1483
|
turnEndSeq: z.ZodNumber;
|
|
1482
1484
|
evidenceDigest: z.ZodString;
|
|
1483
1485
|
completeness: z.ZodEnum<{
|
|
@@ -1525,8 +1527,8 @@ declare const SessionBatchV2Schema: z.ZodObject<{
|
|
|
1525
1527
|
}, z.core.$strict>;
|
|
1526
1528
|
detector: z.ZodObject<{
|
|
1527
1529
|
result: z.ZodEnum<{
|
|
1528
|
-
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
1529
1530
|
READY: "READY";
|
|
1531
|
+
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
1530
1532
|
NOT_RUN: "NOT_RUN";
|
|
1531
1533
|
NONE: "NONE";
|
|
1532
1534
|
DEFER: "DEFER";
|
|
@@ -1980,9 +1982,9 @@ declare const ExperienceIntentV2Schema: z.ZodObject<{
|
|
|
1980
1982
|
}, z.core.$strict>>;
|
|
1981
1983
|
lineageId: z.ZodOptional<z.ZodString>;
|
|
1982
1984
|
status: z.ZodEnum<{
|
|
1985
|
+
READY: "READY";
|
|
1983
1986
|
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
1984
1987
|
DISCARDED: "DISCARDED";
|
|
1985
|
-
READY: "READY";
|
|
1986
1988
|
RESOLVED_BY_AGENT: "RESOLVED_BY_AGENT";
|
|
1987
1989
|
NEEDS_CONFIRMATION: "NEEDS_CONFIRMATION";
|
|
1988
1990
|
RUN2SKILL_OWNED: "RUN2SKILL_OWNED";
|
|
@@ -2571,8 +2573,47 @@ declare const ProposalLineageV2Schema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2571
2573
|
publicationExternalReceiptDigest: z.ZodOptional<z.ZodString>;
|
|
2572
2574
|
publishedAt: z.ZodOptional<z.ZodString>;
|
|
2573
2575
|
publicationReceiptDigest: z.ZodOptional<z.ZodString>;
|
|
2576
|
+
revisionSource: z.ZodOptional<z.ZodObject<{
|
|
2577
|
+
kind: z.ZodLiteral<"USER_FEEDBACK">;
|
|
2578
|
+
actionId: z.ZodString;
|
|
2579
|
+
parentProposalId: z.ZodString;
|
|
2580
|
+
parentProposalRevision: z.ZodNumber;
|
|
2581
|
+
parentProposalDigest: z.ZodString;
|
|
2582
|
+
feedbackDigest: z.ZodString;
|
|
2583
|
+
feedbackSummary: z.ZodString;
|
|
2584
|
+
}, z.core.$strict>>;
|
|
2574
2585
|
createdAt: z.ZodString;
|
|
2575
2586
|
}, z.core.$strict>>;
|
|
2587
|
+
revisionActions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2588
|
+
actionId: z.ZodString;
|
|
2589
|
+
parentProposalId: z.ZodString;
|
|
2590
|
+
parentProposalRevision: z.ZodNumber;
|
|
2591
|
+
parentProposalDigest: z.ZodString;
|
|
2592
|
+
feedbackDigest: z.ZodString;
|
|
2593
|
+
feedbackSummary: z.ZodString;
|
|
2594
|
+
inputDigest: z.ZodString;
|
|
2595
|
+
callId: z.ZodString;
|
|
2596
|
+
state: z.ZodEnum<{
|
|
2597
|
+
SUCCEEDED: "SUCCEEDED";
|
|
2598
|
+
FAILED: "FAILED";
|
|
2599
|
+
CALL_RESERVED: "CALL_RESERVED";
|
|
2600
|
+
OUTCOME_UNKNOWN: "OUTCOME_UNKNOWN";
|
|
2601
|
+
}>;
|
|
2602
|
+
failureCode: z.ZodOptional<z.ZodEnum<{
|
|
2603
|
+
REVISION_MODEL_FAILED: "REVISION_MODEL_FAILED";
|
|
2604
|
+
REVISION_OUTPUT_INVALID: "REVISION_OUTPUT_INVALID";
|
|
2605
|
+
REVISION_CATALOG_CHANGED: "REVISION_CATALOG_CHANGED";
|
|
2606
|
+
REVISION_CATALOG_UNAVAILABLE: "REVISION_CATALOG_UNAVAILABLE";
|
|
2607
|
+
REVISION_OUTCOME_UNKNOWN: "REVISION_OUTCOME_UNKNOWN";
|
|
2608
|
+
}>>;
|
|
2609
|
+
resultProposalRef: z.ZodOptional<z.ZodObject<{
|
|
2610
|
+
proposalId: z.ZodString;
|
|
2611
|
+
revision: z.ZodNumber;
|
|
2612
|
+
digest: z.ZodString;
|
|
2613
|
+
}, z.core.$strict>>;
|
|
2614
|
+
createdAt: z.ZodString;
|
|
2615
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
2616
|
+
}, z.core.$strict>>>;
|
|
2576
2617
|
currentSkillRevision: z.ZodDefault<z.ZodNumber>;
|
|
2577
2618
|
skillRevisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2578
2619
|
revision: z.ZodNumber;
|
|
@@ -2672,6 +2713,10 @@ declare const GlobalV2Schema: z.ZodObject<{
|
|
|
2672
2713
|
headerRevision: z.ZodOptional<z.ZodString>;
|
|
2673
2714
|
observedLogPrefixDigest: z.ZodOptional<z.ZodString>;
|
|
2674
2715
|
activeBatchId: z.ZodOptional<z.ZodString>;
|
|
2716
|
+
manualSynthesisRequest: z.ZodOptional<z.ZodObject<{
|
|
2717
|
+
throughTurnEndSeq: z.ZodNumber;
|
|
2718
|
+
requestedAt: z.ZodString;
|
|
2719
|
+
}, z.core.$strict>>;
|
|
2675
2720
|
lastActivityAt: z.ZodOptional<z.ZodString>;
|
|
2676
2721
|
batchManifestBaseline: z.ZodOptional<z.ZodObject<{
|
|
2677
2722
|
observedAt: z.ZodString;
|
|
@@ -2965,6 +3010,10 @@ declare const run2skillV2DomainSpec: {
|
|
|
2965
3010
|
headerRevision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2966
3011
|
observedLogPrefixDigest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2967
3012
|
activeBatchId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3013
|
+
manualSynthesisRequest: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3014
|
+
throughTurnEndSeq: import("zod").ZodNumber;
|
|
3015
|
+
requestedAt: import("zod").ZodString;
|
|
3016
|
+
}, import("zod/v4/core").$strict>>;
|
|
2968
3017
|
lastActivityAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2969
3018
|
batchManifestBaseline: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
2970
3019
|
observedAt: import("zod").ZodString;
|
|
@@ -3238,6 +3287,10 @@ declare const run2skillV2DomainSpec: {
|
|
|
3238
3287
|
headerRevision?: string | undefined;
|
|
3239
3288
|
observedLogPrefixDigest?: string | undefined;
|
|
3240
3289
|
activeBatchId?: string | undefined;
|
|
3290
|
+
manualSynthesisRequest?: {
|
|
3291
|
+
throughTurnEndSeq: number;
|
|
3292
|
+
requestedAt: string;
|
|
3293
|
+
} | undefined;
|
|
3241
3294
|
lastActivityAt?: string | undefined;
|
|
3242
3295
|
batchManifestBaseline?: {
|
|
3243
3296
|
observedAt: string;
|
|
@@ -3369,6 +3422,7 @@ declare const run2skillV2DomainSpec: {
|
|
|
3369
3422
|
observationId: import("zod").ZodString;
|
|
3370
3423
|
sessionLifecycleKey: import("zod").ZodString;
|
|
3371
3424
|
turn: import("zod").ZodNumber;
|
|
3425
|
+
turnStartSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3372
3426
|
turnEndSeq: import("zod").ZodNumber;
|
|
3373
3427
|
turnInstanceDigest: import("zod").ZodString;
|
|
3374
3428
|
observedAt: import("zod").ZodString;
|
|
@@ -3443,6 +3497,7 @@ declare const run2skillV2DomainSpec: {
|
|
|
3443
3497
|
}>>;
|
|
3444
3498
|
observationManifest: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3445
3499
|
observationId: import("zod").ZodString;
|
|
3500
|
+
turnStartSeq: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3446
3501
|
turnEndSeq: import("zod").ZodNumber;
|
|
3447
3502
|
evidenceDigest: import("zod").ZodString;
|
|
3448
3503
|
completeness: import("zod").ZodEnum<{
|
|
@@ -3490,8 +3545,8 @@ declare const run2skillV2DomainSpec: {
|
|
|
3490
3545
|
}, import("zod/v4/core").$strict>;
|
|
3491
3546
|
detector: import("zod").ZodObject<{
|
|
3492
3547
|
result: import("zod").ZodEnum<{
|
|
3493
|
-
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
3494
3548
|
READY: "READY";
|
|
3549
|
+
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
3495
3550
|
NOT_RUN: "NOT_RUN";
|
|
3496
3551
|
NONE: "NONE";
|
|
3497
3552
|
DEFER: "DEFER";
|
|
@@ -3947,9 +4002,9 @@ declare const run2skillV2DomainSpec: {
|
|
|
3947
4002
|
}, import("zod/v4/core").$strict>>;
|
|
3948
4003
|
lineageId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3949
4004
|
status: import("zod").ZodEnum<{
|
|
4005
|
+
READY: "READY";
|
|
3950
4006
|
NEEDS_ATTENTION: "NEEDS_ATTENTION";
|
|
3951
4007
|
DISCARDED: "DISCARDED";
|
|
3952
|
-
READY: "READY";
|
|
3953
4008
|
RESOLVED_BY_AGENT: "RESOLVED_BY_AGENT";
|
|
3954
4009
|
NEEDS_CONFIRMATION: "NEEDS_CONFIRMATION";
|
|
3955
4010
|
RUN2SKILL_OWNED: "RUN2SKILL_OWNED";
|
|
@@ -4096,8 +4151,47 @@ declare const run2skillV2DomainSpec: {
|
|
|
4096
4151
|
publicationExternalReceiptDigest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4097
4152
|
publishedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4098
4153
|
publicationReceiptDigest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4154
|
+
revisionSource: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4155
|
+
kind: import("zod").ZodLiteral<"USER_FEEDBACK">;
|
|
4156
|
+
actionId: import("zod").ZodString;
|
|
4157
|
+
parentProposalId: import("zod").ZodString;
|
|
4158
|
+
parentProposalRevision: import("zod").ZodNumber;
|
|
4159
|
+
parentProposalDigest: import("zod").ZodString;
|
|
4160
|
+
feedbackDigest: import("zod").ZodString;
|
|
4161
|
+
feedbackSummary: import("zod").ZodString;
|
|
4162
|
+
}, import("zod/v4/core").$strict>>;
|
|
4099
4163
|
createdAt: import("zod").ZodString;
|
|
4100
4164
|
}, import("zod/v4/core").$strict>>;
|
|
4165
|
+
revisionActions: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4166
|
+
actionId: import("zod").ZodString;
|
|
4167
|
+
parentProposalId: import("zod").ZodString;
|
|
4168
|
+
parentProposalRevision: import("zod").ZodNumber;
|
|
4169
|
+
parentProposalDigest: import("zod").ZodString;
|
|
4170
|
+
feedbackDigest: import("zod").ZodString;
|
|
4171
|
+
feedbackSummary: import("zod").ZodString;
|
|
4172
|
+
inputDigest: import("zod").ZodString;
|
|
4173
|
+
callId: import("zod").ZodString;
|
|
4174
|
+
state: import("zod").ZodEnum<{
|
|
4175
|
+
SUCCEEDED: "SUCCEEDED";
|
|
4176
|
+
FAILED: "FAILED";
|
|
4177
|
+
CALL_RESERVED: "CALL_RESERVED";
|
|
4178
|
+
OUTCOME_UNKNOWN: "OUTCOME_UNKNOWN";
|
|
4179
|
+
}>;
|
|
4180
|
+
failureCode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
4181
|
+
REVISION_MODEL_FAILED: "REVISION_MODEL_FAILED";
|
|
4182
|
+
REVISION_OUTPUT_INVALID: "REVISION_OUTPUT_INVALID";
|
|
4183
|
+
REVISION_CATALOG_CHANGED: "REVISION_CATALOG_CHANGED";
|
|
4184
|
+
REVISION_CATALOG_UNAVAILABLE: "REVISION_CATALOG_UNAVAILABLE";
|
|
4185
|
+
REVISION_OUTCOME_UNKNOWN: "REVISION_OUTCOME_UNKNOWN";
|
|
4186
|
+
}>>;
|
|
4187
|
+
resultProposalRef: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4188
|
+
proposalId: import("zod").ZodString;
|
|
4189
|
+
revision: import("zod").ZodNumber;
|
|
4190
|
+
digest: import("zod").ZodString;
|
|
4191
|
+
}, import("zod/v4/core").$strict>>;
|
|
4192
|
+
createdAt: import("zod").ZodString;
|
|
4193
|
+
completedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4194
|
+
}, import("zod/v4/core").$strict>>>;
|
|
4101
4195
|
currentSkillRevision: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
4102
4196
|
skillRevisions: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4103
4197
|
revision: import("zod").ZodNumber;
|
|
@@ -4755,6 +4849,12 @@ interface SessionPersistencePort {
|
|
|
4755
4849
|
}>;
|
|
4756
4850
|
}
|
|
4757
4851
|
//#endregion
|
|
4852
|
+
//#region src/adapters/dsh-filesystem/context-filesystem.d.ts
|
|
4853
|
+
interface DshContextFileSystemTarget {
|
|
4854
|
+
readonly targetKey: string;
|
|
4855
|
+
readonly displayPath: string;
|
|
4856
|
+
}
|
|
4857
|
+
//#endregion
|
|
4758
4858
|
//#region src/adapters/dsh-connection/observe-summary-rpc.d.ts
|
|
4759
4859
|
type ObserveRpcError = {
|
|
4760
4860
|
readonly code: string;
|
|
@@ -5634,6 +5734,12 @@ interface Run2skillHostContext extends Run2skillStorageContext {
|
|
|
5634
5734
|
/** Host-plane DSH filesystem used by the supported web presets. */
|
|
5635
5735
|
readonly fs: unknown;
|
|
5636
5736
|
on(event: string, listener: (...args: never[]) => unknown): void;
|
|
5737
|
+
emit(event: 'fs/observed', target: DshContextFileSystemTarget, observation: {
|
|
5738
|
+
readonly kind: 'present';
|
|
5739
|
+
readonly version: string;
|
|
5740
|
+
}, actor: {
|
|
5741
|
+
readonly name: 'write';
|
|
5742
|
+
}): void;
|
|
5637
5743
|
}
|
|
5638
5744
|
declare class Run2skillRuntimeFactory implements RecoveryRuntimeFactory {
|
|
5639
5745
|
#private;
|