@north-light/cli 0.3.787 → 0.3.788
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/contract.d.ts +1 -1
- package/dist/api/contract.js +1 -1
- package/dist/builtin-memory/crouter-sdk/release-notes.md +6 -0
- package/dist/core/runtime/runner/blaxel/client.js +1 -1
- package/dist/core/storage/shares.d.ts +12 -4
- package/dist/core/storage/shares.js +1 -1
- package/dist/daemon/api/handlers/transfer.js +1 -1
- package/docs/sdk/release-notes.md +6 -0
- package/package.json +3 -3
- package/packages/crouter-api/dist/api/contract.js +1 -1
- package/packages/crouter-api/package.json +1 -1
- package/packages/crouter-identity/package.json +1 -1
- package/packages/crouter-plugin/package.json +3 -3
- package/runtime.lock.json +14 -14
package/dist/api/contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
|
|
2
|
-
export declare const CONTRACT_LEVEL = "1.
|
|
2
|
+
export declare const CONTRACT_LEVEL = "1.88";
|
|
3
3
|
/** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
|
|
4
4
|
export declare const REQUIRED_CONTRACT_HEADER = "Crouter-Required-Contract";
|
|
5
5
|
/** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
|
package/dist/api/contract.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var e=(r,t)=>c(r,"name",{value:t,configurable:!0});const f="1.
|
|
1
|
+
var c=Object.defineProperty;var e=(r,t)=>c(r,"name",{value:t,configurable:!0});const f="1.88",i="Crouter-Required-Contract",p="Crouter-Contract";function l(r){const t=/^(\d+)\.(\d+)$/.exec(r.trim());return t===null?null:{major:Number(t[1]),minor:Number(t[2])}}e(l,"parseContractLevel");function a(r){return r==null?[]:r.split(",").map(t=>l(t)).filter(t=>t!==null)}e(a,"parseServedContracts");function s(r,t){const n=l(r);return n===null?!1:(typeof t=="string"||t===null||t===void 0?a(t):t).some(u=>u.major===n.major&&u.minor>=n.minor)}e(s,"contractSatisfies");function C(r,t,n={}){if(r===void 0)return null;if(l(r)===null)return{status:400,code:"invalid_request",param:i,message:`${i} must be a contract level like 1.0.`};if(s(r,t))return null;const o=r.trim();return{status:426,code:"runtime_version_unsupported",message:t===null||a(t).length===0?`The runtime did not name its contract level; the caller requires contract ${o} or later. Roll the runtime forward.`:`The runtime serves contract ${t}; the caller requires contract ${o} or later within the same major. Roll the runtime forward, or pin an SDK whose crouterContract the runtime serves.`,details:{sdk_version:(n.legacyMinimum??"").trim(),runtime_version:n.runtimeVersion??null,required_contract:o,runtime_contract:t}}}e(C,"contractRefusal");export{p as CONTRACT_HEADER,f as CONTRACT_LEVEL,i as REQUIRED_CONTRACT_HEADER,C as contractRefusal,s as contractSatisfies,l as parseContractLevel,a as parseServedContracts};
|
|
@@ -9,6 +9,12 @@ when-and-why-to-read: When you need Release notes, this knowledge should be read
|
|
|
9
9
|
|
|
10
10
|
Changes to `@north-light/sdk` that can change what an existing app sees. Newest first.
|
|
11
11
|
|
|
12
|
+
## 0.3.788
|
|
13
|
+
|
|
14
|
+
### `shares.create({ upload_id })` shares an upload your app made
|
|
15
|
+
|
|
16
|
+
`shares.create` takes exactly one of `file_id` or `upload_id`. `upload_id` is the id `uploads.create` returned, after you PUT the bytes. The share is a copy at a public URL; the upload itself stays private to your app. Another app's, another person's or an unknown upload id is `404 not_found`; both or neither id is `400 invalid_request`.
|
|
17
|
+
|
|
12
18
|
## 0.3.783
|
|
13
19
|
|
|
14
20
|
### Every limit refusal carries `details.payment`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var $=Object.defineProperty;var p=(s,i)=>$(s,"name",{value:i,configurable:!0});function h(s=process.env){const i=p(a=>{const u=s[a];if(!u)throw new Error(`${a} is required for the Blaxel runner`);return u},"need");return{apiKey:i("BLAXEL_API_KEY"),workspace:i("BLAXEL_WORKSPACE"),region:i("BLAXEL_REGION")}}p(h,"blaxelConfigFromEnv");class m extends Error{static{p(this,"BlaxelApiError")}status;code;constructor(i,a,u){super(u),this.status=i,this.code=a,this.name="BlaxelApiError"}}const A=p(s=>s instanceof m&&s.status===404&&s.code==="WORKLOAD_UNAVAILABLE","isWorkloadUnavailable");function x(s){const i=s.metadata.url;if(!i)throw new Error(`Blaxel sandbox ${s.metadata.name} has no url`);return{name:s.metadata.name,url:i,state:s.state??null,status:s.status??null,image:s.spec?.runtime?.image??null}}p(x,"toInfo");function y(s,i){const a=s??{},u=typeof a.error=="object"&&a.error!==null?a.error:{},c=typeof u.code=="string"?u.code:typeof a.code=="string"?a.code:null,l=[u.message,a.message,a.error].find(e=>typeof e=="string")??i.slice(0,300);return{code:c,message:l}}p(y,"errorFields");function T(s){const i=s.fetch??fetch,a=s.controlUrl??"https://api.blaxel.ai/v0",u=p(()=>({authorization:`Bearer ${s.apiKey}`,"x-blaxel-workspace":s.workspace,"content-type":"application/json"}),"headers");async function c(e,t,o,r=[]){const n=await i(e,{method:t,headers:u(),...o===void 0?{}:{body:JSON.stringify(o)}}),f=await n.text();let d=null;if(f!=="")try{d=JSON.parse(f)}catch{d={raw:f}}if(!n.ok){const{code:w,message:E}=y(d,f);if(n.status===404&&w==="WORKLOAD_UNAVAILABLE"||!r.includes(n.status))throw new m(n.status,w,`Blaxel ${t} ${e} failed (${n.status}): ${E}`)}return{status:n.status,json:d}}p(c,"call");const l=encodeURIComponent;return{config:s,async createSandbox(e){const t=[...e.ports??[]].map(n=>({name:n.name,target:n.target,protocol:"HTTP"})),o={metadata:{name:e.name},spec:{runtime:{image:e.image,memory:e.memoryMb,...t.length>0?{ports:t}:{}},region:s.region,lifecycle:{expirationPolicies:[{type:"ttl-idle",value:"
|
|
1
|
+
var $=Object.defineProperty;var p=(s,i)=>$(s,"name",{value:i,configurable:!0});function h(s=process.env){const i=p(a=>{const u=s[a];if(!u)throw new Error(`${a} is required for the Blaxel runner`);return u},"need");return{apiKey:i("BLAXEL_API_KEY"),workspace:i("BLAXEL_WORKSPACE"),region:i("BLAXEL_REGION")}}p(h,"blaxelConfigFromEnv");class m extends Error{static{p(this,"BlaxelApiError")}status;code;constructor(i,a,u){super(u),this.status=i,this.code=a,this.name="BlaxelApiError"}}const A=p(s=>s instanceof m&&s.status===404&&s.code==="WORKLOAD_UNAVAILABLE","isWorkloadUnavailable");function x(s){const i=s.metadata.url;if(!i)throw new Error(`Blaxel sandbox ${s.metadata.name} has no url`);return{name:s.metadata.name,url:i,state:s.state??null,status:s.status??null,image:s.spec?.runtime?.image??null}}p(x,"toInfo");function y(s,i){const a=s??{},u=typeof a.error=="object"&&a.error!==null?a.error:{},c=typeof u.code=="string"?u.code:typeof a.code=="string"?a.code:null,l=[u.message,a.message,a.error].find(e=>typeof e=="string")??i.slice(0,300);return{code:c,message:l}}p(y,"errorFields");function T(s){const i=s.fetch??fetch,a=s.controlUrl??"https://api.blaxel.ai/v0",u=p(()=>({authorization:`Bearer ${s.apiKey}`,"x-blaxel-workspace":s.workspace,"content-type":"application/json"}),"headers");async function c(e,t,o,r=[]){const n=await i(e,{method:t,headers:u(),...o===void 0?{}:{body:JSON.stringify(o)}}),f=await n.text();let d=null;if(f!=="")try{d=JSON.parse(f)}catch{d={raw:f}}if(!n.ok){const{code:w,message:E}=y(d,f);if(n.status===404&&w==="WORKLOAD_UNAVAILABLE"||!r.includes(n.status))throw new m(n.status,w,`Blaxel ${t} ${e} failed (${n.status}): ${E}`)}return{status:n.status,json:d}}p(c,"call");const l=encodeURIComponent;return{config:s,async createSandbox(e){const t=[...e.ports??[]].map(n=>({name:n.name,target:n.target,protocol:"HTTP"})),o={metadata:{name:e.name},spec:{runtime:{image:e.image,memory:e.memoryMb,...t.length>0?{ports:t}:{}},region:s.region,lifecycle:{expirationPolicies:[{type:"ttl-idle",value:"1d",action:"delete"}]}}},r=Date.now()+(s.deletingWaitMs??6e4);for(;;){const{status:n,json:f}=await c(`${a}/sandboxes`,"POST",o,[409]);if(n!==409)return{...x(f),created:!0};const d=await this.getSandbox(e.name);if(d!==null)return{...d,created:!1};if(Date.now()>=r)throw new Error(`Blaxel sandbox ${e.name} is still being deleted; its name did not free in time`);await new Promise(w=>setTimeout(w,1e3))}},async getSandbox(e){const{status:t,json:o}=await c(`${a}/sandboxes/${l(e)}`,"GET",void 0,[404]);if(t===404)return null;const r=o;return r.status==="DELETING"||r.status==="TERMINATED"?null:x(r)},async deleteSandbox(e){await c(`${a}/sandboxes/${l(e)}`,"DELETE",void 0,[404])},async startProcess(e,t){const{json:o}=await c(`${e.url}/process`,"POST",t);return o},async getProcess(e,t){const{status:o,json:r}=await c(`${e.url}/process/${l(t)}`,"GET",void 0,[404]);return o===404?null:r},async stopProcess(e,t){await c(`${e.url}/process/${l(t)}`,"DELETE",void 0,[404])},async killProcess(e,t){await c(`${e.url}/process/${l(t)}/kill`,"DELETE",void 0,[404])},async exec(e,t,o,r,n){return await this.startProcess(e,{name:t,command:o,waitForCompletion:!0,timeout:r,...n?{env:n}:{}})},async putFile(e,t,o,r="0644"){await c(`${e.url}/filesystem/${t.replace(/^\/+/,"").split("/").map(l).join("/")}`,"PUT",{content:o,permissions:r})},async ensurePreview(e,t,o){const{json:r}=await c(`${a}/sandboxes/${l(e)}/previews`,"POST",{metadata:{name:t},spec:{port:o,public:!1}},[409]),n=r?.spec?.url;if(n)return n;const d=(await c(`${a}/sandboxes/${l(e)}/previews`,"GET")).json.find(w=>w.metadata.name===t);if(!d)throw new Error(`Blaxel preview ${t} of ${e} not found`);return d.spec.url},async createPreviewToken(e,t,o){const{json:r}=await c(`${a}/sandboxes/${l(e)}/previews/${l(t)}/tokens`,"POST",{spec:{expiresAt:o.toISOString()}}),n=r.spec;return{token:n.token,expiresAt:n.expiresAt}},async deletePreview(e,t){await c(`${a}/sandboxes/${l(e)}/previews/${l(t)}`,"DELETE",void 0,[404])}}}p(T,"createBlaxelClient");export{m as BlaxelApiError,h as blaxelConfigFromEnv,T as createBlaxelClient,A as isWorkloadUnavailable};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type FileRow } from './tables.js';
|
|
2
1
|
export interface ShareView {
|
|
3
2
|
share_id: string;
|
|
4
3
|
url: string;
|
|
@@ -8,9 +7,18 @@ export interface ShareView {
|
|
|
8
7
|
expires_at: string | null;
|
|
9
8
|
status: 'on' | 'off';
|
|
10
9
|
}
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/** A stored object a share copies: a handed-over file (`file_id`) or an app's own upload (`upload_id`); its bytes are the storage upload with the same id. */
|
|
11
|
+
export interface ShareSource {
|
|
12
|
+
kind: 'file' | 'upload';
|
|
13
|
+
id: string;
|
|
14
|
+
grantee: string;
|
|
15
|
+
name: string;
|
|
16
|
+
media_type: string;
|
|
17
|
+
size: number;
|
|
18
|
+
}
|
|
19
|
+
/** `share.create {file_id | upload_id}` for a handed-over file or an app's own upload: copy the stored object into a new share object, streaming it through this server without touching
|
|
20
|
+
* its disk. The caller has already checked the source is its own and complete. The row is inserted only once storage holds the bytes. */
|
|
21
|
+
export declare function createShareFromSource(file: ShareSource, person: string | undefined, input: {
|
|
14
22
|
expires_at?: unknown;
|
|
15
23
|
}): Promise<{
|
|
16
24
|
share_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var h=Object.defineProperty;var s=(e,t)=>h(e,"name",{value:t,configurable:!0});import{Readable as
|
|
1
|
+
var h=Object.defineProperty;var s=(e,t)=>h(e,"name",{value:t,configurable:!0});import{Readable as p}from"node:stream";import{RunError as o}from"../runs/operations.js";import{storageClient as c,StorageRefused as f}from"./client.js";import{getShare as l,insertShare as m,listShares as w,markShareObjectDeleted as S,turnShareOff as b}from"./tables.js";const _=s(e=>new o(503,"storage_unavailable",e,void 0,void 0,void 0,!0),"unavailable");async function y(e,t,i,n){let a;try{a=await fetch(e,{method:"PUT",signal:AbortSignal.timeout(11e4),headers:{"Content-Type":n,"Content-Length":String(i)},body:p.toWeb(t),duplex:"half"})}catch(r){throw _(`storage could not be reached: ${r instanceof Error?r.message:String(r)}`)}finally{t.destroy()}if(await a.body?.cancel().catch(()=>{}),!a.ok)throw _(`storage answered ${a.status} to the share upload`)}s(y,"putStream");const g=s(e=>{if(e==null)return;const t=typeof e=="string"?Date.parse(e):NaN;if(!Number.isFinite(t))throw new o(400,"invalid_request","expires_at must be an ISO 8601 time","expires_at");if(t<=Date.now())throw new o(400,"invalid_request","expires_at must be in the future","expires_at");return new Date(t).toISOString()},"parseExpiry");async function z(e,t,i){const n=g(i.expires_at),a=c(),r=await a.createShare({name:e.name,media_type:e.media_type,size:e.size,...n?{expires_at:n}:{}});try{const d=await a.fetchUpload(e.id,AbortSignal.timeout(11e4));await y(r.upload_link,d.body,e.size,e.media_type)}catch(d){throw await a.deleteShare(r.share_id).catch(()=>{}),d instanceof f?new o(404,"not_found","file not found"):d}const u=r.expires_at??n??null;return await m({share_id:r.share_id,source_space:`${e.kind}:${e.id}`,source_path:e.name,storage_key:`${a.runtimeId}/shares/${r.share_id}/${e.name}`,url:r.url,created_by:e.grantee,...t===void 0?{}:{sub:t},created_at:new Date().toISOString(),expires_at:u}),{share_id:r.share_id,url:r.url,expires_at:u}}s(z,"createShareFromSource");function x(e){return{share_id:e.share_id,url:e.url,source_path:e.source_path,created_by:e.created_by,created_at:e.created_at,expires_at:e.expires_at,status:e.status}}s(x,"view");async function A(e,t){return{shares:(await w(e)).filter(i=>t===void 0||i.sub===t).map(x)}}s(A,"listOwnShares");async function C(e,t,i){const n=await l(t);if(!n||n.created_by!==e||i!==void 0&&n.sub!==i)throw new o(404,"not_found","share not found");if(await b(t),!n.object_deleted_at)try{await c().deleteShare(t),await S(t)}catch(a){if(!(a instanceof o&&a.code==="storage_unavailable"))throw a}return{share_id:t,status:"off"}}s(C,"deleteOwnShare");export{z as createShareFromSource,C as deleteOwnShare,A as listOwnShares};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var q=Object.defineProperty;var d=(n,e)=>q(n,"name",{value:e,configurable:!0});import{isAbsolute as z,resolve as k}from"node:path";import{RunError as o,cloudPersonScope as _}from"../../../core/runs/operations.js";import{invalidStorageName as S,storageClient as c,StorageRefused as l,UPLOAD_MAX_BYTES as v}from"../../../core/storage/client.js";import{createShareFromSource as m,deleteOwnShare as A,listOwnShares as x}from"../../../core/storage/shares.js";import{getFile as O,getUpload as h,insertUpload as E,uploadUseAt as I}from"../../../core/storage/tables.js";import{requireRun as y}from"../router.js";const B=new Set(["upload.create","attachment.link","file.link","share.create","share.list","share.delete"]);function g(n){if(!n||typeof n!="object"||Array.isArray(n))throw new o(400,"invalid_request","a JSON object is required");return n}d(g,"object");const R=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}(?:\s*;.{0,200})?$/;async function T(n,e){const a=g(e);for(const u of Object.keys(a))if(!["name","media_type","size"].includes(u))throw new o(400,"invalid_request",`unknown field ${u}`,u);const{name:t,media_type:r,size:i}=a;if(typeof i!="number"||!Number.isSafeInteger(i)||i<0)throw new o(400,"invalid_request","size must be a non-negative integer","size");if(i>v)throw new o(400,"invalid_request","size exceeds 100 MiB","size");if(typeof t!="string")throw new o(400,"invalid_request","name is required","name");const p=S(t);if(p)throw new o(400,"invalid_request",p,"name");if(typeof r!="string"||!R.test(r))throw new o(400,"invalid_request","media_type must be a media type","media_type");const s=await c().createUpload({name:t,media_type:r,size:i}),w=_(n.sub);return await E({upload_id:s.upload_id,grantee:n.grantee,...w===void 0?{}:{sub:w},name:t,media_type:r,size:i,created_at:new Date().toISOString()}),{upload_id:s.upload_id,url:s.url,upload_link:s.upload_link,expires_at:s.expires_at}}d(T,"uploadCreate");async function U(n,e){if(!e)throw new o(400,"invalid_request","path is required","path");if(!z(e))throw new o(400,"invalid_request","path must be absolute","path");const a=await I(k(e)),t=d(()=>new o(404,"not_found","no upload is recorded at that path"),"missing");if(!a)throw t();try{await y(n,a.run_id)}catch(i){throw i instanceof o&&i.code==="not_found"?t():i}const r=await h(a.upload_id);if(!r||r.delete_pending_since)throw t();try{return await c().signDownload(a.upload_id)}catch(i){throw i instanceof l?t():i}}d(U,"attachmentLink");async function b(n,e){const a=d(()=>new o(404,"not_found","file not found"),"missing"),t=_(n.sub),r=await O(e);if(!r||r.grantee!==n.grantee||t!==void 0&&r.sub!==t||!r.completed_at)throw a();try{await y(n,r.run_id)}catch(i){throw i instanceof o&&i.code==="not_found"?a():i}return r}d(b,"ownFile");async function j(n,e){const a=_(n.sub),t=await h(e);if(!t||t.delete_pending_since||t.grantee!==n.grantee||a!==void 0&&t.sub!==a)throw new o(404,"not_found","upload not found");return t}d(j,"ownUpload");async function D(n,e){const a=await b(n,e);try{return{...await c().signDownload(a.file_id),name:a.name,media_type:a.media_type,size:a.size}}catch(t){throw t instanceof l?new o(404,"not_found","file not found"):t}}d(D,"fileLink");async function C(n,e,a,t,r){switch(n.name){case"upload.create":return{status:201,body:await T(e,r)};case"attachment.link":return{status:200,body:await U(e,t.get("path"))};case"file.link":return{status:200,body:await D(e,a.file_id)};case"share.create":{const i=g(r);for(const f of Object.keys(i))if(!["file_id","upload_id","expires_at"].includes(f))throw new o(400,"invalid_request",`unknown field ${f}`,f);const{file_id:p,upload_id:s}=i;if(p===void 0==(s===void 0))throw new o(400,"invalid_request","exactly one of file_id or upload_id is required");const w=_(e.sub);if(p!==void 0){if(typeof p!="string"||!p)throw new o(400,"invalid_request","file_id must be a non-empty string","file_id");const f=await b(e,p);return{status:201,body:await m({kind:"file",id:f.file_id,grantee:f.grantee,name:f.name,media_type:f.media_type,size:f.size},w,{expires_at:i.expires_at})}}if(typeof s!="string"||!s)throw new o(400,"invalid_request","upload_id must be a non-empty string","upload_id");const u=await j(e,s);return{status:201,body:await m({kind:"upload",id:u.upload_id,grantee:u.grantee,name:u.name,media_type:u.media_type,size:u.size},w,{expires_at:i.expires_at})}}case"share.list":return{status:200,body:await x(e.grantee,_(e.sub))};case"share.delete":return{status:200,body:await A(e.grantee,a.share_id,_(e.sub))};default:throw new o(404,"not_found","unknown operation")}}d(C,"handleTransferOperation");export{B as TRANSFER_OPERATIONS,C as handleTransferOperation};
|
|
@@ -7,6 +7,12 @@ description: Behavior changes in @north-light/sdk that an app must act on, newes
|
|
|
7
7
|
|
|
8
8
|
Changes to `@north-light/sdk` that can change what an existing app sees. Newest first.
|
|
9
9
|
|
|
10
|
+
## 0.3.788
|
|
11
|
+
|
|
12
|
+
### `shares.create({ upload_id })` shares an upload your app made
|
|
13
|
+
|
|
14
|
+
`shares.create` takes exactly one of `file_id` or `upload_id`. `upload_id` is the id `uploads.create` returned, after you PUT the bytes. The share is a copy at a public URL; the upload itself stays private to your app. Another app's, another person's or an unknown upload id is `404 not_found`; both or neither id is `400 invalid_request`.
|
|
15
|
+
|
|
10
16
|
## 0.3.783
|
|
11
17
|
|
|
12
18
|
### Every limit refusal carries `details.payment`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.788",
|
|
4
4
|
"description": "crtr — agent runtime with memory, plugins, and marketplaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
},
|
|
158
158
|
"license": "UNLICENSED",
|
|
159
159
|
"dependencies": {
|
|
160
|
-
"@north-light/identity": "0.3.
|
|
161
|
-
"@north-light/plugin": "0.3.
|
|
160
|
+
"@north-light/identity": "0.3.788",
|
|
161
|
+
"@north-light/plugin": "0.3.788",
|
|
162
162
|
"@earendil-works/chord": "1.5.2",
|
|
163
163
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
164
164
|
"@earendil-works/pi-ai": "1.5.2",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
//
|
|
13
13
|
// PURITY (spec §3.1): Node built-ins + `src/api/*` only.
|
|
14
14
|
/** The contract level this build serves and requires. Written by `scripts/contract.mjs release`; never edit by hand. */
|
|
15
|
-
export const CONTRACT_LEVEL = '1.
|
|
15
|
+
export const CONTRACT_LEVEL = '1.88';
|
|
16
16
|
/** Request header naming the one contract level the caller needs, e.g. `1.3`. Optional: absent means no check. */
|
|
17
17
|
export const REQUIRED_CONTRACT_HEADER = 'Crouter-Required-Contract';
|
|
18
18
|
/** Response header listing the contract levels the server serves, comma-separated, one per major, e.g. `1.3`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.788",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.788",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"postpack": "node ../../scripts/pack-minify.mjs postpack packages/crouter-plugin"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@north-light/api": "0.3.
|
|
31
|
-
"@north-light/identity": "0.3.
|
|
30
|
+
"@north-light/api": "0.3.788",
|
|
31
|
+
"@north-light/identity": "0.3.788"
|
|
32
32
|
},
|
|
33
33
|
"license": "UNLICENSED",
|
|
34
34
|
"publishConfig": {
|
package/runtime.lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.788",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@north-light/cli",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.788",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"workspaces": [
|
|
@@ -28,8 +28,8 @@
|
|
|
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.
|
|
32
|
-
"@north-light/plugin": "0.3.
|
|
31
|
+
"@north-light/identity": "0.3.788",
|
|
32
|
+
"@north-light/plugin": "0.3.788",
|
|
33
33
|
"cron-parser": "^5.6.0",
|
|
34
34
|
"esbuild": "0.28.2",
|
|
35
35
|
"jose": "^6.2.12",
|
|
@@ -11902,17 +11902,17 @@
|
|
|
11902
11902
|
},
|
|
11903
11903
|
"packages/crouter-api": {
|
|
11904
11904
|
"name": "@north-light/api",
|
|
11905
|
-
"version": "0.3.
|
|
11905
|
+
"version": "0.3.788",
|
|
11906
11906
|
"license": "UNLICENSED"
|
|
11907
11907
|
},
|
|
11908
11908
|
"packages/crouter-env-docker": {
|
|
11909
11909
|
"name": "@north-light/env-docker",
|
|
11910
|
-
"version": "0.3.
|
|
11910
|
+
"version": "0.3.788",
|
|
11911
11911
|
"license": "UNLICENSED"
|
|
11912
11912
|
},
|
|
11913
11913
|
"packages/crouter-identity": {
|
|
11914
11914
|
"name": "@north-light/identity",
|
|
11915
|
-
"version": "0.3.
|
|
11915
|
+
"version": "0.3.788",
|
|
11916
11916
|
"license": "UNLICENSED",
|
|
11917
11917
|
"dependencies": {
|
|
11918
11918
|
"jose": "^6.2.1"
|
|
@@ -11920,21 +11920,21 @@
|
|
|
11920
11920
|
},
|
|
11921
11921
|
"packages/crouter-plugin": {
|
|
11922
11922
|
"name": "@north-light/plugin",
|
|
11923
|
-
"version": "0.3.
|
|
11923
|
+
"version": "0.3.788",
|
|
11924
11924
|
"license": "UNLICENSED",
|
|
11925
11925
|
"dependencies": {
|
|
11926
|
-
"@north-light/api": "0.3.
|
|
11927
|
-
"@north-light/identity": "0.3.
|
|
11926
|
+
"@north-light/api": "0.3.788",
|
|
11927
|
+
"@north-light/identity": "0.3.788"
|
|
11928
11928
|
}
|
|
11929
11929
|
},
|
|
11930
11930
|
"packages/crouter-sdk": {
|
|
11931
11931
|
"name": "@north-light/sdk",
|
|
11932
|
-
"version": "0.3.
|
|
11932
|
+
"version": "0.3.788",
|
|
11933
11933
|
"license": "UNLICENSED",
|
|
11934
11934
|
"dependencies": {
|
|
11935
|
-
"@north-light/api": "0.3.
|
|
11936
|
-
"@north-light/identity": "0.3.
|
|
11937
|
-
"@north-light/plugin": "0.3.
|
|
11935
|
+
"@north-light/api": "0.3.788",
|
|
11936
|
+
"@north-light/identity": "0.3.788",
|
|
11937
|
+
"@north-light/plugin": "0.3.788",
|
|
11938
11938
|
"jose": "^6.2.1"
|
|
11939
11939
|
},
|
|
11940
11940
|
"bin": {
|