dsh-run2skill 0.4.0 → 0.5.0-alpha.3

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.
@@ -66,14 +66,14 @@ function descriptor(method, requestSchema) {
66
66
  codec: {
67
67
  mode: "strict",
68
68
  typeSymbol: method === "query" ? "Run2skillQueryRequest" : "Run2skillCommandRequest",
69
- schema: requestSchema
69
+ create: () => requestSchema
70
70
  }
71
71
  }],
72
72
  cancellation: { parameter: "signal" },
73
73
  result: {
74
74
  mode: "strict",
75
75
  typeSymbol: "Run2skillRpcResult",
76
- schema: rpcResult
76
+ create: () => rpcResult
77
77
  }
78
78
  };
79
79
  return Object.freeze(value);
package/lib/index.d.ts CHANGED
@@ -1950,6 +1950,13 @@ declare const ExperienceIntentV2Schema: z.ZodObject<{
1950
1950
  recordedAt: z.ZodString;
1951
1951
  receiptDigest: z.ZodString;
1952
1952
  }, z.core.$strict>>;
1953
+ catalogRetry: z.ZodOptional<z.ZodObject<{
1954
+ authorizationRevision: z.ZodNumber;
1955
+ failedCallId: z.ZodString;
1956
+ actionIdentity: z.ZodString;
1957
+ scopeDigest: z.ZodString;
1958
+ recordedAt: z.ZodString;
1959
+ }, z.core.$strict>>;
1953
1960
  stageCalls: z.ZodArray<z.ZodObject<{
1954
1961
  stage: z.ZodEnum<{
1955
1962
  CATALOG_SCAN: "CATALOG_SCAN";
@@ -3970,6 +3977,13 @@ declare const run2skillV2DomainSpec: {
3970
3977
  recordedAt: import("zod").ZodString;
3971
3978
  receiptDigest: import("zod").ZodString;
3972
3979
  }, import("zod/v4/core").$strict>>;
3980
+ catalogRetry: import("zod").ZodOptional<import("zod").ZodObject<{
3981
+ authorizationRevision: import("zod").ZodNumber;
3982
+ failedCallId: import("zod").ZodString;
3983
+ actionIdentity: import("zod").ZodString;
3984
+ scopeDigest: import("zod").ZodString;
3985
+ recordedAt: import("zod").ZodString;
3986
+ }, import("zod/v4/core").$strict>>;
3973
3987
  stageCalls: import("zod").ZodArray<import("zod").ZodObject<{
3974
3988
  stage: import("zod").ZodEnum<{
3975
3989
  CATALOG_SCAN: "CATALOG_SCAN";
@@ -4841,12 +4855,24 @@ interface SessionPersistenceSnapshot {
4841
4855
  readonly header: DshSessionHeader;
4842
4856
  readonly revision: string;
4843
4857
  }
4844
- interface SessionPersistencePort {
4845
- listSnapshots(signal?: AbortSignal): Promise<readonly SessionPersistenceSnapshot[]>;
4846
- readFrom(sessionId: string, fromSeq: number, signal?: AbortSignal): Promise<{
4847
- readonly meta: DshSessionHeader;
4858
+ interface DshSessionReadHandlePort {
4859
+ readonly header: DshSessionHeader;
4860
+ read(offset?: number, length?: number, options?: {
4861
+ readonly signal?: AbortSignal;
4862
+ }): Promise<{
4863
+ readonly eventState: 'detached' | 'shared-frozen';
4848
4864
  readonly events: readonly DshSessionEvent[];
4849
4865
  }>;
4866
+ close(): Promise<void>;
4867
+ }
4868
+ /** DSH 0.1.3-alpha.2 persistence service exposed as ctx.sessionPersistence. */
4869
+ interface DshSessionPersistencePort {
4870
+ list(options?: {
4871
+ readonly signal?: AbortSignal;
4872
+ }): Promise<readonly SessionPersistenceSnapshot[]>;
4873
+ open(sessionId: string, access: 'read', options?: {
4874
+ readonly signal?: AbortSignal;
4875
+ }): Promise<DshSessionReadHandlePort>;
4850
4876
  }
4851
4877
  //#endregion
4852
4878
  //#region src/adapters/dsh-filesystem/context-filesystem.d.ts
@@ -5497,6 +5523,12 @@ interface StockPluginRuntimeProjection {
5497
5523
  interface StockPresetMountProjection {
5498
5524
  readonly presetId: string;
5499
5525
  readonly fiber: StockFiberProjection;
5526
+ readonly key?: object | undefined;
5527
+ readonly tree?: {
5528
+ readonly root: {
5529
+ readonly data: unknown;
5530
+ };
5531
+ } | undefined;
5500
5532
  }
5501
5533
  interface StockPresetMountPort {
5502
5534
  standingMountFor(agentContext: object): StockPresetMountProjection | undefined | Promise<StockPresetMountProjection | undefined>;
@@ -5509,32 +5541,26 @@ interface StockComposedAgentProjection {
5509
5541
  readonly get?: (name: string) => unknown;
5510
5542
  };
5511
5543
  }
5512
- interface StockAgentPresetObservationPort {
5513
- composedPreset(agentContext: object): string | undefined;
5514
- resolve(id: string): Promise<{
5515
- readonly id: string;
5516
- readonly trust: 'system' | 'user';
5517
- }>;
5518
- read(id: string): Promise<string>;
5519
- }
5520
- declare function resolvePinnedStockPresetConfiguration(presets: StockAgentPresetObservationPort, agent: {
5521
- readonly ctx: object;
5522
- }, expectedDigests?: Readonly<Record<'standard', readonly string[]>>): Promise<StockSkillRuntimeConfiguration | undefined>;
5523
5544
  /** Reads the exact stock filesystem fiber mounted for one Agent's joined generation. */
5524
- declare function resolveStockSkillRuntimeConfiguration(mounts: StockPresetMountPort, agent: StockComposedAgentProjection): Promise<StockSkillRuntimeConfiguration | undefined>;
5545
+ declare function resolveStockSkillRuntimeConfiguration(mounts: StockPresetMountPort, agent: StockComposedAgentProjection, expectedDigest?: string): Promise<StockSkillRuntimeConfiguration | undefined>;
5525
5546
  //#endregion
5526
- //#region src/adapters/dsh-settings/automatic-learning.d.ts
5527
- interface DshSettingsScope<T> {
5528
- get(): T;
5529
- watch(callback: (next: T, previous: T) => void | Promise<void>): () => void;
5547
+ //#region src/adapters/dsh-skills/stock-cold-preset.d.ts
5548
+ interface StockPresetLease {
5549
+ readonly key: object;
5550
+ [Symbol.asyncDispose](): Promise<void>;
5551
+ }
5552
+ interface StockColdPresetRegistry {
5553
+ acquireScope(id: string): Promise<StockPresetLease>;
5530
5554
  }
5531
- interface DshSettingsPort {
5532
- register<T>(namespace: string, schema: z$1<T>, options: {
5533
- readonly applies: 'live';
5534
- }): DshSettingsScope<T>;
5555
+ //#endregion
5556
+ //#region src/adapters/dsh-settings/automatic-learning.d.ts
5557
+ interface AutomaticLearningConfig {
5558
+ readonly automaticLearning: {
5559
+ get(): boolean;
5560
+ };
5535
5561
  }
5536
5562
  interface AutomaticLearningSettingsPolicy extends AutomaticLearningPolicyPort {
5537
- watch(callback: (next: AutomaticLearningSnapshot, previous: AutomaticLearningSnapshot) => void | Promise<void>): () => void;
5563
+ watch(callback: (next: AutomaticLearningSnapshot, previous: AutomaticLearningSnapshot) => void): () => void;
5538
5564
  }
5539
5565
  //#endregion
5540
5566
  //#region src/application/purge/purge-service.d.ts
@@ -5694,19 +5720,21 @@ declare class PublicationTargetSingleFlight {
5694
5720
  //#endregion
5695
5721
  //#region src/host/index.d.ts
5696
5722
  declare const name = "run2skill";
5697
- declare const inject: readonly ["agents", "sessions", "sessionPersistence", "storageDomain", "workspaceRegistry", "llm", "skills", "settings", "agentPresets", "fs"];
5723
+ declare const Config: import("@deepseek-ai/schemastery").default<Schemastery.ObjectS<NoInfer<{
5724
+ automaticLearning: import("@deepseek-ai/schemastery").default<boolean, boolean, "volatile-defined">;
5725
+ }>>, Schemastery.ObjectT<NoInfer<{
5726
+ automaticLearning: import("@deepseek-ai/schemastery").default<boolean, boolean, "volatile-defined">;
5727
+ }>>, "plain">;
5728
+ declare const inject: readonly ["agents", "sessions", "sessionPersistence", "storageDomain", "workspaceRegistry", "llm", "skills", "agentPresets", "fs"];
5698
5729
  type Run2skillAgent = object & AgentScopeProjection & Parameters<typeof resolveStockSkillRuntimeConfiguration>[1];
5699
- type Run2skillAgentPresets = Parameters<typeof resolvePinnedStockPresetConfiguration>[0] & {
5700
- standingKeyFor(id?: string): Promise<object>;
5701
- };
5730
+ type Run2skillAgentPresets = StockColdPresetRegistry;
5702
5731
  interface Run2skillHostContext extends Run2skillStorageContext {
5703
5732
  readonly agents: unknown;
5704
5733
  readonly sessions: unknown;
5705
- readonly sessionPersistence: SessionPersistencePort;
5734
+ readonly sessionPersistence: DshSessionPersistencePort;
5706
5735
  readonly workspaceRegistry: DshWorkspaceRegistryPort;
5707
5736
  readonly llm: DshLlmPort;
5708
5737
  readonly skills: DshSkillRegistryPort<LearningSkillView<Run2skillAgent>>;
5709
- readonly settings: DshSettingsPort;
5710
5738
  readonly agentPresets: Run2skillAgentPresets;
5711
5739
  /** Host-plane DSH filesystem used by the supported web presets. */
5712
5740
  readonly fs: unknown;
@@ -5740,6 +5768,6 @@ declare class Run2skillRuntimeFactory implements RecoveryRuntimeFactory {
5740
5768
  resolvePurgeScope(scope: 'PROJECT' | 'USER', workspaceId?: string): Promise<PurgeScopeBindingV1>;
5741
5769
  open(): Promise<RecoveryRuntime>;
5742
5770
  }
5743
- declare function apply(context: Run2skillHostContext): Promise<() => Promise<void>>;
5771
+ declare function apply(context: Run2skillHostContext, config: AutomaticLearningConfig): Promise<() => Promise<void>>;
5744
5772
  //#endregion
5745
- export { ApprovalPublicationSaga, ApprovalPublicationSagaOptions, ApprovedProposalRevalidator, PublicationConflict, PublicationFileSystemPort, PublicationFileSystemResult, PublicationReadbackPort, PublicationReadbackResult, PublicationRevalidationPort, PublicationRevalidationResult, PublicationRootPreparation, PublicationScheduler, PublicationSchedulerOptions, PublicationSingleFlightPort, PublicationTargetSingleFlight, PublicationWorkerPort, Run2skillHostContext, Run2skillRuntimeFactory, V2ProposalPublicationCoordinator, V2ProposalPublicationError, V2ProposalPublicationInput, V2ProposalPublicationOptions, V2ProposalPublicationOutcome, V2ProposalPublicationRecoveryOutcome, V2ProposalPublicationRequest, V2ProposalPublicationResult, apply, createBundle, finalizeTransaction, inject, mergeBundle, name, preparePublicationRoot, recoverTransaction };
5773
+ export { ApprovalPublicationSaga, ApprovalPublicationSagaOptions, ApprovedProposalRevalidator, Config, PublicationConflict, PublicationFileSystemPort, PublicationFileSystemResult, PublicationReadbackPort, PublicationReadbackResult, PublicationRevalidationPort, PublicationRevalidationResult, PublicationRootPreparation, PublicationScheduler, PublicationSchedulerOptions, PublicationSingleFlightPort, PublicationTargetSingleFlight, PublicationWorkerPort, Run2skillHostContext, Run2skillRuntimeFactory, V2ProposalPublicationCoordinator, V2ProposalPublicationError, V2ProposalPublicationInput, V2ProposalPublicationOptions, V2ProposalPublicationOutcome, V2ProposalPublicationRecoveryOutcome, V2ProposalPublicationRequest, V2ProposalPublicationResult, apply, createBundle, finalizeTransaction, inject, mergeBundle, name, preparePublicationRoot, recoverTransaction };