dal-code 1.0.59 → 1.0.61
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/CHANGELOG.md +8 -0
- package/dist/bundle/chunks/account-REEBP4XX.js +1 -0
- package/dist/bundle/chunks/{anthropic-messages-HVFHIIGX.js → anthropic-messages-FFHN77YO.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-RMWKIGFW.js → azure-openai-responses-XMVXFFRW.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/{chunk-TPOKZ2EU.js → chunk-3UVUVPDJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-IONGABQF.js → chunk-46A3CZG4.js} +1 -1
- package/dist/bundle/chunks/{chunk-BBNE2TWS.js → chunk-4PE5FX77.js} +1 -1
- package/dist/bundle/chunks/{chunk-4BOWD7PQ.js → chunk-5DM5CSLU.js} +1 -1
- package/dist/bundle/chunks/chunk-5VVKJ7N6.js +9 -0
- package/dist/bundle/chunks/chunk-7FEAO2PW.js +2 -0
- package/dist/bundle/chunks/{chunk-HF334NQU.js → chunk-B66W54NL.js} +1 -1
- package/dist/bundle/chunks/chunk-CVSK7HIR.js +1 -0
- package/dist/bundle/chunks/{chunk-VDPDHGGJ.js → chunk-DM37LCOU.js} +1 -1
- package/dist/bundle/chunks/{chunk-PMFHJN7I.js → chunk-HDE7XZW5.js} +1 -1
- package/dist/bundle/chunks/{chunk-MPLE6M5C.js → chunk-KV7HXJIS.js} +1 -1
- package/dist/bundle/chunks/{chunk-4PBY6OYS.js → chunk-LBVJMXG6.js} +1 -1
- package/dist/bundle/chunks/{chunk-F5SIUTR7.js → chunk-LGD3AMTG.js} +1 -1
- package/dist/bundle/chunks/{chunk-KT7CXVDN.js → chunk-M4QINYHM.js} +9 -9
- package/dist/bundle/chunks/{chunk-YOQ3KBG5.js → chunk-MOBJIVPU.js} +1 -1
- package/dist/bundle/chunks/{chunk-KQRRELCF.js → chunk-NBRVYUIG.js} +1 -1
- package/dist/bundle/chunks/{chunk-AL3DFAIM.js → chunk-NRQYSXAU.js} +1 -1
- package/dist/bundle/chunks/{chunk-GZJEAFRS.js → chunk-O4KJ5UE4.js} +1 -1
- package/dist/bundle/chunks/{chunk-IKSSB5ZJ.js → chunk-OLTY5TDX.js} +1 -1
- package/dist/bundle/chunks/{chunk-R47JBGS3.js → chunk-QM5JU2GS.js} +1 -1
- package/dist/bundle/chunks/{chunk-XQF5XDEM.js → chunk-RRAXQWE3.js} +2 -2
- package/dist/bundle/chunks/{chunk-J6H2LYOZ.js → chunk-TLYT7KXA.js} +1 -1
- package/dist/bundle/chunks/{chunk-QU2VEHMW.js → chunk-XIF7O6UG.js} +3 -3
- package/dist/bundle/chunks/{chunk-F52JQCLE.js → chunk-XKOYUKPQ.js} +1 -1
- package/dist/bundle/chunks/{chunk-X63WCLSX.js → chunk-ZLZHK7BO.js} +274 -274
- package/dist/bundle/chunks/{chunk-C5ELI234.js → chunk-ZVMXRMIH.js} +1 -1
- package/dist/bundle/chunks/{cli-BFWJUYZ5.js → cli-4VML7NOW.js} +1 -1
- package/dist/bundle/chunks/cli-RJETLDQ5.js +30 -0
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-RXFI2EBV.js → cloudflare-workers-ai-system-one-63ASD4MS.js} +1 -1
- package/dist/bundle/chunks/{easter-egg-3d-W2F3ROZ6.js → easter-egg-3d-JQUBBOXE.js} +1 -1
- package/dist/bundle/chunks/{execute-NJRE4WBO.js → execute-ZIFT667Q.js} +1 -1
- package/dist/bundle/chunks/{google-generative-ai-5F5544G4.js → google-generative-ai-4T6TSKGZ.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-4PSVELDG.js → google-vertex-Z2AJIOKJ.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-IPNT4VOW.js → llama-cpp-classify-UD7L3OEZ.js} +1 -1
- package/dist/bundle/chunks/{mcp-F3BQ6MQW.js → mcp-7W2PZMFF.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-RSYLYGE4.js → mistral-conversations-W4M2WAFU.js} +1 -1
- package/dist/bundle/chunks/{office-UBOUFRAU.js → office-FIY2WQ2K.js} +1 -1
- package/dist/bundle/chunks/oidc-WQ64R7RE.js +1 -0
- package/dist/bundle/chunks/{openai-codex-responses-OKPZLYIS.js → openai-codex-responses-NYZACUJQ.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-BFCQZRZ2.js → openai-completions-GOZT4TOU.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-RJ4MH5XI.js → openai-decisions-ZJSAGWHI.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-PT5MXG3Q.js → openai-responses-ZVECOLDP.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-ICCH2YHW.js → openrouter-images-BOGEFLXU.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-Z2XWHIYT.js → pi-messages-XDGHAFKO.js} +1 -1
- package/dist/bundle/chunks/{review-WTYIVWYR.js → review-ESZWG3ID.js} +1 -1
- package/dist/bundle/chunks/{router-V3EIAYOF.js → router-ZQ7UPIHA.js} +1 -1
- package/dist/bundle/chunks/{runtime-FNCZJKOC.js → runtime-KHMBKDP7.js} +1 -1
- package/dist/bundle/chunks/{sdk-32L63XRF.js → sdk-6F6YIKOL.js} +1 -1
- package/dist/bundle/chunks/src-TVUSERYE.js +3 -0
- package/dist/bundle/chunks/{sync-Z5USQ7AN.js → sync-F7N6C6RF.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-6UYWINOZ.js → typesafe-system-one-NSQNXICI.js} +1 -1
- package/dist/bundle/chunks/{usage-JODQIC2H.js → usage-5VHK66HK.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-ERCLFZEY.js → virtual-modules-ABFE2KKD.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/main.js +4 -4
- package/dist/node_modules/@dalcode/dal-advisor/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-awake/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-bridge/src/index.js +1 -1
- package/dist/node_modules/@dalcode/dal-capabilities/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-codeindex/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-compat/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-dap/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-gateway/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-goal/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-guard/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-guard/src/attribution.js +1 -1
- package/dist/node_modules/@dalcode/dal-guard/src/index.js +4 -4
- package/dist/node_modules/@dalcode/dal-halo/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-interactive/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lang/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-learn/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-lsp/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-mcp/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-office/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-pi-kit/dist/i18n.js +4 -4
- package/dist/node_modules/@dalcode/dal-pi-kit/package.json +1 -1
- package/dist/node_modules/@dalcode/dal-pi-kit/src/i18n.js +4 -4
- package/dist/node_modules/@dalcode/dal-plugins/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-recall/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-remote/package.json +3 -2
- package/dist/node_modules/@dalcode/dal-remote/src/account.js +2 -0
- package/dist/node_modules/@dalcode/dal-remote/src/cli.js +13 -13
- package/dist/node_modules/@dalcode/dal-remote/src/install.js +2 -2
- package/dist/node_modules/@dalcode/dal-remote/src/spec.js +1 -1
- package/dist/node_modules/@dalcode/dal-review/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-rewind/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-router/package.json +6 -6
- package/dist/node_modules/@dalcode/dal-rtk/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-skills/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-statusline/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-structured/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-subagent/package.json +5 -5
- package/dist/node_modules/@dalcode/dal-sync/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-telemetry/package.json +4 -4
- package/dist/node_modules/@dalcode/dal-terminal/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-tool-catalog/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-usage/package.json +2 -2
- package/dist/node_modules/@dalcode/dal-web/package.json +3 -3
- package/dist/node_modules/@dalcode/dal-workflow/package.json +2 -2
- package/dist/node_modules/@dalcode/deepailab/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.d.ts +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/dist/utils/version.js +1 -1
- package/dist/node_modules/@earendil-works/pi-ai/package.json +3 -3
- package/dist/node_modules/@earendil-works/pi-codemode/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-mcp/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-schema/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/dist/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/bundle/chunks/chunk-WLQ33LIH.js +0 -9
- package/dist/bundle/chunks/cli-NQ7B7BGV.js +0 -30
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-plugins",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
-
"@dalcode/dal-skills": "1.0.
|
|
25
|
-
"@dalcode/deepailab": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
24
|
+
"@dalcode/dal-skills": "1.0.61",
|
|
25
|
+
"@dalcode/deepailab": "1.0.61",
|
|
26
26
|
"typebox": "1.3.27"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-recall",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Search past sessions: a local full-text index of earlier conversations the model can query with session_search. Adapted from @henryqw/pi-session-recall 5.1.4 (MIT).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
24
24
|
"typebox": "1.3.27"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-remote",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "`dal remote enable|disable|status|pair|logs`: installs the phone daemon (a pinned, integrity-checked npm package) and runs it as a systemd user service or a launchd agent, so the DAL Code phone app can reach this machine.",
|
|
6
6
|
"type": "module",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./src/index.js",
|
|
10
10
|
"./cli": "./src/cli.js",
|
|
11
|
+
"./account": "./src/account.js",
|
|
11
12
|
"./package.json": "./package.json"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
]
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.61"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var N=Object.defineProperty;var n=(t,e)=>N(t,"name",{value:e,configurable:!0});var P=Object.defineProperty,o=n((t,e)=>P(t,"name",{value:e,configurable:!0}),"o");import{chmodSync as h,existsSync as $,mkdirSync as j,readFileSync as B,renameSync as F,rmSync as S,writeFileSync as K}from"node:fs";import{dirname as J,join as L}from"node:path";const w="https://api.deepailab.ai",k="DAL_REMOTE_ACCOUNT_SERVICE",U=3e4;function I(t){return(t[k]?.trim()||w).replace(/\/+$/,"")}n(I,"D"),o(I,"accountServiceFrom");function l(t){try{const e=JSON.parse(B(t,"utf8"));if(e.v===1&&typeof e.credential=="string"&&typeof e.deviceId=="string"&&typeof e.serverId=="string"&&typeof e.accountService=="string")return e}catch{}}n(l,"P"),o(l,"readAccountToken");function A(t){const e=l(t);return e?{bound:!0,accountService:e.accountService,accountId:e.accountId,deviceId:e.deviceId,serverId:e.serverId,issuedAt:e.issuedAt}:{bound:!1}}n(A,"$"),o(A,"accountBinding");function T(t,e){const c=J(t);j(c,{recursive:!0,mode:448}),h(c,448);const r=L(c,`.account-token.${process.pid}.${Date.now()}.tmp`);try{K(r,`${JSON.stringify(e,null,2)}
|
|
2
|
+
`,{mode:384}),h(r,384),F(r,t)}finally{$(r)&&S(r,{force:!0})}}n(T,"K"),o(T,"writeAccountToken");function b(t){S(t,{force:!0})}n(b,"L"),o(b,"removeAccountToken");function E(t){const e=t.indexOf("#");if(e<0)return;const c=new URLSearchParams(t.slice(e+1)).get("offer");if(c)try{const r=JSON.parse(Buffer.from(c,"base64url").toString("utf8"));return typeof r.serverId!="string"||!r.serverId||typeof r.daemonPublicKeyB64!="string"||!r.daemonPublicKeyB64?void 0:{serverId:r.serverId,daemonPublicKeyB64:r.daemonPublicKeyB64}}catch{return}}n(E,"j"),o(E,"decodePairingOffer");class d extends Error{static{n(this,"a")}static{o(this,"AccountError")}code;constructor(e,c){super(c),this.code=e}}async function v(t,e,c,r){let a;try{a=await t(e,{method:"POST",headers:{Authorization:`Bearer ${c}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r),signal:AbortSignal.timeout(U)})}catch(s){throw new d("network",s instanceof Error?s.message:String(s))}let u={};try{const s=await a.json();s&&typeof s=="object"&&(u=s)}catch{}return{status:a.status,json:u}}n(v,"l"),o(v,"call");function O(t){const e=t.error;return typeof e=="string"?e:e&&typeof e=="object"&&typeof e.code=="string"?e.code:""}n(O,"F"),o(O,"errorName");async function _(t){const{status:e,json:c}=await v(t.fetch,`${t.accountService}/v1/portal/remote/devices`,t.accessToken,{serverId:t.serverId,name:t.name,platform:t.platform,daemonPublicKey:t.daemonPublicKey});if(e===200||e===201){const{deviceId:a,credential:u,accountId:s,serverId:f}=c;if(typeof a!="string"||typeof u!="string"||!u.startsWith("drc_"))throw new d("service",`unexpected response (${e})`);return{v:1,accountService:t.accountService,accountId:typeof s=="string"?s:"",deviceId:a,serverId:typeof f=="string"?f:t.serverId,credential:u,issuedAt:(t.now?.()??new Date).toISOString()}}const r=O(c);throw e===409&&r==="server_id_taken"?new d("server-id-taken",r):e===409&&r==="too_many_devices"?new d("too-many-devices",r):e===401||e===403?new d("unauthorized",r||String(e)):e===503&&r==="remote_auth_unconfigured"?new d("unconfigured",r):e===404?new d("unsupported",r||"404"):new d("service",`${e}${r?` ${r}`:""}`)}n(_,"J"),o(_,"registerDevice");async function C(t){const e=`${t.token.accountService}/v1/portal/remote/devices/revoke`;if(t.accessToken)try{const{status:c}=await v(t.fetch,e,t.accessToken,{deviceId:t.token.deviceId});if(c>=200&&c<300)return"account"}catch{}try{const{status:c}=await v(t.fetch,e,t.token.credential,{});if(c>=200&&c<300)return"credential"}catch{}}n(C,"U"),o(C,"revokeDevice");const R=6e4;function g(t){const e=t.split(".")[1];if(e)try{const c=JSON.parse(Buffer.from(e,"base64url").toString("utf8")).exp;return typeof c=="number"&&Number.isFinite(c)?c*1e3:void 0}catch{return}}n(g,"_"),o(g,"accessTokenExpiry");async function x(t){const e=t.env.DAL_ACCESS_TOKEN?.trim();if(e)return e;const c=t.provider??"deepailab",r=t.now??Date.now,a=o(y=>{const i=y;if(i?.type!=="oauth"||typeof i.access!="string"||!i.access)return!1;const p=g(i.access);return p!==void 0&&p-r()>R},"fresh"),u=await t.store.read(c);if(u?.type!=="oauth")return;if(a(u))return u.access;let s=!1;const f=await t.store.modify(c,async y=>{const i=y;if(i?.type!=="oauth"||a(i))return;const p=typeof i.refresh=="string"?i.refresh:"";if(!p)return;const m=await t.refresh(p);s=!0;const D=typeof i.vk=="string"?i.vk:"";return{...i,access:m.accessToken,refresh:m.refreshToken??p,expires:D?m.expiresAt:0}});if(!(f?.type!=="oauth"||typeof f.access!="string"||!f.access)){if(s||a(f))return f.access;throw new d("signed-out","the DeepAILab sign-in has expired")}}n(x,"M"),o(x,"accountAccessTokenFrom");export{d as AccountError,w as DEFAULT_ACCOUNT_SERVICE,k as ENV_ACCOUNT_SERVICE,g as accessTokenExpiry,x as accountAccessTokenFrom,A as accountBinding,I as accountServiceFrom,E as decodePairingOffer,l as readAccountToken,_ as registerDevice,b as removeAccountToken,C as revokeDevice,T as writeAccountToken};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
`)}
|
|
3
|
-
`)),0}
|
|
1
|
+
var mu=Object.defineProperty;var s=(u,e)=>mu(u,"name",{value:e,configurable:!0});var Cu=Object.defineProperty,F=s((u,e)=>Cu(u,"name",{value:e,configurable:!0}),"i");import{chmodSync as fu,existsSync as B,mkdirSync as b,readFileSync as k,rmSync as gu,writeFileSync as w}from"node:fs";import{homedir as vu,hostname as hu,userInfo as bu}from"node:os";import{dirname as ku}from"node:path";import{t as n}from"@dalcode/dal-pi-kit";import{AccountError as W,accountBinding as wu,accountServiceFrom as yu,decodePairingOffer as H,readAccountToken as z,registerDevice as Su,removeAccountToken as $u,revokeDevice as Iu,writeAccountToken as Nu}from"./account.js";import{daemonBinPath as Q,installDaemon as Tu,installedDaemonDir as V,runCommand as Pu}from"./install.js";import{remotePaths as p}from"./paths.js";import{daemonProcesses as Lu,leftoverProcesses as Ou,listProcesses as X,processTree as Y,reapProcesses as Ru}from"./processes.js";import{forgetService as ju,serviceDir as _u,serviceFileContent as Mu,serviceFilePath as xu,serviceKind as y,servicePid as q,serviceRestarts as Z,serviceState as uu,startService as Ju,stopService as Ku}from"./service.js";import{daemonPairArgs as Gu,daemonRunArgs as Uu,ENV_ACCOUNT_TOKEN_FILE as Wu,resolveDaemonSpec as S}from"./spec.js";const eu="DAL_CODING_AGENT_DIR";function m(u){try{return JSON.parse(k(u.stateFile,"utf8"))}catch{return}}s(m,"P"),F(m,"readState");function $(u,e){b(u.root,{recursive:!0}),w(u.stateFile,`${JSON.stringify(e,null,2)}
|
|
2
|
+
`)}s($,"K"),F($,"writeState");function I(u){return`'${u.replace(/'/g,"'\\''")}'`}s(I,"B"),F(I,"shellQuote");function N(u,e,r){const t={DAL_COMMAND:u.dalWrapper,[Wu]:u.accountTokenFile,HOME:r.home,PATH:[ku(r.nodePath),"/usr/local/bin","/usr/bin","/bin"].join(":")},a=r.env[eu]?.trim();return a&&(t[eu]=a),{program:r.nodePath,args:[e,...Uu(u.home)],env:t,workingDirectory:r.home,logFile:u.logFile}}s(N,"$e"),F(N,"launchSpecFor");function C(u,e){return{kind:u,file:xu(u,e.home,e.env),run:e.run,uid:e.uid,user:e.user,sleep:f(e),now:g(e)}}s(C,"y"),F(C,"serviceContext");function f(u){return u.sleep??(e=>new Promise(r=>setTimeout(r,e)))}s(f,"w"),F(f,"sleeper");function g(u){return u.now??Date.now}s(g,"A"),F(g,"clock");function T(u){return u.err(n("dal remote \u76EE\u524D\u53EA\u652F\u6301 Linux\uFF08systemd\uFF09\u548C macOS\u3002")),1}s(T,"G"),F(T,"unsupported");function P(u){return u.out([n("\u7528\u6CD5\uFF1Adal remote <\u547D\u4EE4>"),"",n(" enable \u5B89\u88C5\u5E76\u542F\u52A8\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B\uFF0C\u5E76\u628A\u8FD9\u53F0\u7535\u8111\u7ED1\u5B9A\u5230\u4F60\u7684 DeepAILab \u8D26\u53F7"),n(" disable \u505C\u6B62\u5E76\u79FB\u9664\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B\u7684\u670D\u52A1\uFF0C\u5E76\u5728 DeepAILab \u8D26\u53F7\u91CC\u64A4\u9500\u8FD9\u53F0\u7535\u8111"),n(" status \u67E5\u770B\u662F\u5426\u5F00\u542F\u3001\u662F\u5426\u5728\u8FD0\u884C\uFF08--json \u8F93\u51FA\u673A\u5668\u53EF\u8BFB\u7ED3\u679C\uFF09"),n(" pair \u91CD\u65B0\u7ED1\u5B9A\u8FD9\u53F0\u7535\u8111\uFF08--rotate \u66F4\u6362\u8FD9\u53F0\u7535\u8111\u7684\u8D26\u53F7\u51ED\u8BC1\uFF0C--json \u8F93\u51FA\u914D\u5BF9\u4FE1\u606F\uFF09"),n(" logs \u67E5\u770B\u5B88\u62A4\u8FDB\u7A0B\u65E5\u5FD7\uFF08-n \u884C\u6570\uFF0C\u9ED8\u8BA4 50\uFF09"),"",n("\u9ED8\u8BA4\u4E0D\u5F00\u542F\uFF1B\u53EA\u6709\u8FD0\u884C dal remote enable \u540E\u624D\u4F1A\u5B89\u88C5\u548C\u542F\u52A8\u3002"),n("\u5F00\u542F\u9700\u8981\u5148\u5728 dal \u91CC\u767B\u5F55 DeepAILab\uFF1A\u53EA\u6709\u540C\u4E00\u8D26\u53F7\u767B\u5F55\u7684\u624B\u673A\u80FD\u8FDE\u63A5\u8FD9\u53F0\u7535\u8111\u3002")].join(`
|
|
3
|
+
`)),0}s(P,"J"),F(P,"help");async function L(u,e,r){const t=await r.run(r.nodePath,[u,...Gu(e.home)],{env:r.env}),a=(t.stderr.trim()||t.stdout.trim()).split(`
|
|
4
4
|
`).slice(-3).join(`
|
|
5
|
-
`);if(
|
|
5
|
+
`);if(t.code!==0)return{detail:a};try{const o=JSON.parse(t.stdout);return o.url?{offer:o,detail:a}:{detail:a}}catch{return{detail:a}}}s(L,"W"),F(L,"fetchPairingResult");async function ru(u,e,r){return(await L(u,e,r)).offer}s(ru,"Fe"),F(ru,"fetchPairing");function tu(u,e=8){try{return k(u.logFile,"utf8").split(`
|
|
6
6
|
`).filter(r=>r.trim()!=="").slice(-e).map(r=>` ${r.length>300?`${r.slice(0,300)}\u2026`:r}`).join(`
|
|
7
|
-
`)}catch{return""}}
|
|
8
|
-
exec ${
|
|
9
|
-
`),
|
|
10
|
-
`)}
|
|
11
|
-
`)),0}
|
|
12
|
-
`);return
|
|
13
|
-
`)),0}
|
|
14
|
-
`),"out"),err:
|
|
15
|
-
`),"err")}}
|
|
7
|
+
`)}catch{return""}}s(tu,"Ne"),F(tu,"logTail");const nu=5e3,Hu=1e4,zu=3;async function Fu(u,e,r,t){const a=f(t),o=g(t),c=o(),i=c+(t.pairWaitMs??12e4);let D=c+nu,A,d="";const l=await Z(r);for(t.out(n("\u6B63\u5728\u7B49\u5F85\u5B88\u62A4\u8FDB\u7A0B\u5C31\u7EEA\u2026"));;){const h=await L(u,e,t);if(h.offer)return h.offer;d=h.detail||d;const{state:U}=await uu(r),E=o();if(U==="stopped"||U==="failed"?A??=E:A=void 0,await Z(r)-l>=zu||A!==void 0&&E-A>=Hu){t.err(n("\u5B88\u62A4\u8FDB\u7A0B\u6CA1\u80FD\u542F\u52A8\uFF08\u5DF2\u9000\u51FA\u6216\u53CD\u590D\u5D29\u6E83\uFF09\u3002\u65E5\u5FD7\u6700\u540E\u51E0\u884C\uFF1A"));const pu=tu(e);t.err(pu||` ${d||n("\uFF08\u6CA1\u6709\u65E5\u5FD7\uFF09")}`),t.err(n("\u4FEE\u597D\u540E\u518D\u8FD0\u884C dal remote enable\uFF1B\u5B8C\u6574\u65E5\u5FD7\uFF1Adal remote logs"));return}if(E>=i)break;E>=D&&(t.out(n("\u4ECD\u5728\u7B49\u5F85\u5B88\u62A4\u8FDB\u7A0B\u5C31\u7EEA\uFF08\u5DF2 {s} \u79D2\uFF09\u2026").replace("{s}",String(Math.round((E-c)/1e3)))),D=E+nu),await a(500)}t.err(n("\u5B88\u62A4\u8FDB\u7A0B {s} \u79D2\u5185\u6CA1\u6709\u5C31\u7EEA\uFF0C\u670D\u52A1\u4ECD\u5728\u8FD0\u884C\u3002\u7A0D\u540E\u8FD0\u884C dal remote pair\uFF0C\u6216\u7528 dal remote logs \u67E5\u770B\u65E5\u5FD7\u3002").replace("{s}",String(Math.round((i-c)/1e3)))),d&&t.err(` ${d}`)}s(Fu,"Oe"),F(Fu,"waitForPairing");function O(u){u.out(n("\u5728\u624B\u673A\u4E0A\u6253\u5F00 DAL\uFF0C\u7528\u540C\u4E00\u4E2A DeepAILab \u8D26\u53F7\u767B\u5F55\uFF0C\u8FD9\u53F0\u7535\u8111\u4F1A\u51FA\u73B0\u5728\u300C\u4F60\u7684\u7535\u8111\u300D\u91CC\u3002"))}s(O,"H"),F(O,"printPhoneHint");function R(u){const e=u.trim().replace(/\.local$/i,"")||"DAL";return Array.from(e).slice(0,64).join("")}s(R,"Ee"),F(R,"machineNameFrom");function au(u,e){const r=V(u,e);return r?Q(r,e):void 0}s(au,"xe"),F(au,"installedBin");const ou=F(()=>n("\u624B\u673A\u7AEF\u8FDC\u7A0B\u9700\u8981\u4F60\u7684 DeepAILab \u8D26\u53F7\uFF1A\u624B\u673A\u53EA\u80FD\u8FDE\u5230\u540C\u4E00\u8D26\u53F7\u4E0B\u7684\u7535\u8111\u3002\u8BF7\u5148\u8FD0\u884C dal\uFF0C\u8F93\u5165 /login \u767B\u5F55 DeepAILab\uFF0C\u518D\u91CD\u8BD5\u3002"),"SIGNED_OUT");async function j(u){try{const e=await u.accountAccessToken();return e?{token:e}:{error:ou()}}catch(e){return e instanceof W&&e.code==="signed-out"?{error:ou()}:{error:n("\u65E0\u6CD5\u5237\u65B0 DeepAILab \u767B\u5F55\uFF08{reason}\uFF09\u3002\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\uFF0C\u6216\u5728 dal \u91CC\u91CD\u65B0 /login\u3002").replace("{reason}",e instanceof Error?e.message:String(e))}}}s(j,"q"),F(j,"signInToken");function su(u){if(u instanceof W)switch(u.code){case"server-id-taken":return n("\u8FD9\u53F0\u7535\u8111\u5DF2\u7ECF\u7ED1\u5B9A\u5728\u53E6\u4E00\u4E2A DeepAILab \u8D26\u53F7\u4E0B\u3002\u5148\u7528\u90A3\u4E2A\u8D26\u53F7\u5728\u7F51\u9875\u4E0A\u64A4\u9500\u5B83\uFF0C\u6216\u7528\u90A3\u4E2A\u8D26\u53F7\u767B\u5F55 dal \u540E\u518D\u5F00\u542F\u3002");case"too-many-devices":return n("\u8FD9\u4E2A\u8D26\u53F7\u7ED1\u5B9A\u7684\u7535\u8111\u5DF2\u8FBE\u4E0A\u9650\u3002\u5148\u5728\u7F51\u9875\u7684\u8BBE\u5907\u5217\u8868\u91CC\u64A4\u9500\u4E0D\u7528\u7684\u7535\u8111\u3002");case"unauthorized":return n("DeepAILab \u62D2\u7EDD\u4E86\u5F53\u524D\u767B\u5F55\uFF08\u53EF\u80FD\u5DF2\u8FC7\u671F\uFF09\u3002\u5728 dal \u91CC\u91CD\u65B0 /login \u540E\u91CD\u8BD5\u3002");case"unconfigured":case"unsupported":return n("DeepAILab \u7684\u624B\u673A\u7AEF\u8FDC\u7A0B\u670D\u52A1\u6682\u672A\u5F00\u901A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002");case"network":return n("\u8FDE\u4E0D\u4E0A DeepAILab \u8D26\u53F7\u670D\u52A1\uFF08{reason}\uFF09\u3002\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002").replace("{reason}",u.message);default:return n("DeepAILab \u8D26\u53F7\u670D\u52A1\u51FA\u9519\uFF08{reason}\uFF09\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002").replace("{reason}",u.message)}return u instanceof Error?u.message:String(u)}s(su,"_e"),F(su,"accountErrorText");async function _(u,e,r,t){const a=u.url?H(u.url):void 0;if(!a)return{ok:!1,error:n("\u914D\u5BF9\u4FE1\u606F\u91CC\u6CA1\u6709\u8FD9\u53F0\u7535\u8111\u7684\u6807\u8BC6\uFF0C\u65E0\u6CD5\u7ED1\u5B9A\u8D26\u53F7\u3002")};try{const o=await Su({fetch:t.fetch,accountService:t.accountService,accessToken:e,serverId:a.serverId,daemonPublicKey:a.daemonPublicKeyB64,name:t.machineName??R(hu()),platform:t.platform});return Nu(r.accountTokenFile,o),{ok:!0,token:o}}catch(o){return{ok:!1,error:su(o)}}}s(_,"z"),F(_,"bindAccount");function M(u,e){u.err(`${n("\u5B88\u62A4\u8FDB\u7A0B\u5DF2\u5728\u8FD0\u884C\uFF0C\u4F46\u8FD8\u6CA1\u6709\u7ED1\u5B9A\u5230\u4F60\u7684\u8D26\u53F7\uFF0C\u624B\u673A\u6682\u65F6\u8FDE\u4E0D\u4E0A\u8FD9\u53F0\u7535\u8111\uFF1A")}${e}`),u.err(n("\u89E3\u51B3\u540E\u8FD0\u884C dal remote pair \u91CD\u8BD5\u3002"))}s(M,"Q"),F(M,"notBoundYet");async function iu(u){const e=y(u.platform);if(!e)return T(u);const r=p(u.agentDir);let t;try{t=S(u.env)}catch(l){return u.err(l instanceof Error?l.message:String(l)),1}const a=await j(u);if("error"in a)return u.err(a.error),1;let o;try{o=await Tu(r,t,{fetch:u.fetch,run:u.run,env:u.env,npm:u.npm,progress:F(l=>u.out(l),"progress")})}catch(l){return u.err(l instanceof Error?l.message:String(l)),1}const c=Q(o,t);if(!c)return u.err(n("{pkg} \u91CC\u6CA1\u6709\u547D\u4EE4 {bin}\uFF0C\u65E0\u6CD5\u542F\u52A8\u3002").replace("{pkg}",t.packageName).replace("{bin}",t.bin)),1;for(const l of[r.home,r.logDir,r.binDir])b(l,{recursive:!0,mode:448});w(r.dalWrapper,`#!/bin/sh
|
|
8
|
+
exec ${I(u.nodePath)} ${I(u.dalEntry)} "$@"
|
|
9
|
+
`),fu(r.dalWrapper,493);const i=C(e,u);b(_u(i.file),{recursive:!0}),w(i.file,Mu(e,N(r,c,u)));let D;try{D=await Ju(i)}catch(l){return u.err(`${n("\u670D\u52A1\u6CA1\u80FD\u542F\u52A8\uFF1A")}${l instanceof Error?l.message:String(l)}`),e==="systemd"&&u.err(n("\u5982\u679C\u662F\u901A\u8FC7 ssh \u767B\u5F55\u7684\u670D\u52A1\u5668\uFF0C\u786E\u8BA4\u6709\u7528\u6237\u4F1A\u8BDD\uFF08XDG_RUNTIME_DIR\uFF09\uFF0C\u6216\u5148\u8FD0\u884C loginctl enable-linger\u3002")),1}$(r,{packageName:t.packageName,version:t.version,...t.integrity?{integrity:t.integrity}:{},enabled:!0,kind:e,serviceFile:i.file,enabledAt:new Date().toISOString()}),u.out(n("\u624B\u673A\u7AEF\u8FDC\u7A0B\u5DF2\u5F00\u542F\uFF08{pkg}\uFF09\u3002").replace("{pkg}",`${t.packageName}@${t.version}`)),D.includes("linger-enabled")&&u.out(n("\u5DF2\u5F00\u542F lingering\uFF1A\u6CE8\u9500\u540E\u3001\u91CD\u542F\u540E\u5B88\u62A4\u8FDB\u7A0B\u4E5F\u4F1A\u8FD0\u884C\u3002")),D.includes("linger-failed")&&u.out(n("\u6CA1\u80FD\u5F00\u542F lingering\uFF1A\u6CE8\u9500\u540E\u5B88\u62A4\u8FDB\u7A0B\u4F1A\u505C\u6B62\u3002\u53EF\u8BF7\u7BA1\u7406\u5458\u8FD0\u884C sudo loginctl enable-linger {user}\u3002").replace("{user}",u.user));const A=await Fu(c,r,i,u);if(!A)return 1;const d=await _(A,a.token,r,u);return d.ok?(u.out(n("\u5DF2\u7ED1\u5B9A\u5230\u4F60\u7684 DeepAILab \u8D26\u53F7\uFF1A\u53EA\u6709\u7528\u540C\u4E00\u8D26\u53F7\u767B\u5F55\u7684\u624B\u673A\u80FD\u8FDE\u63A5\u8FD9\u53F0\u7535\u8111\u3002")),O(u),0):(M(u,d.error),1)}s(iu,"Ce"),F(iu,"enable");async function x(u,e,r){const t=await X(r.run),a=await q(e),o=new Map;if(a)for(const c of Y(t,a))o.set(c.pid,c);for(const c of Lu(t,u.daemonRoot,r.pid??process.pid))for(const i of Y(t,c.pid))o.set(i.pid,i);return[...o.values()]}s(x,"X"),F(x,"daemonProcessesNow");function J(u,e,r=1e4){return Ru(u,{run:e.run,kill:e.kill??((t,a)=>process.kill(t,a)),sleep:f(e),now:g(e)},{graceMs:r,termMs:5e3})}s(J,"Y"),F(J,"reap");function K(u,e){return u.killed.length>0&&(e.out(n("\u6709 {n} \u4E2A\u5B88\u62A4\u8FDB\u7A0B\u7684\u8FDB\u7A0B\u6CA1\u6709\u6309\u65F6\u9000\u51FA\uFF0C\u5DF2\u5F3A\u5236\u7ED3\u675F\uFF1A").replace("{n}",String(u.killed.length))),e.out(v(u.killed))),u.remaining.length>0?(e.err(n("\u8FD9\u4E9B\u8FDB\u7A0B\u4ECD\u5728\u8FD0\u884C\uFF0C\u8BF7\u624B\u52A8\u7ED3\u675F\uFF1A")),e.err(v(u.remaining)),!1):!0}s(K,"Z"),F(K,"reportReaped");function v(u){return u.map(e=>` pid ${e.pid}: ${e.command.length>160?`${e.command.slice(0,160)}\u2026`:e.command}`).join(`
|
|
10
|
+
`)}s(v,"I"),F(v,"describeProcesses");async function cu(u){const e=y(u.platform);if(!e)return T(u);const r=p(u.agentDir),t=C(e,u),a=m(r);if(!B(t.file)&&!a?.enabled&&!B(r.accountTokenFile)){const i=B(r.daemonRoot)?await x(r,t,u):[];return i.length===0?(u.out(n("\u624B\u673A\u7AEF\u8FDC\u7A0B\u672C\u6765\u5C31\u6CA1\u6709\u5F00\u542F\u3002")),0):K(await J(i,u,0),u)?0:1}const o=await x(r,t,u);await Ku(t),gu(t.file,{force:!0}),await ju(t);const c=z(r.accountTokenFile);if(c){let i;try{i=await u.accountAccessToken()}catch{}await Iu({fetch:u.fetch,token:c,accessToken:i})?u.out(n("\u5DF2\u5728 DeepAILab \u8D26\u53F7\u91CC\u64A4\u9500\u8FD9\u53F0\u7535\u8111\uFF0C\u624B\u673A\u5C06\u65E0\u6CD5\u518D\u8FDE\u63A5\u3002")):u.err(n("\u6CA1\u80FD\u5728 DeepAILab \u8D26\u53F7\u91CC\u64A4\u9500\u8FD9\u53F0\u7535\u8111\uFF08\u8FDE\u4E0D\u4E0A\u8D26\u53F7\u670D\u52A1\uFF09\u3002\u672C\u673A\u51ED\u8BC1\u5DF2\u5220\u9664\uFF1B\u8BF7\u5230\u7F51\u9875\u7684\u8BBE\u5907\u5217\u8868\u91CC\u64A4\u9500 {device}\u3002").replace("{device}",c.deviceId)),$u(r.accountTokenFile)}return a&&$(r,{...a,enabled:!1,disabledAt:new Date().toISOString()}),K(await J(o,u),u)?(u.out(n("\u624B\u673A\u7AEF\u8FDC\u7A0B\u5DF2\u5173\u95ED\u3002\u5B88\u62A4\u8FDB\u7A0B\u4ECD\u4FDD\u7559\u5728 {dir}\uFF0C\u518D\u6B21\u8FD0\u884C dal remote enable \u5373\u53EF\u91CD\u65B0\u5F00\u542F\u3002").replace("{dir}",r.root)),0):1}s(cu,"je"),F(cu,"disable");async function G(u){const e=p(u.agentDir),r=m(e);let t;try{t=S(u.env)}catch{t=void 0}const a=y(u.platform);let o=null;if(a){const i=C(a,u),D=B(i.file),A=D?await uu(i):{state:"not-installed"};if(A.state==="running"&&A.pid===void 0&&a==="systemd"){const d=await q(i);d&&(A.pid=d)}o={kind:a,file:i.file,installed:D,...A}}const c=B(e.daemonRoot)?Ou(await X(u.run),e.daemonRoot,u.pid??process.pid,o?.state==="running"&&o.pid?o.pid:void 0).map(({pid:i,command:D})=>({pid:i,command:D})):[];return{enabled:!!(r?.enabled&&o?.installed),installed:t?V(e,t)!==void 0:!1,packageName:r?.packageName??t?.packageName??"",version:r?.version??t?.version??"",service:o,leftovers:c,home:e.home,logFile:e.logFile,account:wu(e.accountTokenFile)}}s(G,"Me"),F(G,"remoteStatus");function Du(u){switch(u){case"running":return n("\u8FD0\u884C\u4E2D");case"stopped":return n("\u5DF2\u505C\u6B62");case"failed":return n("\u51FA\u9519\u505C\u6B62\uFF08\u7528 dal remote logs \u67E5\u770B\u539F\u56E0\uFF09");case"not-installed":return n("\u672A\u5B89\u88C5");default:return n("\u672A\u77E5")}}s(Du,"Ke"),F(Du,"stateLabel");async function lu(u,e){const r=await G(e);if(u.includes("--json"))return e.out(JSON.stringify(r,null,2)),0;const t=[`${n("\u624B\u673A\u7AEF\u8FDC\u7A0B\uFF1A")}${r.enabled?n("\u5DF2\u5F00\u542F"):n("\u672A\u5F00\u542F")}`,`${n("\u5B88\u62A4\u8FDB\u7A0B\uFF1A")}${r.packageName}@${r.version}\uFF08${r.installed?n("\u5DF2\u5B89\u88C5"):n("\u672A\u5B89\u88C5")}\uFF09`];return r.service?(t.push(`${n("\u670D\u52A1\uFF1A")}${r.service.kind==="systemd"?"systemd --user":"launchd"} \u2014 ${Du(r.service.state)}${r.service.pid?` (pid ${r.service.pid})`:""}`),r.service.installed&&t.push(`${n("\u670D\u52A1\u6587\u4EF6\uFF1A")}${r.service.file}`)):t.push(n("dal remote \u76EE\u524D\u53EA\u652F\u6301 Linux\uFF08systemd\uFF09\u548C macOS\u3002")),t.push(r.account.bound?`${n("\u8D26\u53F7\uFF1A")}${n("\u5DF2\u7ED1\u5B9A")}\uFF08${n("\u8BBE\u5907")} ${r.account.deviceId}\uFF09`:`${n("\u8D26\u53F7\uFF1A")}${n("\u672A\u7ED1\u5B9A")}`),r.leftovers.length>0&&(t.push(n("\u6B8B\u7559\u8FDB\u7A0B\uFF08\u4E0D\u5C5E\u4E8E\u6B63\u5728\u8FD0\u884C\u7684\u670D\u52A1\uFF09\uFF1A")),t.push(v(r.leftovers)),t.push(n("\u8FD0\u884C dal remote disable \u4F1A\u7ED3\u675F\u5B83\u4EEC\u3002"))),t.push(`${n("\u65E5\u5FD7\uFF1A")}${r.logFile}`),r.enabled||t.push(n("\u5F00\u542F\uFF1Adal remote enable")),e.out(t.join(`
|
|
11
|
+
`)),0}s(lu,"Be"),F(lu,"status");async function Au(u,e){const r=p(e.agentDir);let t;try{t=S(e.env)}catch(D){return e.err(D instanceof Error?D.message:String(D)),1}const a=au(r,t);if(!a||!m(r)?.enabled)return e.err(n("\u624B\u673A\u7AEF\u8FDC\u7A0B\u6CA1\u6709\u5F00\u542F\u3002\u5148\u8FD0\u884C dal remote enable\u3002")),1;const o=await ru(a,r,e);if(!o)return e.err(n("\u62FF\u4E0D\u5230\u914D\u5BF9\u4FE1\u606F\uFF1A\u5B88\u62A4\u8FDB\u7A0B\u53EF\u80FD\u6CA1\u6709\u5728\u8FD0\u884C\u3002\u7528 dal remote status \u548C dal remote logs \u67E5\u770B\u3002")),1;const c=z(r.accountTokenFile),i=o.url?H(o.url)?.serverId:void 0;if(u.includes("--rotate")||!c||c.serverId!==i){const D=await j(e);if("error"in D)return e.err(D.error),1;const A=await _(o,D.token,r,e);if(!A.ok)return M(e,A.error),1;e.out(c?n("\u5DF2\u66F4\u6362\u8FD9\u53F0\u7535\u8111\u7684\u8D26\u53F7\u51ED\u8BC1\uFF0C\u65E7\u51ED\u8BC1\u5DF2\u5931\u6548\u3002"):n("\u5DF2\u7ED1\u5B9A\u5230\u4F60\u7684 DeepAILab \u8D26\u53F7\uFF1A\u53EA\u6709\u7528\u540C\u4E00\u8D26\u53F7\u767B\u5F55\u7684\u624B\u673A\u80FD\u8FDE\u63A5\u8FD9\u53F0\u7535\u8111\u3002"))}return u.includes("--json")?e.out(JSON.stringify(o,null,2)):O(e),0}s(Au,"Ge"),F(Au,"pair");function du(u,e){const r=p(e.agentDir),t=u.indexOf("-n"),a=t>=0?Number(u[t+1]):50;if(!Number.isInteger(a)||a<=0)return e.err(n("-n \u9700\u8981\u4E00\u4E2A\u6B63\u6574\u6570\u3002")),2;if(!B(r.logFile))return e.out(n("\u8FD8\u6CA1\u6709\u65E5\u5FD7\uFF1A{file}").replace("{file}",r.logFile)),0;const o=k(r.logFile,"utf8").split(`
|
|
12
|
+
`);return o.at(-1)===""&&o.pop(),e.out(o.slice(-a).join(`
|
|
13
|
+
`)),0}s(du,"Je"),F(du,"logs");function Eu(u){let e=process.env.USER??"";try{e=bu().username}catch{}return{agentDir:u,home:vu(),env:process.env,platform:process.platform,uid:typeof process.getuid=="function"?process.getuid():0,user:e,nodePath:process.execPath,dalEntry:process.argv[1]??"",fetch:F((r,t)=>fetch(r,t),"fetch"),accountAccessToken:F(async()=>process.env.DAL_ACCESS_TOKEN?.trim()||void 0,"accountAccessToken"),accountService:yu(process.env),run:Pu,kill:F((r,t)=>process.kill(r,t),"kill"),pid:process.pid,npm:process.platform==="win32"?"npm.cmd":"npm",out:F(r=>process.stdout.write(`${r}
|
|
14
|
+
`),"out"),err:F(r=>process.stderr.write(`${r}
|
|
15
|
+
`),"err")}}s(Eu,"tn"),F(Eu,"defaultRemoteDeps");async function Bu(u,e){const[r,...t]=u;switch(r){case"enable":return iu(e);case"disable":return cu(e);case"status":return lu(t,e);case"pair":return Au(t,e);case"logs":return du(t,e);case void 0:case"help":case"-h":case"--help":return P(e);default:return e.err(n("\u672A\u77E5\u7684\u5B50\u547D\u4EE4\uFF1A{name}").replace("{name}",r)),P(e),2}}s(Bu,"rn"),F(Bu,"runRemoteCommand");export{Eu as defaultRemoteDeps,N as launchSpecFor,R as machineNameFrom,G as remoteStatus,Bu as runRemoteCommand};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var P=Object.defineProperty;var p=(e,u)=>P(e,"name",{value:u,configurable:!0});var j=Object.defineProperty,g=p((e,u)=>j(e,"name",{value:u,configurable:!0}),"d");import{spawn as L}from"node:child_process";import{createHash as O}from"node:crypto";import{existsSync as R,mkdirSync as A,readFileSync as C,realpathSync as x,renameSync as T,rmSync as m,writeFileSync as B}from"node:fs";import{join as F}from"node:path";import{t as i}from"@dalcode/dal-pi-kit";import{daemonInstallDir as h}from"./paths.js";const H=200*1024*1024,k=12e4,$=".dal-remote-installed";class l extends Error{static{p(this,"l")}static{g(this,"RemoteInstallError")}code;constructor(u,t){super(t),this.code=u}}const J=g((e,u,t)=>new Promise(
|
|
1
|
+
var P=Object.defineProperty;var p=(e,u)=>P(e,"name",{value:u,configurable:!0});var j=Object.defineProperty,g=p((e,u)=>j(e,"name",{value:u,configurable:!0}),"d");import{spawn as L}from"node:child_process";import{createHash as O}from"node:crypto";import{existsSync as R,mkdirSync as A,readFileSync as C,realpathSync as x,renameSync as T,rmSync as m,writeFileSync as B}from"node:fs";import{join as F}from"node:path";import{t as i}from"@dalcode/dal-pi-kit";import{daemonInstallDir as h}from"./paths.js";const H=200*1024*1024,k=12e4,$=".dal-remote-installed";class l extends Error{static{p(this,"l")}static{g(this,"RemoteInstallError")}code;constructor(u,t){super(t),this.code=u}}const J=g((e,u,t)=>new Promise(a=>{let r="",s="",n;try{n=L(e,[...u],{cwd:t?.cwd,env:t?.env??process.env,stdio:["ignore","pipe","pipe"]})}catch(o){a({code:127,stdout:r,stderr:o instanceof Error?o.message:String(o)});return}n.stdout?.on("data",o=>{r+=String(o)}),n.stderr?.on("data",o=>{s+=String(o)}),n.on("error",o=>a({code:127,stdout:r,stderr:s||o.message})),n.on("close",o=>a({code:o??1,stdout:r,stderr:s}))}),"runCommand");function E(e){return`sha512-${O("sha512").update(e).digest("base64")}`}p(E,"F"),g(E,"sha512Integrity");function v(e){const u=(e.PI_OFFLINE??e.DAL_OFFLINE)?.toLowerCase();return u==="1"||u==="true"||u==="yes"}p(v,"L"),g(v,"offline");function y(e,u){const t=h(e,u.version);try{const a=JSON.parse(C(F(t,$),"utf8"));return a.name===u.packageName&&a.integrity===u.integrity?t:void 0}catch{return}}p(y,"T"),g(y,"installedDaemonDir");function w(e,u){const t=F(e,"node_modules",".bin",u.bin);if(R(t))try{return x(t)}catch{return}}p(w,"A"),g(w,"daemonBinPath");async function b(e,u){const t=[];let a=0;for(const r of e.registries){const s=`${r.replace(/\/+$/,"")}/${e.packageName}/${e.version}`;try{const n=await u(s,{signal:AbortSignal.timeout(k)});if(n.status===404){a++,await n.body?.cancel();continue}if(!n.ok){t.push(`${r}: HTTP ${n.status}`),await n.body?.cancel();continue}const o=await n.json(),c=typeof o.dist?.tarball=="string"?o.dist.tarball:void 0;if(!c){t.push(`${r}: ${i("\u6CA1\u6709\u4E0B\u8F7D\u5730\u5740")}`);continue}return{registry:r,tarball:c,integrity:typeof o.dist?.integrity=="string"?o.dist.integrity:void 0}}catch(n){t.push(`${r}: ${n instanceof Error?n.message:String(n)}`)}}throw a>0&&t.length===0?new l("not-published",i("\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B {pkg} \u8FD8\u6CA1\u6709\u53D1\u5E03\uFF0C\u6682\u65F6\u65E0\u6CD5\u5F00\u542F\u3002\u53D1\u5E03\u540E\u5347\u7EA7 dal \u5373\u53EF\u4F7F\u7528\u3002").replace("{pkg}",`${e.packageName}@${e.version}`)):new l("network",`${i("\u65E0\u6CD5\u4ECE\u8F6F\u4EF6\u6E90\u83B7\u53D6\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B\uFF1A")}
|
|
2
2
|
${t.map(r=>` ${r}`).join(`
|
|
3
|
-
`)}`)}p(b,"C"),g(b,"lookUp");async function S(e,u){const t=await u(e,{signal:AbortSignal.timeout(k)});if(!t.ok)throw await t.body?.cancel(),new l("network",`${e}: HTTP ${t.status}`);const
|
|
3
|
+
`)}`)}p(b,"C"),g(b,"lookUp");async function S(e,u){const t=await u(e,{signal:AbortSignal.timeout(k)});if(!t.ok)throw await t.body?.cancel(),new l("network",`${e}: HTTP ${t.status}`);const a=t.body?.getReader();if(!a)throw new l("network",`${e}: ${i("\u54CD\u5E94\u6CA1\u6709\u5185\u5BB9")}`);const r=[];let s=0;for(;;){const{done:n,value:o}=await a.read();if(n)break;if(s+=o.byteLength,s>H)throw await a.cancel(),new l("network",i("\u5B88\u62A4\u8FDB\u7A0B\u5B89\u88C5\u5305\u8D85\u8FC7 200 MB\uFF0C\u5DF2\u505C\u6B62\u4E0B\u8F7D"));r.push(o)}return Buffer.concat(r)}p(S,"B"),g(S,"download");async function N(e,u,t){const a=y(e,u);if(a)return a;const r=`${u.packageName}@${u.version}`;let s,n;if(u.tarball)s=C(u.tarball);else{if(v(t.env))throw new l("offline",i("\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u65E0\u6CD5\u4E0B\u8F7D\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B\u3002"));t.progress?.(i("\u6B63\u5728\u67E5\u627E {pkg} \u2026").replace("{pkg}",r));const d=await b(u,t.fetch);if(!u.integrity)throw new l("not-pinned",i("\u8FD9\u4E2A\u7248\u672C\u7684 dal \u6CA1\u6709\u8BB0\u5F55 {pkg} \u7684\u6821\u9A8C\u503C\uFF0C\u4E0D\u80FD\u5B89\u88C5\u3002\u8BF7\u5347\u7EA7 dal \u540E\u518D\u8BD5\u3002").replace("{pkg}",r));if(d.integrity&&d.integrity!==u.integrity)throw new l("integrity",i("\u8F6F\u4EF6\u6E90\u4E0A\u7684 {pkg} \u4E0E dal \u8BB0\u5F55\u7684\u6821\u9A8C\u503C\u4E0D\u4E00\u81F4\uFF0C\u5DF2\u505C\u6B62\u5B89\u88C5\u3002").replace("{pkg}",r));n=d.registry,t.progress?.(i("\u6B63\u5728\u4E0B\u8F7D {pkg} \u2026").replace("{pkg}",r)),s=await S(d.tarball,t.fetch)}const o=E(s);if(o!==u.integrity)throw new l("integrity",i("\u4E0B\u8F7D\u5230\u7684 {pkg} \u6821\u9A8C\u503C\u4E0D\u7B26\uFF08{got}\uFF09\uFF0C\u5DF2\u4E22\u5F03\u3002").replace("{pkg}",r).replace("{got}",o.slice(0,20)));A(e.daemonRoot,{recursive:!0});const c=F(e.daemonRoot,`.stage-${process.pid}-${Date.now()}`);A(c,{recursive:!0});try{const d=F(c,"daemon.tgz");B(d,s),B(F(c,"package.json"),`${JSON.stringify({name:"dal-remote-host",private:!0})}
|
|
4
4
|
`),t.progress?.(i("\u6B63\u5728\u5B89\u88C5 {pkg} \u2026").replace("{pkg}",r));const D=await t.run(t.npm,["install","--prefix",c,"--no-audit","--no-fund","--ignore-scripts","--omit=dev",...n?["--registry",n]:[],d],{cwd:c,env:t.env});if(D.code!==0){const I=D.stderr.trim().split(`
|
|
5
5
|
`).slice(-8).join(`
|
|
6
6
|
`);throw new l("npm",`${i("npm \u5B89\u88C5\u624B\u673A\u7AEF\u5B88\u62A4\u8FDB\u7A0B\u5931\u8D25\uFF1A")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d=Object.defineProperty;var t=(e,r)=>d(e,"name",{value:r,configurable:!0});var l=Object.defineProperty,o=t((e,r)=>l(e,"name",{value:r,configurable:!0}),"o");const O={packageName:"@deepailab/dal-remote-daemon",version:"0.2.0",integrity:"sha512-Mtqy8KgkAkK1fwcfxspF8cMOmWYXhOjDnrtwyr8RSIp+09vH/l/NvAGwtcL574niLRadxDpveDW1kVkrZhnFGQ==",bin:"dal-remote-daemon"},c=["https://registry.npmmirror.com","https://registry.npmjs.org"],s="DAL_REMOTE_DAEMON_PACKAGE",i="DAL_REMOTE_DAEMON_TARBALL",m="DAL_REMOTE_DAEMON_INTEGRITY",T="DAL_REMOTE_DAEMON_REGISTRY",M="DAL_REMOTE_ACCOUNT_TOKEN_FILE";function g(e){return["daemon","run","--home",e]}t(g,"O"),o(g,"daemonRunArgs");function p(e){return["daemon","pair","--home",e,"--relay","--json"]}t(p,"T"),o(p,"daemonPairArgs");function D(e,r=O){const A=[e[T]?.trim(),...c].filter(n=>!!n),a=e[s]?.trim(),E=e[i]?.trim(),_=e[m]?.trim();if(!a&&!E)return{...r,registries:A};if(!_)throw new Error(`${s} / ${i} need ${m} (the sha512 SRI they must match)`);let R=r.packageName,N=r.version;if(a){const n=a.lastIndexOf("@");if(n<=0)throw new Error(`${s} must be name@version, got ${a}`);R=a.slice(0,n),N=a.slice(n+1)}return{...r,packageName:R,version:N,integrity:_,registries:A,...E?{tarball:E}:{}}}t(D,"d"),o(D,"resolveDaemonSpec");export{M as ENV_ACCOUNT_TOKEN_FILE,m as ENV_INTEGRITY,s as ENV_PACKAGE,T as ENV_REGISTRY,i as ENV_TARBALL,O as REMOTE_DAEMON,c as REMOTE_DAEMON_REGISTRIES,p as daemonPairArgs,g as daemonRunArgs,D as resolveDaemonSpec};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-review",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Code review: a read-only reviewer sub-agent over uncommitted changes, a base branch, a commit, a PR or a supplied diff, returning structured, deduplicated findings. /review in the TUI, dal -p, RPC and the SDK.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
-
"@dalcode/dal-subagent": "1.0.
|
|
22
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
23
|
+
"@dalcode/dal-subagent": "1.0.61",
|
|
24
24
|
"typebox": "1.3.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-rewind",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Git checkpoints for DAL: a snapshot after every turn that changes files, /rewind, Esc+Esc, safe restore, undo. Adapted from pi-rewind 0.5.0 (MIT, arpagon).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
+
"@dalcode/dal-pi-kit": "1.0.61"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-router",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dalcode/dal-guard": "1.0.
|
|
33
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
34
|
-
"@dalcode/dal-tool-catalog": "1.0.
|
|
35
|
-
"@dalcode/deepailab": "1.0.
|
|
36
|
-
"@earendil-works/pi-tui": "1.0.
|
|
32
|
+
"@dalcode/dal-guard": "1.0.61",
|
|
33
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
34
|
+
"@dalcode/dal-tool-catalog": "1.0.61",
|
|
35
|
+
"@dalcode/deepailab": "1.0.61",
|
|
36
|
+
"@earendil-works/pi-tui": "1.0.61"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@earendil-works/pi-coding-agent": "^1.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-rtk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Uses rtk, when the user has installed it, to compress the output of shell commands the agent runs. Does nothing when rtk is not installed; never installs it.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.61"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
26
|
-
"@dalcode/deepailab": "1.0.
|
|
25
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
26
|
+
"@dalcode/deepailab": "1.0.61",
|
|
27
27
|
"typebox": "1.3.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-statusline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "A scriptable status line under the footer: a template or a command of the user's choosing. Grown from the status-line and custom-footer extension examples.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.61"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-structured",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "dal -p --output-schema: the final answer as JSON that matches a JSON Schema, with a non-zero exit when it does not. Grown from the structured-output extension example.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
22
22
|
"typebox": "1.3.27"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-subagent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
22
|
-
"@dalcode/dal-guard": "1.0.
|
|
23
|
-
"@earendil-works/pi-agent-core": "1.0.
|
|
24
|
-
"@earendil-works/pi-ai": "1.0.
|
|
21
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
22
|
+
"@dalcode/dal-guard": "1.0.61",
|
|
23
|
+
"@earendil-works/pi-agent-core": "1.0.61",
|
|
24
|
+
"@earendil-works/pi-ai": "1.0.61",
|
|
25
25
|
"typebox": "1.3.7"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-sync",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Conversations, personal skills and personal lessons follow the signed-in DeepAILab account, so other computers pick them up (/sync).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@dalcode/dal-learn": "1.0.
|
|
27
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
28
|
-
"@dalcode/deepailab": "1.0.
|
|
26
|
+
"@dalcode/dal-learn": "1.0.61",
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
28
|
+
"@dalcode/deepailab": "1.0.61"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-telemetry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dalcode/dal-learn": "1.0.
|
|
29
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
30
|
-
"@dalcode/deepailab": "1.0.
|
|
28
|
+
"@dalcode/dal-learn": "1.0.61",
|
|
29
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
30
|
+
"@dalcode/deepailab": "1.0.61"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-terminal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Host terminal context: a terminal_read tool and @terminal mentions, registered only when the embedding host advertises the terminal capability.",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
22
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
23
23
|
"typebox": "1.3.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-tool-catalog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
22
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
23
23
|
"typebox": "1.3.7"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-usage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "/usage: tokens and cost across all sessions, by day, model and project, with sub-agent spend counted once. Adapted from @tmustier/pi-usage-extension 0.9.5 (MIT).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.61"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
28
|
-
"@dalcode/deepailab": "1.0.
|
|
27
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
28
|
+
"@dalcode/deepailab": "1.0.61",
|
|
29
29
|
"typebox": "1.3.27",
|
|
30
30
|
"unpdf": "1.8.1"
|
|
31
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/dal-workflow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
20
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
21
21
|
"typebox": "1.3.27"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dalcode/deepailab",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dalcode/dal-pi-kit": "1.0.
|
|
24
|
-
"@earendil-works/pi-ai": "1.0.
|
|
23
|
+
"@dalcode/dal-pi-kit": "1.0.61",
|
|
24
|
+
"@earendil-works/pi-ai": "1.0.61"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@earendil-works/pi-coding-agent": "^1.0.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earendil-works/pi-agent-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"README.md"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@earendil-works/pi-ai": "1.0.
|
|
21
|
-
"@earendil-works/pi-schema": "1.0.
|
|
20
|
+
"@earendil-works/pi-ai": "1.0.61",
|
|
21
|
+
"@earendil-works/pi-schema": "1.0.61"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"ai",
|