@north-light/cli 0.3.676 → 0.3.677

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.
@@ -14,6 +14,8 @@ export declare function typedLimitKey(owner: ObjectRow): string;
14
14
  * reader's own profile is never capped, even when a bare key shares its handle
15
15
  * with another owner; an owner the profile does not name is uncapped. */
16
16
  export declare function deliveryLimitFor(manifest: ProfileManifest | null, owner: ObjectRow, reader?: Reader): Rung;
17
+ /** The profile id (`profiles.id`) of a profile canvas object, or null when it has no profile identity. */
18
+ export declare function profileIdOfObject(db: CanvasDb, profileObject: string): Promise<string | null>;
17
19
  /** The reader's `permits(read)` fragment over the alias `o`, from the reader's shared scope. */
18
20
  export declare function readRule(db: CanvasDb, reader: Reader): Promise<Frag>;
19
21
  /** Fetch the bodies of every document in `docs` that has not read its own, in one query, so each `body()` call after it answers from memory. */
@@ -1,2 +1,2 @@
1
- var D=Object.defineProperty;var c=(e,t)=>D(e,"name",{value:t,configurable:!0});import{permits as H,resolveReader as L}from"../../permissions/evaluator.js";import{get as q,getMany as B}from"../../graph/bodies.js";import{resolveName as C,viewOf as W,viewResolutions as Y}from"../../graph/names.js";import{rulesOn as F,rulesOfMany as I}from"../../graph/rules.js";import{loadExactProfileManifest as T}from"../../profiles/manifest.js";import{assembleNodeSubject as K}from"../subject.js";import{mapAsync as U}from"../../async-array.js";function N(e){return e.type==="node"?e.id:e.name}c(N,"ownerHandle");function J(e){return`${e.type}:${N(e)}`}c(J,"typedLimitKey");function P(e,t,n){if(n?.class==="node"&&n.profile!==null&&n.profile.id===t.id)return"content";const s=e?.delivery_limits;return s?s[J(t)]??s[N(t)]??"content":"content"}c(P,"deliveryLimitFor");async function z(e,t){if(t.class!=="node"||t.profile===null)return null;const n=await e.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'profile'").get(t.profile.id);if(!n)throw new Error(`profile object ${t.profile.id} has no profile identity`);return T(n.external_id).manifest}c(z,"readerManifest");const b=new WeakMap;function h(e,t){let n=b.get(t);return n===void 0&&(n=(async()=>{const s=await W(e,t),i=await L(e,t);return{reader:t,context:{view:s,ev:i},read:await H(e,i,"read","o"),manifest:await z(e,t)}})(),b.set(t,n),n.catch(()=>b.delete(t))),n}c(h,"corpusScope");async function ae(e,t){return(await h(e,t)).read}c(ae,"readRule");async function g(e,t,n,s){return await e.prepareUncached(`SELECT o.*, d.heads_key, d.unlisted, d.source_path FROM objects o JOIN documents d ON d.object = o.id
2
- WHERE o.type = 'document' AND o.deleted_at IS NULL AND ${n} AND ${t.read.sql} ORDER BY o.seq`).all(...s,...t.read.params)}c(g,"documentRows");async function G(e,t){const n=[...new Set(t.flatMap(a=>a.heads_key.split(",")))],s=n.length===0?[]:await e.prepare("SELECT rev_id, document, number, body_hash FROM revisions WHERE rev_id = ANY(?::text[])").all(n),i=new Map(s.map(a=>[a.rev_id,a])),d=new Map;for(const a of t){let r;for(const p of a.heads_key.split(",")){const l=i.get(p);if(l===void 0||l.document!==a.id)continue;const f=Number(l.number);(r===void 0||f>r.number)&&(r={number:f,body_hash:l.body_hash})}if(r===void 0)throw new Error(`document ${a.id} has no head revision ${a.heads_key}`);d.set(a.id,r.body_hash)}return d}c(G,"headBodyHashes");async function M(e,t,n,s){if(n.length===0)return[];const{reader:i,context:d,manifest:a}=t,{view:r}=d,p=new Map(r.map((o,w)=>[o.id,w])),l=[...new Set(n.map(o=>o.owner).filter(o=>!p.has(o)))],f=new Map(r.map(o=>[o.id,o]));if(l.length>0)for(const o of await e.prepare("SELECT * FROM objects WHERE id = ANY(?::text[])").all(l))f.set(o.id,o);const y=s??await I(e,n.map(o=>o.id)),u=await G(e,n),m=await Y(e,d,n.map(o=>o.name));return await U(n,async o=>{const w=f.get(o.owner);if(w===void 0)throw new Error(`document ${o.id} has no owner row ${o.owner}`);const k=p.get(w.id)??r.length,_=N(w),E=m.get(o.name),j=E===void 0?await C(e,i,o.name,d):E===null?{missing:!0}:{object:{id:E}},R=u.get(o.id),{heads_key:$,unlisted:O,source_path:S,...A}=o,x={object:A,owner:w,ownerHandle:_,viewRank:k,ownNode:i.class==="node"&&o.owner===i.node.id,shipped:S!==null,kind:o.kind==="preference"?"preference":"knowledge",name:o.name,displayName:"object"in j&&j.object.id===o.id?o.name:`${_}/${o.name}`,preview:o.preview,unlisted:O!==0,headsKey:$,bodyHash:R,body:c(async()=>v.get(x)??Q(x,await q(e,R)),"body"),rules:y.get(o.id)??[],limit:P(a,w,i)};return x})}c(M,"toDeliveryDocs");const v=new WeakMap;function Q(e,t){return v.set(e,t),t}c(Q,"remember");async function re(e,t){const n=t.filter(i=>!v.has(i)),s=await B(e,n.map(i=>i.bodyHash));for(const i of n)v.set(i,s.get(i.bodyHash))}c(re,"primeBodies");async function ce(e,t,n){const s=await h(e,t),{view:i}=s.context,d=new Map;if(i.length===0)return[];const a={sql:`${s.read.sql} AND o.owner IN (${i.map(()=>"?").join(",")})`,params:[...s.read.params,...i.map(u=>u.id)]};for(const u of await F(e,n,a))d.set(u.object,[...d.get(u.object)??[],u]);const r=t.class==="node"&&n.includes("boot")?await g(e,s,"o.owner = ?",[t.node.id]):[],p=[...new Set([...d.keys(),...r.map(u=>u.id)])],l=p.length===0?[]:await g(e,s,"o.id = ANY(?::text[])",[p]),f=new Map(i.map((u,m)=>[u.id,m])),y=c(u=>f.get(u.owner)??i.length,"rankOf");return await M(e,s,l.sort((u,m)=>y(u)-y(m)||u.seq-m.seq),d)}c(ce,"loadCorpus");async function V(e,t,n){if(n.length===0)return[];const s=await h(e,t),i=n.map(a=>a.id),d=new Map((await g(e,s,"o.id = ANY(?::text[])",[i])).map(a=>[a.id,a]));return await M(e,s,i.map(a=>{const r=d.get(a);if(!r)throw new Error(`document ${a} has no documents row or is not readable`);return r}))}c(V,"deliveryDocsOf");async function de(e,t,n){return(await V(e,t,[n]))[0]}c(de,"deliveryDocOf");async function ue(e,t){return(await h(e,t)).context.view}c(ue,"viewOwners");async function le(e,t,n){const s=await h(e,t),i=[...new Set(n.map(r=>r.id))],d=new Map(i.map(r=>[r,[]]));if(i.length===0)return d;const a=await M(e,s,await g(e,s,"o.owner = ANY(?::text[]) AND d.unlisted = 0",[i]));for(const r of a)d.get(r.owner.id).push(r);return d}c(le,"listingCorpora");async function pe(e,t){if(t.class!=="node")throw new Error(`nodeSubject needs a node reader, got ${t.class}`);const n=await K(t.node.id,[...t.repos,...t.projectRepos]);if(n===null)throw new Error(`no node ${t.node.id}`);return n}c(pe,"nodeSubject");export{de as deliveryDocOf,V as deliveryDocsOf,P as deliveryLimitFor,le as listingCorpora,ce as loadCorpus,pe as nodeSubject,N as ownerHandle,re as primeBodies,ae as readRule,J as typedLimitKey,ue as viewOwners};
1
+ var D=Object.defineProperty;var c=(e,t)=>D(e,"name",{value:t,configurable:!0});import{permits as H,resolveReader as L}from"../../permissions/evaluator.js";import{get as q,getMany as B}from"../../graph/bodies.js";import{resolveName as C,viewOf as I,viewResolutions as W}from"../../graph/names.js";import{rulesOn as Y,rulesOfMany as F}from"../../graph/rules.js";import{loadExactProfileManifest as T}from"../../profiles/manifest.js";import{assembleNodeSubject as K}from"../subject.js";import{mapAsync as U}from"../../async-array.js";function b(e){return e.type==="node"?e.id:e.name}c(b,"ownerHandle");function J(e){return`${e.type}:${b(e)}`}c(J,"typedLimitKey");function P(e,t,n){if(n?.class==="node"&&n.profile!==null&&n.profile.id===t.id)return"content";const s=e?.delivery_limits;return s?s[J(t)]??s[b(t)]??"content":"content"}c(P,"deliveryLimitFor");async function z(e,t){return(await e.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'profile'").get(t))?.external_id??null}c(z,"profileIdOfObject");async function G(e,t){if(t.class!=="node"||t.profile===null)return null;const n=await z(e,t.profile.id);if(n===null)throw new Error(`profile object ${t.profile.id} has no profile identity`);return T(n).manifest}c(G,"readerManifest");const N=new WeakMap;function h(e,t){let n=N.get(t);return n===void 0&&(n=(async()=>{const s=await I(e,t),i=await L(e,t);return{reader:t,context:{view:s,ev:i},read:await H(e,i,"read","o"),manifest:await G(e,t)}})(),N.set(t,n),n.catch(()=>N.delete(t))),n}c(h,"corpusScope");async function re(e,t){return(await h(e,t)).read}c(re,"readRule");async function g(e,t,n,s){return await e.prepareUncached(`SELECT o.*, d.heads_key, d.unlisted, d.source_path FROM objects o JOIN documents d ON d.object = o.id
2
+ WHERE o.type = 'document' AND o.deleted_at IS NULL AND ${n} AND ${t.read.sql} ORDER BY o.seq`).all(...s,...t.read.params)}c(g,"documentRows");async function Q(e,t){const n=[...new Set(t.flatMap(a=>a.heads_key.split(",")))],s=n.length===0?[]:await e.prepare("SELECT rev_id, document, number, body_hash FROM revisions WHERE rev_id = ANY(?::text[])").all(n),i=new Map(s.map(a=>[a.rev_id,a])),d=new Map;for(const a of t){let r;for(const p of a.heads_key.split(",")){const l=i.get(p);if(l===void 0||l.document!==a.id)continue;const f=Number(l.number);(r===void 0||f>r.number)&&(r={number:f,body_hash:l.body_hash})}if(r===void 0)throw new Error(`document ${a.id} has no head revision ${a.heads_key}`);d.set(a.id,r.body_hash)}return d}c(Q,"headBodyHashes");async function M(e,t,n,s){if(n.length===0)return[];const{reader:i,context:d,manifest:a}=t,{view:r}=d,p=new Map(r.map((o,w)=>[o.id,w])),l=[...new Set(n.map(o=>o.owner).filter(o=>!p.has(o)))],f=new Map(r.map(o=>[o.id,o]));if(l.length>0)for(const o of await e.prepare("SELECT * FROM objects WHERE id = ANY(?::text[])").all(l))f.set(o.id,o);const y=s??await F(e,n.map(o=>o.id)),u=await Q(e,n),m=await W(e,d,n.map(o=>o.name));return await U(n,async o=>{const w=f.get(o.owner);if(w===void 0)throw new Error(`document ${o.id} has no owner row ${o.owner}`);const k=p.get(w.id)??r.length,_=b(w),x=m.get(o.name),j=x===void 0?await C(e,i,o.name,d):x===null?{missing:!0}:{object:{id:x}},R=u.get(o.id),{heads_key:O,unlisted:$,source_path:S,...A}=o,E={object:A,owner:w,ownerHandle:_,viewRank:k,ownNode:i.class==="node"&&o.owner===i.node.id,shipped:S!==null,kind:o.kind==="preference"?"preference":"knowledge",name:o.name,displayName:"object"in j&&j.object.id===o.id?o.name:`${_}/${o.name}`,preview:o.preview,unlisted:$!==0,headsKey:O,bodyHash:R,body:c(async()=>v.get(E)??V(E,await q(e,R)),"body"),rules:y.get(o.id)??[],limit:P(a,w,i)};return E})}c(M,"toDeliveryDocs");const v=new WeakMap;function V(e,t){return v.set(e,t),t}c(V,"remember");async function ce(e,t){const n=t.filter(i=>!v.has(i)),s=await B(e,n.map(i=>i.bodyHash));for(const i of n)v.set(i,s.get(i.bodyHash))}c(ce,"primeBodies");async function de(e,t,n){const s=await h(e,t),{view:i}=s.context,d=new Map;if(i.length===0)return[];const a={sql:`${s.read.sql} AND o.owner IN (${i.map(()=>"?").join(",")})`,params:[...s.read.params,...i.map(u=>u.id)]};for(const u of await Y(e,n,a))d.set(u.object,[...d.get(u.object)??[],u]);const r=t.class==="node"&&n.includes("boot")?await g(e,s,"o.owner = ?",[t.node.id]):[],p=[...new Set([...d.keys(),...r.map(u=>u.id)])],l=p.length===0?[]:await g(e,s,"o.id = ANY(?::text[])",[p]),f=new Map(i.map((u,m)=>[u.id,m])),y=c(u=>f.get(u.owner)??i.length,"rankOf");return await M(e,s,l.sort((u,m)=>y(u)-y(m)||u.seq-m.seq),d)}c(de,"loadCorpus");async function X(e,t,n){if(n.length===0)return[];const s=await h(e,t),i=n.map(a=>a.id),d=new Map((await g(e,s,"o.id = ANY(?::text[])",[i])).map(a=>[a.id,a]));return await M(e,s,i.map(a=>{const r=d.get(a);if(!r)throw new Error(`document ${a} has no documents row or is not readable`);return r}))}c(X,"deliveryDocsOf");async function ue(e,t,n){return(await X(e,t,[n]))[0]}c(ue,"deliveryDocOf");async function le(e,t){return(await h(e,t)).context.view}c(le,"viewOwners");async function pe(e,t,n){const s=await h(e,t),i=[...new Set(n.map(r=>r.id))],d=new Map(i.map(r=>[r,[]]));if(i.length===0)return d;const a=await M(e,s,await g(e,s,"o.owner = ANY(?::text[]) AND d.unlisted = 0",[i]));for(const r of a)d.get(r.owner.id).push(r);return d}c(pe,"listingCorpora");async function fe(e,t){if(t.class!=="node")throw new Error(`nodeSubject needs a node reader, got ${t.class}`);const n=await K(t.node.id,[...t.repos,...t.projectRepos]);if(n===null)throw new Error(`no node ${t.node.id}`);return n}c(fe,"nodeSubject");export{ue as deliveryDocOf,X as deliveryDocsOf,P as deliveryLimitFor,pe as listingCorpora,de as loadCorpus,fe as nodeSubject,b as ownerHandle,ce as primeBodies,z as profileIdOfObject,re as readRule,J as typedLimitKey,le as viewOwners};
@@ -1,6 +1,6 @@
1
- var $=Object.defineProperty;var l=(t,e)=>$(t,"name",{value:e,configurable:!0});import{dirname as P}from"node:path";import{isCloudRole as T}from"../../canvas/person-state.js";import{machineEnvironmentOfProfile as H}from"../../runtime/runner/machine/environment.js";import{clearLedger as W,demoteTranscript as x,freezePreferences as k,loadLedger as Y,saveLedger as B}from"../../graph/exposures.js";import{recordWatches as U}from"../../graph/watches.js";import{publishMany as J}from"../../graph/events.js";import{checkoutsForCwd as h}from"../../graph/repo-sync/repos.js";import{liveLookups as K,profileObject as V,viewRepos as G}from"../../graph/reader.js";import{ownerForGrantee as X}from"../../graph/objects.js";import{resolveName as z}from"../../graph/names.js";import{SCOPE_VOCABULARY as Q}from"../../scopes.js";import{getNode as Z}from"../../canvas/index.js";import{recordMemoryReadsIn as q}from"../../canvas/memory-reads.js";import{lookupProfile as ee}from"../../profiles/manifest.js";import{getDefaultProfileId as te}from"../../profiles/default-binding.js";import{effectiveScopes as ne,profileNameFor as oe,scopeForCwd as ae}from"../subject-fields.js";import{spineDepth as re}from"../subject.js";import{appForNode as ie}from"../../canvas/node-agent-paths.js";import{interpolateNodePaths as se}from"../../canvas/paths.js";import{readableProjectForScopes as N}from"../../spaces/permissions.js";import{ApiError as m}from"../../../api/errors.js";import{buildContextBearings as ce}from"../../runtime/bearings.js";import{deliveryDocOf as O,listingCorpora as de,loadCorpus as w,nodeSubject as R,primeBodies as le,viewOwners as pe}from"./corpus.js";import{listingPrefixes as ue}from"./listings.js";import{planDelivery as me}from"./plan.js";import{renderEvent as _,renderExplicitRead as S}from"./render-event.js";import{renderConfigDelta as fe,renderKnowledge as we,renderPreferences as E,renderWorkspaceOpen as D}from"./render-boot.js";import{mapAsync as C}from"../../async-array.js";function f(t){if(t.class!=="node")throw new Error(`delivery needs a node reader, got ${t.class}`);return t}l(f,"nodeOf");const I="hypothetical";function v(t){return t.node.id===I}l(v,"isHypothetical");async function g(t,e){if(!v(e))return await ie(e.node.id);const n=await t.prepare("SELECT external_id FROM identities WHERE object = ?").get(e.app.id);if(!n)throw new Error(`app object ${e.app.id} has no identity`);return n.external_id}l(g,"granteeOf");async function ye(t,e,n,o=async(a,c)=>await h(t,a,c)){const a=f(e).node,c=new Set,r=new Date().toISOString(),s=[],i=[];for(const{doc:d,level:p}of n)p!=="content"||c.has(d.object.id)||(c.add(d.object.id),i.push({watcher:a,object:d.object,start:"deliver",opts:{readHeadsKey:d.headsKey}}),s.push({name:d.name,scope:d.ownerHandle,at:r,type:"loaded"}));await U(t,i),await J(t,i.map(d=>({event:"read",object:d.object,actor:a,attrs:{}})),o),v(f(e))||await q(t,a.id,s)}l(ye,"recordContentDelivery");async function A(t,e,n){if(await b(t,e,n))return e;const o=(await h(t,P(n))).filter(a=>!e.repos.some(c=>c.id===a.repo.id));return o.length===0?e:{...e,repos:[...e.repos,...o.map(a=>a.repo)],checkouts:[...e.checkouts,...o]}}l(A,"fileReadReader");async function b(t,e,n){const o=await g(t,e);return o==="app:terminal"&&T()&&e.profile!=null&&await H(e.profile.id)!==null&&!N(n,o,e.scopes??[],null)}l(b,"isMacEnforcedRead");async function F(t,e,n){if(!await b(t,e,n))return{absoluteFile:n};const o=new Map;for(const{root:a,repo:c}of e.checkouts)n.startsWith(a.endsWith("/")?a:`${a}/`)&&!o.has(c.id)&&o.set(c.id,a);return{absoluteFile:n,readFrontmatter:{},repoRoots:o,remotePath:!0}}l(F,"fileReadPayload");async function he(t,e,n){const o=await g(t,e);if(!(n.startsWith("/")&&(process.platform!=="linux"&&o==="app:terminal"||await b(t,e,n)||N(n,o,e.scopes??[],null))))throw new m(403,"scope_missing","read file is outside the run mounts")}l(he,"assertReadableFile");async function ve(t){const e=f(t.reader),n=e.node,o=await g(t.db,e),a=await w(t.db,t.reader,["slash-command"]);await le(t.db,a);const c=await C(a,async r=>{const s=await r.body();return{name:r.displayName,command_name:r.displayName,description:r.preview,canonical_body:s,execution_body:se(s,n.id,o)}});return{docs:a,commands:c}}l(ve,"slashCommands");function ge(t){if(t.shipped)return"builtin";switch(t.owner.type){case"node":return"node";case"repo":return"project";case"profile":return"profile";default:return"user"}}l(ge,"scopeOf");async function be(t,e){const n=[],o=new Set,a=await pe(t,e),c=await de(t,e,a);for(const r of a){const s=c.get(r.id);for(const i of s){n.push({name:i.displayName,kind:i.kind,scope:ge(i),shortForm:i.preview,gatewayVisible:!i.shipped}),o.add(i.displayName);const d=i.displayName===i.name?"":`${i.ownerHandle}/`;for(const p of ue(s,i.name))o.add(`${d}${p}`)}}return{refs:n,names:[...o]}}l(be,"composerNames");async function L(t,e){const n=f(t.reader),{db:o,ledger:a}=t,c=l(()=>{if(typeof e.subject!="string"||e.subject==="")throw new m(400,"usage",`delivery activity ${e.activity} requires a subject`);return e.subject},"requireSubject");switch(e.activity){case"boot":{if(e.inherited===!0){for(const[i,d]of a.objects)if(d.transcript===void 0)a.objects.delete(i);else{const{system:p,...u}=d;a.objects.set(i,u)}for(const[i,d]of a.listed)d.transcript===void 0?a.listed.delete(i):a.listed.set(i,{transcript:d.transcript});return a.preferenceSnapshot=null,{result:{content:"",inherited:!0},delivered:[]}}const r=v(n)?await je(t):await ce(n.node.id,t),s=await E({...t,channel:"system"});return k(a,s.content),{result:{content:r.content},delivered:[...r.delivered,...s.delivered]}}case"system-prompt":{if(a.preferenceSnapshot!==null)return{result:{content:a.preferenceSnapshot},delivered:[]};const r=await E({...t,channel:"system"});return{result:{content:k(a,r.content)},delivered:r.delivered}}case"compact":{for(const r of await w(o,n,["pre-command"]))x(a,r.object.id);return{result:{content:""},delivered:[]}}case"persona":{const r=await fe(t);return{result:{content:r.content},delivered:r.delivered}}case"file-read":{const r=c();await he(o,n,r);const s=await A(o,n,r),i={...t,reader:s},d=await _(i,"file-read",await F(o,n,r),await w(o,s,["file-read"]));return{result:{content:d.content},delivered:d.delivered}}case"command":case"pre-command":{const r=await _(t,e.activity,{command:c()});return{result:{content:r.content},delivered:r.delivered}}case"slash-command":{const{docs:r,commands:s}=await ve(t);if(e.subject===void 0||e.subject==="")return{result:{content:"",commands:s},delivered:[]};const i=r.findIndex(u=>u.displayName===e.subject||u.name===e.subject);if(i<0)throw new m(404,"not_found",`no slash command named ${e.subject}`);const d=r[i],p=await S(t,d,!0);return{result:{content:"",execution_body:s[i].execution_body,blocks:p.attachments===""?[]:[p.attachments]},delivered:[{doc:d,level:"content"},...p.delivered]}}case"workspace-open":{const r=await D(t);return{result:{content:r.content},delivered:r.delivered}}case"document-read":{const r=await M(o,n,c()),s=await S(t,await O(o,n,r),!0);return{result:{content:s.attachments},delivered:s.delivered}}case"names":return{result:{content:"",...await be(o,n)},delivered:[]};default:throw new m(400,"usage",`unknown delivery activity ${String(e.activity)}`)}}l(L,"render");async function je(t){const e=await we(t),n=await D(t);return{content:[e.content,n.content].filter(o=>o!=="").join(`
2
- `),delivered:[...e.delivered,...n.delivered]}}l(je,"hypotheticalBearings");async function M(t,e,n){const o=await z(t,e,n);if("object"in o&&o.object.type==="document")return o.object;throw"ambiguous"in o?new m(409,"ambiguous",`${n} names ${o.ambiguous.length} documents; name one as <type>:<owner>/<name>`):new m(404,"not_found",`no document ${n} the reader can read`)}l(M,"readDocument");const ke=["workspace-open","document-read"];async function et(t,e,n,o){if(ke.includes(n.activity))throw new m(400,"usage",`delivery activity ${n.activity} is available to a dry run only`);const a=f(e).node;n.activity==="boot"&&n.inherited!==!0&&await W(t,a.id);const c=await Y(t,a.id),r={db:t,reader:e,subject:o??await R(t,e),ledger:c,channel:"transcript"},{result:s,delivered:i}=await L(r,n);return await ye(t,e,i),await B(t,c),s}l(et,"deliver");const Ne={boot:"boot","workspace-open":"workspace-open","file-read":"file-read","document-read":"document-read",command:"command","pre-command":"pre-command","slash-command":"slash-command"};async function tt(t,e){const n=await Z(t);if(n===null)throw new m(404,"not_found",`no node ${t}`);return{cwd:e.cwd??n.cwd,profile:e.profile!==void 0?e.profile:n.profile_id,grantee:e.grantee??n.grantee,kind:e.kind??n.kind,mode:e.mode??n.mode,lifecycle:e.lifecycle??n.lifecycle,hasManager:e.hasManager??(n.parent??null)!==null,depth:e.depth??await re(t)}}l(tt,"hypotheticalFrom");function Oe(t,e){if(t===null)return null;if(t===void 0||t==="")return te(e);const n=ee(t);if(n.kind!=="resolved"){const o=`no profile ${t}`;throw new m(404,"not_found",o,{error:"not_found",message:o,next:"List profile ids and names with `crtr profile list`."})}return n.entry.profileId}l(Oe,"resolveProfileId");async function nt(t,e){const n=await X(t,e.grantee??"app:terminal"),o=Oe(e.profile,e.cwd),a=await G(t,e.cwd,o,async(p,u,y)=>await h(t,p,u,y),K(t)),{repos:c}=a,r=e.mode??"base",i={class:"node",node:{id:I,seq:0,type:"node",kind:e.kind??"general",owner:n.id,privacy:"private",name:"hypothetical",preview:"",created_at:new Date(0).toISOString(),deleted_at:null},app:n,scopes:[...Q],cwd:e.cwd,...a,profile:o===null?null:await V(t,o,n)},d={kind:e.kind??"general",mode:r,lifecycle:e.lifecycle??(r==="orchestrator"?"resident":"terminal"),hasManager:e.hasManager??!0,cwd:e.cwd,scope:ae(e.cwd),orchestration:{depth:e.depth??0},profile:oe(o),app:e.grantee??"app:terminal",scopes:ne(null),repo:[...c,...a.projectRepos].map(p=>p.name)};return{reader:i,subject:d}}l(nt,"hypotheticalReader");async function ot(t,e,n,o,a){const r={node:f(e).node.id,preferenceSnapshot:null,objects:new Map,listed:new Map},s={...a??await R(t,e),...o},i={db:t,reader:e,subject:s,ledger:r,channel:"transcript"},{result:d}=await L(i,n),p=Ne[n.activity];let u=null;if(p!==void 0){const y=n.activity==="file-read"?await F(t,f(e),n.subject):n.activity==="command"||n.activity==="pre-command"?{command:n.subject}:n.activity==="document-read"&&n.subject!==void 0?{doc:await O(t,e,await M(t,e,n.subject))}:{},j=n.activity==="file-read"&&n.subject!==void 0?await A(t,f(e),n.subject):e;u=await me(t,s,j,await w(t,j,[p]),p,y)}return{result:d,plan:u}}l(ot,"inspect");async function at(t,e,n){const o=await t.prepare(`SELECT o.*, MAX(r.number) AS to_seq, string_agg(DISTINCT a.id, ',') AS authors
1
+ var $=Object.defineProperty;var l=(t,e)=>$(t,"name",{value:e,configurable:!0});import{dirname as P}from"node:path";import{isCloudRole as T}from"../../canvas/person-state.js";import{machineEnvironmentOfProfile as H}from"../../runtime/runner/machine/environment.js";import{clearLedger as W,demoteTranscript as x,freezePreferences as O,loadLedger as Y,saveLedger as B}from"../../graph/exposures.js";import{recordWatches as U}from"../../graph/watches.js";import{publishMany as J}from"../../graph/events.js";import{checkoutsForCwd as h}from"../../graph/repo-sync/repos.js";import{liveLookups as K,profileObject as V,viewRepos as G}from"../../graph/reader.js";import{ownerForGrantee as X}from"../../graph/objects.js";import{resolveName as z}from"../../graph/names.js";import{SCOPE_VOCABULARY as Q}from"../../scopes.js";import{getNode as Z}from"../../canvas/index.js";import{recordMemoryReadsIn as q}from"../../canvas/memory-reads.js";import{lookupProfile as ee}from"../../profiles/manifest.js";import{getDefaultProfileId as te}from"../../profiles/default-binding.js";import{effectiveScopes as ne,profileNameFor as oe,scopeForCwd as re}from"../subject-fields.js";import{spineDepth as ae}from"../subject.js";import{appForNode as ie}from"../../canvas/node-agent-paths.js";import{interpolateNodePaths as se}from"../../canvas/paths.js";import{readableProjectForScopes as k}from"../../spaces/permissions.js";import{ApiError as m}from"../../../api/errors.js";import{buildContextBearings as ce}from"../../runtime/bearings.js";import{deliveryDocOf as N,listingCorpora as de,loadCorpus as w,nodeSubject as R,primeBodies as le,profileIdOfObject as pe,viewOwners as ue}from"./corpus.js";import{listingPrefixes as me}from"./listings.js";import{planDelivery as fe}from"./plan.js";import{renderEvent as _,renderExplicitRead as S}from"./render-event.js";import{renderConfigDelta as we,renderKnowledge as ye,renderPreferences as E,renderWorkspaceOpen as D}from"./render-boot.js";import{mapAsync as I}from"../../async-array.js";function f(t){if(t.class!=="node")throw new Error(`delivery needs a node reader, got ${t.class}`);return t}l(f,"nodeOf");const C="hypothetical";function v(t){return t.node.id===C}l(v,"isHypothetical");async function g(t,e){if(!v(e))return await ie(e.node.id);const n=await t.prepare("SELECT external_id FROM identities WHERE object = ?").get(e.app.id);if(!n)throw new Error(`app object ${e.app.id} has no identity`);return n.external_id}l(g,"granteeOf");async function he(t,e,n,o=async(r,c)=>await h(t,r,c)){const r=f(e).node,c=new Set,a=new Date().toISOString(),s=[],i=[];for(const{doc:d,level:p}of n)p!=="content"||c.has(d.object.id)||(c.add(d.object.id),i.push({watcher:r,object:d.object,start:"deliver",opts:{readHeadsKey:d.headsKey}}),s.push({name:d.name,scope:d.ownerHandle,at:a,type:"loaded"}));await U(t,i),await J(t,i.map(d=>({event:"read",object:d.object,actor:r,attrs:{}})),o),v(f(e))||await q(t,r.id,s)}l(he,"recordContentDelivery");async function A(t,e,n){if(await b(t,e,n))return e;const o=(await h(t,P(n))).filter(r=>!e.repos.some(c=>c.id===r.repo.id));return o.length===0?e:{...e,repos:[...e.repos,...o.map(r=>r.repo)],checkouts:[...e.checkouts,...o]}}l(A,"fileReadReader");async function b(t,e,n){const o=await g(t,e);if(o!=="app:terminal"||!T()||e.profile==null)return!1;const r=await pe(t,e.profile.id);return r!==null&&await H(r)!==null&&!k(n,o,e.scopes??[],null)}l(b,"isMacEnforcedRead");async function F(t,e,n){if(!await b(t,e,n))return{absoluteFile:n};const o=new Map;for(const{root:r,repo:c}of e.checkouts)n.startsWith(r.endsWith("/")?r:`${r}/`)&&!o.has(c.id)&&o.set(c.id,r);return{absoluteFile:n,readFrontmatter:{},repoRoots:o,remotePath:!0}}l(F,"fileReadPayload");async function ve(t,e,n){const o=await g(t,e);if(!(n.startsWith("/")&&(process.platform!=="linux"&&o==="app:terminal"||await b(t,e,n)||k(n,o,e.scopes??[],null))))throw new m(403,"scope_missing","read file is outside the run mounts")}l(ve,"assertReadableFile");async function ge(t){const e=f(t.reader),n=e.node,o=await g(t.db,e),r=await w(t.db,t.reader,["slash-command"]);await le(t.db,r);const c=await I(r,async a=>{const s=await a.body();return{name:a.displayName,command_name:a.displayName,description:a.preview,canonical_body:s,execution_body:se(s,n.id,o)}});return{docs:r,commands:c}}l(ge,"slashCommands");function be(t){if(t.shipped)return"builtin";switch(t.owner.type){case"node":return"node";case"repo":return"project";case"profile":return"profile";default:return"user"}}l(be,"scopeOf");async function je(t,e){const n=[],o=new Set,r=await ue(t,e),c=await de(t,e,r);for(const a of r){const s=c.get(a.id);for(const i of s){n.push({name:i.displayName,kind:i.kind,scope:be(i),shortForm:i.preview,gatewayVisible:!i.shipped}),o.add(i.displayName);const d=i.displayName===i.name?"":`${i.ownerHandle}/`;for(const p of me(s,i.name))o.add(`${d}${p}`)}}return{refs:n,names:[...o]}}l(je,"composerNames");async function L(t,e){const n=f(t.reader),{db:o,ledger:r}=t,c=l(()=>{if(typeof e.subject!="string"||e.subject==="")throw new m(400,"usage",`delivery activity ${e.activity} requires a subject`);return e.subject},"requireSubject");switch(e.activity){case"boot":{if(e.inherited===!0){for(const[i,d]of r.objects)if(d.transcript===void 0)r.objects.delete(i);else{const{system:p,...u}=d;r.objects.set(i,u)}for(const[i,d]of r.listed)d.transcript===void 0?r.listed.delete(i):r.listed.set(i,{transcript:d.transcript});return r.preferenceSnapshot=null,{result:{content:"",inherited:!0},delivered:[]}}const a=v(n)?await Oe(t):await ce(n.node.id,t),s=await E({...t,channel:"system"});return O(r,s.content),{result:{content:a.content},delivered:[...a.delivered,...s.delivered]}}case"system-prompt":{if(r.preferenceSnapshot!==null)return{result:{content:r.preferenceSnapshot},delivered:[]};const a=await E({...t,channel:"system"});return{result:{content:O(r,a.content)},delivered:a.delivered}}case"compact":{for(const a of await w(o,n,["pre-command"]))x(r,a.object.id);return{result:{content:""},delivered:[]}}case"persona":{const a=await we(t);return{result:{content:a.content},delivered:a.delivered}}case"file-read":{const a=c();await ve(o,n,a);const s=await A(o,n,a),i={...t,reader:s},d=await _(i,"file-read",await F(o,n,a),await w(o,s,["file-read"]));return{result:{content:d.content},delivered:d.delivered}}case"command":case"pre-command":{const a=await _(t,e.activity,{command:c()});return{result:{content:a.content},delivered:a.delivered}}case"slash-command":{const{docs:a,commands:s}=await ge(t);if(e.subject===void 0||e.subject==="")return{result:{content:"",commands:s},delivered:[]};const i=a.findIndex(u=>u.displayName===e.subject||u.name===e.subject);if(i<0)throw new m(404,"not_found",`no slash command named ${e.subject}`);const d=a[i],p=await S(t,d,!0);return{result:{content:"",execution_body:s[i].execution_body,blocks:p.attachments===""?[]:[p.attachments]},delivered:[{doc:d,level:"content"},...p.delivered]}}case"workspace-open":{const a=await D(t);return{result:{content:a.content},delivered:a.delivered}}case"document-read":{const a=await M(o,n,c()),s=await S(t,await N(o,n,a),!0);return{result:{content:s.attachments},delivered:s.delivered}}case"names":return{result:{content:"",...await je(o,n)},delivered:[]};default:throw new m(400,"usage",`unknown delivery activity ${String(e.activity)}`)}}l(L,"render");async function Oe(t){const e=await ye(t),n=await D(t);return{content:[e.content,n.content].filter(o=>o!=="").join(`
2
+ `),delivered:[...e.delivered,...n.delivered]}}l(Oe,"hypotheticalBearings");async function M(t,e,n){const o=await z(t,e,n);if("object"in o&&o.object.type==="document")return o.object;throw"ambiguous"in o?new m(409,"ambiguous",`${n} names ${o.ambiguous.length} documents; name one as <type>:<owner>/<name>`):new m(404,"not_found",`no document ${n} the reader can read`)}l(M,"readDocument");const ke=["workspace-open","document-read"];async function tt(t,e,n,o){if(ke.includes(n.activity))throw new m(400,"usage",`delivery activity ${n.activity} is available to a dry run only`);const r=f(e).node;n.activity==="boot"&&n.inherited!==!0&&await W(t,r.id);const c=await Y(t,r.id),a={db:t,reader:e,subject:o??await R(t,e),ledger:c,channel:"transcript"},{result:s,delivered:i}=await L(a,n);return await he(t,e,i),await B(t,c),s}l(tt,"deliver");const Ne={boot:"boot","workspace-open":"workspace-open","file-read":"file-read","document-read":"document-read",command:"command","pre-command":"pre-command","slash-command":"slash-command"};async function nt(t,e){const n=await Z(t);if(n===null)throw new m(404,"not_found",`no node ${t}`);return{cwd:e.cwd??n.cwd,profile:e.profile!==void 0?e.profile:n.profile_id,grantee:e.grantee??n.grantee,kind:e.kind??n.kind,mode:e.mode??n.mode,lifecycle:e.lifecycle??n.lifecycle,hasManager:e.hasManager??(n.parent??null)!==null,depth:e.depth??await ae(t)}}l(nt,"hypotheticalFrom");function Re(t,e){if(t===null)return null;if(t===void 0||t==="")return te(e);const n=ee(t);if(n.kind!=="resolved"){const o=`no profile ${t}`;throw new m(404,"not_found",o,{error:"not_found",message:o,next:"List profile ids and names with `crtr profile list`."})}return n.entry.profileId}l(Re,"resolveProfileId");async function ot(t,e){const n=await X(t,e.grantee??"app:terminal"),o=Re(e.profile,e.cwd),r=await G(t,e.cwd,o,async(p,u,y)=>await h(t,p,u,y),K(t)),{repos:c}=r,a=e.mode??"base",i={class:"node",node:{id:C,seq:0,type:"node",kind:e.kind??"general",owner:n.id,privacy:"private",name:"hypothetical",preview:"",created_at:new Date(0).toISOString(),deleted_at:null},app:n,scopes:[...Q],cwd:e.cwd,...r,profile:o===null?null:await V(t,o,n)},d={kind:e.kind??"general",mode:a,lifecycle:e.lifecycle??(a==="orchestrator"?"resident":"terminal"),hasManager:e.hasManager??!0,cwd:e.cwd,scope:re(e.cwd),orchestration:{depth:e.depth??0},profile:oe(o),app:e.grantee??"app:terminal",scopes:ne(null),repo:[...c,...r.projectRepos].map(p=>p.name)};return{reader:i,subject:d}}l(ot,"hypotheticalReader");async function rt(t,e,n,o,r){const a={node:f(e).node.id,preferenceSnapshot:null,objects:new Map,listed:new Map},s={...r??await R(t,e),...o},i={db:t,reader:e,subject:s,ledger:a,channel:"transcript"},{result:d}=await L(i,n),p=Ne[n.activity];let u=null;if(p!==void 0){const y=n.activity==="file-read"?await F(t,f(e),n.subject):n.activity==="command"||n.activity==="pre-command"?{command:n.subject}:n.activity==="document-read"&&n.subject!==void 0?{doc:await N(t,e,await M(t,e,n.subject))}:{},j=n.activity==="file-read"&&n.subject!==void 0?await A(t,f(e),n.subject):e;u=await fe(t,s,j,await w(t,j,[p]),p,y)}return{result:d,plan:u}}l(rt,"inspect");async function at(t,e,n){const o=await t.prepare(`SELECT o.*, MAX(r.number) AS to_seq, string_agg(DISTINCT a.id, ',') AS authors
3
3
  FROM watches w JOIN objects o ON o.id = w.object AND o.type = 'document' AND o.deleted_at IS NULL
4
4
  JOIN revisions r ON r.document = o.id LEFT JOIN objects a ON a.id = r.author
5
5
  WHERE w.watcher = ? AND r.created_at > ? AND (r.author IS NULL OR r.author != ?)
6
- GROUP BY o.id ORDER BY o.seq`).all(e.id,n,e.id);return await C(o,async({to_seq:a,authors:c,...r})=>{const s=await t.prepare("SELECT MAX(number) AS seq FROM revisions WHERE document = ? AND created_at <= ?").get(r.id,n);return{doc:r,from:s.seq,to:a,authors:c===null?[]:c.split(",")}})}l(at,"changedWhileDone");export{ke as DRY_RUN_ONLY,at as changedWhileDone,et as deliver,tt as hypotheticalFrom,nt as hypotheticalReader,ot as inspect,ye as recordContentDelivery};
6
+ GROUP BY o.id ORDER BY o.seq`).all(e.id,n,e.id);return await I(o,async({to_seq:r,authors:c,...a})=>{const s=await t.prepare("SELECT MAX(number) AS seq FROM revisions WHERE document = ? AND created_at <= ?").get(a.id,n);return{doc:a,from:s.seq,to:r,authors:c===null?[]:c.split(",")}})}l(at,"changedWhileDone");export{ke as DRY_RUN_ONLY,at as changedWhileDone,tt as deliver,nt as hypotheticalFrom,ot as hypotheticalReader,rt as inspect,he as recordContentDelivery};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/cli",
3
- "version": "0.3.676",
3
+ "version": "0.3.677",
4
4
  "description": "crtr — agent runtime with memory, plugins, and marketplaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -156,8 +156,8 @@
156
156
  },
157
157
  "license": "UNLICENSED",
158
158
  "dependencies": {
159
- "@north-light/identity": "0.3.676",
160
- "@north-light/plugin": "0.3.676",
159
+ "@north-light/identity": "0.3.677",
160
+ "@north-light/plugin": "0.3.677",
161
161
  "@earendil-works/chord": "1.5.2",
162
162
  "@earendil-works/pi-agent-core": "1.5.2",
163
163
  "@earendil-works/pi-ai": "1.5.2",
@@ -28,13 +28,18 @@ export function deliveryLimitFor(manifest, owner, reader) {
28
28
  return 'content';
29
29
  return limits[typedLimitKey(owner)] ?? limits[ownerHandle(owner)] ?? 'content';
30
30
  }
31
+ /** The profile id (`profiles.id`) of a profile canvas object, or null when it has no profile identity. */
32
+ export async function profileIdOfObject(db, profileObject) {
33
+ const row = await db.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'profile'").get(profileObject);
34
+ return row?.external_id ?? null;
35
+ }
31
36
  async function readerManifest(db, reader) {
32
37
  if (reader.class !== 'node' || reader.profile === null)
33
38
  return null;
34
- const row = await db.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'profile'").get(reader.profile.id);
35
- if (!row)
39
+ const profileId = await profileIdOfObject(db, reader.profile.id);
40
+ if (profileId === null)
36
41
  throw new Error(`profile object ${reader.profile.id} has no profile identity`);
37
- return loadExactProfileManifest(row.external_id).manifest;
42
+ return loadExactProfileManifest(profileId).manifest;
38
43
  }
39
44
  /** One scope per reader object. A reader is built for one request and its view, subjects and read rule are facts of that reader, so every
40
45
  * corpus of one delivery shares them: the `names` activity loads one corpus per owner in the view and a boot one per linked document, and
@@ -25,7 +25,7 @@ import { interpolateNodePaths } from '../../canvas/paths.js';
25
25
  import { readableProjectForScopes } from '../../spaces/permissions.js';
26
26
  import { ApiError } from '../../../api/errors.js';
27
27
  import { buildContextBearings } from '../../runtime/bearings.js';
28
- import { deliveryDocOf, listingCorpora, loadCorpus, nodeSubject, primeBodies, viewOwners } from './corpus.js';
28
+ import { deliveryDocOf, listingCorpora, loadCorpus, nodeSubject, primeBodies, profileIdOfObject, viewOwners } from './corpus.js';
29
29
  import { listingPrefixes } from './listings.js';
30
30
  import { planDelivery } from './plan.js';
31
31
  import { renderEvent, renderExplicitRead } from './render-event.js';
@@ -82,7 +82,10 @@ async function fileReadReader(db, reader, file) {
82
82
  * so this read passes on the Mac's say-so and the control plane must not touch its own disk at the path. */
83
83
  async function isMacEnforcedRead(db, reader, file) {
84
84
  const grantee = await granteeOf(db, reader);
85
- return grantee === 'app:terminal' && isCloudRole() && reader.profile != null && await machineEnvironmentOfProfile(reader.profile.id) !== null
85
+ if (grantee !== 'app:terminal' || !isCloudRole() || reader.profile == null)
86
+ return false;
87
+ const profileId = await profileIdOfObject(db, reader.profile.id);
88
+ return profileId !== null && await machineEnvironmentOfProfile(profileId) !== null
86
89
  && !readableProjectForScopes(file, grantee, reader.scopes ?? [], null);
87
90
  }
88
91
  /** The file-read payload: for a Mac-enforced read, empty frontmatter and the repo roots from the node's stored checkouts that enclose the path. */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/api",
3
- "version": "0.3.676",
3
+ "version": "0.3.677",
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/identity",
3
- "version": "0.3.676",
3
+ "version": "0.3.677",
4
4
  "description": "Northlight access-token verification and scope rules",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@north-light/plugin",
3
- "version": "0.3.676",
3
+ "version": "0.3.677",
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.676",
31
- "@north-light/identity": "0.3.676"
30
+ "@north-light/api": "0.3.677",
31
+ "@north-light/identity": "0.3.677"
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.676",
3
+ "version": "0.3.677",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@north-light/cli",
9
- "version": "0.3.676",
9
+ "version": "0.3.677",
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.676",
32
- "@north-light/plugin": "0.3.676",
31
+ "@north-light/identity": "0.3.677",
32
+ "@north-light/plugin": "0.3.677",
33
33
  "cron-parser": "^5.6.0",
34
34
  "esbuild": "0.28.2",
35
35
  "jose": "^6.2.12",
@@ -10667,17 +10667,17 @@
10667
10667
  },
10668
10668
  "packages/crouter-api": {
10669
10669
  "name": "@north-light/api",
10670
- "version": "0.3.676",
10670
+ "version": "0.3.677",
10671
10671
  "license": "UNLICENSED"
10672
10672
  },
10673
10673
  "packages/crouter-env-docker": {
10674
10674
  "name": "@north-light/env-docker",
10675
- "version": "0.3.676",
10675
+ "version": "0.3.677",
10676
10676
  "license": "UNLICENSED"
10677
10677
  },
10678
10678
  "packages/crouter-identity": {
10679
10679
  "name": "@north-light/identity",
10680
- "version": "0.3.676",
10680
+ "version": "0.3.677",
10681
10681
  "license": "UNLICENSED",
10682
10682
  "dependencies": {
10683
10683
  "jose": "^6.2.1"
@@ -10685,21 +10685,21 @@
10685
10685
  },
10686
10686
  "packages/crouter-plugin": {
10687
10687
  "name": "@north-light/plugin",
10688
- "version": "0.3.676",
10688
+ "version": "0.3.677",
10689
10689
  "license": "UNLICENSED",
10690
10690
  "dependencies": {
10691
- "@north-light/api": "0.3.676",
10692
- "@north-light/identity": "0.3.676"
10691
+ "@north-light/api": "0.3.677",
10692
+ "@north-light/identity": "0.3.677"
10693
10693
  }
10694
10694
  },
10695
10695
  "packages/crouter-sdk": {
10696
10696
  "name": "@north-light/sdk",
10697
- "version": "0.3.676",
10697
+ "version": "0.3.677",
10698
10698
  "license": "UNLICENSED",
10699
10699
  "dependencies": {
10700
- "@north-light/api": "0.3.676",
10701
- "@north-light/identity": "0.3.676",
10702
- "@north-light/plugin": "0.3.676",
10700
+ "@north-light/api": "0.3.677",
10701
+ "@north-light/identity": "0.3.677",
10702
+ "@north-light/plugin": "0.3.677",
10703
10703
  "jose": "^6.2.1"
10704
10704
  },
10705
10705
  "bin": {