@eddyskywalker/dsh-chatgpt-subscription 0.1.10 → 0.1.12

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +9 -50
  2. package/README.md +17 -7
  3. package/lib/client.js +442 -28
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +718 -247
  6. package/lib/types/client/CodexComposerQuota.d.ts +13 -0
  7. package/lib/types/client/CodexComposerQuota.d.ts.map +1 -0
  8. package/lib/types/client/CodexImageToolView.d.ts +10 -0
  9. package/lib/types/client/CodexImageToolView.d.ts.map +1 -0
  10. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  11. package/lib/types/client/api.d.ts +2 -1
  12. package/lib/types/client/api.d.ts.map +1 -1
  13. package/lib/types/client/index.d.ts.map +1 -1
  14. package/lib/types/client/locales.d.ts +168 -114
  15. package/lib/types/client/locales.d.ts.map +1 -1
  16. package/lib/types/client/quota.d.ts +9 -0
  17. package/lib/types/client/quota.d.ts.map +1 -0
  18. package/lib/types/client/styles.d.ts.map +1 -1
  19. package/lib/types/compat.d.ts +7 -0
  20. package/lib/types/compat.d.ts.map +1 -1
  21. package/lib/types/host/codex-images.d.ts +9 -0
  22. package/lib/types/host/codex-images.d.ts.map +1 -0
  23. package/lib/types/host/codex-search.d.ts +11 -0
  24. package/lib/types/host/codex-search.d.ts.map +1 -0
  25. package/lib/types/host/model-catalog.d.ts.map +1 -1
  26. package/lib/types/host/preferences.d.ts +12 -0
  27. package/lib/types/host/preferences.d.ts.map +1 -0
  28. package/lib/types/host/responses-mapper.d.ts.map +1 -1
  29. package/lib/types/host/routes.d.ts +2 -1
  30. package/lib/types/host/routes.d.ts.map +1 -1
  31. package/lib/types/host/search-provider-switcher.d.ts +15 -0
  32. package/lib/types/host/search-provider-switcher.d.ts.map +1 -0
  33. package/lib/types/host/usage-service.d.ts +2 -1
  34. package/lib/types/host/usage-service.d.ts.map +1 -1
  35. package/lib/types/index.d.ts +3 -1
  36. package/lib/types/index.d.ts.map +1 -1
  37. package/lib/types/shared/contracts.d.ts +40 -3
  38. package/lib/types/shared/contracts.d.ts.map +1 -1
  39. package/lib/types/shared/model-catalog.d.ts +81 -0
  40. package/lib/types/shared/model-catalog.d.ts.map +1 -0
  41. package/lib/types/shared/preferences.d.ts +7 -0
  42. package/lib/types/shared/preferences.d.ts.map +1 -0
  43. package/package.json +126 -107
  44. package/lib/types/host/subagent-report-scheduling-compat.d.ts +0 -21
  45. package/lib/types/host/subagent-report-scheduling-compat.d.ts.map +0 -1
@@ -20,24 +20,61 @@ export interface PluginStatusDto {
20
20
  expiresAt: number | null;
21
21
  };
22
22
  quota: QuotaStatusDto;
23
+ preferences: SubscriptionPreferencesDto;
23
24
  error?: PublicErrorDto;
24
25
  }
25
- export type OAuthStatusDto = Omit<PluginStatusDto, 'quota'>;
26
+ export type OAuthStatusDto = Omit<PluginStatusDto, 'quota' | 'preferences'>;
27
+ export type SearchProviderPreference = 'dsh' | 'codex';
28
+ export interface SubscriptionPreferencesDto {
29
+ quickQuotaVisible: boolean;
30
+ searchProvider: SearchProviderPreference;
31
+ writable: boolean;
32
+ }
33
+ export interface SubscriptionPreferencesUpdateDto {
34
+ quickQuotaVisible?: boolean;
35
+ searchProvider?: SearchProviderPreference;
36
+ }
26
37
  export interface QuotaWindowDto {
27
38
  usedPercent: number;
28
39
  windowDurationMins: number | null;
29
40
  resetsAt: number | null;
30
41
  }
31
42
  export interface QuotaBucketDto {
32
- id: 'codex' | 'code-review';
43
+ id: string;
33
44
  name: string;
34
45
  planType: string | null;
35
46
  primary: QuotaWindowDto | null;
36
47
  secondary: QuotaWindowDto | null;
48
+ windows: QuotaWindowDto[];
49
+ }
50
+ export interface QuotaCreditDto {
51
+ hasCredits: boolean;
52
+ unlimited: boolean;
53
+ balance: string | null;
54
+ }
55
+ export interface QuotaIndividualLimitDto {
56
+ limit: string | null;
57
+ used: string | null;
58
+ remainingPercent: number | null;
59
+ resetsAt: number | null;
60
+ }
61
+ export interface QuotaResetCreditsDto {
62
+ availableCount: number;
63
+ }
64
+ export interface QuotaUsageDto {
65
+ buckets: QuotaBucketDto[];
66
+ credits: QuotaCreditDto | null;
67
+ individualLimit: QuotaIndividualLimitDto | null;
68
+ spendControlReached: boolean | null;
69
+ resetCredits: QuotaResetCreditsDto | null;
37
70
  }
38
71
  export interface QuotaStatusDto {
39
72
  state: 'signed-out' | 'empty' | 'ready' | 'stale' | 'error';
40
73
  buckets: QuotaBucketDto[];
74
+ credits: QuotaCreditDto | null;
75
+ individualLimit: QuotaIndividualLimitDto | null;
76
+ spendControlReached: boolean | null;
77
+ resetCredits: QuotaResetCreditsDto | null;
41
78
  fetchedAt: number | null;
42
79
  stale: boolean;
43
80
  error?: PublicErrorDto;
@@ -67,7 +104,7 @@ export type LoginEventDto = {
67
104
  error: PublicErrorDto;
68
105
  };
69
106
  export interface PublicErrorDto {
70
- code: 'bad-request' | 'csrf-rejected' | 'login-active' | 'login-cancelled' | 'login-expired' | 'oauth-callback-invalid' | 'oauth-token-exchange-failed' | 'not-authenticated' | 'refresh-failed' | 'storage-failed' | 'connection-failed' | 'quota-failed' | 'rate-limited' | 'internal';
107
+ code: 'bad-request' | 'csrf-rejected' | 'login-active' | 'login-cancelled' | 'login-expired' | 'oauth-callback-invalid' | 'oauth-token-exchange-failed' | 'not-authenticated' | 'refresh-failed' | 'storage-failed' | 'connection-failed' | 'quota-failed' | 'preference-failed' | 'rate-limited' | 'internal';
71
108
  message: string;
72
109
  }
73
110
  export type ApiEnvelope<T> = {
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/contracts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,cA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AAI,CAAA;IACxB,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,aAAa,GACrB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAA;AAE9D,MAAM,WAAW,cAAc;IAC7B,IAAI,EACA,aAAa,GACb,eAAe,GACf,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,wBAAwB,GACxB,6BAA6B,GAC7B,mBAAmB,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,mBAAmB,GACnB,cAAc,GACd,mBAAmB,GACnB,cAAc,GACd,UAAU,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAA"}
@@ -0,0 +1,81 @@
1
+ export type CodexModelModality = 'text' | 'image';
2
+ export interface CodexModelCatalogEntry {
3
+ id: string;
4
+ name: string;
5
+ contextWindow: number;
6
+ inputModalities: readonly CodexModelModality[];
7
+ defaultReasoningEffort: string;
8
+ reasoningProfile: 'standard' | 'gpt-5.6';
9
+ supportsReasoningSummary: boolean;
10
+ }
11
+ export declare const CODEX_MODEL_CATALOG: readonly [{
12
+ readonly id: "gpt-5.6-sol";
13
+ readonly name: "5.6 Sol";
14
+ readonly contextWindow: 272000;
15
+ readonly inputModalities: readonly ["text", "image"];
16
+ readonly defaultReasoningEffort: "medium";
17
+ readonly reasoningProfile: "gpt-5.6";
18
+ readonly supportsReasoningSummary: true;
19
+ }, {
20
+ readonly id: "gpt-5.6-terra";
21
+ readonly name: "5.6 Terra";
22
+ readonly contextWindow: 272000;
23
+ readonly inputModalities: readonly ["text", "image"];
24
+ readonly defaultReasoningEffort: "medium";
25
+ readonly reasoningProfile: "gpt-5.6";
26
+ readonly supportsReasoningSummary: true;
27
+ }, {
28
+ readonly id: "gpt-5.6-luna";
29
+ readonly name: "5.6 Luna";
30
+ readonly contextWindow: 272000;
31
+ readonly inputModalities: readonly ["text", "image"];
32
+ readonly defaultReasoningEffort: "medium";
33
+ readonly reasoningProfile: "gpt-5.6";
34
+ readonly supportsReasoningSummary: true;
35
+ }, {
36
+ readonly id: "gpt-5.5";
37
+ readonly name: "5.5";
38
+ readonly contextWindow: 272000;
39
+ readonly inputModalities: readonly ["text", "image"];
40
+ readonly defaultReasoningEffort: "medium";
41
+ readonly reasoningProfile: "standard";
42
+ readonly supportsReasoningSummary: true;
43
+ }, {
44
+ readonly id: "gpt-5.4";
45
+ readonly name: "5.4";
46
+ readonly contextWindow: 272000;
47
+ readonly inputModalities: readonly ["text", "image"];
48
+ readonly defaultReasoningEffort: "none";
49
+ readonly reasoningProfile: "standard";
50
+ readonly supportsReasoningSummary: true;
51
+ }, {
52
+ readonly id: "gpt-5.4-mini";
53
+ readonly name: "5.4 Mini";
54
+ readonly contextWindow: 272000;
55
+ readonly inputModalities: readonly ["text", "image"];
56
+ readonly defaultReasoningEffort: "none";
57
+ readonly reasoningProfile: "standard";
58
+ readonly supportsReasoningSummary: true;
59
+ }, {
60
+ readonly id: "gpt-5.3-codex-spark";
61
+ readonly name: "5.3 Codex Spark";
62
+ readonly contextWindow: 258000;
63
+ readonly inputModalities: readonly ["text"];
64
+ readonly defaultReasoningEffort: "high";
65
+ readonly reasoningProfile: "standard";
66
+ readonly supportsReasoningSummary: false;
67
+ }];
68
+ export type CodexModelId = typeof CODEX_MODEL_CATALOG[number]['id'];
69
+ export declare const DEFAULT_CODEX_MODEL: {
70
+ readonly id: "gpt-5.6-sol";
71
+ readonly name: "5.6 Sol";
72
+ readonly contextWindow: 272000;
73
+ readonly inputModalities: readonly ["text", "image"];
74
+ readonly defaultReasoningEffort: "medium";
75
+ readonly reasoningProfile: "gpt-5.6";
76
+ readonly supportsReasoningSummary: true;
77
+ };
78
+ export declare function resolveCodexCatalogEntry(model: string): CodexModelCatalogEntry;
79
+ export declare function codexModelSupportsImageInput(model: string): boolean;
80
+ export declare function codexModelSupportsReasoningSummary(model: string): boolean;
81
+ //# sourceMappingURL=model-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-catalog.d.ts","sourceRoot":"","sources":["../../../src/shared/model-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC9C,sBAAsB,EAAE,MAAM,CAAA;IAC9B,gBAAgB,EAAE,UAAU,GAAG,SAAS,CAAA;IACxC,wBAAwB,EAAE,OAAO,CAAA;CAClC;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEsB,CAAA;AAEtD,MAAM,MAAM,YAAY,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAA;AAEnE,eAAO,MAAM,mBAAmB;;;;;;;;CAAyB,CAAA;AAEzD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnE;AAED,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzE"}
@@ -0,0 +1,7 @@
1
+ import type { SearchProviderPreference, SubscriptionPreferencesDto } from './contracts.ts';
2
+ export declare const PREFERENCES_NAMESPACE = "dsh-chatgpt-subscription";
3
+ export declare const DEFAULT_PREFERENCES: Omit<SubscriptionPreferencesDto, 'writable'>;
4
+ export declare const SEARCH_PROVIDER_DSH: SearchProviderPreference;
5
+ export declare const SEARCH_PROVIDER_CODEX: SearchProviderPreference;
6
+ export declare function isSearchProviderPreference(value: unknown): value is SearchProviderPreference;
7
+ //# sourceMappingURL=preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../../src/shared/preferences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAE1F,eAAO,MAAM,qBAAqB,6BAA6B,CAAA;AAE/D,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAG5E,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,wBAAgC,CAAA;AAClE,eAAO,MAAM,qBAAqB,EAAE,wBAAkC,CAAA;AAEtE,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAE5F"}
package/package.json CHANGED
@@ -1,107 +1,126 @@
1
- {
2
- "name": "@eddyskywalker/dsh-chatgpt-subscription",
3
- "version": "0.1.10",
4
- "description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
5
- "author": {
6
- "name": "eddyskywalker",
7
- "url": "https://www.npmjs.com/~eddyskywalker"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/Aa728848/dsh-chatgpt-subscription.git"
12
- },
13
- "homepage": "https://github.com/Aa728848/dsh-chatgpt-subscription#readme",
14
- "bugs": {
15
- "url": "https://github.com/Aa728848/dsh-chatgpt-subscription/issues"
16
- },
17
- "keywords": [
18
- "dsh-plugin",
19
- "dsh",
20
- "deepseek-harness",
21
- "chatgpt",
22
- "codex",
23
- "openai",
24
- "provider"
25
- ],
26
- "type": "module",
27
- "publishConfig": {
28
- "access": "public",
29
- "tag": "latest"
30
- },
31
- "main": "lib/index.js",
32
- "types": "lib/types/index.d.ts",
33
- "exports": {
34
- ".": {
35
- "types": "./lib/types/index.d.ts",
36
- "default": "./lib/index.js"
37
- },
38
- "./client": {
39
- "types": "./lib/types/client/index.d.ts",
40
- "default": "./lib/client.js"
41
- },
42
- "./package.json": "./package.json"
43
- },
44
- "dsh": {
45
- "bundle": {
46
- "patch": "./cordis.patch.yml"
47
- },
48
- "client": {
49
- "inject": [
50
- "@deepseek-ai/dsh-client-runtime",
51
- "@deepseek-ai/dsh-client-locale",
52
- "@deepseek-ai/dsh-client-ui-slots",
53
- "@deepseek-ai/dsh-client-ui-settings"
54
- ],
55
- "platform": "web"
56
- }
57
- },
58
- "peerDependencies": {
59
- "@deepseek-ai/cordis": "^4.0.1",
60
- "@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
61
- "@deepseek-ai/dsh-attachment": "^0.1.0-rc.6",
62
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
63
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6",
64
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.6",
65
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
66
- "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6",
67
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
68
- "react": "^18.2.0"
69
- },
70
- "devDependencies": {
71
- "@deepseek-ai/cordis": "^4.0.1",
72
- "@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
73
- "@deepseek-ai/dsh-attachment": "^0.1.0-rc.6",
74
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
75
- "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6",
76
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.6",
77
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
78
- "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.6",
79
- "@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
80
- "@types/node": "^22.20.0",
81
- "@types/react": "~18.3.1",
82
- "@types/react-dom": "^18.3.5",
83
- "jsdom": "29.1.1",
84
- "react": "^18.3.1",
85
- "react-dom": "^18.3.1",
86
- "tsdown": "0.22.2",
87
- "typescript": "~5.7.2",
88
- "vitest": "^4.1.8"
89
- },
90
- "files": [
91
- "lib/index.js",
92
- "lib/client.js",
93
- "lib/client.js.map",
94
- "lib/types/**/*.d.ts",
95
- "lib/types/**/*.d.ts.map",
96
- "cordis.patch.yml",
97
- "README.md",
98
- "CHANGELOG.md"
99
- ],
100
- "license": "MIT",
101
- "scripts": {
102
- "build": "tsc -b && tsdown",
103
- "prepack": "npm run build",
104
- "test": "vitest run",
105
- "typecheck": "tsc -b --pretty false"
106
- }
107
- }
1
+ {
2
+ "name": "@eddyskywalker/dsh-chatgpt-subscription",
3
+ "version": "0.1.12",
4
+ "description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
5
+ "author": {
6
+ "name": "eddyskywalker",
7
+ "url": "https://www.npmjs.com/~eddyskywalker"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Aa728848/dsh-chatgpt-subscription.git"
12
+ },
13
+ "homepage": "https://github.com/Aa728848/dsh-chatgpt-subscription#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/Aa728848/dsh-chatgpt-subscription/issues"
16
+ },
17
+ "keywords": [
18
+ "dsh-plugin",
19
+ "dsh",
20
+ "deepseek-harness",
21
+ "chatgpt",
22
+ "codex",
23
+ "openai",
24
+ "provider"
25
+ ],
26
+ "type": "module",
27
+ "publishConfig": {
28
+ "access": "public",
29
+ "tag": "latest"
30
+ },
31
+ "main": "lib/index.js",
32
+ "types": "lib/types/index.d.ts",
33
+ "exports": {
34
+ ".": {
35
+ "types": "./lib/types/index.d.ts",
36
+ "default": "./lib/index.js"
37
+ },
38
+ "./client": {
39
+ "types": "./lib/types/client/index.d.ts",
40
+ "default": "./lib/client.js"
41
+ },
42
+ "./package.json": "./package.json"
43
+ },
44
+ "dsh": {
45
+ "bundle": {
46
+ "patch": "./cordis.patch.yml"
47
+ },
48
+ "client": {
49
+ "inject": [
50
+ "@deepseek-ai/dsh-client-runtime",
51
+ "@deepseek-ai/dsh-client-locale",
52
+ "@deepseek-ai/dsh-client-ui-slots",
53
+ "@deepseek-ai/dsh-client-ui-settings",
54
+ "@deepseek-ai/dsh-client-ui-model-selection",
55
+ "@deepseek-ai/dsh-client-ui-conversation",
56
+ "@deepseek-ai/dsh-client-ui-tool"
57
+ ],
58
+ "platform": "web"
59
+ }
60
+ },
61
+ "peerDependencies": {
62
+ "@deepseek-ai/cordis": "^4.0.1",
63
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
64
+ "@deepseek-ai/dsh-attachment": "^0.1.0-rc.8",
65
+ "@deepseek-ai/dsh-client-connection": "^0.1.0-rc.8",
66
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.8",
67
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.8",
68
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.8",
69
+ "@deepseek-ai/dsh-client-ui-model-selection": "^0.1.0-rc.8",
70
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.8",
71
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
72
+ "@deepseek-ai/dsh-client-ui-tool": "^0.1.0-rc.8",
73
+ "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.8",
74
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.8",
75
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.8",
76
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.8",
77
+ "@deepseek-ai/dsh-web": "^0.1.0-rc.8",
78
+ "@deepseek-ai/schemastery": "^3.18.1",
79
+ "react": "^18.2.0"
80
+ },
81
+ "devDependencies": {
82
+ "@deepseek-ai/cordis": "^4.0.1",
83
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
84
+ "@deepseek-ai/dsh-attachment": "^0.1.0-rc.8",
85
+ "@deepseek-ai/dsh-client-connection": "^0.1.0-rc.8",
86
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.8",
87
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.8",
88
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.8",
89
+ "@deepseek-ai/dsh-client-ui-model-selection": "^0.1.0-rc.8",
90
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.8",
91
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
92
+ "@deepseek-ai/dsh-client-ui-tool": "^0.1.0-rc.8",
93
+ "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.8",
94
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.8",
95
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.8",
96
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.8",
97
+ "@deepseek-ai/dsh-web": "^0.1.0-rc.8",
98
+ "@deepseek-ai/schemastery": "^3.18.1",
99
+ "@types/node": "^22.20.0",
100
+ "@types/react": "~18.3.1",
101
+ "@types/react-dom": "^18.3.5",
102
+ "jsdom": "29.1.1",
103
+ "react": "^18.3.1",
104
+ "react-dom": "^18.3.1",
105
+ "tsdown": "0.22.2",
106
+ "typescript": "~5.7.2",
107
+ "vitest": "^4.1.8"
108
+ },
109
+ "files": [
110
+ "lib/index.js",
111
+ "lib/client.js",
112
+ "lib/client.js.map",
113
+ "lib/types/**/*.d.ts",
114
+ "lib/types/**/*.d.ts.map",
115
+ "cordis.patch.yml",
116
+ "README.md",
117
+ "CHANGELOG.md"
118
+ ],
119
+ "license": "MIT",
120
+ "scripts": {
121
+ "build": "tsc -b && tsdown",
122
+ "prepack": "npm run build",
123
+ "test": "vitest run",
124
+ "typecheck": "tsc -b --pretty false"
125
+ }
126
+ }
@@ -1,21 +0,0 @@
1
- import type { Context } from '@deepseek-ai/cordis';
2
- /**
3
- * DSH_COMPAT_REMOVE(subagent-report-settlement-dedup)
4
- *
5
- * Temporary compatibility shim for DSH 0.1.0-rc.6. A continuable child is told
6
- * to report its result before finishing, while DSH also unconditionally sends
7
- * the same closing output in a `subagent-settled` notice. The report is often
8
- * still queued when the settlement reaches the parent, so the parent sees the
9
- * result once and the equivalent report remains as duplicate next-turn work.
10
- *
11
- * Remove this module, its installation in `src/index.ts`, and its focused test
12
- * once upstream coalesces an equivalent final report with settlement delivery.
13
- */
14
- export declare const DSH_SUBAGENT_REPORT_DEDUP_COMPAT_MARKER: "__dshChatgptSubscriptionSubagentReportDedupCompatV1";
15
- /**
16
- * Discard only an exact, same-child report duplicate immediately before DSH
17
- * delivers the corresponding settlement notice. Partial reports, reports with
18
- * different content, and all unrelated inbox work remain untouched.
19
- */
20
- export declare function installSubagentReportDedupCompat(ctx: Context): () => void;
21
- //# sourceMappingURL=subagent-report-scheduling-compat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subagent-report-scheduling-compat.d.ts","sourceRoot":"","sources":["../../../src/host/subagent-report-scheduling-compat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uCAAuC,EAClD,qDAA8D,CAAA;AA4EhE;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,IAAI,CAyGzE"}