dsh-super-code 0.0.9 → 0.1.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,4 +1,3 @@
1
- /** Host-scoped projections only; execution and model selection belong to Harness. */
2
1
  import type { Context } from '@deepseek-ai/cordis';
3
2
  export declare const name = "super-code";
4
3
  export declare function apply(ctx: Context): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,eAAO,MAAM,IAAI,eAAe,CAAA;AAEhC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAKxC;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,eAAO,MAAM,IAAI,eAAe,CAAA;AAEhC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAMxC;AAED,eAAe,KAAK,CAAA"}
package/lib/dsh/index.js CHANGED
@@ -1,7 +1,10 @@
1
+ /** Host projections and preset installation; execution belongs to Harness. */
2
+ import { applyPresetInstallation } from './preset-installation.js';
1
3
  import { superAgentUsageProjectionDefinition } from '../super-agent-usage.js';
2
4
  import { taskMemoryProjection } from '../task-memory-projection.js';
3
5
  export const name = 'super-code';
4
6
  export function apply(ctx) {
7
+ applyPresetInstallation(ctx);
5
8
  ctx.inject(['sessionProjections'], projectionCtx => {
6
9
  projectionCtx.sessionProjections.register(superAgentUsageProjectionDefinition);
7
10
  projectionCtx.sessionProjections.register(taskMemoryProjection);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAA;AAEhC,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,GAAG,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,EAAE;QACjD,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;QAC9E,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dsh/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAElE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG,YAAY,CAAA;AAEhC,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,uBAAuB,CAAC,GAAG,CAAC,CAAA;IAC5B,GAAG,CAAC,MAAM,CAAC,CAAC,oBAAoB,CAAC,EAAE,aAAa,CAAC,EAAE;QACjD,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;QAC9E,aAAa,CAAC,kBAAkB,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,43 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import { type AgentPresets } from '@deepseek-ai/dsh-agent-presets';
3
+ import type { SettingsScope } from '@deepseek-ai/dsh-settings';
4
+ import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
5
+ interface InstallationSettings {
6
+ checked: boolean;
7
+ installedId: string;
8
+ }
9
+ export interface PresetInstallationStatus {
10
+ state: 'available' | 'installed' | 'conflict' | 'missing' | 'broken';
11
+ id: string;
12
+ authorable: boolean;
13
+ userConflict: boolean;
14
+ }
15
+ export interface PresetInstallationResult {
16
+ ok: boolean;
17
+ status: PresetInstallationStatus;
18
+ error?: 'invalid-name' | 'name-taken' | 'no-user-root' | 'install-failed';
19
+ }
20
+ /** Serialized writes protect double clicks; mkdir claims only an unoccupied name. */
21
+ export declare class PresetInstaller {
22
+ private readonly roster;
23
+ private readonly settings;
24
+ private readonly bundledRoot;
25
+ private readonly baseUrl;
26
+ private tail;
27
+ constructor(roster: Pick<AgentPresets, 'list' | 'roots'>, settings: SettingsScope<InstallationSettings>, bundledRoot?: string, baseUrl?: string);
28
+ status(): Promise<PresetInstallationStatus>;
29
+ initialize(): Promise<void>;
30
+ install(id: unknown): Promise<PresetInstallationResult>;
31
+ private occupied;
32
+ private installNow;
33
+ private enqueue;
34
+ }
35
+ export declare class SuperCodePresets extends TypertRemoteService {
36
+ private readonly installer;
37
+ constructor(ctx: Context, installer: PresetInstaller);
38
+ status(): Promise<PresetInstallationStatus>;
39
+ installPreset(id: unknown): Promise<PresetInstallationResult>;
40
+ }
41
+ export declare function applyPresetInstallation(ctx: Context): void;
42
+ export {};
43
+ //# sourceMappingURL=preset-installation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-installation.d.ts","sourceRoot":"","sources":["../../src/dsh/preset-installation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAkD,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAClH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAU,mBAAmB,EAAE,MAAM,kC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CAAC,wBAAwB,CAAC;IAE3C,aAAa,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAC9D;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAY1D"}
@@ -0,0 +1,193 @@
1
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
2
+ var useValue = arguments.length > 2;
3
+ for (var i = 0; i < initializers.length; i++) {
4
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
5
+ }
6
+ return useValue ? value : void 0;
7
+ };
8
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
9
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
10
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
11
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
12
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
13
+ var _, done = false;
14
+ for (var i = decorators.length - 1; i >= 0; i--) {
15
+ var context = {};
16
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
17
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
18
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
19
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
20
+ if (kind === "accessor") {
21
+ if (result === void 0) continue;
22
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
23
+ if (_ = accept(result.get)) descriptor.get = _;
24
+ if (_ = accept(result.set)) descriptor.set = _;
25
+ if (_ = accept(result.init)) initializers.unshift(_);
26
+ }
27
+ else if (_ = accept(result)) {
28
+ if (kind === "field") initializers.unshift(_);
29
+ else descriptor[key] = _;
30
+ }
31
+ }
32
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
33
+ done = true;
34
+ };
35
+ /** Host-only preset discovery repair; never part of a model's tool surface. */
36
+ import { cp, lstat, mkdir, mkdtemp, readdir, rm } from 'node:fs/promises';
37
+ import { join, resolve } from 'node:path';
38
+ import { fileURLToPath, pathToFileURL } from 'node:url';
39
+ import s from '@deepseek-ai/schemastery';
40
+ import { copyComposition, discoverPresets, writableRoot } from '@deepseek-ai/dsh-agent-presets';
41
+ import { Remote, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
42
+ const sourceRoot = fileURLToPath(new URL('../../presets/', import.meta.url));
43
+ const validId = /^[a-z0-9][a-z0-9-]{0,63}$/;
44
+ async function exists(path) {
45
+ try {
46
+ await lstat(path);
47
+ return true;
48
+ }
49
+ catch (error) {
50
+ if (error.code === 'ENOENT')
51
+ return false;
52
+ throw error;
53
+ }
54
+ }
55
+ /** Serialized writes protect double clicks; mkdir claims only an unoccupied name. */
56
+ export class PresetInstaller {
57
+ roster;
58
+ settings;
59
+ bundledRoot;
60
+ baseUrl;
61
+ tail = Promise.resolve();
62
+ constructor(roster, settings, bundledRoot = sourceRoot, baseUrl = pathToFileURL(bundledRoot).href) {
63
+ this.roster = roster;
64
+ this.settings = settings;
65
+ this.bundledRoot = bundledRoot;
66
+ this.baseUrl = baseUrl;
67
+ }
68
+ async status() {
69
+ const savedId = this.settings.get().installedId;
70
+ const id = validId.test(savedId) ? savedId : 'super-code';
71
+ const presets = await this.roster.list();
72
+ const preset = presets.find(row => row.id === id);
73
+ const authorable = this.roster.roots.some(root => root.trust === 'user');
74
+ const occupied = await this.occupied(id);
75
+ const userConflict = occupied && this.settings.get().installedId !== id;
76
+ if (preset) {
77
+ const owned = preset.trust === 'system' && resolve(preset.path) === join(this.bundledRoot, 'super-code', 'agent.cordis.yml');
78
+ return { id, authorable, userConflict, state: preset.broken ? 'broken' : owned ? 'available'
79
+ : preset.trust === 'user' && this.settings.get().installedId === id ? 'installed' : 'conflict' };
80
+ }
81
+ return { id, authorable, userConflict, state: occupied ? 'conflict' : 'missing' };
82
+ }
83
+ async initialize() {
84
+ await this.enqueue(async () => {
85
+ if (this.settings.get().checked)
86
+ return;
87
+ const status = await this.status();
88
+ // Persist intent first: a failure or subsequent user deletion must not
89
+ // trigger a new filesystem write on every host restart.
90
+ await this.settings.update({ checked: true });
91
+ if (status.state === 'missing' && status.authorable)
92
+ await this.installNow('super-code');
93
+ });
94
+ }
95
+ async install(id) {
96
+ return await this.enqueue(() => this.installNow(id));
97
+ }
98
+ async occupied(id) {
99
+ for (const root of this.roster.roots.filter(root => root.trust === 'user')) {
100
+ if (await exists(join(writableRoot([root], id), id)))
101
+ return true;
102
+ }
103
+ return false;
104
+ }
105
+ async installNow(value) {
106
+ const reject = async (error) => ({ ok: false, error, status: await this.status() });
107
+ if (typeof value !== 'string' || !validId.test(value))
108
+ return reject('invalid-name');
109
+ const id = value;
110
+ if (!this.roster.roots.some(root => root.trust === 'user'))
111
+ return reject('no-user-root');
112
+ if ((await this.roster.list()).some(row => row.id === id) || await this.occupied(id))
113
+ return reject('name-taken');
114
+ let staging = '';
115
+ let claimed = false;
116
+ const target = join(writableRoot(this.roster.roots, id), id);
117
+ try {
118
+ const source = (await discoverPresets([{ path: this.bundledRoot, trust: 'system' }], this.baseUrl))
119
+ .find(preset => preset.id === 'super-code' && !preset.broken);
120
+ if (!source)
121
+ throw new Error('Bundled super-code preset unavailable');
122
+ const root = writableRoot(this.roster.roots, id);
123
+ await mkdir(root, { recursive: true, mode: 0o700 });
124
+ staging = await mkdtemp(join(root, '.super-code-install-'));
125
+ // The host copy helper can clean up its destination on failure. Isolate
126
+ // it from user-owned paths, then exclusively claim the final directory.
127
+ const prepared = await copyComposition([{ path: staging, trust: 'user' }], source, id, id);
128
+ await mkdir(target, { mode: 0o700 });
129
+ claimed = true;
130
+ for (const entry of await readdir(prepared)) {
131
+ await cp(join(prepared, entry), join(target, entry), { recursive: true, force: false, errorOnExist: true });
132
+ }
133
+ await this.settings.update({ checked: true, installedId: id });
134
+ claimed = false;
135
+ return { ok: true, status: await this.status() };
136
+ }
137
+ catch (error) {
138
+ if (claimed)
139
+ await rm(target, { recursive: true, force: true });
140
+ return reject(error.code === 'EEXIST' ? 'name-taken' : 'install-failed');
141
+ }
142
+ finally {
143
+ if (staging)
144
+ await rm(staging, { recursive: true, force: true });
145
+ }
146
+ }
147
+ enqueue(run) {
148
+ const next = this.tail.then(run);
149
+ this.tail = next.catch(() => { });
150
+ return next;
151
+ }
152
+ }
153
+ let SuperCodePresets = (() => {
154
+ let _classSuper = TypertRemoteService;
155
+ let _instanceExtraInitializers = [];
156
+ let _status_decorators;
157
+ let _installPreset_decorators;
158
+ return class SuperCodePresets extends _classSuper {
159
+ static {
160
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
161
+ _status_decorators = [Remote];
162
+ _installPreset_decorators = [Remote];
163
+ __esDecorate(this, null, _status_decorators, { kind: "method", name: "status", static: false, private: false, access: { has: obj => "status" in obj, get: obj => obj.status }, metadata: _metadata }, null, _instanceExtraInitializers);
164
+ __esDecorate(this, null, _installPreset_decorators, { kind: "method", name: "installPreset", static: false, private: false, access: { has: obj => "installPreset" in obj, get: obj => obj.installPreset }, metadata: _metadata }, null, _instanceExtraInitializers);
165
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
166
+ }
167
+ installer = __runInitializers(this, _instanceExtraInitializers);
168
+ constructor(ctx, installer) {
169
+ super(ctx, 'superCodePresets');
170
+ this.installer = installer;
171
+ }
172
+ status() { return this.installer.status(); }
173
+ installPreset(id) { return this.installer.install(id); }
174
+ };
175
+ })();
176
+ export { SuperCodePresets };
177
+ export function applyPresetInstallation(ctx) {
178
+ ctx.inject(['agentPresets', 'settings'], async (owner) => {
179
+ const settings = owner.settings.register('super-code', s.object({
180
+ checked: s.boolean().default(false),
181
+ installedId: s.string().default(''),
182
+ }));
183
+ const installer = new PresetInstaller(owner.agentPresets, settings, sourceRoot, owner.baseUrl);
184
+ new SuperCodePresets(owner, installer);
185
+ try {
186
+ await installer.initialize();
187
+ }
188
+ catch {
189
+ owner.logger.warn('Super Code preset installation unavailable; retry in plugin settings.');
190
+ }
191
+ });
192
+ }
193
+ //# sourceMappingURL=preset-installation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-installation.js","sourceRoot":"","sources":["../../src/dsh/preset-installation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+EAA+E;AAC/E,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAEvD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAqB,MAAM,gCAAgC,CAAA;AAElH,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAiB9E,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAC5E,MAAM,OAAO,GAAG,2BAA2B,CAAA;AAE3C,KAAK,UAAU,MAAM,CAAC,IAAY;IAChC,IAAI,CAAC;QAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;QAAC,OAAO,IAAI,CAAA;IAAC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACpD,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACpE,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC;AAED,qFAAq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kBAAkB,CAAC,CAAA;YAC9B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC5B,CAAC;QAED,MAAM,KAAwC,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAA,CAAC,CAAC;QAE9E,aAAa,CAAC,EAAW,IAAuC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC;;;SATxF,gBAAgB;AAY7B,MAAM,UAAU,uBAAuB,CAAC,GAAY;IAClD,GAAG,CAAC,MAAM,CAAC,CAAC,cAAc,EAAE,UAAU,CAAC,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE;QACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;YAC9D,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;YACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;SACpC,CAAC,CAAC,CAAA;QACH,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;QAC9F,IAAI,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;QACtC,IAAI,CAAC;YAAC,MAAM,SAAS,CAAC,UAAU,EAAE,CAAA;QAAC,CAAC;QAAC,MAAM,CAAC;YAC1C,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,uEAAuE,CAAC,CAAA;QAC5F,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-super-code",
3
- "version": "0.0.9",
3
+ "version": "0.1.1",
4
4
  "description": "One super-code preset with specialist teams and durable task memory for DeepSeek Harness.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -46,21 +46,20 @@
46
46
  "zod": "^4.4.3"
47
47
  },
48
48
  "peerDependencies": {
49
- "@deepseek-ai/dsh-agent": "^0.1.5-rc.2",
50
- "@deepseek-ai/dsh-agent-presets": "^0.1.5-rc.2",
49
+ "@deepseek-ai/dsh-agent": "^0.1.5-rc.1",
50
+ "@deepseek-ai/dsh-agent-presets": "^0.1.5-rc.1",
51
51
  "@deepseek-ai/cordis": "^4.0.2",
52
- "@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
53
- "@deepseek-ai/dsh-session": "^0.1.5-rc.2",
54
- "@deepseek-ai/dsh-session-projection": "^0.1.5-rc.2",
55
- "@deepseek-ai/dsh-scope": "^0.1.5-rc.2",
56
- "@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.2",
57
- "@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
58
- "@deepseek-ai/schemastery": "^3.18.2"
52
+ "@deepseek-ai/dsh-llm": "^0.1.5-rc.1",
53
+ "@deepseek-ai/dsh-session": "^0.1.5-rc.1",
54
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-rc.1",
55
+ "@deepseek-ai/dsh-scope": "^0.1.5-rc.1",
56
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.1",
57
+ "@deepseek-ai/dsh-tools": "^0.1.5-rc.1",
58
+ "@deepseek-ai/schemastery": "^3.18.2",
59
+ "@deepseek-ai/dsh-settings": "^0.1.5-rc.1",
60
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.1"
59
61
  },
60
62
  "peerDependenciesMeta": {
61
- "@deepseek-ai/dsh-agent-presets": {
62
- "optional": true
63
- },
64
63
  "@deepseek-ai/cordis": {
65
64
  "optional": true
66
65
  },
@@ -78,8 +77,7 @@
78
77
  "typecheck": "tsc -p tsconfig.json --noEmit",
79
78
  "test": "tsx --test test/**/*.test.ts",
80
79
  "pack:check": "npm pack --dry-run",
81
- "eval:super-code": "node lib/evaluate.js",
82
- "provider:health": "node eval/runners/provider-health.mjs"
80
+ "eval:super-code": "node lib/evaluate.js"
83
81
  },
84
82
  "engines": {
85
83
  "node": ">=22"