@north-light/cli 0.3.619 → 0.3.620

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.
@@ -12,5 +12,8 @@ export declare function resolveAppRung(endpoint: InferenceEndpoint, requested: s
12
12
  /** Every rung in the order `llm` tries them: the requested rung first, then the declared rungs by distance. */
13
13
  export declare function appCandidates(endpoint: InferenceEndpoint, requested: string | undefined, exact?: boolean): AppRung[];
14
14
  /** The rung an app-paid grant's node runs on for `requested` (RT-RTE-24), or null when the grant is user-paid or
15
- * absent. Every path that chooses a node's model (spawn, `node config --model`) resolves through here. */
15
+ * absent. Every path that chooses a node's model (spawn, `node config --model`) resolves through here.
16
+ * The recipe's model carries a thinking level only when an exact request named it: the broker sends that level as
17
+ * `reasoning_effort`, a requirement on every rung. A strength request records the bare model, so the daemon applies
18
+ * each rung's own level. */
16
19
  export declare function appRungForGrant(grantId: string | null | undefined, requested: string | undefined, exact?: boolean): Promise<AppRung | null>;
@@ -1 +1 @@
1
- var m=Object.defineProperty;var s=(e,r)=>m(e,"name",{value:r,configurable:!0});import{defaultModelLaddersConfig as b}from"../../types.js";import{MODEL_STRENGTHS as w,stripThinkingSuffix as l}from"../runtime/model-selection.js";import{modelTokenStrength as x}from"../runtime/launch.js";import{RunError as u}from"../runs/operations.js";import{grantRecord as O}from"../grants/mirror.js";const o=w;function p(e,r){const t=o.indexOf(r);return o.filter(n=>e.rungs[n]!==void 0).sort((n,i)=>Math.abs(o.indexOf(n)-t)-Math.abs(o.indexOf(i)-t)||o.indexOf(n)-o.indexOf(i)).map(n=>({strength:n,model:e.rungs[n]}))}s(p,"rungsByDistance");function d(e,r){const t=p(e,r)[0];if(t===void 0)throw new u(404,"model_unavailable","the app's inference endpoint declares no rung");return t}s(d,"rungAt");function g(e,r,t=!1){if(r===void 0||r==="")return d(e,"strong");const n=x(r)??void 0;if(n!==void 0)return d(e,n);const i=l(r),f=o.find(a=>e.rungs[a]===i);if(f!==void 0)return{strength:f,model:`${e.rungs[f]}${t?r.slice(i.length):""}`};if(t)throw new u(400,"substitution_refused",`model '${r}' is not one of this app's inference rungs`);const c=b(),h=[...Object.entries(c.anthropic),...Object.entries(c.openai)].find(([,a])=>l(a)===i);return d(e,h?.[0]??"strong")}s(g,"resolveAppRung");function $(e,r,t=!1){const n=g(e,r,t);if(t)return[n];const i=p(e,n.strength).filter(f=>f.strength!==n.strength);return[n,...i]}s($,"appCandidates");async function v(e,r,t=!1){const n=e?await O(e):null;if(n?.payer!=="app")return null;if(!n.inference_endpoint)throw new u(404,"model_unavailable",`${n.grantee} is app-paid but its grant carries no inference endpoint`);return g(n.inference_endpoint,r,t)}s(v,"appRungForGrant");export{$ as appCandidates,v as appRungForGrant,g as resolveAppRung,d as rungAt};
1
+ var h=Object.defineProperty;var s=(e,r)=>h(e,"name",{value:r,configurable:!0});import{defaultModelLaddersConfig as b}from"../../types.js";import{MODEL_STRENGTHS as w,stripThinkingSuffix as u}from"../runtime/model-selection.js";import{modelTokenStrength as O}from"../runtime/launch.js";import{RunError as d}from"../runs/operations.js";import{grantRecord as x}from"../grants/mirror.js";const o=w;function p(e,r){const t=o.indexOf(r);return o.filter(n=>e.rungs[n]!==void 0).sort((n,i)=>Math.abs(o.indexOf(n)-t)-Math.abs(o.indexOf(i)-t)||o.indexOf(n)-o.indexOf(i)).map(n=>({strength:n,model:e.rungs[n]}))}s(p,"rungsByDistance");function l(e,r){const t=p(e,r)[0];if(t===void 0)throw new d(404,"model_unavailable","the app's inference endpoint declares no rung");return t}s(l,"rungAt");function g(e,r,t=!1){if(r===void 0||r==="")return l(e,"strong");const n=O(r)??void 0;if(n!==void 0)return l(e,n);const i=u(r),f=o.find(a=>e.rungs[a]===i);if(f!==void 0)return{strength:f,model:`${e.rungs[f]}${t?r.slice(i.length):""}`};if(t)throw new d(400,"substitution_refused",`model '${r}' is not one of this app's inference rungs`);const c=b(),m=[...Object.entries(c.anthropic),...Object.entries(c.openai)].find(([,a])=>u(a)===i);return l(e,m?.[0]??"strong")}s(g,"resolveAppRung");function $(e,r,t=!1){const n=g(e,r,t);if(t)return[n];const i=p(e,n.strength).filter(f=>f.strength!==n.strength);return[n,...i]}s($,"appCandidates");async function v(e,r,t=!1){const n=e?await x(e):null;if(n?.payer!=="app")return null;if(!n.inference_endpoint)throw new d(404,"model_unavailable",`${n.grantee} is app-paid but its grant carries no inference endpoint`);const i=g(n.inference_endpoint,r,t);return t?i:{...i,model:u(i.model)}}s(v,"appRungForGrant");export{$ as appCandidates,v as appRungForGrant,g as resolveAppRung,l as rungAt};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/cli",
3
- "version": "0.3.619",
3
+ "version": "0.3.620",
4
4
  "description": "crtr — agent runtime with memory, plugins, and marketplaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -145,7 +145,7 @@
145
145
  },
146
146
  "license": "UNLICENSED",
147
147
  "dependencies": {
148
- "@north-light/identity": "0.3.619",
148
+ "@north-light/identity": "0.3.620",
149
149
  "@earendil-works/chord": "1.1.0",
150
150
  "@earendil-works/pi-agent-core": "1.1.0",
151
151
  "@earendil-works/pi-ai": "1.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/identity",
3
- "version": "0.3.619",
3
+ "version": "0.3.620",
4
4
  "description": "Northlight access-token verification and scope rules",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/runtime.lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@north-light/cli",
3
- "version": "0.3.619",
3
+ "version": "0.3.620",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@north-light/cli",
9
- "version": "0.3.619",
9
+ "version": "0.3.620",
10
10
  "hasInstallScript": true,
11
11
  "license": "UNLICENSED",
12
12
  "workspaces": [
@@ -28,7 +28,7 @@
28
28
  "@milkdown/preset-gfm": "^7.22.3",
29
29
  "@milkdown/prose": "^7.22.3",
30
30
  "@milkdown/utils": "^7.22.3",
31
- "@north-light/identity": "0.3.619",
31
+ "@north-light/identity": "0.3.620",
32
32
  "cron-parser": "^5.6.0",
33
33
  "esbuild": "^0.27.7",
34
34
  "jose": "^6.2.12",
@@ -11956,17 +11956,17 @@
11956
11956
  },
11957
11957
  "packages/crouter-api": {
11958
11958
  "name": "@north-light/api",
11959
- "version": "0.3.619",
11959
+ "version": "0.3.620",
11960
11960
  "license": "UNLICENSED"
11961
11961
  },
11962
11962
  "packages/crouter-env-docker": {
11963
11963
  "name": "@north-light/env-docker",
11964
- "version": "0.3.619",
11964
+ "version": "0.3.620",
11965
11965
  "license": "UNLICENSED"
11966
11966
  },
11967
11967
  "packages/crouter-identity": {
11968
11968
  "name": "@north-light/identity",
11969
- "version": "0.3.619",
11969
+ "version": "0.3.620",
11970
11970
  "license": "UNLICENSED",
11971
11971
  "dependencies": {
11972
11972
  "jose": "^6.2.1"
@@ -11974,21 +11974,21 @@
11974
11974
  },
11975
11975
  "packages/crouter-plugin": {
11976
11976
  "name": "@north-light/plugin",
11977
- "version": "0.3.619",
11977
+ "version": "0.3.620",
11978
11978
  "license": "UNLICENSED",
11979
11979
  "dependencies": {
11980
- "@north-light/api": "0.3.619",
11981
- "@north-light/identity": "0.3.619"
11980
+ "@north-light/api": "0.3.620",
11981
+ "@north-light/identity": "0.3.620"
11982
11982
  }
11983
11983
  },
11984
11984
  "packages/crouter-sdk": {
11985
11985
  "name": "@north-light/sdk",
11986
- "version": "0.3.619",
11986
+ "version": "0.3.620",
11987
11987
  "license": "UNLICENSED",
11988
11988
  "dependencies": {
11989
- "@north-light/api": "0.3.619",
11990
- "@north-light/identity": "0.3.619",
11991
- "@north-light/plugin": "0.3.619",
11989
+ "@north-light/api": "0.3.620",
11990
+ "@north-light/identity": "0.3.620",
11991
+ "@north-light/plugin": "0.3.620",
11992
11992
  "jose": "^6.2.1"
11993
11993
  },
11994
11994
  "bin": {