@jinn-network/client 0.2.0-canary.77313739 → 0.2.0-canary.775efb4e
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/dist/api/gather-status.d.ts +2 -3
- package/dist/api/gather-status.js +8 -42
- package/dist/api/gather-status.js.map +1 -1
- package/dist/api/setup-endpoints.js +0 -53
- package/dist/api/setup-endpoints.js.map +1 -1
- package/dist/api/status-build.d.ts +3 -27
- package/dist/api/status-build.js.map +1 -1
- package/dist/build-info.json +3 -3
- package/dist/build-meta.json +1 -1
- package/dist/cli/commands/solver-nets.js +4 -17
- package/dist/cli/commands/solver-nets.js.map +1 -1
- package/dist/config.d.ts +0 -45
- package/dist/config.js +0 -55
- package/dist/config.js.map +1 -1
- package/dist/daemon/ai-units-gate.d.ts +7 -7
- package/dist/daemon/ai-units-gate.js +5 -8
- package/dist/daemon/ai-units-gate.js.map +1 -1
- package/dist/dashboard/assets/{index-DZ7_HvCS.js → index-CYfK639p.js} +19 -19
- package/dist/dashboard/index.html +1 -1
- package/dist/harnesses/engine/engine.d.ts +0 -1
- package/dist/harnesses/engine/engine.js +0 -3
- package/dist/harnesses/engine/engine.js.map +1 -1
- package/dist/harnesses/impls/hermes-agent/adapter.js +18 -41
- package/dist/harnesses/impls/hermes-agent/adapter.js.map +1 -1
- package/dist/harnesses/impls/learner/harness.js +0 -1
- package/dist/harnesses/impls/learner/harness.js.map +1 -1
- package/dist/harnesses/impls/learner/types.d.ts +0 -7
- package/dist/harnesses/types.d.ts +0 -1
- package/dist/pilot/arm-homes.js +0 -9
- package/dist/pilot/arm-homes.js.map +1 -1
- package/dist/solver-nets/registry.d.ts +0 -7
- package/dist/solver-nets/registry.js +0 -2
- package/dist/solver-nets/registry.js.map +1 -1
- package/dist/solver-types/_swe-rebench-v2-validated-pool.d.ts +5 -21
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js +13 -24
- package/dist/solver-types/_swe-rebench-v2-validated-pool.js.map +1 -1
- package/dist/solver-types/jinn-repo-auto.d.ts +0 -3
- package/dist/solver-types/jinn-repo-auto.js +3 -6
- package/dist/solver-types/jinn-repo-auto.js.map +1 -1
- package/dist/solver-types/jinn-repo-live-auto.d.ts +0 -3
- package/dist/solver-types/jinn-repo-live-auto.js +3 -6
- package/dist/solver-types/jinn-repo-live-auto.js.map +1 -1
- package/dist/spend/ai-units.d.ts +1 -38
- package/dist/spend/ai-units.js +2 -32
- package/dist/spend/ai-units.js.map +1 -1
- package/dist/store/store.d.ts +0 -14
- package/dist/store/store.js +0 -40
- package/dist/store/store.js.map +1 -1
- package/dist/task-creator/environment/contracts.d.ts +10 -10
- package/package.json +1 -1
- package/dist/harnesses/provider-ref.d.ts +0 -29
- package/dist/harnesses/provider-ref.js +0 -39
- package/dist/harnesses/provider-ref.js.map +0 -1
- package/dist/solver-types/_jinn-repo-posting-window.d.ts +0 -12
- package/dist/solver-types/_jinn-repo-posting-window.js +0 -24
- package/dist/solver-types/_jinn-repo-posting-window.js.map +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// client/src/harnesses/provider-ref.ts
|
|
2
|
-
//
|
|
3
|
-
// Shared, zero-dependency `ProviderRef` shape for routing a harness model
|
|
4
|
-
// through a named provider or a custom OpenAI-compatible endpoint.
|
|
5
|
-
//
|
|
6
|
-
// Lives under `harnesses/` (NOT the SPA tree) so BOTH the server and the SPA
|
|
7
|
-
// can import it — the SPA already cross-imports `harnesses/cost-estimates.js`.
|
|
8
|
-
// It MUST NOT import zod: pulling zod into the SPA bundle is a non-starter. The
|
|
9
|
-
// zod validator lives server-side in `config.ts`; the join endpoint validates
|
|
10
|
-
// the same shape by hand.
|
|
11
|
-
/** The provider name for either form; `undefined` when no ref is set. */
|
|
12
|
-
export function providerRefName(ref) {
|
|
13
|
-
if (ref === undefined)
|
|
14
|
-
return undefined;
|
|
15
|
-
return typeof ref === 'string' ? ref : ref.name;
|
|
16
|
-
}
|
|
17
|
-
/** The custom base URL for the object form; `undefined` otherwise. */
|
|
18
|
-
export function providerRefBaseUrl(ref) {
|
|
19
|
-
if (ref === undefined || typeof ref === 'string')
|
|
20
|
-
return undefined;
|
|
21
|
-
return ref.baseUrl;
|
|
22
|
-
}
|
|
23
|
-
/** The credential env-var name for the object form; `undefined` otherwise. */
|
|
24
|
-
export function providerRefAuthVar(ref) {
|
|
25
|
-
if (ref === undefined || typeof ref === 'string')
|
|
26
|
-
return undefined;
|
|
27
|
-
return ref.authVar;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* OpenRouter model-id shape (`<org>/<model>`). Shared so the load-time backfill
|
|
31
|
-
* (`config.ts`) and the adapter's inference bridge (`hermes-agent/adapter.ts`)
|
|
32
|
-
* stamp/route exactly the same ids without drifting out of sync (issue #1243).
|
|
33
|
-
*/
|
|
34
|
-
export const OPENROUTER_MODEL_FORMAT = /^[a-z0-9_-]+\/[a-z0-9_.\-:]+$/i;
|
|
35
|
-
/** Whether `id` is an OpenRouter-shaped `<org>/<model>` model id. */
|
|
36
|
-
export function isOpenRouterModelId(id) {
|
|
37
|
-
return typeof id === 'string' && OPENROUTER_MODEL_FORMAT.test(id);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=provider-ref.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider-ref.js","sourceRoot":"","sources":["../../src/harnesses/provider-ref.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,EAAE;AACF,0EAA0E;AAC1E,mEAAmE;AACnE,EAAE;AACF,6EAA6E;AAC7E,+EAA+E;AAC/E,gFAAgF;AAChF,8EAA8E;AAC9E,0BAA0B;AAgB1B,yEAAyE;AACzE,MAAM,UAAU,eAAe,CAAC,GAA4B;IAC1D,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACxC,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;AAClD,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,kBAAkB,CAAC,GAA4B;IAC7D,IAAI,GAAG,KAAK,SAAS,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACnE,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC;AAED,8EAA8E;AAC9E,MAAM,UAAU,kBAAkB,CAAC,GAA4B;IAC7D,IAAI,GAAG,KAAK,SAAS,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACnE,OAAO,GAAG,CAAC,OAAO,CAAC;AACrB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,gCAAgC,CAAC;AAExE,qEAAqE;AACrE,MAAM,UAAU,mBAAmB,CAAC,EAAsB;IACxD,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,uBAAuB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Default solve / posting window for jinn-repo.v1 tasks (exactly six hours). */
|
|
2
|
-
export declare const DEFAULT_POSTING_WINDOW_MS: number;
|
|
3
|
-
/**
|
|
4
|
-
* Largest duration Node can schedule without a TimeoutOverflowWarning and
|
|
5
|
-
* clamping the timer to 1 ms (the maximum signed 32-bit integer).
|
|
6
|
-
*/
|
|
7
|
-
export declare const MAX_POSTING_WINDOW_MS = 2147483647;
|
|
8
|
-
/**
|
|
9
|
-
* Resolve an operator-supplied posting window in milliseconds.
|
|
10
|
-
* Omitted / null → default. Present but invalid → throw (never clamp / fall back).
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolvePostingWindowMs(raw: unknown): number;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Default solve / posting window for jinn-repo.v1 tasks (exactly six hours). */
|
|
2
|
-
export const DEFAULT_POSTING_WINDOW_MS = 6 * 60 * 60 * 1000;
|
|
3
|
-
/**
|
|
4
|
-
* Largest duration Node can schedule without a TimeoutOverflowWarning and
|
|
5
|
-
* clamping the timer to 1 ms (the maximum signed 32-bit integer).
|
|
6
|
-
*/
|
|
7
|
-
export const MAX_POSTING_WINDOW_MS = 2_147_483_647;
|
|
8
|
-
/**
|
|
9
|
-
* Resolve an operator-supplied posting window in milliseconds.
|
|
10
|
-
* Omitted / null → default. Present but invalid → throw (never clamp / fall back).
|
|
11
|
-
*/
|
|
12
|
-
export function resolvePostingWindowMs(raw) {
|
|
13
|
-
if (raw === undefined || raw === null) {
|
|
14
|
-
return DEFAULT_POSTING_WINDOW_MS;
|
|
15
|
-
}
|
|
16
|
-
if (typeof raw === 'number' &&
|
|
17
|
-
Number.isSafeInteger(raw) &&
|
|
18
|
-
raw >= DEFAULT_POSTING_WINDOW_MS &&
|
|
19
|
-
raw <= MAX_POSTING_WINDOW_MS) {
|
|
20
|
-
return raw;
|
|
21
|
-
}
|
|
22
|
-
throw new Error(`jinn-repo postingWindowMs must be a safe integer between six hours (${DEFAULT_POSTING_WINDOW_MS} ms) and ${MAX_POSTING_WINDOW_MS} ms, got ${String(raw)}`);
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=_jinn-repo-posting-window.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_jinn-repo-posting-window.js","sourceRoot":"","sources":["../../src/solver-types/_jinn-repo-posting-window.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAEnD;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,GAAY;IACjD,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACtC,OAAO,yBAAyB,CAAC;IACnC,CAAC;IACD,IACE,OAAO,GAAG,KAAK,QAAQ;QACvB,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC;QACzB,GAAG,IAAI,yBAAyB;QAChC,GAAG,IAAI,qBAAqB,EAC5B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM,IAAI,KAAK,CACb,uEAAuE,yBAAyB,YAAY,qBAAqB,YAAY,MAAM,CAAC,GAAG,CAAC,EAAE,CAC3J,CAAC;AACJ,CAAC"}
|