dsh-run2skill 0.2.0 → 0.3.0

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/lib/index.d.ts CHANGED
@@ -643,6 +643,7 @@ type DshStreamChunk = {
643
643
  interface DshGenerateOptions {
644
644
  readonly provider: string;
645
645
  readonly model: string;
646
+ readonly reasoningEffort?: string;
646
647
  readonly messages: DshUserMessage[];
647
648
  readonly system: string;
648
649
  readonly maxTokens: number;
@@ -665,6 +666,14 @@ interface DshLlmPort {
665
666
  readonly contextWindow: number;
666
667
  };
667
668
  readonly defaultMaxTokens?: number;
669
+ readonly reasoning?: {
670
+ readonly efforts: readonly {
671
+ readonly id: string;
672
+ readonly name: string;
673
+ readonly description?: string;
674
+ }[];
675
+ readonly defaultEffort?: string;
676
+ };
668
677
  }>;
669
678
  stream(options: DshGenerateOptions): AsyncIterable<DshStreamChunk>;
670
679
  }
@@ -1511,6 +1520,7 @@ declare const SessionBatchV2Schema: z.ZodObject<{
1511
1520
  policyVersion: z.ZodString;
1512
1521
  maxInputBytes: z.ZodNumber;
1513
1522
  maxOutputBytes: z.ZodNumber;
1523
+ detectionReasoningEffort: z.ZodOptional<z.ZodString>;
1514
1524
  failureCode: z.ZodOptional<z.ZodLiteral<"ROUTE_UNAVAILABLE">>;
1515
1525
  }, z.core.$strict>;
1516
1526
  detector: z.ZodObject<{
@@ -1626,6 +1636,7 @@ declare const ExperienceIntentV2Schema: z.ZodObject<{
1626
1636
  evidence: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1627
1637
  status: z.ZodLiteral<"UNAVAILABLE">;
1628
1638
  reasonCode: z.ZodEnum<{
1639
+ SESSION_LOG_UNAVAILABLE: "SESSION_LOG_UNAVAILABLE";
1629
1640
  INTENT_INCOMPLETE: "INTENT_INCOMPLETE";
1630
1641
  BASELINE_INCOMPLETE: "BASELINE_INCOMPLETE";
1631
1642
  CLAIM_INPUT_UNAVAILABLE: "CLAIM_INPUT_UNAVAILABLE";
@@ -1633,6 +1644,11 @@ declare const ExperienceIntentV2Schema: z.ZodObject<{
1633
1644
  OBSERVATION_FAILED: "OBSERVATION_FAILED";
1634
1645
  OBSERVATION_INVALID: "OBSERVATION_INVALID";
1635
1646
  OBSERVATION_OUTCOME_UNKNOWN: "OBSERVATION_OUTCOME_UNKNOWN";
1647
+ SESSION_CONTEXT_UNAVAILABLE: "SESSION_CONTEXT_UNAVAILABLE";
1648
+ SESSION_SNAPSHOT_UNAVAILABLE: "SESSION_SNAPSHOT_UNAVAILABLE";
1649
+ SESSION_WINDOW_INCOMPLETE: "SESSION_WINDOW_INCOMPLETE";
1650
+ SESSION_CHANGED_DURING_CHECK: "SESSION_CHANGED_DURING_CHECK";
1651
+ OWNERSHIP_ANALYSIS_UNAVAILABLE: "OWNERSHIP_ANALYSIS_UNAVAILABLE";
1636
1652
  }>;
1637
1653
  }, z.core.$strict>, z.ZodObject<{
1638
1654
  status: z.ZodLiteral<"OBSERVED">;
@@ -1860,6 +1876,7 @@ declare const ExperienceIntentV2Schema: z.ZodObject<{
1860
1876
  skillBytesDigest: z.ZodString;
1861
1877
  }, z.core.$strict>;
1862
1878
  targetDigest: z.ZodString;
1879
+ baseSkillBytes: z.ZodOptional<z.ZodString>;
1863
1880
  baseSkillBytesDigest: z.ZodOptional<z.ZodString>;
1864
1881
  inputDigest: z.ZodString;
1865
1882
  runtimeCatalogDigest: z.ZodString;
@@ -2485,6 +2502,7 @@ declare const ProposalLineageV2Schema: z.ZodUnion<readonly [z.ZodObject<{
2485
2502
  TERMINAL: "TERMINAL";
2486
2503
  PUBLISHED: "PUBLISHED";
2487
2504
  RESERVED: "RESERVED";
2505
+ REFRESHING: "REFRESHING";
2488
2506
  ACTIVE_PROPOSAL: "ACTIVE_PROPOSAL";
2489
2507
  }>;
2490
2508
  behaviorSignature: z.ZodString;
@@ -2513,6 +2531,7 @@ declare const ProposalLineageV2Schema: z.ZodUnion<readonly [z.ZodObject<{
2513
2531
  catalogMutationReceiptDigest: z.ZodString;
2514
2532
  catalogEpoch: z.ZodNumber;
2515
2533
  targetIdentityDigest: z.ZodOptional<z.ZodString>;
2534
+ baseSkillBytes: z.ZodOptional<z.ZodString>;
2516
2535
  baseSkillBytesDigest: z.ZodOptional<z.ZodString>;
2517
2536
  projectScopeBinding: z.ZodOptional<z.ZodObject<{
2518
2537
  workspaceId: z.ZodString;
@@ -2522,6 +2541,7 @@ declare const ProposalLineageV2Schema: z.ZodUnion<readonly [z.ZodObject<{
2522
2541
  TERMINAL: "TERMINAL";
2523
2542
  PUBLISHED: "PUBLISHED";
2524
2543
  ACTIVE_PROPOSAL: "ACTIVE_PROPOSAL";
2544
+ SUPERSEDED: "SUPERSEDED";
2525
2545
  }>;
2526
2546
  reviewDecision: z.ZodOptional<z.ZodEnum<{
2527
2547
  APPROVED: "APPROVED";
@@ -2553,6 +2573,18 @@ declare const ProposalLineageV2Schema: z.ZodUnion<readonly [z.ZodObject<{
2553
2573
  publicationReceiptDigest: z.ZodOptional<z.ZodString>;
2554
2574
  createdAt: z.ZodString;
2555
2575
  }, z.core.$strict>>;
2576
+ currentSkillRevision: z.ZodDefault<z.ZodNumber>;
2577
+ skillRevisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2578
+ revision: z.ZodNumber;
2579
+ origin: z.ZodEnum<{
2580
+ ADOPTED_BASE: "ADOPTED_BASE";
2581
+ RUN2SKILL: "RUN2SKILL";
2582
+ }>;
2583
+ proposalId: z.ZodOptional<z.ZodString>;
2584
+ exactSkillBytes: z.ZodString;
2585
+ skillBytesDigest: z.ZodString;
2586
+ committedAt: z.ZodString;
2587
+ }, z.core.$strict>>>;
2556
2588
  createdAt: z.ZodString;
2557
2589
  updatedAt: z.ZodString;
2558
2590
  }, z.core.$strict>]>;
@@ -3453,6 +3485,7 @@ declare const run2skillV2DomainSpec: {
3453
3485
  policyVersion: import("zod").ZodString;
3454
3486
  maxInputBytes: import("zod").ZodNumber;
3455
3487
  maxOutputBytes: import("zod").ZodNumber;
3488
+ detectionReasoningEffort: import("zod").ZodOptional<import("zod").ZodString>;
3456
3489
  failureCode: import("zod").ZodOptional<import("zod").ZodLiteral<"ROUTE_UNAVAILABLE">>;
3457
3490
  }, import("zod/v4/core").$strict>;
3458
3491
  detector: import("zod").ZodObject<{
@@ -3570,6 +3603,7 @@ declare const run2skillV2DomainSpec: {
3570
3603
  evidence: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
3571
3604
  status: import("zod").ZodLiteral<"UNAVAILABLE">;
3572
3605
  reasonCode: import("zod").ZodEnum<{
3606
+ SESSION_LOG_UNAVAILABLE: "SESSION_LOG_UNAVAILABLE";
3573
3607
  INTENT_INCOMPLETE: "INTENT_INCOMPLETE";
3574
3608
  BASELINE_INCOMPLETE: "BASELINE_INCOMPLETE";
3575
3609
  CLAIM_INPUT_UNAVAILABLE: "CLAIM_INPUT_UNAVAILABLE";
@@ -3577,6 +3611,11 @@ declare const run2skillV2DomainSpec: {
3577
3611
  OBSERVATION_FAILED: "OBSERVATION_FAILED";
3578
3612
  OBSERVATION_INVALID: "OBSERVATION_INVALID";
3579
3613
  OBSERVATION_OUTCOME_UNKNOWN: "OBSERVATION_OUTCOME_UNKNOWN";
3614
+ SESSION_CONTEXT_UNAVAILABLE: "SESSION_CONTEXT_UNAVAILABLE";
3615
+ SESSION_SNAPSHOT_UNAVAILABLE: "SESSION_SNAPSHOT_UNAVAILABLE";
3616
+ SESSION_WINDOW_INCOMPLETE: "SESSION_WINDOW_INCOMPLETE";
3617
+ SESSION_CHANGED_DURING_CHECK: "SESSION_CHANGED_DURING_CHECK";
3618
+ OWNERSHIP_ANALYSIS_UNAVAILABLE: "OWNERSHIP_ANALYSIS_UNAVAILABLE";
3580
3619
  }>;
3581
3620
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
3582
3621
  status: import("zod").ZodLiteral<"OBSERVED">;
@@ -3804,6 +3843,7 @@ declare const run2skillV2DomainSpec: {
3804
3843
  skillBytesDigest: import("zod").ZodString;
3805
3844
  }, import("zod/v4/core").$strict>;
3806
3845
  targetDigest: import("zod").ZodString;
3846
+ baseSkillBytes: import("zod").ZodOptional<import("zod").ZodString>;
3807
3847
  baseSkillBytesDigest: import("zod").ZodOptional<import("zod").ZodString>;
3808
3848
  inputDigest: import("zod").ZodString;
3809
3849
  runtimeCatalogDigest: import("zod").ZodString;
@@ -3987,6 +4027,7 @@ declare const run2skillV2DomainSpec: {
3987
4027
  TERMINAL: "TERMINAL";
3988
4028
  PUBLISHED: "PUBLISHED";
3989
4029
  RESERVED: "RESERVED";
4030
+ REFRESHING: "REFRESHING";
3990
4031
  ACTIVE_PROPOSAL: "ACTIVE_PROPOSAL";
3991
4032
  }>;
3992
4033
  behaviorSignature: import("zod").ZodString;
@@ -4015,6 +4056,7 @@ declare const run2skillV2DomainSpec: {
4015
4056
  catalogMutationReceiptDigest: import("zod").ZodString;
4016
4057
  catalogEpoch: import("zod").ZodNumber;
4017
4058
  targetIdentityDigest: import("zod").ZodOptional<import("zod").ZodString>;
4059
+ baseSkillBytes: import("zod").ZodOptional<import("zod").ZodString>;
4018
4060
  baseSkillBytesDigest: import("zod").ZodOptional<import("zod").ZodString>;
4019
4061
  projectScopeBinding: import("zod").ZodOptional<import("zod").ZodObject<{
4020
4062
  workspaceId: import("zod").ZodString;
@@ -4024,6 +4066,7 @@ declare const run2skillV2DomainSpec: {
4024
4066
  TERMINAL: "TERMINAL";
4025
4067
  PUBLISHED: "PUBLISHED";
4026
4068
  ACTIVE_PROPOSAL: "ACTIVE_PROPOSAL";
4069
+ SUPERSEDED: "SUPERSEDED";
4027
4070
  }>;
4028
4071
  reviewDecision: import("zod").ZodOptional<import("zod").ZodEnum<{
4029
4072
  APPROVED: "APPROVED";
@@ -4055,6 +4098,18 @@ declare const run2skillV2DomainSpec: {
4055
4098
  publicationReceiptDigest: import("zod").ZodOptional<import("zod").ZodString>;
4056
4099
  createdAt: import("zod").ZodString;
4057
4100
  }, import("zod/v4/core").$strict>>;
4101
+ currentSkillRevision: import("zod").ZodDefault<import("zod").ZodNumber>;
4102
+ skillRevisions: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
4103
+ revision: import("zod").ZodNumber;
4104
+ origin: import("zod").ZodEnum<{
4105
+ ADOPTED_BASE: "ADOPTED_BASE";
4106
+ RUN2SKILL: "RUN2SKILL";
4107
+ }>;
4108
+ proposalId: import("zod").ZodOptional<import("zod").ZodString>;
4109
+ exactSkillBytes: import("zod").ZodString;
4110
+ skillBytesDigest: import("zod").ZodString;
4111
+ committedAt: import("zod").ZodString;
4112
+ }, import("zod/v4/core").$strict>>>;
4058
4113
  createdAt: import("zod").ZodString;
4059
4114
  updatedAt: import("zod").ZodString;
4060
4115
  }, import("zod/v4/core").$strict>]>;
@@ -4668,6 +4723,7 @@ interface DshSessionHeader {
4668
4723
  readonly parentSession?: string;
4669
4724
  readonly origin?: 'subagent';
4670
4725
  readonly delegationDepth?: number;
4726
+ readonly agentPreset?: string;
4671
4727
  }
4672
4728
  interface DshSessionEvent {
4673
4729
  readonly type: string;
@@ -5385,7 +5441,7 @@ interface StockAgentPresetObservationPort {
5385
5441
  }
5386
5442
  declare function resolvePinnedStockPresetConfiguration(presets: StockAgentPresetObservationPort, agent: {
5387
5443
  readonly ctx: object;
5388
- }, expectedDigests?: Readonly<Record<'standard' | 'code', string>>): Promise<StockSkillRuntimeConfiguration | undefined>;
5444
+ }, expectedDigests?: Readonly<Record<'standard' | 'code', readonly string[]>>): Promise<StockSkillRuntimeConfiguration | undefined>;
5389
5445
  /** Reads the exact stock filesystem fiber mounted for one Agent's joined generation. */
5390
5446
  declare function resolveStockSkillRuntimeConfiguration(mounts: StockPresetMountPort, agent: StockComposedAgentProjection): Promise<StockSkillRuntimeConfiguration | undefined>;
5391
5447
  //#endregion
@@ -5560,8 +5616,11 @@ declare class PublicationTargetSingleFlight {
5560
5616
  //#endregion
5561
5617
  //#region src/host/index.d.ts
5562
5618
  declare const name = "run2skill";
5563
- declare const inject: readonly ["agents", "sessions", "sessionPersistence", "storageDomain", "workspaceRegistry", "connection", "llm", "skills", "settings", "agentPresets"];
5619
+ declare const inject: readonly ["agents", "sessions", "sessionPersistence", "storageDomain", "workspaceRegistry", "connection", "llm", "skills", "settings", "agentPresets", "fs"];
5564
5620
  type Run2skillAgent = object & AgentScopeProjection & Parameters<typeof resolveStockSkillRuntimeConfiguration>[1];
5621
+ type Run2skillAgentPresets = Parameters<typeof resolvePinnedStockPresetConfiguration>[0] & {
5622
+ standingKeyFor(id?: string): Promise<object>;
5623
+ };
5565
5624
  interface Run2skillHostContext extends Run2skillStorageContext {
5566
5625
  readonly agents: unknown;
5567
5626
  readonly sessions: unknown;
@@ -5571,7 +5630,9 @@ interface Run2skillHostContext extends Run2skillStorageContext {
5571
5630
  readonly llm: DshLlmPort;
5572
5631
  readonly skills: DshSkillRegistryPort<LearningSkillView<Run2skillAgent>>;
5573
5632
  readonly settings: DshSettingsPort;
5574
- readonly agentPresets: Parameters<typeof resolvePinnedStockPresetConfiguration>[0];
5633
+ readonly agentPresets: Run2skillAgentPresets;
5634
+ /** Host-plane DSH filesystem used by the supported web presets. */
5635
+ readonly fs: unknown;
5575
5636
  on(event: string, listener: (...args: never[]) => unknown): void;
5576
5637
  }
5577
5638
  declare class Run2skillRuntimeFactory implements RecoveryRuntimeFactory {