@sagmans/dsh-provider-extra 0.8.0 → 0.9.2
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.md +272 -91
- package/cordis.patch.yml +3 -0
- package/dist/auth-remote.js +333 -0
- package/dist/catalog-default.js +5 -5
- package/dist/catalog-routes.js +241 -96
- package/dist/catalog-runtime.js +132 -80
- package/dist/catalog.js +50 -26
- package/dist/client.js +887 -90
- package/dist/codex-login.js +21 -12
- package/dist/codex.js +34 -19
- package/dist/extra-models.js +19 -9
- package/dist/headless-startup.js +36 -21
- package/dist/index.js +73 -42
- package/dist/login-attempt.js +25 -19
- package/dist/login-choice.js +24 -14
- package/dist/login-cli.js +7 -5
- package/dist/login-command.js +33 -11
- package/dist/login-host.js +99 -41
- package/dist/login-route.js +9 -3
- package/dist/login-status.js +10 -4
- package/dist/opencode-go.js +37 -18
- package/dist/plugin-error.js +12 -0
- package/dist/service-tiers.js +40 -18
- package/dist/sign-in.js +20 -0
- package/dist/tier-client.js +886 -89
- package/dist/tier-invocation.js +51 -20
- package/dist/tier-remote.js +7 -4
- package/dist/tier-store.js +25 -11
- package/dist/tui-actions.js +29 -12
- package/docs/catalog-v1.example.json +1 -3
- package/docs/catalog.md +1 -2
- package/package.json +43 -33
package/dist/tier-invocation.js
CHANGED
|
@@ -4,8 +4,21 @@ import * as llm from '@deepseek-ai/dsh-llm';
|
|
|
4
4
|
const SERVICE_NAME = 'providerTierInvocation';
|
|
5
5
|
const SINGLE_ROOT = 1;
|
|
6
6
|
const AMBIGUOUS_ROOT = 'headless service tier override cannot identify a unique invoking root';
|
|
7
|
-
const UNSUPPORTED_RUNTIME = 'headless service tiers require the npm DSH
|
|
7
|
+
const UNSUPPORTED_RUNTIME = 'headless service tiers require the npm DSH loop marker and an agents registry that lists live agents';
|
|
8
8
|
const scope = new AsyncLocalStorage();
|
|
9
|
+
/**
|
|
10
|
+
* Live agents the binding chooses from. `list()` also returns owned children, but a
|
|
11
|
+
* child normally appears only after the root's first loop request has bound it, and
|
|
12
|
+
* a bound root still matches only its own session id. A child that appears earlier
|
|
13
|
+
* leaves more than one candidate, so the override fails closed instead of binding it.
|
|
14
|
+
*/
|
|
15
|
+
function liveRoots(agents) {
|
|
16
|
+
if (typeof agents.roots === 'function')
|
|
17
|
+
return agents.roots();
|
|
18
|
+
if (typeof agents.list === 'function')
|
|
19
|
+
return agents.list();
|
|
20
|
+
throw new Error(UNSUPPORTED_RUNTIME);
|
|
21
|
+
}
|
|
9
22
|
/** Null suppresses saved policy; undefined leaves normal configured/shared defaults intact. */
|
|
10
23
|
export function currentInvocationTier() {
|
|
11
24
|
return scope.getStore();
|
|
@@ -15,18 +28,30 @@ export function mountTierInvocation(ctx, tiers) {
|
|
|
15
28
|
let active;
|
|
16
29
|
ctx.provide(SERVICE_NAME, {
|
|
17
30
|
activate(override, sessionId, agents) {
|
|
18
|
-
if (override !== undefined &&
|
|
31
|
+
if (override !== undefined &&
|
|
32
|
+
(typeof llm.isAgentLoopRequest !== 'function' ||
|
|
33
|
+
(typeof agents.roots !== 'function' && typeof agents.list !== 'function'))) {
|
|
19
34
|
throw new Error(UNSUPPORTED_RUNTIME);
|
|
20
35
|
}
|
|
21
|
-
active =
|
|
22
|
-
override
|
|
23
|
-
|
|
36
|
+
active =
|
|
37
|
+
override === undefined
|
|
38
|
+
? undefined
|
|
39
|
+
: {
|
|
40
|
+
override,
|
|
41
|
+
sessionId,
|
|
42
|
+
agents,
|
|
43
|
+
previousRoots: new Set(liveRoots(agents)),
|
|
44
|
+
};
|
|
24
45
|
const activation = active;
|
|
25
|
-
return () => {
|
|
26
|
-
active
|
|
46
|
+
return () => {
|
|
47
|
+
if (active === activation)
|
|
48
|
+
active = undefined;
|
|
49
|
+
};
|
|
27
50
|
},
|
|
28
51
|
});
|
|
29
|
-
ctx.effect(() => () => {
|
|
52
|
+
ctx.effect(() => () => {
|
|
53
|
+
active = undefined;
|
|
54
|
+
});
|
|
30
55
|
ctx.on('llm/stream', (request, next) => {
|
|
31
56
|
const tier = resolve(request);
|
|
32
57
|
// Even excluded nested calls need an explicit empty scope rather than inheriting their caller's tier.
|
|
@@ -36,31 +61,37 @@ export function mountTierInvocation(ctx, tiers) {
|
|
|
36
61
|
return {
|
|
37
62
|
next: (...args) => scope.run(tier, () => iterator.next(...args)),
|
|
38
63
|
return: (value) => scope.run(tier, () => iterator.return
|
|
39
|
-
? iterator.return(value)
|
|
40
|
-
|
|
41
|
-
|
|
64
|
+
? iterator.return(value)
|
|
65
|
+
: Promise.resolve({ done: true, value })),
|
|
66
|
+
throw: (error) => scope.run(tier, () => (iterator.throw ? iterator.throw(error) : Promise.reject(error))),
|
|
42
67
|
};
|
|
43
68
|
},
|
|
44
69
|
};
|
|
45
70
|
});
|
|
46
71
|
/** Bind one newly registered root, or the exact resumed root, before accepting request metadata. */
|
|
47
72
|
function resolve(request) {
|
|
48
|
-
|
|
73
|
+
// A local copy keeps the narrowing inside the filter below; nothing here awaits.
|
|
74
|
+
const current = active;
|
|
75
|
+
if (!current ||
|
|
76
|
+
!llm.isAgentLoopRequest(request) ||
|
|
77
|
+
!request.sessionId ||
|
|
78
|
+
request.purpose !== undefined)
|
|
49
79
|
return undefined;
|
|
50
|
-
const roots =
|
|
51
|
-
if (!
|
|
52
|
-
const candidates = roots.filter(root => !
|
|
53
|
-
|
|
80
|
+
const roots = liveRoots(current.agents);
|
|
81
|
+
if (!current.root) {
|
|
82
|
+
const candidates = roots.filter((root) => !current.previousRoots.has(root) &&
|
|
83
|
+
(current.sessionId === undefined || root.id === current.sessionId));
|
|
54
84
|
if (candidates.length !== SINGLE_ROOT) {
|
|
55
85
|
// Falling back here could restore saved paid processing against an explicit provider-default request.
|
|
56
|
-
if (candidates.some(root => root.id === request.sessionId))
|
|
86
|
+
if (candidates.some((root) => root.id === request.sessionId))
|
|
57
87
|
throw new Error(AMBIGUOUS_ROOT);
|
|
58
88
|
return undefined;
|
|
59
89
|
}
|
|
60
|
-
|
|
90
|
+
current.root = candidates[0];
|
|
61
91
|
}
|
|
62
|
-
|
|
92
|
+
const { root } = current;
|
|
93
|
+
if (!root || !roots.includes(root) || root.id !== request.sessionId)
|
|
63
94
|
return undefined;
|
|
64
|
-
return tiers.resolve(request.provider, request.model,
|
|
95
|
+
return tiers.resolve(request.provider, request.model, current.override);
|
|
65
96
|
}
|
|
66
97
|
}
|
package/dist/tier-remote.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { parseTier, parseTierIdentity, parseTierView, TIER_CONTRIBUTION, TIER_NAMESPACE, TIER_SAVE_ERROR, } from './tier-client.js';
|
|
2
2
|
const TYPERT_SERVICE = 'typert';
|
|
3
3
|
const TIER_SERVICE = 'providerServiceTiers';
|
|
4
4
|
const UNSUPPORTED = 'Service tier is unsupported for this model route';
|
|
@@ -22,7 +22,9 @@ class TierRemote {
|
|
|
22
22
|
const providerId = parseTierIdentity(provider);
|
|
23
23
|
const modelId = parseTierIdentity(model);
|
|
24
24
|
const tiers = this.ctx.get(TIER_SERVICE);
|
|
25
|
-
const choices = tiers
|
|
25
|
+
const choices = tiers
|
|
26
|
+
.choices(providerId, modelId)
|
|
27
|
+
.map(({ id, name, description }) => ({ id, name, description }));
|
|
26
28
|
const current = choices.length === 0 ? undefined : tiers.current(providerId, modelId);
|
|
27
29
|
return parseTierView({ choices, ...(current === undefined ? {} : { current }) });
|
|
28
30
|
}
|
|
@@ -34,7 +36,8 @@ class TierRemote {
|
|
|
34
36
|
const selected = parseTier(tier);
|
|
35
37
|
const tiers = this.ctx.get(TIER_SERVICE);
|
|
36
38
|
const choices = tiers.choices(providerId, modelId);
|
|
37
|
-
if (choices.length === 0 ||
|
|
39
|
+
if (choices.length === 0 ||
|
|
40
|
+
(selected !== undefined && !choices.some((choice) => choice.id === selected)))
|
|
38
41
|
throw new Error(UNSUPPORTED);
|
|
39
42
|
try {
|
|
40
43
|
await tiers.select(providerId, modelId, selected);
|
|
@@ -48,7 +51,7 @@ class TierRemote {
|
|
|
48
51
|
}
|
|
49
52
|
/** Older or terminal-only hosts do not need Typert to use provider tier policy. */
|
|
50
53
|
export function mountTierRemote(ctx) {
|
|
51
|
-
ctx.inject([TYPERT_SERVICE, TIER_SERVICE], owner => {
|
|
54
|
+
ctx.inject([TYPERT_SERVICE, TIER_SERVICE], (owner) => {
|
|
52
55
|
owner.provide(TIER_NAMESPACE, new TierRemote(owner));
|
|
53
56
|
const typert = owner.get(TYPERT_SERVICE);
|
|
54
57
|
// Host dispatch reads local invocations; remotes.register owns only consumer descriptors.
|
package/dist/tier-store.js
CHANGED
|
@@ -20,8 +20,11 @@ const WINDOWS_PLATFORM = 'win32';
|
|
|
20
20
|
const WINDOWS_UNSUPPORTED = 'service tier persistence is unsupported on Windows';
|
|
21
21
|
/** Identity validation bounds hashing and rejects control characters in hand-edited records. */
|
|
22
22
|
function validIdentifier(value) {
|
|
23
|
-
return typeof value === 'string' &&
|
|
24
|
-
|
|
23
|
+
return (typeof value === 'string' &&
|
|
24
|
+
value.trim().length > 0 &&
|
|
25
|
+
Buffer.byteLength(value) <= MAX_IDENTIFIER_BYTES &&
|
|
26
|
+
// biome-ignore lint/suspicious/noControlCharactersInRegex: rejecting control characters is the point of this validation.
|
|
27
|
+
!/[\u0000-\u001f\u007f]/u.test(value));
|
|
25
28
|
}
|
|
26
29
|
/** Missing files alone permit configuration fallback; malformed state never enables paid tiers. */
|
|
27
30
|
function missing(error) {
|
|
@@ -51,8 +54,10 @@ export function createTierStore(home, validTier) {
|
|
|
51
54
|
throw new Error(INVALID_INPUT);
|
|
52
55
|
if (directory === undefined)
|
|
53
56
|
throw new Error(MISSING_HOME);
|
|
54
|
-
const digest = createHash('sha256')
|
|
55
|
-
|
|
57
|
+
const digest = createHash('sha256')
|
|
58
|
+
.update(JSON.stringify([provider, model]))
|
|
59
|
+
.digest('hex');
|
|
60
|
+
return join(directory, `${digest}.json`);
|
|
56
61
|
};
|
|
57
62
|
return {
|
|
58
63
|
read(provider, model) {
|
|
@@ -65,7 +70,9 @@ export function createTierStore(home, validTier) {
|
|
|
65
70
|
// Nonblocking/no-follow also reject FIFOs and symlinks without hanging a menu or request.
|
|
66
71
|
descriptor = openSync(path, constants.O_RDONLY | constants.O_NOFOLLOW | constants.O_NONBLOCK);
|
|
67
72
|
const info = fstatSync(descriptor);
|
|
68
|
-
if (!info.isFile() ||
|
|
73
|
+
if (!info.isFile() ||
|
|
74
|
+
info.size > MAX_RECORD_BYTES ||
|
|
75
|
+
(info.mode & PUBLIC_PERMISSIONS) !== 0)
|
|
69
76
|
throw new Error(READ_FAILURE);
|
|
70
77
|
const bytes = Buffer.alloc(MAX_RECORD_BYTES + 1);
|
|
71
78
|
let length = 0;
|
|
@@ -80,9 +87,12 @@ export function createTierStore(home, validTier) {
|
|
|
80
87
|
if (record === null || typeof record !== 'object' || Array.isArray(record))
|
|
81
88
|
throw new Error(READ_FAILURE);
|
|
82
89
|
const data = record;
|
|
83
|
-
if (Object.keys(data).length !== RECORD_KEYS.length ||
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
if (Object.keys(data).length !== RECORD_KEYS.length ||
|
|
91
|
+
!RECORD_KEYS.every((key) => Object.hasOwn(data, key)) ||
|
|
92
|
+
data.version !== RECORD_VERSION ||
|
|
93
|
+
data.provider !== provider ||
|
|
94
|
+
data.model !== model ||
|
|
95
|
+
(data.tier !== null && (typeof data.tier !== 'string' || !validTier(data.tier))))
|
|
86
96
|
throw new Error(READ_FAILURE);
|
|
87
97
|
return data.tier;
|
|
88
98
|
}
|
|
@@ -98,6 +108,8 @@ export function createTierStore(home, validTier) {
|
|
|
98
108
|
},
|
|
99
109
|
async write(provider, model, tier) {
|
|
100
110
|
const path = recordPath(provider, model);
|
|
111
|
+
if (directory === undefined || home === undefined)
|
|
112
|
+
throw new Error(MISSING_HOME);
|
|
101
113
|
if (tier !== null && (typeof tier !== 'string' || !validTier(tier)))
|
|
102
114
|
throw new Error(INVALID_INPUT);
|
|
103
115
|
// Windows cannot guarantee these POSIX privacy and directory-sync contracts; leave fallback state untouched.
|
|
@@ -113,7 +125,7 @@ export function createTierStore(home, validTier) {
|
|
|
113
125
|
privateDirectory(directory);
|
|
114
126
|
// Every writer covers a directory another process may have just created but not yet synced.
|
|
115
127
|
await syncDirectory(home);
|
|
116
|
-
const temporary = join(directory,
|
|
128
|
+
const temporary = join(directory, `.${randomUUID()}.tmp`);
|
|
117
129
|
let created = false;
|
|
118
130
|
try {
|
|
119
131
|
const file = await open(temporary, 'wx', RECORD_MODE);
|
|
@@ -138,8 +150,10 @@ export function createTierStore(home, validTier) {
|
|
|
138
150
|
finally {
|
|
139
151
|
// Only uncommitted temporaries belong to this writer after a failed operation.
|
|
140
152
|
if (created)
|
|
141
|
-
await unlink(temporary).catch(error => {
|
|
142
|
-
|
|
153
|
+
await unlink(temporary).catch((error) => {
|
|
154
|
+
if (!missing(error))
|
|
155
|
+
throw error;
|
|
156
|
+
});
|
|
143
157
|
}
|
|
144
158
|
},
|
|
145
159
|
};
|
package/dist/tui-actions.js
CHANGED
|
@@ -32,17 +32,28 @@ export function createTierPicker(tiers) {
|
|
|
32
32
|
}
|
|
33
33
|
const current = tiers.current(route.provider, route.model);
|
|
34
34
|
const rows = [
|
|
35
|
-
{
|
|
36
|
-
|
|
35
|
+
{
|
|
36
|
+
id: PROVIDER_DEFAULT,
|
|
37
|
+
name: 'provider default',
|
|
38
|
+
description: 'clear the explicit service tier',
|
|
39
|
+
current: current === undefined,
|
|
40
|
+
},
|
|
41
|
+
...choices.map((choice) => ({ ...choice, current: choice.id === current })),
|
|
37
42
|
];
|
|
38
|
-
const picked = await ports.pick({
|
|
43
|
+
const picked = await ports.pick({
|
|
44
|
+
title: `${TIER_LABEL} · ${route.provider}/${route.model}`,
|
|
45
|
+
rows,
|
|
46
|
+
});
|
|
39
47
|
if (picked === undefined)
|
|
40
48
|
return;
|
|
41
|
-
if (!rows.some(row => row.id === picked))
|
|
49
|
+
if (!rows.some((row) => row.id === picked))
|
|
42
50
|
throw new Error(DISCOVERY_FAILURE);
|
|
43
51
|
saving = true;
|
|
44
52
|
await tiers.select(route.provider, route.model, picked === PROVIDER_DEFAULT ? undefined : picked);
|
|
45
|
-
ports.notice(TIER_LABEL +
|
|
53
|
+
ports.notice(TIER_LABEL +
|
|
54
|
+
' set to ' +
|
|
55
|
+
(picked === PROVIDER_DEFAULT ? 'provider default' : picked) +
|
|
56
|
+
' for the next request');
|
|
46
57
|
}
|
|
47
58
|
catch {
|
|
48
59
|
ports.notice(saving ? SAVE_FAILURE : DISCOVERY_FAILURE);
|
|
@@ -54,16 +65,22 @@ export function createTierPicker(tiers) {
|
|
|
54
65
|
}
|
|
55
66
|
/** Optional injection leaves console and web profiles independent of the terminal bundle. */
|
|
56
67
|
export function mountTierActions(ctx, tiers) {
|
|
57
|
-
ctx.inject([REGISTRY], owner => {
|
|
68
|
+
ctx.inject([REGISTRY], (owner) => {
|
|
58
69
|
const registry = owner.get(REGISTRY);
|
|
59
70
|
const choose = createTierPicker(tiers);
|
|
60
|
-
registry.register(owner, {
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
registry.register(owner, {
|
|
72
|
+
id: TIER_ACTION_ID,
|
|
73
|
+
layer: 'chord',
|
|
74
|
+
defaultKeys: [TIER_KEY],
|
|
75
|
+
label: TIER_LABEL,
|
|
76
|
+
handler: (ports) => choose(ports),
|
|
77
|
+
routeHint: (route) => {
|
|
63
78
|
const tier = tiers.current(route.provider, route.model);
|
|
64
79
|
return FOOTER_TIERS.has(tier ?? PROVIDER_DEFAULT)
|
|
65
|
-
? tiers.choices(route.provider, route.model).find(choice => choice.id === tier)?.name
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
? tiers.choices(route.provider, route.model).find((choice) => choice.id === tier)?.name
|
|
81
|
+
: undefined;
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
registry.afterEffort(owner, (ports) => choose(ports, true));
|
|
68
85
|
});
|
|
69
86
|
}
|
package/docs/catalog.md
CHANGED
|
@@ -33,7 +33,7 @@ For example, a profile with these row IDs needs these overrides:
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Inspect the composed profile for additional provider rows or different IDs.
|
|
36
|
-
From 0.1.7 on, the base adds two more: it registers the signed-in DeepSeek account as a provider, so a catalog profile on the 0.1.7 or 0.2.
|
|
36
|
+
From 0.1.7 on, the base adds two more: it registers the signed-in DeepSeek account as a provider, so a catalog profile on the 0.1.7, 0.2.0, or 0.2.1 line reports `CATALOG_OWNER_COLLISION` until `llm-deepseek-account` and `deepseek-account` carry the same override.
|
|
37
37
|
Mount provider-extra after those rows so its preflight can detect existing owners.
|
|
38
38
|
Preflight rejects any existing adapter, provider directory, or default owner before registering managed routes.
|
|
39
39
|
It never disables another plugin. The public registry cannot veto a later unrelated adapter or directory registration.
|
|
@@ -140,7 +140,6 @@ The updater preserves other fields and revalidates membership against the editor
|
|
|
140
140
|
The promise awaits the editor's validation, persistence, and reconciliation.
|
|
141
141
|
Failures propagate without publishing a local-only default.
|
|
142
142
|
Hosts without an addressable entry and that editor reject with `CONFIG_PERSISTENCE_UNAVAILABLE`.
|
|
143
|
-
The verified `0.1.5` line has no canonical editor; edit its profile patch explicitly.
|
|
144
143
|
No fallback writes legacy `agent-default-model` settings or another file.
|
|
145
144
|
|
|
146
145
|
The catalog is nonvolatile. Successful edits follow the host's normal plugin restart lifecycle.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sagmans/dsh-provider-extra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Extra LLM provider routes for DeepSeek Harness: OpenCode Go with per-session x-opencode-session routing, and OpenAI Codex over ChatGPT-subscription OAuth.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": "./dist/index.js",
|
|
21
21
|
"./client": "./dist/client.js",
|
|
22
|
+
"./sign-in": "./dist/sign-in.js",
|
|
22
23
|
"./headless-startup": "./dist/headless-startup.js",
|
|
23
24
|
"./headless.patch.yml": "./headless.patch.yml",
|
|
24
25
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"README.md"
|
|
36
37
|
],
|
|
37
38
|
"engines": {
|
|
38
|
-
"node": "
|
|
39
|
+
"node": ">=22.19.0"
|
|
39
40
|
},
|
|
40
41
|
"packageManager": "pnpm@11.21.0",
|
|
41
42
|
"publishConfig": {
|
|
@@ -56,12 +57,12 @@
|
|
|
56
57
|
"patch": "./cordis.patch.yml"
|
|
57
58
|
},
|
|
58
59
|
"compatibility": {
|
|
59
|
-
"dsh": ">=0.1.
|
|
60
|
+
"dsh": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
60
61
|
"dshReleases": {
|
|
61
|
-
"0.1
|
|
62
|
-
"0.1
|
|
63
|
-
"0.
|
|
64
|
-
"0.2.
|
|
62
|
+
"0.2.1-rc.2": "compatible",
|
|
63
|
+
"0.2.1-rc.3": "compatible",
|
|
64
|
+
"0.2.2-rc.1": "compatible",
|
|
65
|
+
"0.2.2-rc.5": "compatible"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
},
|
|
@@ -73,24 +74,30 @@
|
|
|
73
74
|
"build": "tsc -p tsconfig.build.json && node tools/build-client.mjs",
|
|
74
75
|
"build:client": "node tools/build-client.mjs",
|
|
75
76
|
"test:build": "node --test \"tests/*.test.mjs\"",
|
|
76
|
-
"test:release": "
|
|
77
|
+
"test:release": "uv run --no-project --python-preference only-managed python -m unittest discover -s tests/release -p 'test_*.py'",
|
|
77
78
|
"pack-smoke": "node tools/pack-smoke.mjs",
|
|
78
79
|
"matrix": "node tools/harness-matrix.mjs",
|
|
79
|
-
"check": "
|
|
80
|
+
"check:tools": "bash scripts/stack-checks.sh tools",
|
|
81
|
+
"lint": "biome ci --error-on-warnings .",
|
|
82
|
+
"lint:fix": "biome check --write .",
|
|
83
|
+
"lint:py": "bash scripts/stack-checks.sh py-lint",
|
|
84
|
+
"typecheck:py": "bash scripts/stack-checks.sh py-typecheck",
|
|
85
|
+
"lint:sh": "bash scripts/stack-checks.sh sh",
|
|
86
|
+
"check": "pnpm run check:tools && node tools/python-policy.mjs && pnpm run lint && pnpm run lint:py && pnpm run typecheck:py && pnpm run lint:sh && pnpm run typecheck && pnpm test && node tools/harness-matrix.mjs && pnpm run build && pnpm run test:build && pnpm run test:release && pnpm run pack-smoke",
|
|
80
87
|
"prepack": "pnpm run build",
|
|
81
88
|
"prepublishOnly": "pnpm run typecheck && pnpm test && pnpm run test:release"
|
|
82
89
|
},
|
|
83
90
|
"peerDependencies": {
|
|
84
|
-
"@deepseek-ai/cordis": "
|
|
85
|
-
"@deepseek-ai/dsh-commands": "
|
|
86
|
-
"@deepseek-ai/dsh-credentials": "
|
|
87
|
-
"@deepseek-ai/dsh-credentials-local": "
|
|
88
|
-
"@deepseek-ai/dsh-llm": "
|
|
89
|
-
"@deepseek-ai/dsh-llm-pi-ai": "
|
|
90
|
-
"@deepseek-ai/dsh-settings": "
|
|
91
|
-
"@deepseek-ai/dsh-user-questions": "
|
|
92
|
-
"@deepseek-ai/schemastery": "
|
|
93
|
-
"@earendil-works/pi-ai": "
|
|
91
|
+
"@deepseek-ai/cordis": ">=4.0.5 <4.2.0-0",
|
|
92
|
+
"@deepseek-ai/dsh-commands": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
93
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
94
|
+
"@deepseek-ai/dsh-credentials-local": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
95
|
+
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
96
|
+
"@deepseek-ai/dsh-llm-pi-ai": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
97
|
+
"@deepseek-ai/dsh-settings": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
98
|
+
"@deepseek-ai/dsh-user-questions": ">=0.2.1-rc.1 <0.2.2-0 || >=0.2.2-rc.1 <0.2.3-0",
|
|
99
|
+
"@deepseek-ai/schemastery": ">=3.18.5 <3.20.0-0",
|
|
100
|
+
"@earendil-works/pi-ai": ">=1.1.0 <1.5.0-0"
|
|
94
101
|
},
|
|
95
102
|
"peerDependenciesMeta": {
|
|
96
103
|
"@deepseek-ai/dsh-commands": {
|
|
@@ -101,19 +108,22 @@
|
|
|
101
108
|
}
|
|
102
109
|
},
|
|
103
110
|
"devDependencies": {
|
|
104
|
-
"@
|
|
105
|
-
"@deepseek-ai/
|
|
106
|
-
"@deepseek-ai/dsh": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-
|
|
108
|
-
"@deepseek-ai/dsh-credentials
|
|
109
|
-
"@deepseek-ai/dsh-
|
|
110
|
-
"@deepseek-ai/dsh-llm
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/
|
|
114
|
-
"@
|
|
115
|
-
"@
|
|
116
|
-
"
|
|
117
|
-
"
|
|
111
|
+
"@biomejs/biome": "2.6.3",
|
|
112
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
113
|
+
"@deepseek-ai/dsh": "0.2.2-rc.5",
|
|
114
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.5",
|
|
115
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.5",
|
|
116
|
+
"@deepseek-ai/dsh-credentials-local": "0.2.2-rc.5",
|
|
117
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
118
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.2-rc.5",
|
|
119
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.5",
|
|
120
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.5",
|
|
121
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
122
|
+
"@earendil-works/pi-ai": "1.4.0",
|
|
123
|
+
"@types/node": "26.6.5",
|
|
124
|
+
"@types/react": "18.3.31",
|
|
125
|
+
"react": "18.3.1",
|
|
126
|
+
"tsx": "4.23.15",
|
|
127
|
+
"typescript": "7.0.2"
|
|
118
128
|
}
|
|
119
129
|
}
|