@askdkc/dsh-cli 0.14.0 → 0.14.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.
@@ -1,7 +1,7 @@
1
1
  /** Frameworks have independent, breaking major versions. */
2
2
  export declare const UPSTREAM_FRAMEWORK_MAJORS: Record<string, number>;
3
3
  /** Official packages the adapter consumes at runtime or as types. */
4
- export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-invariants", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions"];
4
+ export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions"];
5
5
  export declare function installedUpstreamVersions(): Record<string, string | undefined>;
6
6
  export interface UpstreamDependencyIssue {
7
7
  package: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG5D,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,o8BA+B5B,CAAA;AAYV,wBAAgB,yBAAyB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAqB9E;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACtC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,uBAAuB,EAAE,CAY3B"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAIA,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG5D,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,q6BA8B5B,CAAA;AAYV,wBAAgB,yBAAyB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAqB9E;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACtC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,uBAAuB,EAAE,CAY3B"}
@@ -10,7 +10,6 @@ export const UPSTREAM_FRAMEWORK_MAJORS = {
10
10
  export const UPSTREAM_BLESSED_PACKAGES = [
11
11
  '@deepseek-ai/cordis',
12
12
  '@deepseek-ai/schemastery',
13
- '@deepseek-ai/dsh-invariants',
14
13
  '@deepseek-ai/dsh-agent',
15
14
  '@deepseek-ai/dsh-agent-instructions',
16
15
  '@deepseek-ai/dsh-agent-preset-registry',
@@ -7,6 +7,12 @@
7
7
  * @module dsh-cli/invariant
8
8
  */
9
9
  import type { Context } from '@deepseek-ai/cordis';
10
+ /** Older hosts expose this registry; current hosts no longer load companions. */
11
+ type InvariantContext = Context & {
12
+ invariants: {
13
+ register(packageName: string, installer: () => void): () => void;
14
+ };
15
+ };
10
16
  /** Cordis companion plugin name. */
11
17
  export declare const name = "dsh-cli-invariant";
12
18
  /** Service required before the companion can reserve package ownership. */
@@ -16,5 +22,6 @@ export declare const inject: string[];
16
22
  * @param ctx - Cordis context carrying the invariant service.
17
23
  * @returns the installed registration's disposer after setup succeeds.
18
24
  */
19
- export declare const apply: (ctx: Context) => Promise<() => void>;
25
+ export declare const apply: (ctx: InvariantContext) => Promise<() => void>;
26
+ export {};
20
27
  //# sourceMappingURL=invariant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/invariant.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,oCAAoC;AACpC,eAAO,MAAM,IAAI,sBAAsB,CAAA;AACvC,2EAA2E;AAC3E,eAAO,MAAM,MAAM,UAAiB,CAAA;AASpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,IAAI,CACU,CAAA"}
1
+ {"version":3,"file":"invariant.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/invariant.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,iFAAiF;AACjF,KAAK,gBAAgB,GAAG,OAAO,GAAG;IAChC,UAAU,EAAE;QACV,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;KACjE,CAAA;CACF,CAAA;AAID,oCAAoC;AACpC,eAAO,MAAM,IAAI,sBAAsB,CAAA;AACvC,2EAA2E;AAC3E,eAAO,MAAM,MAAM,UAAiB,CAAA;AASpC;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,gBAAgB,KAAG,OAAO,CAAC,MAAM,IAAI,CACC,CAAA"}
@@ -13,7 +13,6 @@ export type { CommandRuntime } from '@deepseek-ai/dsh-commands';
13
13
  export type { ApprovalOutcome, ApprovalRequest } from '@deepseek-ai/dsh-user-approval';
14
14
  export type { AgentSetup } from '@deepseek-ai/dsh-agent';
15
15
  export type { Context } from '@deepseek-ai/cordis';
16
- export type { InvariantInstaller } from '@deepseek-ai/dsh-invariants';
17
16
  /**
18
17
  * Trajectory projection types. Not upstream types, but the same rule applies:
19
18
  * the scene is pure UI over this shape and never reaches into the projection's
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACzE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AACpH,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACtF,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACtF,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAErE;;;;GAIG;AACH,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACzE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AACpH,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACtF,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACtF,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;;GAIG;AACH,YAAY,EACV,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAA"}
@@ -3,13 +3,25 @@
3
3
  * @module dsh-working-activity/invariant
4
4
  */
5
5
  import type { Context } from '@deepseek-ai/cordis';
6
+ /** Compatibility boundary for hosts that still load invariant companions. */
7
+ type InvariantFailure = (message: string) => never;
8
+ type InvariantContext = Context & {
9
+ invariants: {
10
+ register(packageName: string, installer: typeof install): () => void;
11
+ };
12
+ };
6
13
  /** Cordis companion plugin name. */
7
14
  export declare const name = "working-activity-invariant";
8
15
  /** Service required before the companion can reserve package ownership. */
9
16
  export declare const inject: string[];
17
+ /** Install validation for loaded and newly appended activity snapshots. */
18
+ declare const install: ((ctx: Context, fail: InvariantFailure) => void) & {
19
+ inject: string[];
20
+ };
10
21
  /**
11
22
  * Register the working-activity invariant companion.
12
23
  * @param ctx - Cordis context carrying the invariant service.
13
24
  * @returns the installed registration's disposer after setup succeeds.
14
25
  */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
26
+ export declare const apply: (ctx: InvariantContext) => Promise<() => void>;
27
+ export {};
@@ -78,7 +78,6 @@
78
78
  "@deepseek-ai/dsh-client-ui-renderer": "*",
79
79
  "@deepseek-ai/dsh-client-ui-session": "*",
80
80
  "@deepseek-ai/dsh-client-ui-slots": "*",
81
- "@deepseek-ai/dsh-invariants": "*",
82
81
  "@deepseek-ai/dsh-session": "*",
83
82
  "@deepseek-ai/dsh-session-projection": "*",
84
83
  "@deepseek-ai/dsh-system-prompt": "*",
@@ -110,9 +109,6 @@
110
109
  "@deepseek-ai/dsh-agent": {
111
110
  "optional": true
112
111
  },
113
- "@deepseek-ai/dsh-invariants": {
114
- "optional": true
115
- },
116
112
  "@deepseek-ai/dsh-session": {
117
113
  "optional": true
118
114
  },
@@ -5,7 +5,14 @@
5
5
 
6
6
  import type { Context } from '@deepseek-ai/cordis'
7
7
  import type { Session, SessionEvent } from '@deepseek-ai/dsh-session'
8
- import type { InvariantFailure, InvariantInstaller } from '@deepseek-ai/dsh-invariants'
8
+
9
+ /** Compatibility boundary for hosts that still load invariant companions. */
10
+ type InvariantFailure = (message: string) => never
11
+ type InvariantContext = Context & {
12
+ invariants: {
13
+ register(packageName: string, installer: typeof install): () => void
14
+ }
15
+ }
9
16
 
10
17
  /** Cordis companion plugin name. */
11
18
  export const name = 'working-activity-invariant'
@@ -77,7 +84,7 @@ function loadedEvents(session: LoadedSession): readonly SessionEvent[] {
77
84
  }
78
85
 
79
86
  /** Install validation for loaded and newly appended activity snapshots. */
80
- const install: InvariantInstaller = Object.assign((ctx: Context, fail: InvariantFailure) => {
87
+ const install = Object.assign((ctx: Context, fail: InvariantFailure) => {
81
88
  for (const session of ctx.sessions.list()) {
82
89
  for (const event of loadedEvents(session)) validateEvent(event, fail)
83
90
  }
@@ -94,5 +101,5 @@ const install: InvariantInstaller = Object.assign((ctx: Context, fail: Invariant
94
101
  * @param ctx - Cordis context carrying the invariant service.
95
102
  * @returns the installed registration's disposer after setup succeeds.
96
103
  */
97
- export const apply = (ctx: Context): Promise<() => void> =>
104
+ export const apply = (ctx: InvariantContext): Promise<() => void> =>
98
105
  Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askdkc/dsh-cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Interactive terminal interface for DeepSeek Harness agents, sessions and tools.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -247,7 +247,6 @@
247
247
  "@deepseek-ai/dsh-atomic-write": "*",
248
248
  "@deepseek-ai/dsh-commands": "*",
249
249
  "@deepseek-ai/dsh-cordis-host-runner": "*",
250
- "@deepseek-ai/dsh-invariants": "*",
251
250
  "@deepseek-ai/dsh-llm": "*",
252
251
  "@deepseek-ai/dsh-llm-pi-ai": "*",
253
252
  "@deepseek-ai/dsh-persona": "*",
@@ -296,9 +295,6 @@
296
295
  "@deepseek-ai/dsh-cordis-host-runner": {
297
296
  "optional": true
298
297
  },
299
- "@deepseek-ai/dsh-invariants": {
300
- "optional": true
301
- },
302
298
  "@deepseek-ai/dsh-llm": {
303
299
  "optional": true
304
300
  },
@@ -438,7 +434,6 @@
438
434
  "@deepseek-ai/dsh-fs": "alpha",
439
435
  "@deepseek-ai/dsh-fs-local": "alpha",
440
436
  "@deepseek-ai/dsh-home-paths": "alpha",
441
- "@deepseek-ai/dsh-invariants": "alpha",
442
437
  "@deepseek-ai/dsh-llm": "alpha",
443
438
  "@deepseek-ai/dsh-llm-pi-ai": "alpha",
444
439
  "@deepseek-ai/dsh-persona": "alpha",