@north-light/cli 0.3.711 → 0.3.712
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/core/graph/reader.js +3 -3
- package/dist/core/import/load/run.js +2 -2
- package/dist/core/permissions/evaluator.js +2 -2
- package/dist/daemon/machine-daemon.js +1 -1
- package/package.json +3 -3
- package/packages/crouter-api/dist/core/graph/reader.js +7 -1
- package/packages/crouter-api/dist/core/permissions/evaluator.js +12 -6
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
2
|
-
sub, grant_id, scopes_json, cwd, profile_id, app FROM nodes WHERE node_id = ?`).get(e);if(!a||!l)throw new Error(`no node ${e}`);const{grantee:p,sub:c,grant_id:
|
|
3
|
-
WHERE i.scheme = 'profile' AND i.external_id = ?`).get(e)??await
|
|
1
|
+
var W=Object.defineProperty;var s=(o,e)=>W(o,"name",{value:e,configurable:!0});import{coveredByAny as _,isSandboxedNode as $}from"../../shared/env.js";import{projectPaths as D}from"../../api/dto/profiles.js";import{existsSync as N}from"node:fs";import{CrtrError as B}from"../errors.js";import{getCachedProfile as v}from"../scoped-state/person-store.js";import{parseScope as C}from"@north-light/identity";import{activeGrant as x,grantFor as A,runtimeScope as J}from"../grants/mirror.js";import{withCanvasWrite as P}from"../canvas/db.js";import{ApiError as k}from"../../api/errors.js";import{pluginAppToken as G}from"../secrets.js";import{loadExactProfileManifest as q}from"../profiles/manifest.js";import{ensureOwner as L,getById as U,nodeObject as Y,ownerForGrantee as z,profileHandle as K}from"./objects.js";import{personId as Q,personIdAsync as V}from"../canvas/person.js";import{OBJECT_TYPE as X}from"../permissions/builtin.js";import{warmCheckoutDirs as M}from"../checkout-identities.js";import{fillProfileProjectRepo as Z}from"../profiles/manifest.js";import{emitEvent as I}from"../events/emit.js";import{isCloudRole as R}from"../canvas/person-state.js";import{loadReadAccess as ee,readableAmong as oe,prefetchRepoReads as te,reposForCwd as ne,warmCheckoutIdentities as b}from"./repo-sync/repos.js";async function T(o,e,t,r,n,a){const l=t===null?[]:n.projects(t),p=l.length===0?void 0:a??await V(),c=p===void 0?void 0:await ee(o,p);c!==void 0&&p!==void 0&&await te(o,p,[e,...l.flatMap(i=>i.path!==void 0&&(R()||N(i.path))?[i.path]:[])],c);const d=l.flatMap(i=>i.repo===void 0?[]:[i.repo]),f=p===void 0?new Set:await oe(o,p,d,c),g=await r(e,a,c),w=new Set(g.map(i=>i.repo.id)),E=[],m=[];for(const i of l){if(i.repo!==void 0&&!w.has(i.repo)){const u=await n.object(i.repo);u!==null&&u.type==="repo"&&u.deleted_at===null&&f.has(u.id)&&(w.add(u.id),E.push(u))}if(i.path===void 0||!R()&&!N(i.path))continue;let y;try{y=await r(i.path,a,c)}catch(u){if(u instanceof B&&u.code==="git-lookup-failed")continue;throw u}for(const u of y)w.has(u.repo.id)||(w.add(u.repo.id),E.push(u.repo),m.push(u))}return{repos:g.map(i=>i.repo),checkouts:g,projectRepos:E,projectCheckouts:m}}s(T,"viewRepos");async function Ce(o,e){const t=await o.prepare("SELECT cwd, profile_id FROM nodes WHERE node_id = ?").get(e);if(t===void 0)return;const r=t.profile_id?D(j(o).projects(t.profile_id)):[];if(R()){await re(t.profile_id,[t.cwd,...r]);return}await b(t.cwd);for(const n of r)N(n)&&await b(n)}s(Ce,"warmNodeRepos");async function re(o,e){if(await M(o,e),o!==null){for(const t of v(o)?.manifest.projects??[])if(!(t.path===void 0||t.repo!==void 0))try{const r=(await P(async n=>await ne(n,t.path)))[0];r!==void 0&&await Z(o,t.path,r.id)}catch(r){I({level:"warn",event:"repo.identify.fill_failed",error:r,fields:{profile:o,path:t.path}})}}}s(re,"warmCloudNodeCheckouts");async function xe(o,e,t){if(!R()){for(const n of t)await b(n);return}const r=e===void 0?void 0:await o.prepare("SELECT profile_id FROM nodes WHERE node_id = ?").get(e);await M(r?.profile_id,t)}s(xe,"warmNodeDirs");async function Ae(o,e,t){if(e.class==="anonymous")throw new Error("a publish token cannot read as a principal");if(e.class==="person")return{class:"person",person:await F(o)};if(e.class==="app")return{class:"app",app:await S(o,e.app),scopes:e.scopes,...e.sub===void 0?{}:{sub:e.sub}};if(e.class==="machine"||e.class==="import")throw new Error(`a ${e.class} token cannot read as a principal`);if(e.class==="forwarded"){if(e.actor.kind==="person")return{class:"person",person:await F(o)};const p=await A(e.actor.app,e.sub);if(!p)throw new k(403,"app_not_granted",`${e.actor.app} holds no active grant for ${e.sub} on this machine`);const c=e.actor.node_scopes;return{class:"app",app:await S(o,e.actor.app),place:e.actor.place,launched:c,scopes:c===null?p.resolved:c.filter(d=>_(p.resolved,d))}}if(e.class==="cron"){const p=e.grant?(await x(e.grant))?.resolved??[]:[],c=e.scopes;return{class:"app",app:await S(o,e.app),scopes:c===null?p:c.filter(d=>_(p,d)),launched:c,place:{run:e.origin_run??"",isolated:e.isolated}}}const r=j(o),n=await Y(o,e.node),a=await o.prepare("SELECT cwd, profile_id, app FROM nodes WHERE node_id = ?").get(e.node),l=a.app===null?null:await r.object(a.app);if(!l)throw new Error(`node ${e.node} has no app`);return{class:"node",node:n,app:l,scopes:await H(e.app,e.sub,e.grant,e.scopes,r),launched:e.scopes,cwd:a.cwd,...await T(o,a.cwd,a.profile_id,t,r,e.sub||void 0),profile:a.profile_id===null?null:await r.profile(a.profile_id,l)}}s(Ae,"readerFor");async function ae(o,e,t,r=j(o),n=!1){const a=await o.prepare("SELECT o.* FROM objects o WHERE o.id = ? AND o.type = 'node'").get(e),l=await o.prepare(`SELECT (SELECT external_id FROM identities WHERE object = nodes.app) AS grantee,
|
|
2
|
+
sub, grant_id, scopes_json, cwd, profile_id, app FROM nodes WHERE node_id = ?`).get(e);if(!a||!l)throw new Error(`no node ${e}`);const{grantee:p,sub:c,grant_id:d,scopes_json:f,cwd:g,profile_id:w,app:E}=l,m=E===null?null:await r.object(E);if(!m)throw new Error(`node ${e} has no app`);const i=f===null?null:JSON.parse(f);return{class:"node",node:a,app:m,scopes:await H(p,c??"",d,i,r,n),launched:i,cwd:g,...await T(o,g,w,t,r,c||void 0),profile:w===null?null:await r.profile(w,m)}}s(ae,"readerForNode");class se extends Error{static{s(this,"NoOwningAppError")}constructor(){super("no terminal app or person object"),this.name="NoOwningAppError"}}async function Le(o,e,t=async()=>[],r=j(o)){const n=await o.prepare("SELECT envelope_json FROM peer_stubs WHERE object = ?").get(e.id);if(n!==void 0)return await pe(o,e,n.envelope_json===null?null:JSON.parse(n.envelope_json),r);if(e.type==="node")return await ae(o,e.id,t,r,!0);const a=e.owner===null?null:await r.object(e.owner);if(!a)throw new Error(`watcher ${e.id} has no owner`);const p=(a.type==="app"?a:a.type==="profile"&&a.owner!==null?await r.object(a.owner):null)??await o.prepare("SELECT o.* FROM identities i JOIN objects o ON o.id = i.object WHERE i.external_id = 'app:terminal' AND i.scheme = 'app'").get()??await o.prepare("SELECT * FROM objects WHERE type = 'person' AND name = 'user' AND home_machine IS NULL").get();if(!p)throw new se;const c=(await o.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'app'").get(p.id))?.external_id??"app:terminal",d=J(),f=await o.prepare(`SELECT sub, resolved_scopes_json FROM grants WHERE grantee = ? AND status = 'active'${d.sql}`).all(c,...d.args),g=s(h=>JSON.parse(h.resolved_scopes_json).filter(O=>O.mode==="always").map(O=>C(O.scope)),"always"),w=f.length>1&&a.type==="app"?new Set((await o.prepare("SELECT subject_id FROM relations WHERE resource_type = ? AND resource_id = ? AND relation = 'acts_for' AND subject_type = 'user'").all(X,e.id)).map(h=>h.subject_id)):null,E=w===null?void 0:f.find(h=>w.has(h.sub.replace(/^user:/,"")))?.sub,m=E===void 0?null:await r.grantFor(c,E),i=a.type==="person"?null:f.length===0?r.pluginScopes(c):f.length===1?g(f[0]):m?.resolved??null,u=(a.type==="person"?(await o.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'user'").get(a.id))?.external_id:void 0)??(f.length===1?f[0].sub:m?.sub);return{class:"object",object:e,node:e,owner:a,app:p,scopes:i,...u===void 0?{}:{sub:u},repos:a.type==="repo"?[a]:[]}}s(Le,"readerForObject");async function Me(o,e,t){const r=(await o.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'app'").get(e.id))?.external_id;if(r===void 0)return null;const n=await o.prepare("SELECT resolved_scopes_json FROM grants WHERE grantee = ? AND status = 'active'").all(r);return n.length===0?t.pluginScopes(r):n.length>1?null:JSON.parse(n[0].resolved_scopes_json).filter(a=>a.mode==="always").map(a=>C(a.scope))}s(Me,"appScopesNow");async function pe(o,e,t,r){const n=await F(o);if(t!==null&&t.app===null)return{class:"object",object:e,node:e,owner:n,app:n,scopes:null,repos:[]};const a=t?.app==null?null:await S(o,t.app),l=t?.app==null?null:await r.grantFor(t.app,t.sub),p=t===null||l===null?null:t.node_scopes===null?l.resolved:t.node_scopes.filter(d=>_(l.resolved,d)),c=a??(e.owner===null?n:await r.object(e.owner)??n);return{class:"object",object:e,node:e,owner:c,app:c,scopes:p,launched:t?.node_scopes??null,repos:[],...t?.place==null?{}:{place:t.place}}}s(pe,"readerForStub");function j(o){return{grantById:x,grantFor:A,pluginScopes:s(e=>G(e.replace(/^app:/,""))?.scopes??null,"pluginScopes"),object:s(async e=>await U(o,e),"object"),profile:s(async(e,t)=>await ce(o,e,t),"profile"),projects:s(e=>$()?[]:v(e)?.manifest.projects??[],"projects")}}s(j,"liveLookups");function Te(o){const e=j(o),t=new Map,r=s((n,a)=>(t.has(n)||t.set(n,a()),t.get(n)),"memo");return{grantById:s(n=>r(`g\0${n}`,()=>e.grantById(n)),"grantById"),grantFor:s((n,a)=>r(`a\0${n}\0${a}`,()=>e.grantFor(n,a)),"grantFor"),pluginScopes:s(n=>r(`t\0${n}`,()=>e.pluginScopes(n)),"pluginScopes"),object:s(async n=>await r(`o\0${n}`,async()=>await e.object(n)),"object"),profile:s(async(n,a)=>await r(`p\0${n}\0${a.id}`,async()=>await e.profile(n,a)),"profile"),projects:s(n=>r(`j\0${n}`,()=>e.projects(n)),"projects")}}s(Te,"publishLookups");async function H(o,e,t,r,n,a=!1){const l=t?await n.grantById(t):await n.grantFor(o,e),p=l&&l.grantee===o?l.resolved:null;if(p===null){if(a)return null;throw new Error(`the grant of ${o} is not active`)}return r===null?p:r.filter(c=>_(p,c))}s(H,"nodeScopes");async function F(o){return await z(o,Q())}s(F,"personObject");async function S(o,e){return await L(o,"app","app",e,e.replace(/^app:/,""))}s(S,"appObject");async function ce(o,e,t){return await o.prepare(`SELECT o.* FROM identities i JOIN objects o ON o.id = i.object
|
|
3
|
+
WHERE i.scheme = 'profile' AND i.external_id = ?`).get(e)??await L(o,"profile","profile",e,K(e,q(e).manifest.name),t)}s(ce,"profileObject");export{se as NoOwningAppError,Me as appScopesNow,j as liveLookups,ce as profileObject,Te as publishLookups,Ae as readerFor,ae as readerForNode,Le as readerForObject,T as viewRepos,re as warmCloudNodeCheckouts,xe as warmNodeDirs,Ce as warmNodeRepos};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var X=Object.defineProperty;var m=(e,i)=>X(e,"name",{value:i,configurable:!0});import{zstdCompressSync as Z}from"node:zlib";import{blobStore as x}from"../../blobs/index.js";import{openDb as v,withCanvasWrite as M}from"../../canvas/db.js";import{runAsPerson as ee}from"../../canvas/person.js";import{insertImportedRevisions as te}from"../../graph/documents.js";import{getById as ae}from"../../graph/objects.js";import{bundleKeys as N,decodeRows as ne,rowKeys as L,SEQ_TABLES as ie}from"../bundle/layout.js";import{readCatalog as se}from"./catalog.js";import{copyRows as re,decodeKeys as B,encodeKeys as W}from"./copy.js";import{pruneStaged as oe,precheck as de,renameClashingProfiles as pe,rewriteConversationHeaders as ue,rewritePaths as ce,rewriteRequestPaths as le,takeRepoSyncedDocuments as fe}from"./prepare.js";import{boundSub as me,checkSourcePerson as _e,checkStagedBlobKeys as we,checkStagedPersons as ge,checkStagedReferences as be,checkStagedRequestKeys as he}from"./bind.js";import{deleteBlobs as ye,deleteRunBlobs as Ee,deleteRunPrefix as Se,moveRunBlobs as ve}from"./blobs.js";import{dropStubRows as Re,findFleetGrant as Oe,grantMissing as Pe,mapProfileIds as Ie,renameClashingRepos as Te,rewriteIds as je,rewritePerson as ke,scopeRepoIdentities as De}from"./rewrite.js";import{dropStaging as H,ImportLaneError as g,stage as Ae,stagingSchema as Ce,targetSchema as Me}from"./stage.js";import{verifyRun as Ne}from"./verify.js";import{sandboxPathMap as Le,writeNodeFiles as Be}from"./path-map.js";import{allStoreKeys as We,readPluginsStore as He,recordImportedActivations as Ke,writeStores as Ue}from"./stores.js";import{publishImportedPlugins as Fe}from"./publish-plugins.js";import{COPIED_TABLES as Je}from"../bundle/layout.js";import{emitEvent as qe}from"../../events/emit.js";import{ClaimLostError as $e}from"../../../daemon/reconcilers/row-claim.js";const K=10*6e4,Ge=30*6e4,R=m(()=>new Date().toISOString(),"now"),O=m(async(e,i)=>{await(await v()).prepare("UPDATE import_runs SET step = ? WHERE run_id = ?").run(i,e)},"setStep");async function Ye(e,i){const t=await e.get(N.source(i));if(t===null)throw new g("stage","bundle_invalid","source.json is missing");const a=JSON.parse(t.toString("utf8"));if(typeof a.rowParts!="object"||a.rowParts===null)throw new g("stage","bundle_invalid","source.json names no row parts");return a}m(Ye,"readSource");async function ze(e,i,t,a,n,p){const r=[];for(const c of L(t.run_id,"grants",a)){const f=await e.get(c);if(f===null)throw new g("stage","bundle_invalid",`row file ${c} is missing`);r.push(...ne(f))}const o=[];for(const c of r){const f=me(c.sub,a.person,t.person,"grants.sub");await Oe(i,n,p,f,c.grantee)===void 0&&o.push(c.grantee)}if(o.length===0)return!0;if(t.loaded_at===void 0||t.loaded_at===null)throw new g("stage","import_failed","a loading run has no loaded_at");if(Date.now()-Date.parse(t.loaded_at)>=K)throw Pe(o);return!1}m(ze,"grantsReady");async function Et(e,i,t={}){const a=t.blobs??await x(),n=await v(),p=Ce(e.run_id);let r="start";const o=m(async s=>{r=s,await i.assertOwned(),await O(e.run_id,s),await t.atStep?.(s)},"at");let c=e.state==="committed";const f=[];try{const s=await Ye(a,e.run_id);if(e.source_kind==="machine"&&s.installId!==e.source_install_id)throw new g("stage","bundle_invalid",`source.json names install ${s.installId}, the run is for ${e.source_install_id}`);s.installId=e.source_install_id;const l=await Me(n),P=[...Je],b=await se(n,l,[...P,"grants"]);if(!c){const _={},T=[],j=[],k=t.fleetRuntime??process.env.CRTR_RUNTIME??null;if(await _e(n,l,s.person,e.person),!await ze(a,n,e,s,l,k)){await i.assertOwned(),await O(e.run_id,"waiting_for_grants");return}await o("publish-plugins");const F=await He(a,e.run_id),y=await ee(e.person,()=>Fe(F));if(y.unavailable.length>0){if(e.loaded_at===void 0||e.loaded_at===null)throw new g("publish-plugins","import_failed","a loading run has no loaded_at");if(Date.now()-Date.parse(e.loaded_at)>=K)throw new g("publish-plugins","directory_unavailable",`the directory did not answer for: ${y.unavailable.slice(0,10).join(", ")}; rerun the import once it is reachable`,{plugins:y.unavailable});await i.assertOwned(),await O(e.run_id,"waiting_for_directory");return}j.push(...y.refused),await o("stage");const J=await Ae(n,e.run_id,s.counts,d=>L(e.run_id,d,s),d=>a.get(d));for(const[d,u]of Object.entries(J))_[d]={staged:u,inserted:0,mapped:0,dropped:0};const w={db:n,schema:p,target:l,catalog:b,sourcePerson:s.person,targetPerson:e.person,fleetRuntime:k,shippedBodies:s.shippedBodies??{}};await o("bind-staged");for(const[d,u]of Object.entries(await ge(w)))E(_,d,u);for(const[d,u]of Object.entries(await we(w)))E(_,d,u);await o("rewrite-person"),await ke(w),await De(w),await o("prune");const q=await oe(n,p,b,s),S=s.kind==="hosted"?Le(s.pathPrefixes??[]):[];await o("rewrite-paths"),await ce(n,p,S),await ue(n,p,S,a,e.run_id),await le(n,p),await he(w);const $=await Ie(w);await pe(n,p,l,s.installId,e.person),await o("rewrite-ids");const D=await je(w,$);await o("drop");const G=await fe(n,p,l),Y=await Re(w);for(const[d,u]of Object.entries({...q}))E(_,d,u);for(const[d,u]of Object.entries(Y))E(_,d,u);await be(w,{installId:s.installId,person:e.person,runId:e.run_id}),await Te(w),await o("pre-check");const z=new Map([["messages",["seq"]],...ie.map(d=>[d,["seq"]])]);await de(n,p,l,b,P,new Set,z),await o("blobs"),await ve(n,p,l,e.person,a,e.run_id,f),await o("copy"),await M(async d=>{await i.assertOwned({extendLeaseMs:Ge});const u=await re({db:d,runId:e.run_id,schema:p,target:l,catalog:b,source:s,person:e.person,idMap:D,pathMap:S}),A=await Xe(d,e.run_id,G);A>0&&(u.inserted.revisions=(u.inserted.revisions??0)+A),await Be(d,p,e.run_id,s);const C=await Ue({db:d,blobs:a,runId:e.run_id,person:e.person,objectMap:D.object});for(const[Q,V]of Object.entries(C.inserted))u.inserted[Q]=V.length;return T.push(...C.unresolvedPlugins),await d.prepare("UPDATE import_runs SET counts_json = ?, loaded_at = COALESCE(loaded_at, ?) WHERE run_id = ?").run(JSON.stringify({...Ve(_,u),unresolved_plugins:T,refused_plugins:j}),R(),e.run_id),u}),c=!0,await t.atStep?.("committed")}await o("verify");const h=await Ne(n,e.run_id,p,l,b,s.installId);if(await n.prepare("UPDATE import_runs SET verify_json = ? WHERE run_id = ?").run(JSON.stringify(h),e.run_id),!h.ok)throw new g("verify","verify_failed","the committed rows differ from the staged rows or an invariant failed",{differences:h.differences,invariants:h.invariants});await o("manifest");const I=N.manifest(e.run_id);await a.put(I,await Ze(e.run_id)),await H(n,e.run_id);for(const _ of We(e.run_id))await a.delete(_);await Ee(a,e.run_id),await M(async _=>{await Ke(_,e.run_id,e.person),await _.prepare("UPDATE import_runs SET state = 'done', step = 'done', manifest_key = ?, finished_at = ? WHERE run_id = ?").run(I,R(),e.run_id)})}catch(s){if(s instanceof $e)throw s;const l=Qe(s,r);qe({level:"error",event:"import.run.failed",error:s,fields:{run_id:e.run_id,step:l.step,code:l.code}}),await H(n,e.run_id).catch(()=>{}),c||await ye(a,f,!0),await n.prepare("UPDATE import_runs SET state = 'failed', failure_json = ?, finished_at = ? WHERE run_id = ?").run(JSON.stringify(l),R(),e.run_id),await Se(a,e.run_id,{keepNodeFiles:c,bestEffort:!0})}}m(Et,"processRun");function Qe(e,i){if(e instanceof g)return{step:e.step,code:e.code,message:e.message,...e.detail===void 0?{}:{detail:e.detail}};const t=e.code;return{step:i,code:typeof t=="string"?t:"import_failed",message:e instanceof Error?e.message:String(e)}}m(Qe,"failureOf");function E(e,i,t){(e[i]??={staged:0,inserted:0,mapped:0,dropped:0}).dropped+=t}m(E,"addDropped");function Ve(e,i){for(const[t,a]of Object.entries(i.inserted))(e[t]??={staged:0,inserted:0,mapped:0,dropped:0}).inserted=a;for(const[t,a]of Object.entries(i.mapped))(e[t]??={staged:0,inserted:0,mapped:0,dropped:0}).mapped=a;return e}m(Ve,"withInserted");async function Xe(e,i,t){const a=new Set((await e.prepareUncached("SELECT rev_id FROM revisions WHERE rev_id IN (SELECT jsonb_array_elements_text(?::jsonb))").all(JSON.stringify(t.map(r=>r.rev_id)))).map(r=>r.rev_id)),n=t.filter(r=>!a.has(r.rev_id)),p=new Map;for(const r of t)p.set(r.document,[...p.get(r.document)??[],r]);for(const[r,o]of p){const c=await ae(e,r);c!==null&&await te(e,c,o.map(f=>({rev_id:f.rev_id,parents:f.parents,body_hash:f.body_hash,rationale:f.rationale,created_at:f.created_at})))}return await U(e,i,"revisions",n.map(r=>[r.rev_id])),await U(e,i,"revision_parents",n.flatMap(r=>r.parents.map(o=>[r.rev_id,o]))),n.length}m(Xe,"arrive");async function U(e,i,t,a){if(a.length===0)return;const n=await e.prepare("SELECT inserted_keys FROM import_manifest WHERE run_id = ? AND table_name = ?").get(i,t);n===void 0?await e.prepare("INSERT INTO import_manifest (run_id, table_name, inserted_keys) VALUES (?, ?, ?)").run(i,t,W(a)):await e.prepare("UPDATE import_manifest SET inserted_keys = ? WHERE run_id = ? AND table_name = ?").run(W([...B(n.inserted_keys),...a]),i,t)}m(U,"appendManifest");async function Ze(e){const t=await(await v()).prepare("SELECT table_name, inserted_keys FROM import_manifest WHERE run_id = ? ORDER BY table_name").all(e);return Z(Buffer.from(t.map(a=>JSON.stringify({table:a.table_name,keys:B(a.inserted_keys)})).join(`
|
|
2
2
|
`)+`
|
|
3
|
-
`))}
|
|
3
|
+
`))}m(Ze,"manifestFile");export{Ge as COPY_LEASE_MS,K as GRANT_WAIT_MS,Et as processRun};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $=Object.defineProperty;var a=(t,e)=>$(t,"name",{value:e,configurable:!0});import{isCloudRole as T,personIdAsync as C}from"../canvas/person.js";import{requestPersonId as L}from"../canvas/person-state.js";import{OBJECT_TYPE as x,GROUP_TYPE as m}from"./builtin.js";import{ceilingFrag as H,resolveCeiling as W}from"./ceiling.js";import{compilePermission as w}from"./compile.js";import{PermissionError as M}from"./errors.js";import{loadDefinitions as I}from"./schemas.js";import{TRUE as U,and as k,f as E,or as D,raw as p}from"./sql.js";const F=["read","edit","message","use","share"],P={read:"read",use:"read",edit:"write",share:"write",message:"message"},u=a(t=>t.replace(/^user:/,""),"bareUser");async function q(t,e){return await j(t,e)??u(await C())}a(q,"userOf");async function j(t,e){if(e.class==="person"){const r=await t.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'user'").get(e.person.id);return r===void 0?null:u(r.external_id)}if(e.class==="app")return e.sub===void 0?null:u(e.sub);if(e.class==="object"&&e.sub!==void 0)return u(e.sub);const s=e.class==="node"?e.node.id:e.object.id,n=await t.prepare("SELECT sub FROM nodes WHERE node_id = ?").get(s);return n?.sub==null?null:u(n.sub)}a(j,"namedUserOf");async function y(t,e){const s=[e,"*"],n=await t.prepareUncached(`WITH RECURSIVE g(id) AS (
|
|
2
2
|
SELECT resource_id FROM relations WHERE resource_type = ? AND relation = 'member' AND subject_type = 'user' AND subject_id = ANY(?::text[])
|
|
3
3
|
UNION
|
|
4
4
|
SELECT r.resource_id FROM relations r JOIN g ON r.subject_type = ? AND r.subject_id = g.id AND r.subject_relation = 'member'
|
|
5
5
|
WHERE r.resource_type = ? AND r.relation = 'member')
|
|
6
|
-
SELECT id FROM g`).all(
|
|
6
|
+
SELECT id FROM g`).all(m,s,m,m);return{userIds:s,groupIds:n.map(r=>r.id)}}a(y,"subjectSet");const l=new WeakMap,re=a(t=>(l.has(t)||l.set(t,null),t),"shareReads");function v(t,e){const s=l.get(e);if(s)return s;const n=(async()=>{const r=T()&&L()===void 0?await j(t,e):await q(t,e);return{reader:e,userId:r,subjects:r===null?{userIds:["*"],groupIds:[]}:await y(t,r),defs:await I(t)}})();return s===null&&(l.set(e,n),n.catch(()=>l.set(e,null))),n}a(v,"resolveReader");const J=a(t=>"subjects"in t,"isEval");async function Y(t,e,s,n="o",r={}){if(!F.includes(s))throw new M(400,"unknown_permission",`unknown permission ${s}`);const o=J(e)?e:await v(t,e),{defs:c}=o,f=p(`${n}.id`),N=w(c,o.subjects,x,s,f),S=s==="read"?D([N,p(`${n}.type = 'app'`)]):N,g=o.reader.class==="person"?null:o.reader.app.id,_=o.reader.class==="app"&&o.reader.place===void 0&&g!==null?await G(t,g):new Set,d=[];for(const[i,b]of c){if(i.startsWith("crtr/")||i==="user"||i==="app"||!(s in b.permissions)&&!(s in b.relations))continue;const O=i.split("/")[0];d.push(E`WHEN ${p(n)}.schema_type = ${i} THEN ${_.has(O)?U:w(c,o.subjects,i,s,f)}`)}const h=d.length===0?E`(CASE WHEN ${p(n)}.schema_type IS NULL THEN ${S} ELSE FALSE END)`:E`(CASE WHEN ${p(n)}.schema_type IS NULL THEN ${S} ${{sql:d.map(i=>i.sql).join(" "),params:d.flatMap(i=>i.params)}} ELSE FALSE END)`,R=await B(t,o,P[s],r);return R===null?h:k([H(R,n),h])}a(Y,"permits");const A=new WeakMap;function B(t,e,s,n={}){let r=A.get(e.reader);r===void 0&&A.set(e.reader,r=new Map);const o=`${s} ${n.verb??""} ${e.userId} ${e.subjects.groupIds.join(",")}`;let c=r.get(o);return c===void 0&&(c=W(t,e.reader,e.userId,s,n),r.set(o,c),c.catch(()=>r.delete(o))),c}a(B,"ceilingOf");async function G(t,e){const s=await t.prepare("SELECT s.namespace FROM schemas s JOIN identities i ON i.external_id = s.app AND i.scheme = 'app' WHERE i.object = ?").all(e);return new Set(s.map(n=>n.namespace))}a(G,"ownNamespaceTypes");async function oe(t,e,s,n,r={}){const o=await Y(t,e,s,"o",r);return(await t.prepareUncached(`SELECT ${o.sql} AS ok FROM objects o WHERE o.id = ?`).get(...o.params,n))?.ok===!0}a(oe,"check");async function ce(t,e,s,n){const r=await y(t,u(e)),o=await I(t),c=w(o,r,n.type,s,E`${n.id}::text`);return(await t.prepareUncached(`SELECT ${c.sql} AS ok`).get(...c.params))?.ok===!0}a(ce,"checkUser");export{F as PERMISSIONS,B as ceilingOf,oe as check,ce as checkUser,Y as permits,v as resolveReader,re as shareReads,y as subjectSet,q as userOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var F=Object.defineProperty;var i=(t,r)=>F(t,"name",{value:r,configurable:!0});import{chmodSync as Y,closeSync as A,existsSync as G,mkdirSync as k,openSync as $,unlinkSync as J,writeFileSync as X,rmSync as E}from"node:fs";import{createServer as z}from"node:http";import{dirname as x,join as R}from"node:path";import{spawn as L}from"node:child_process";import{SELF_UPDATE_SCRIPT as P}from"../core/self-update.js";import{apiSocketPath as K,crtrHome as C}from"../core/canvas/paths.js";import{bindDaemonEventSource as V}from"../core/events/source.js";import{emitEvent as p}from"../core/events/emit.js";import{brokerCommandDeclaresCanvasHome as W}from"../core/runtime/broker-ownership.js";import{createMachineExecutor as Q,findBrokers as Z,stopAllBrokers as q}from"../core/runtime/runner/machine/executor.js";import{machineCheckoutHandlers as ee}from"../core/checkout-identities.js";import{machineWorktreeHandlers as ne}from"../core/worktree-machine.js";import{readPersonCredential as te}from"../core/directory/person-credential.js";import{socketDir as oe}from"../core/layout.js";import{isDaemonRunning as re,pidfilePath as _,readPidfile as ie}from"./pidfile.js";import{cancelMachineCron as ae,runMachineCron as se,stopOrphanedMachineCrons as ce}from"./cron/machine-exec.js";import{startMachineLink as de}from"./machine-link/client.js";import{deleteMoveRecord as O,readMachineConfig as me,readMachineCredential as j,readMoveRecord as fe,writeMoveRecord as le}from"./machine-link/config.js";import{jobExitReporting as pe,stopMachineJob as ue}from"./machine-link/job-sweep.js";import{notifyMoveFinished as he}from"./machine-link/move-notify.js";import{machineSupervision as ve,SUPERVISION_TICK_MS as ye}from"./machine-supervision.js";import{startBrokerMemoryCap as we}from"./broker-memory-cap.js";const Se=10*6e4;let D=0;function _e(t){if(Date.now()-D<Se||!/^\d+\.\d+\.\d+$/.test(t))return;D=Date.now(),p({level:"warn",event:"daemon.machine.updating",fields:{release:t}});const r=R(x(P),"..","bin","crtr"),a=$(R(C(),"crtrd.err"),"a");L("/bin/sh",["-c",'"$0" "$1" --version "$2" && "$0" "$3" sys daemon restart',process.execPath,P,t,r],{detached:!0,stdio:["ignore",a,a]}).unref(),A(a)}i(_e,"updateToRelease");const B=1024;function Ie(t,r){return{ok:!0,daemon_up:!0,store_accessible:!1,brokers_reconciled:!1,link_connected:t,signed_in:r,startup_phase:t?"ready":"recovering"}}i(Ie,"machineHealth");async function Ve(){const t=me();if(t===void 0)throw new Error("crtrd --role machine needs runtime/machine.json: this install has not been imported as a machine");const r=te()!==void 0;if(r&&j(),re())throw new Error("a crtrd is already running for this home");V(),r||(await q(),await ce(),p({level:"info",event:"daemon.machine.signed_out",fields:{environment:t.environmentId}})),k(oe(),{recursive:!0,mode:493});const a=K();G(a)&&J(a);let n;const f=pe(()=>n),s=z((e,o)=>{const c=(e.url??"").split("?")[0];if(e.method==="POST"&&(c==="/job-exit"||c==="/job-activity")){const b=[];let S=0;e.on("data",d=>{S+=d.length,S<=B&&b.push(d)}),e.on("end",()=>{if(S>B){o.writeHead(413),o.end();return}let d={};try{d=JSON.parse(Buffer.concat(b).toString("utf8"))}catch{}const T=typeof d.node=="string"&&typeof d.job=="string";o.writeHead(T?202:400,{"content-type":"application/json; charset=utf-8"}),o.end("{}"),T&&(c==="/job-exit"?f.notice:f.activity)(d.node,d.job)});return}const M=(e.method??"GET")==="GET"&&(e.url??"/").split("?")[0]==="/healthz";o.writeHead(M?200:404,{"content-type":"application/json; charset=utf-8"}),o.end(JSON.stringify(M?Ie(n?.connected()===!0,r):{error:{code:"not_found",message:"a machine-role crtrd serves only /healthz",origin:"runtime"}}))});await new Promise((e,o)=>{s.once("error",o),s.listen(a,()=>{s.off("error",o),Y(a,384),e()})}),k(x(_()),{recursive:!0}),X(_(),String(process.pid),"utf8");let l;await be(t.runId,r,()=>l!==void 0);const u=new Set,v=new Set;let y=!1;const m=Q({apiUrl:t.apiUrl,environmentId:t.environmentId,onExit:i(e=>n?.reportExit(e),"onExit")}),H=i(async(e,o)=>{u.add(e.executionId);for(const c of v)c.add(e.executionId);try{return await m.start(e,o)}finally{u.delete(e.executionId)}},"start");n=r?de({apiUrl:t.apiUrl,environmentId:t.environmentId,credential:j,onOpen:i(()=>{f.onOpen(),y=!0},"onOpen"),onBehind:_e,handlers:{start:H,wake:m.wake,stop:m.stop,status:m.status,delete:m.delete,viewer:m.viewer,"cron.run":se,"cron.cancel":ae,"job.stop":i(e=>ue(e),"job.stop"),...ne,...ee}}):void 0;const I=n===void 0?void 0:ve({link:n,brokers:i(async()=>{const e=new Set(u);v.add(e);const o=await Z().finally(()=>v.delete(e));return y&&(y=!1,n?.reportRunning([...new Set([...e,...o.filter(c=>W(c.command,C())).map(c=>c.execution)])])),o},"brokers"),stop:i((e,o)=>m.stop({execution:{executionId:e,nodeId:o,attempt:0,sandboxName:null},options:{reason:"yield_stall"}}),"stop")});let w=!1;const N=I===void 0?void 0:setInterval(()=>{w||(w=!0,I(Date.now()).catch(e=>p({level:"error",event:"daemon.machine.supervision_failed",error:e})).finally(()=>{w=!1}))},ye),U=we();p({level:"info",event:"daemon.machine.started",fields:{environment:t.environmentId}});const g=i(()=>l??=(async()=>{n?.stop(),clearInterval(N),U(),await new Promise(e=>{s.close(()=>e()),s.closeAllConnections()}),ie()===process.pid&&(E(a,{force:!0}),E(_(),{force:!0})),process.off("SIGINT",h),process.off("SIGTERM",h)})(),"teardown"),h=i(()=>{g().then(()=>process.exit(0),()=>process.exit(1))},"onSignal");return process.on("SIGINT",h),process.on("SIGTERM",h),g}i(Ve,"runMachineDaemon");const ge=5e3,Me=3e5;async function be(t,r,a){let n;try{n=fe()}catch(s){p({level:"warn",event:"daemon.machine.move_record_unreadable",fields:{error:s.message}});return}if(n===void 0||n.state==="running"||n.runId!==t)return;if(n.notified||n.notify===null){O();return}if(n.state==="committed"&&(n={...n,state:"activated"},le(n)),!r)return;const f=n;(async()=>{let s=ge;for(;;){try{await he(f),O();return}catch(l){p({level:"warn",event:"daemon.machine.move_notify_failed",fields:{node:f.notify??"",error:l.message}})}if(await new Promise(l=>{setTimeout(l,s).unref()}),a())return;s=Math.min(s*2,Me)}})()}i(be,"settleFinishedMove");export{Ie as machineHealth,Ve as runMachineDaemon};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.712",
|
|
4
4
|
"description": "crtr — agent runtime with memory, plugins, and marketplaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
},
|
|
159
159
|
"license": "UNLICENSED",
|
|
160
160
|
"dependencies": {
|
|
161
|
-
"@north-light/identity": "0.3.
|
|
162
|
-
"@north-light/plugin": "0.3.
|
|
161
|
+
"@north-light/identity": "0.3.712",
|
|
162
|
+
"@north-light/plugin": "0.3.712",
|
|
163
163
|
"@earendil-works/chord": "1.5.2",
|
|
164
164
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
165
165
|
"@earendil-works/pi-ai": "1.5.2",
|
|
@@ -210,8 +210,14 @@ export async function readerForObject(db, watcher, reposFn = async () => [], loo
|
|
|
210
210
|
: grants.length === 1
|
|
211
211
|
? always(grants[0])
|
|
212
212
|
: kept?.resolved ?? null;
|
|
213
|
+
// The person the object reads for: its one grant's person, the person it is kept for, or the person that owns it. Delivery resolves the reader's
|
|
214
|
+
// user from this, so a reader built outside a request (package publishing, on a cloud role) never asks the process for a person.
|
|
215
|
+
const personSub = owner.type === 'person'
|
|
216
|
+
? (await db.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'user'").get(owner.id))?.external_id
|
|
217
|
+
: undefined;
|
|
218
|
+
const readsFor = personSub ?? (grants.length === 1 ? grants[0].sub : kept?.sub);
|
|
213
219
|
return { class: 'object', object: watcher, node: watcher, owner, app: owningApp, scopes,
|
|
214
|
-
...(
|
|
220
|
+
...(readsFor === undefined ? {} : { sub: readsFor }), repos: owner.type === 'repo' ? [owner] : [] };
|
|
215
221
|
}
|
|
216
222
|
/** The scopes `app` (an app object) holds now: its one active grant's always-scopes, or a local plugin's `crtr_app_` token scopes when it has no
|
|
217
223
|
* grant; null for several grants or none that applies. Unlike an app-owned object's reader (`readerForObject`), it has no person to pick one grant by. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isCloudRole, personIdAsync } from '../canvas/person.js';
|
|
2
|
+
import { requestPersonId } from '../canvas/person-state.js';
|
|
2
3
|
import { OBJECT_TYPE, GROUP_TYPE } from './builtin.js';
|
|
3
4
|
import { ceilingFrag, resolveCeiling } from './ceiling.js';
|
|
4
5
|
import { compilePermission } from './compile.js';
|
|
@@ -11,17 +12,21 @@ const ACCESS = { read: 'read', use: 'read', edit: 'write', share: 'write', messa
|
|
|
11
12
|
const bareUser = (principal) => principal.replace(/^user:/, '');
|
|
12
13
|
/** The user a reader acts for: a person's own identity; an app call's `sub`; a node's `sub`; otherwise the install's person. */
|
|
13
14
|
export async function userOf(db, reader) {
|
|
15
|
+
return await namedUserOf(db, reader) ?? bareUser(await personIdAsync());
|
|
16
|
+
}
|
|
17
|
+
/** The user a reader names itself, without falling back to the process's person; null when it names none. */
|
|
18
|
+
async function namedUserOf(db, reader) {
|
|
14
19
|
if (reader.class === 'person') {
|
|
15
20
|
const row = await db.prepare("SELECT external_id FROM identities WHERE object = ? AND scheme = 'user'").get(reader.person.id);
|
|
16
|
-
return
|
|
21
|
+
return row === undefined ? null : bareUser(row.external_id);
|
|
17
22
|
}
|
|
18
23
|
if (reader.class === 'app')
|
|
19
|
-
return
|
|
24
|
+
return reader.sub === undefined ? null : bareUser(reader.sub);
|
|
20
25
|
if (reader.class === 'object' && reader.sub !== undefined)
|
|
21
26
|
return bareUser(reader.sub);
|
|
22
27
|
const nodeId = reader.class === 'node' ? reader.node.id : reader.object.id;
|
|
23
28
|
const row = await db.prepare('SELECT sub FROM nodes WHERE node_id = ?').get(nodeId);
|
|
24
|
-
return
|
|
29
|
+
return row?.sub == null ? null : bareUser(row.sub);
|
|
25
30
|
}
|
|
26
31
|
/** The user ids a subject stands for (the user and `*`) and every group it reaches, directly or through nested groups. */
|
|
27
32
|
export async function subjectSet(db, userId) {
|
|
@@ -35,8 +40,9 @@ export async function subjectSet(db, userId) {
|
|
|
35
40
|
return { userIds, groupIds: rows.map((r) => r.id) };
|
|
36
41
|
}
|
|
37
42
|
/** A reader `shareReads` marked is built for one request: its user, subjects and definitions are resolved once; any other reader may outlive a
|
|
38
|
-
* membership change and resolves them per call. The user a reader reads as is `userOf`, except that on a cloud role
|
|
39
|
-
*
|
|
43
|
+
* membership change and resolves them per call. The user a reader reads as is `userOf`, except that on a cloud role outside a request a reader that
|
|
44
|
+
* names no user itself (an app reader with no `sub`, such as package link derivation at boot; a watcher's reader built while a package publishes) acts
|
|
45
|
+
* for no person: null. `userOf` itself keeps throwing there. */
|
|
40
46
|
const oneRequest = new WeakMap();
|
|
41
47
|
export const shareReads = (reader) => { if (!oneRequest.has(reader))
|
|
42
48
|
oneRequest.set(reader, null); return reader; };
|
|
@@ -45,7 +51,7 @@ export function resolveReader(db, reader) {
|
|
|
45
51
|
if (shared)
|
|
46
52
|
return shared;
|
|
47
53
|
const ev = (async () => {
|
|
48
|
-
const userId =
|
|
54
|
+
const userId = isCloudRole() && requestPersonId() === undefined ? await namedUserOf(db, reader) : await userOf(db, reader);
|
|
49
55
|
return { reader, userId, subjects: userId === null ? { userIds: ['*'], groupIds: [] } : await subjectSet(db, userId), defs: await loadDefinitions(db) };
|
|
50
56
|
})();
|
|
51
57
|
if (shared === null) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.712",
|
|
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.712",
|
|
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.712",
|
|
31
|
+
"@north-light/identity": "0.3.712"
|
|
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.712",
|
|
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.712",
|
|
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.712",
|
|
32
|
+
"@north-light/plugin": "0.3.712",
|
|
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.712",
|
|
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.712",
|
|
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.712",
|
|
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.712",
|
|
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.712",
|
|
11927
|
+
"@north-light/identity": "0.3.712"
|
|
11928
11928
|
}
|
|
11929
11929
|
},
|
|
11930
11930
|
"packages/crouter-sdk": {
|
|
11931
11931
|
"name": "@north-light/sdk",
|
|
11932
|
-
"version": "0.3.
|
|
11932
|
+
"version": "0.3.712",
|
|
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.712",
|
|
11936
|
+
"@north-light/identity": "0.3.712",
|
|
11937
|
+
"@north-light/plugin": "0.3.712",
|
|
11938
11938
|
"jose": "^6.2.1"
|
|
11939
11939
|
},
|
|
11940
11940
|
"bin": {
|