yaml-flow 8.11.8 → 8.11.9
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/browser/asset-integrity.json +5 -5
- package/browser/live-cards.schema.json +775 -150
- package/browser/server-runtime-controlface.js +4 -4
- package/examples/board/cards/card-rebalance-sim.json +7 -5
- package/examples/board/cards/cardT-market-prices.json +3 -1
- package/examples/board/cards/cardT-portfolio-value.json +3 -1
- package/examples/board/cards/cardT-portfolio.json +4 -2
- package/examples/board/test/server-http-test-browser.ts +3 -1
- package/examples/board/test/server-http-test.js +3 -1
- package/examples/portfolio-tracker/portfolio-tracker.js +2 -2
- package/examples/portfolio-tracker/test/portfolio-t4.js +2 -2
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.js +1 -1
- package/lib/board-live-cards-node.cjs +2 -2
- package/lib/board-live-cards-node.js +1 -1
- package/lib/board-live-cards-public.cjs +1 -1
- package/lib/board-live-cards-public.js +1 -1
- package/lib/board-live-cards-server-runtime.cjs +1 -1
- package/lib/board-live-cards-server-runtime.js +1 -1
- package/lib/board-livegraph-runtime/index.cjs +1 -1
- package/lib/board-livegraph-runtime/index.d.cts +1 -1
- package/lib/board-livegraph-runtime/index.d.ts +1 -1
- package/lib/board-livegraph-runtime/index.js +1 -1
- package/lib/card-compute/index.cjs +1 -1
- package/lib/card-compute/index.js +1 -1
- package/lib/card-store-public.cjs +1 -1
- package/lib/card-store-public.js +1 -1
- package/lib/card-validation.cjs +1 -1
- package/lib/card-validation.js +1 -1
- package/lib/{chunk-OR6B2H2Y.cjs → chunk-22S5GCQK.cjs} +3 -3
- package/lib/{chunk-BA25VGJP.js → chunk-3C52UCJC.js} +3 -3
- package/lib/{chunk-36KKCQVE.cjs → chunk-3HCH2ZFB.cjs} +2 -2
- package/lib/chunk-66ZZIF2L.cjs +2 -0
- package/lib/{chunk-4NWVZ7AW.js → chunk-72FB4M6P.js} +2 -2
- package/lib/chunk-AW6XLBHX.cjs +2 -0
- package/lib/chunk-BSZYTSFX.js +2 -0
- package/lib/{chunk-BRYV6CDD.js → chunk-C7OY3PYL.js} +3 -3
- package/lib/{chunk-EGZPROOH.cjs → chunk-C7RR2JCL.cjs} +3 -3
- package/lib/{chunk-JOQWJ3VR.cjs → chunk-CAID4CGO.cjs} +2 -2
- package/lib/chunk-CVTL2EFR.js +3 -0
- package/lib/{chunk-REZO2QJD.js → chunk-E7SDEZSI.js} +3 -3
- package/lib/{chunk-PIPXFUEA.js → chunk-F6KRSQ7V.js} +2 -2
- package/lib/chunk-G5UUXBIB.cjs +2 -0
- package/lib/{chunk-ROIYEFSE.js → chunk-K2VRX4TC.js} +2 -2
- package/lib/chunk-ONJG6QW6.js +2 -0
- package/lib/{chunk-HOS2ZUFZ.cjs → chunk-P4WQJ7LA.cjs} +2 -2
- package/lib/chunk-P7STTKRO.cjs +3 -0
- package/lib/{chunk-6SPWFJRG.cjs → chunk-PYYRDOD5.cjs} +2 -2
- package/lib/chunk-QE3QXEHI.js +2 -0
- package/lib/{chunk-MRESV3MD.js → chunk-QJQ53PLM.js} +2 -2
- package/lib/{chunk-MRIFSG7L.cjs → chunk-TIQ775WI.cjs} +3 -3
- package/lib/cloud-storage.cjs +1 -1
- package/lib/cloud-storage.js +1 -1
- package/lib/continuous-event-graph/index.cjs +1 -1
- package/lib/continuous-event-graph/index.d.cts +2 -2
- package/lib/continuous-event-graph/index.d.ts +2 -2
- package/lib/continuous-event-graph/index.js +1 -1
- package/lib/firestore-storage/index.cjs +1 -1
- package/lib/firestore-storage/index.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/{live-cards-bridge-Bwi-lbBT.d.cts → live-cards-bridge-D8kP3uog.d.cts} +2 -2
- package/lib/{live-cards-bridge-YL6AWawT.d.ts → live-cards-bridge-DMBSDgpk.d.ts} +2 -2
- package/lib/localstorage-storage/index.cjs +1 -1
- package/lib/localstorage-storage/index.js +1 -1
- package/lib/server-runtime/index.cjs +1 -1
- package/lib/server-runtime/index.js +1 -1
- package/lib/server-runtime-controlface/index.cjs +1 -1
- package/lib/server-runtime-controlface/index.js +1 -1
- package/lib/server-runtime-core/index.cjs +1 -1
- package/lib/server-runtime-core/index.js +1 -1
- package/package.json +2 -1
- package/schema/live-cards.schema.json +775 -150
- package/browser/live-cards.js +0 -108
- package/lib/chunk-3DWVFRQD.cjs +0 -3
- package/lib/chunk-3SLSRX6Q.js +0 -3
- package/lib/chunk-543ZEGP7.cjs +0 -2
- package/lib/chunk-ESTFYRHF.cjs +0 -2
- package/lib/chunk-NN52BT3Q.js +0 -2
- package/lib/chunk-UJQ7IML5.js +0 -2
- package/lib/chunk-YOY2JM5N.js +0 -2
- package/lib/chunk-ZV35WD6K.cjs +0 -2
|
@@ -55,10 +55,12 @@
|
|
|
55
55
|
"kind": "ref",
|
|
56
56
|
"label": "Proposed Trades",
|
|
57
57
|
"data": {
|
|
58
|
-
"bind": "computed_values.proposed_trades"
|
|
58
|
+
"bind": "computed_values.proposed_trades"
|
|
59
|
+
},
|
|
60
|
+
"writeTo": "card_data.proposed_trades",
|
|
61
|
+
"spec": {
|
|
59
62
|
"viewBind": "computed_values._view",
|
|
60
63
|
"fallbackKind": "editable-table",
|
|
61
|
-
"writeTo": "card_data.proposed_trades",
|
|
62
64
|
"columns": [
|
|
63
65
|
"ticker",
|
|
64
66
|
"direction",
|
|
@@ -94,9 +96,9 @@
|
|
|
94
96
|
"kind": "notes",
|
|
95
97
|
"label": "Notes",
|
|
96
98
|
"data": {
|
|
97
|
-
"bind": "card_data.notes"
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
"bind": "card_data.notes"
|
|
100
|
+
},
|
|
101
|
+
"writeTo": "card_data.notes"
|
|
100
102
|
}
|
|
101
103
|
],
|
|
102
104
|
"layout": {
|
|
@@ -20,8 +20,10 @@
|
|
|
20
20
|
"kind": "editable-table",
|
|
21
21
|
"label": "Holdings",
|
|
22
22
|
"data": {
|
|
23
|
-
"bind": "card_data.holdings"
|
|
24
|
-
|
|
23
|
+
"bind": "card_data.holdings"
|
|
24
|
+
},
|
|
25
|
+
"writeTo": "card_data.holdings",
|
|
26
|
+
"spec": {
|
|
25
27
|
"columns": [
|
|
26
28
|
"ticker",
|
|
27
29
|
"quantity",
|
|
@@ -600,7 +600,9 @@ function buildChatProbeCard(cardId, label) {
|
|
|
600
600
|
label: 'Holdings',
|
|
601
601
|
data: {
|
|
602
602
|
bind: 'card_data.holdings',
|
|
603
|
-
|
|
603
|
+
},
|
|
604
|
+
writeTo: 'card_data.holdings',
|
|
605
|
+
spec: {
|
|
604
606
|
columns: ['ticker', 'quantity', 'cost_basis'],
|
|
605
607
|
schema: {
|
|
606
608
|
properties: {
|
|
@@ -502,7 +502,9 @@ function buildChatProbeCard(cardId, label) {
|
|
|
502
502
|
label: 'Holdings',
|
|
503
503
|
data: {
|
|
504
504
|
bind: 'card_data.holdings',
|
|
505
|
-
|
|
505
|
+
},
|
|
506
|
+
writeTo: 'card_data.holdings',
|
|
507
|
+
spec: {
|
|
506
508
|
columns: ['ticker', 'quantity', 'cost_basis'],
|
|
507
509
|
schema: {
|
|
508
510
|
properties: {
|
|
@@ -63,7 +63,7 @@ const CARD_PORTFOLIO_FORM = {
|
|
|
63
63
|
view: {
|
|
64
64
|
elements: [
|
|
65
65
|
{ kind: 'table', label: 'Holdings',
|
|
66
|
-
data: { bind: 'card_data.holdings', columns: ['symbol', 'qty'] } }
|
|
66
|
+
data: { bind: 'card_data.holdings' }, spec: { columns: ['symbol', 'qty'] } }
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
};
|
|
@@ -99,7 +99,7 @@ const CARD_HOLDINGS_TABLE = {
|
|
|
99
99
|
view: {
|
|
100
100
|
elements: [
|
|
101
101
|
{ kind: 'table', label: 'Portfolio Positions',
|
|
102
|
-
data: { bind: 'computed_values.table.rows', columns: ['symbol', 'qty', 'price', 'value'] } }
|
|
102
|
+
data: { bind: 'computed_values.table.rows' }, spec: { columns: ['symbol', 'qty', 'price', 'value'] } }
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
};
|
|
@@ -50,7 +50,7 @@ const CARD_PORTFOLIO_FORM = {
|
|
|
50
50
|
meta: { title: 'Portfolio Holdings Form' },
|
|
51
51
|
provides: [{ bindTo: 'holdings', ref: 'card_data.holdings' }],
|
|
52
52
|
card_data: { holdings: [] },
|
|
53
|
-
view: { elements: [{ kind: 'table', label: 'Holdings', data: { bind: 'card_data.holdings', columns: ['symbol', 'qty'] } }] },
|
|
53
|
+
view: { elements: [{ kind: 'table', label: 'Holdings', data: { bind: 'card_data.holdings' }, spec: { columns: ['symbol', 'qty'] } }] },
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
const CARD_PRICE_FETCH = {
|
|
@@ -76,7 +76,7 @@ const CARD_HOLDINGS_TABLE = {
|
|
|
76
76
|
bindTo: 'table',
|
|
77
77
|
expr: '{ "rows": $map(requires.holdings, function($h) { { "symbol": $h.symbol, "qty": $h.qty, "price": $lookup(requires.prices, $h.symbol), "value": $h.qty * $lookup(requires.prices, $h.symbol) } }) }',
|
|
78
78
|
}],
|
|
79
|
-
view: { elements: [{ kind: 'table', label: 'Portfolio Positions', data: { bind: 'computed_values.table.rows', columns: ['symbol', 'qty', 'price', 'value'] } }] },
|
|
79
|
+
view: { elements: [{ kind: 'table', label: 'Portfolio Positions', data: { bind: 'computed_values.table.rows' }, spec: { columns: ['symbol', 'qty', 'price', 'value'] } }] },
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
const CARD_PORTFOLIO_VALUE = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkG5UUXBIB_cjs=require('./chunk-G5UUXBIB.cjs');require('./chunk-66ZZIF2L.cjs'),require('./chunk-P7STTKRO.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createBoardLiveCardsMcp",{enumerable:true,get:function(){return chunkG5UUXBIB_cjs.a}});//# sourceMappingURL=board-live-cards-mcp.cjs.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-mcp.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as createBoardLiveCardsMcp}from'./chunk-
|
|
1
|
+
export{a as createBoardLiveCardsMcp}from'./chunk-ONJG6QW6.js';import'./chunk-QE3QXEHI.js';import'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';import'./chunk-FW4363Y4.js';//# sourceMappingURL=board-live-cards-mcp.js.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-mcp.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkMCPADH33_cjs=require('./chunk-MCPADH33.cjs'),
|
|
1
|
+
'use strict';var chunkMCPADH33_cjs=require('./chunk-MCPADH33.cjs'),chunkAW6XLBHX_cjs=require('./chunk-AW6XLBHX.cjs'),chunkNBJTYAYN_cjs=require('./chunk-NBJTYAYN.cjs'),chunkGPCMBPLK_cjs=require('./chunk-GPCMBPLK.cjs'),chunkH4TYOSMD_cjs=require('./chunk-H4TYOSMD.cjs'),chunk3CZCGNY4_cjs=require('./chunk-3CZCGNY4.cjs'),chunk73LKIKD3_cjs=require('./chunk-73LKIKD3.cjs');require('./chunk-6EJRZHFP.cjs'),require('./chunk-TIQ775WI.cjs');var chunkCSHNTZW4_cjs=require('./chunk-CSHNTZW4.cjs'),chunkC7RR2JCL_cjs=require('./chunk-C7RR2JCL.cjs');require('./chunk-AW3COGCI.cjs'),require('./chunk-SIPLKLWU.cjs');var chunkG5UUXBIB_cjs=require('./chunk-G5UUXBIB.cjs'),chunkCAID4CGO_cjs=require('./chunk-CAID4CGO.cjs'),chunk7JVHYHT2_cjs=require('./chunk-7JVHYHT2.cjs'),chunkVQCIOKJV_cjs=require('./chunk-VQCIOKJV.cjs');require('./chunk-VI36DRWG.cjs'),require('./chunk-7Y47QXMX.cjs');var chunk66ZZIF2L_cjs=require('./chunk-66ZZIF2L.cjs'),chunkP7STTKRO_cjs=require('./chunk-P7STTKRO.cjs');require('./chunk-UJ7ZTV4J.cjs');var chunkSDJ3747Q_cjs=require('./chunk-SDJ3747Q.cjs'),chunkP7ZCDICS_cjs=require('./chunk-P7ZCDICS.cjs');require('./chunk-2RIHC5TZ.cjs'),require('./chunk-GNFE24S7.cjs');var child_process=require('child_process'),a=require('fs'),Je=require('os'),v=require('path'),Ke=require('net'),url=require('url'),crypto=require('crypto'),module$1=require('module'),properLockfile=require('proper-lockfile');var _documentCurrentScript=typeof document!=='undefined'?document.currentScript:null;function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var Je__namespace=/*#__PURE__*/_interopNamespace(Je);var v__namespace=/*#__PURE__*/_interopNamespace(v);var Ke__namespace=/*#__PURE__*/_interopNamespace(Ke);function P(...e){return v__namespace.join(...e)}function We(e){return v__namespace.isAbsolute(e)}function pe(){return crypto.randomUUID()}function He(e){return crypto.createHash("sha256").update(e).digest("hex")}function Ve(e){return v__namespace.dirname(url.fileURLToPath(e))}function Qt(e){if(typeof e=="object"&&e!==null){let{command:r,args:o=[],...n}=e,s=De(r,o);return {...n,command:s.command,args:s.args}}let t=Ue(e);if(t.length===0)throw new Error(`Empty command spec: ${JSON.stringify(e)}`);return De(t[0],t.slice(1))}function De(e,t){return /^(node|node\.exe)$/i.test(e)?{command:process.execPath,args:t}:/\.m?js$/i.test(e)?{command:process.execPath,args:[e,...t]}:{command:e,args:t}}function Ue(e){let t=[],r="",o=null;for(let n of e.trim()){if(o){n===o?o=null:r+=n;continue}if(n==='"'||n==="'"){o=n;continue}if(/\s/.test(n)){r&&(t.push(r),r="");continue}r+=n;}if(o)throw new Error(`Unterminated quote in command: ${e}`);return r&&t.push(r),t}function ze(e){return process.platform==="win32"&&/\.(cmd|bat)$/i.test(e)}function Ge(e,t){let{command:r,args:o=[],cwd:n,env:s,timeoutMs:d}=e;return child_process.execFileSync(r,o,{shell:ze(r),timeout:d,encoding:t?.encoding??"utf-8",cwd:n,windowsHide:true,env:s?{...process.env,...s}:void 0,input:t?.input})}function Dt(e,t){let{command:r,args:o=[],cwd:n,env:s,timeoutMs:d=3e4}=e;child_process.execFile(r,o,{shell:ze(r),encoding:"utf8",windowsHide:true,timeout:d,maxBuffer:10*1024*1024,cwd:n,env:s?{...process.env,...s}:void 0},(g,x,u)=>t(g??null,x,u));}function Ye(e,t,r){let o=v__namespace.join(e,"board-live-cards-cli.js");if(a__namespace.existsSync(o))return {cmd:process.execPath,args:[o,t,...r]};let n=v__namespace.join(e,"board-live-cards-cli.ts"),d=[v__namespace.join(e,"..","..","..","node_modules","tsx","dist","cli.mjs"),v__namespace.join(e,"..","..","node_modules","tsx","dist","cli.mjs"),v__namespace.join(e,"..","..","..","node_modules",".bin","tsx"),v__namespace.join(e,"..","..","node_modules",".bin","tsx")].find(x=>a__namespace.existsSync(x));return a__namespace.existsSync(n)&&d?{cmd:process.execPath,args:[d,n,t,...r]}:{cmd:process.platform==="win32"?"npx.cmd":"npx",args:["tsx",n,t,...r]}}function Ze(e){let t=v__namespace.join(e,"board-live-cards-cli.mjs");if(a__namespace.existsSync(t))return t;let r=v__namespace.join(e,"..","..","..","dev","board-live-cards-cli.js");if(a__namespace.existsSync(r))return r;let o=v__namespace.join(e,"..","..","dev","board-live-cards-cli.js");if(a__namespace.existsSync(o))return o;let n=v__namespace.join(e,"board-live-cards-cli.js");if(a__namespace.existsSync(n))return n;throw new Error(`resolveBoardCliCallbackTarget: cannot find callback target in ${e} (expected dev/board-live-cards-cli.js wrapper, ${n}, or ${t})`)}function Jt(e){return process.platform==="win32"?`\\\\.\\pipe\\${e}`:v__namespace.join(Je__namespace.tmpdir(),`${e}.sock`)}var fe=new Map;function Xe(e,t,r){if(t.length===0)return;let o=t.map(g=>JSON.stringify(g)).join(`
|
|
2
2
|
`)+`
|
|
3
3
|
`,n=fe.get(e);if(n&&!n.socket.destroyed){n.ready?n.socket.write(o):n.queue.push(o);return}let s=Jt(e),d=Ke__namespace.createConnection(s);n={socket:d,ready:false,queue:[o]},fe.set(e,n),d.on("connect",()=>{n.ready=true;for(let g of n.queue)d.write(g);n.queue.length=0;}),d.on("error",g=>{r?.(`[named-pipe publish] ${s}: ${g instanceof Error?g.message:String(g)}`),fe.delete(e);}),d.on("close",()=>{fe.delete(e);});}function et(){return {executeSync(e,t,r){return Ge({command:e,args:t,cwd:r?.cwd,timeoutMs:r?.timeout,env:r?.env},{encoding:r?.encoding,input:r?.input})},executeAsync(e,t,r){Dt({command:e,args:t},r);},resolveInvocation(e,t){let r=Qt({command:e,args:t});return {cmd:r.command,args:r.args??[]}},splitCommand:Ue}}function Ae(e){return {id:e.id??"board-worker",pollIntervalMs:e.pollIntervalMs,visibilityMs:e.visibilityMs,concurrency:e.concurrency,maxAttempts:e.maxAttempts,async lease(t){return e.workerStore.leaseRequests(t).map(r=>({id:r.messageId,attempt:r.attempt,message:r.request,ack:()=>e.workerStore.ackRequest(r.messageId,r.leaseToken),nack:o=>e.workerStore.nackRequest(r.messageId,r.leaseToken,o)}))},async handle(t){await e.handleRequest(t.args,t);},onError:e.onError}}function Te(e){return {id:e.id,pollIntervalMs:e.pollIntervalMs,visibilityMs:e.visibilityMs,concurrency:e.concurrency,maxAttempts:e.maxAttempts,async lease(t){return e.queueStorage.lease(t).map(r=>({id:r.id,attempt:r.attempt,message:r.body,ack:()=>e.queueStorage.ack(r.id,r.leaseToken),nack:o=>e.queueStorage.nack(r.id,r.leaseToken,o)}))},handle:e.handleMessage,onError:e.onError}}async function tt(e,t){try{await e.handle(t.message,t),await t.ack();}catch(r){let o=t.attempt>=Math.max(1,Math.floor(e.maxAttempts??5));await t.nack({dead:o,reason:r instanceof Error?r.message:String(r)}),e.onError?.(r,t);}}function rt(e){let t=Math.max(1,Math.floor(e.pollIntervalMs??250)),r=Math.max(1,Math.floor(e.visibilityMs??6e4)),o=Math.max(1,Math.floor(e.concurrency??1)),n=false,s=false;async function d(){if(!(n||s)){s=true;try{let x=await e.lease({max:o,visibilityMs:r});for(let u of x)await tt(e,u);}finally{s=false;}}}let g=setInterval(()=>{d();},t);return typeof g.unref=="function"&&g.unref(),d(),()=>{n=true,clearInterval(g);}}async function Kt(e){let t=Math.max(1,Math.floor(e.visibilityMs??6e4)),r=Math.max(1,Math.floor(e.concurrency??1)),o=await e.lease({max:r,visibilityMs:t});for(let n of o)await tt(e,n);return o.length}async function ge(e,t){let r=Math.max(1,Math.floor(t?.maxPasses??256)),o=0;for(let n=0;n<r;n+=1){let s=await Kt(e);if(o+=s,s<=0)return o}throw new Error(`drainQueueLaneToIdle exceeded ${r} passes for lane "${e.id}"`)}function Wt(e){let r=(Array.isArray(e)?e:e.lanes).map(o=>rt(o));return ()=>{for(let o of r)o();}}var Vt=module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('board-live-cards-node.cjs', document.baseURI).href)));function Ut(e){return typeof e=="object"?e:chunkVQCIOKJV_cjs.b(e)}function ot(e){let t=v__namespace.basename(String(e||"").trim());if(!t)throw new Error(`resolveYamlFlowCliPath: expected non-empty cli file name, got ${JSON.stringify(e)}`);let r=v__namespace.dirname(Vt.resolve("yaml-flow/package.json")),o=t.replace(/\.[^.]+$/,""),n=v__namespace.join(r,"cli","bundled",`${o}.mjs`);if(a__namespace.existsSync(n))return n;let s=v__namespace.join(r,"cli","node",t);if(a__namespace.existsSync(s))return s;throw new Error(`resolveYamlFlowCliPath: could not find ${t} under cli/bundled or cli/node in ${r}`)}function q(e){let t=Ut(e);return t.kind==="yaml-flow-cli"?ot(t.value):t.value}function zt(e,t){let r=q(e);switch(r){case "source-cli-task-executor":{let o=v__namespace.join(t,"source-cli-task-executor.js");if(a__namespace.existsSync(o))return {command:process.execPath,args:[o]};let n=v__namespace.join(t,"source-cli-task-executor.ts"),s=v__namespace.join(t,"..","..","node_modules","tsx","dist","cli.mjs"),d=v__namespace.join(t,"..","..","node_modules",".bin","tsx"),g=a__namespace.existsSync(s)?s:d;return a__namespace.existsSync(n)&&a__namespace.existsSync(g)?{command:process.execPath,args:[g,n]}:{command:process.execPath,args:[o]}}case "board-live-cards":{let{cmd:o,args:n}=Ye(t,"_",[]);return {command:o,args:n}}default:throw new Error(`resolveBuiltIn: unknown built-in name "${r}". Supported: source-cli-task-executor, board-live-cards`)}}function Gt(e,t){if(e.howToRun==="built-in"){let{command:o,args:n}=zt(e.whatToRun,t);return {command:o,baseArgs:n}}let r=(typeof e.whatToRun=="object",q(e.whatToRun));switch(e.howToRun){case "local-node":return {command:process.execPath,baseArgs:[r]};case "local-python":return {command:process.platform==="win32"?"python":"python3",baseArgs:[r]};case "local-process":return {command:r,baseArgs:[]};default:throw new Error(`resolveBaseInvocation: howToRun "${e.howToRun}" is not a local transport`)}}function me(e,t){return Gt(e,t)}var Ee=new Map;function Yt(e,t){let r=String(e||"").trim();if(!r)throw new Error("registerInProcessExecutionHandler: key is required");Ee.set(r,t);}function Zt(e){let t=String(e||"").trim();t&&Ee.delete(t);}function st(e){let t=e.trim();if(!t)throw new Error("empty stdout");try{return JSON.parse(t)}catch{let r=t.split(/\r?\n/).filter(Boolean),o=r[r.length-1];return JSON.parse(o)}}function it(e,t){return {...t,whatToRun:q(e.whatToRun),...e.extra?{extra:e.extra}:{}}}function Ce(e,t,r="invokeExecutionRef"){return chunk3CZCGNY4_cjs.a(e,t,r)}function at(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.result=="string"&&e.data&&typeof e.data=="object"&&!Array.isArray(e.data))return {...e,...t||{}};if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.status=="string"){let o=e,n=o.status==="success"?"success":o.status==="fail"?"failure":o.status,s=o.data&&typeof o.data=="object"&&!Array.isArray(o.data)?o.data:o.data===void 0?{}:{stdout:o.data};return {result:n,data:s,...typeof o.error=="string"?{error:o.error}:{},...t||{}}}return {result:"success",data:e&&typeof e=="object"&&!Array.isArray(e)?e:{stdout:e},...t||{}}}function N(e){return {result:"failure",data:{error:e}}}function G(e,t,r){let o=r?.label??"invokeExecutionRefSync",n=r?.cliDir??r?.cwd??process.cwd(),s;try{s=Ce(e.argsMassaging,it(e,t),o);}catch(h){let R=h instanceof Error?h.message:String(h);return N(R)}let d;try{d=me(e,n);}catch(h){let R=h instanceof Error?h.message:String(h);return N(`[${o}] ref resolution failed: ${R}`)}let g=[...d.baseArgs,...s.cmdArgs??[]],x=JSON.stringify(s.stdin??t),u=et(),p;try{p=u.executeSync(d.command,g,{timeout:r?.timeoutMs??3e4,encoding:"utf-8",cwd:r?.cwd,input:x});}catch(h){let R=h,y=(R.stderr?String(R.stderr):"").trim(),l=typeof R.status=="number"?R.status:"unknown",f=y||R.message;return N(`[${o}] ref exited with status ${l}${f?`: ${f}`:""}`)}try{return at(st(p))}catch{return {result:"success",data:{stdout:p.trim()}}}}async function nt(e,t,r){let o=r?.label??"invokeExecutionRef",n;try{n=Ce(e.argsMassaging,it(e,t),o);}catch(h){let R=h instanceof Error?h.message:String(h);return N(R)}let s=q(e.whatToRun),d=n.headers?{"Content-Type":"application/json",...n.headers}:{"Content-Type":"application/json"},g=n.url??s,x;if(e.howToRun==="http:get"){let h=n.body&&typeof n.body=="object"&&!Array.isArray(n.body)?n.body:t,R=new URLSearchParams(Object.entries(h).filter(([,y])=>y!=null).map(([y,l])=>[y,String(l)]));R.size>0&&(g=`${g}${g.includes("?")?"&":"?"}${R.toString()}`);}else x=JSON.stringify(n.body??t);let u={method:e.howToRun==="http:get"?"GET":"POST",headers:d,body:x},p=0;for(;;)try{let h=await fetch(g,u);if(!h.ok){let f=await h.text().catch(()=>"");return N(`[${o}] HTTP ${h.status}${f?`: ${f}`:""}`)}let R={};h.headers.forEach((f,m)=>{R[m]=f;});let y=new Uint8Array(await h.arrayBuffer());if(y.byteLength===0)return {result:"success",data:{},headers:R};let l=new TextDecoder().decode(y);try{return at(st(l),{headers:R})}catch{return {result:"success",data:{stdout:l},headers:R}}}catch(h){let R=h?.cause,y=R&&typeof R=="object"&&"code"in R?String(R.code||""):"";if((y==="ECONNRESET"||y==="UND_ERR_SOCKET")&&p===0){p+=1;continue}let f=h instanceof Error?h.message:String(h),m=R instanceof Error?`${R.name}: ${R.message}${y?` [${y}]`:""}`:R?String(R):"",S=n.url??s??"",c=`${f}${m?` (cause: ${m})`:""}${S?` url=${S}`:""}`;return N(`[${o}] ${c}`)}}async function Xt(e,t,r){let o=r?.label??"invokeExecutionRef",n=q(e.whatToRun).trim();if(!n)return N(`[${o}] in-process-loop requires a non-empty handler key`);let s=Ee.get(n);if(!s)return N(`[${o}] no in-process handler registered for: ${n}`);try{return await s(e,t,r)}catch(d){let g=d instanceof Error?d.message:String(d);return N(`[${o}] ${g}`)}}var er={"local-node":async(e,t,r)=>G(e,t,r),"local-python":async(e,t,r)=>G(e,t,r),"local-process":async(e,t,r)=>G(e,t,r),"built-in":async(e,t,r)=>G(e,t,r),"http:post":nt,"http:get":nt,"in-process-loop":Xt},tr={"local-node":G,"local-python":G,"local-process":G,"built-in":G};async function re(e,t,r){let o=r?.transports?.[e.howToRun]??er[e.howToRun];return o?o(e,t,r):N(`[${r?.label??"invokeExecutionRef"}] unsupported howToRun: ${e.howToRun}`)}function je(e,t,r){let o=r?.syncTransports?.[e.howToRun]??tr[e.howToRun];return o?o(e,t,r):N(`[${r?.label??"invokeExecutionRefSync"}] unsupported sync howToRun: ${e.howToRun}`)}function rr(e){return {invoke(t,r){return re(t,r,e)},invokeSync(t,r){return je(t,r,e)}}}function nr(e,t,r){return je(e,t,r)}function Be(e={}){let t=e.resolveRef??(r=>r);return {...e.executorTimeouts?{executorTimeouts:e.executorTimeouts}:{},async invokeExecutor(r,o,n){let s=t(r);if(s.howToRun==="queue-storage")throw new Error("queue-storage does not support inline executor request/response");if(s.howToRun==="http:post"||s.howToRun==="in-process-loop"){let p=await chunkH4TYOSMD_cjs.h(s,{subcommand:o,...n?.input!==void 0?{input:n.input}:{}});return typeof p=="string"?p:p&&typeof p=="object"&&!Array.isArray(p)&&typeof p.stdout=="string"?String(p.stdout):JSON.stringify(p??{})}if(s.howToRun==="http:get"){let p=await re(s,{subcommand:o,...n?.input!==void 0?{input:n.input}:{},...s.extra?{extra:s.extra}:{}},{cwd:process.cwd(),timeoutMs:n?.timeout??3e4,label:`invokeExecutor:${o}`});if(p.result!=="success"){let h=typeof p.data?.error=="string"?p.data.error:p.error;throw new Error(h||`executor request failed: ${p.result}`)}return typeof p.data?.stdout=="string"?p.data.stdout:JSON.stringify(p.data??{})}if(!e.resolveCliDir)throw new Error(`createNonCoreExecutorDispatcher: ref.howToRun="${s.howToRun}" requires opts.resolveCliDir`);let{command:d,baseArgs:g}=me(s,e.resolveCliDir()),x=s.extra?["--extra",Buffer.from(JSON.stringify(s.extra)).toString("base64")]:[],u=[...g,o,...x];return await new Promise((p,h)=>{let R=child_process.spawn(d,u,{cwd:process.cwd(),stdio:"pipe",windowsHide:true,shell:process.platform==="win32"&&/\.(cmd|bat)$/i.test(d)}),y=[],l=[],f=false,m=null,S=i=>{f||(f=true,m&&clearTimeout(m),h(i));},c=i=>{f||(f=true,m&&clearTimeout(m),p(i));};R.stdout.on("data",i=>{y.push(Buffer.from(i));}),R.stderr.on("data",i=>{l.push(Buffer.from(i));}),R.on("error",i=>{let k=i;k.stdout=Buffer.concat(y).toString("utf-8"),k.stderr=Buffer.concat(l).toString("utf-8"),S(k);}),R.on("close",i=>{let k=Buffer.concat(y).toString("utf-8"),w=Buffer.concat(l).toString("utf-8");if(i===0){c(k);return}let b=new Error(w.trim()||`executor exited with status ${i}`);b.stdout=k,b.stderr=w,S(b);}),n?.timeout&&n.timeout>0&&(m=setTimeout(()=>{R.kill();let i=new Error(`executor timed out after ${n.timeout}ms`);i.stdout=Buffer.concat(y).toString("utf-8"),i.stderr=Buffer.concat(l).toString("utf-8"),S(i);},n.timeout)),n?.input!==void 0?R.stdin.end(n.input):R.stdin.end();})}}}function $(e,t){if(process.platform!=="win32"){a__namespace.renameSync(e,t);return}let r=[10,20,40,80,160];for(let o=0;o<=r.length;o++)try{a__namespace.renameSync(e,t);return}catch(n){let s=n.code;if((s==="EPERM"||s==="EBUSY")&&o<r.length){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,r[o]);continue}throw n}}function Y(e){function t(n){return v__namespace.join(e,...n.split("/"))}function r(n){return v__namespace.relative(e,n).replace(/\\/g,"/")}function o(n,s){if(a__namespace.existsSync(n))for(let d of a__namespace.readdirSync(n,{withFileTypes:true})){let g=v__namespace.join(n,d.name);if(d.isDirectory()){o(g,s);continue}d.isFile()&&s.push(r(g));}}return {read(n){let s=t(n);if(!a__namespace.existsSync(s))return null;try{return a__namespace.readFileSync(s,"utf-8")}catch{return null}},write(n,s){let d=t(n),g=`${d}.${process.pid}.${crypto.randomUUID()}.tmp`;a__namespace.mkdirSync(v__namespace.dirname(d),{recursive:true}),a__namespace.writeFileSync(g,s,"utf-8"),$(g,d);},exists(n){return a__namespace.existsSync(t(n))},remove(n){let s=t(n);try{a__namespace.existsSync(s)&&a__namespace.unlinkSync(s);}catch{}},readBytes(n){let s=t(n);if(!a__namespace.existsSync(s))return null;try{return new Uint8Array(a__namespace.readFileSync(s))}catch{return null}},writeBytes(n,s){let d=t(n),g=`${d}.${process.pid}.${crypto.randomUUID()}.tmp`;a__namespace.mkdirSync(v__namespace.dirname(d),{recursive:true}),a__namespace.writeFileSync(g,Buffer.from(s)),$(g,d);},listKeys(n){let s=[];o(e,s);let d=s.sort();return n?d.filter(g=>g.startsWith(n)):d},stat(n){let s=t(n);if(!a__namespace.existsSync(s))return null;try{let d=a__namespace.statSync(s);return {key:n,size:Number(d.size||0),updatedAt:new Date(d.mtimeMs).toISOString()}}catch{return null}},keyRef(n){return {kind:"fs-path",value:t(n)}},renameKey(n,s){let d=t(n);if(!a__namespace.existsSync(d))return false;let g=t(s);return a__namespace.mkdirSync(v__namespace.dirname(g),{recursive:true}),$(d,g),true}}}function $e(){return {read(e){if(!a__namespace.existsSync(e))return null;try{return a__namespace.readFileSync(e,"utf-8")}catch{return null}},write(e,t){let r=`${e}.${process.pid}.${crypto.randomUUID()}.tmp`;a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:true}),a__namespace.writeFileSync(r,t,"utf-8"),$(r,e);},exists(e){return a__namespace.existsSync(e)},remove(e){try{a__namespace.existsSync(e)&&a__namespace.unlinkSync(e);}catch{}},readBytes(e){if(!a__namespace.existsSync(e))return null;try{return new Uint8Array(a__namespace.readFileSync(e))}catch{return null}},writeBytes(e,t){let r=`${e}.${process.pid}.${crypto.randomUUID()}.tmp`;a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:true}),a__namespace.writeFileSync(r,Buffer.from(t)),$(r,e);},stat(e){if(!a__namespace.existsSync(e))return null;try{let t=a__namespace.statSync(e);return {key:e,size:Number(t.size||0),updatedAt:new Date(t.mtimeMs).toISOString()}}catch{return null}},listKeys(e){return []},renameKey(e,t){return a__namespace.existsSync(e)?(a__namespace.mkdirSync(v__namespace.dirname(t),{recursive:true}),$(e,t),true):false}}}function H(e,t){let r=`${e}.${process.pid}.${crypto.randomUUID()}.tmp`;a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:true}),a__namespace.writeFileSync(r,JSON.stringify(t,null,2),"utf-8"),$(r,e);}function Q(e){if(!a__namespace.existsSync(e))return null;try{return JSON.parse(a__namespace.readFileSync(e,"utf-8"))}catch{return null}}function ne(e){return a__namespace.existsSync(e)?a__namespace.readdirSync(e).filter(t=>t.endsWith(".json")).sort().map(t=>v__namespace.join(e,t)):[]}function oe(e){return {id:e.id,body:e.body,enqueuedAt:e.enqueuedAt,attempt:e.attempt}}function ar(e){return {...oe(e),leaseToken:String(e.leaseToken||""),leaseExpiresAt:String(e.leaseExpiresAt||"")}}function cr(e){return {...oe(e),reason:e.reason}}function Me(e){let t=v__namespace.join(e,"active"),r=v__namespace.join(e,"leased"),o=v__namespace.join(e,"done"),n=v__namespace.join(e,"dead"),s=v__namespace.join(e,"staged");for(let l of [t,r,o,n,s])a__namespace.mkdirSync(l,{recursive:true});let d=0;function g(l){let f=l.replace(/[:.]/g,"-"),m=String(d++).padStart(6,"0");return `${f}-${m}`}function x(l){let f=l.activeOrderKey||g(String(l.enqueuedAt||new Date().toISOString()));return v__namespace.join(t,`${f}-${l.id}.json`)}function u(l){return v__namespace.join(r,`${l}.json`)}function p(l){return v__namespace.join(o,`${l}.json`)}function h(l){return v__namespace.join(n,`${l}.json`)}function R(l){return v__namespace.join(s,`${l}.json`)}function y(){let l=Date.now();for(let f of ne(r)){let m=Q(f);if(!m?.leaseExpiresAt)continue;let S=Date.parse(m.leaseExpiresAt);if(Number.isNaN(S)||S>l)continue;let c={id:m.id,body:m.body,enqueuedAt:m.enqueuedAt,attempt:m.attempt,activeOrderKey:m.activeOrderKey};H(x(c),c);try{a__namespace.unlinkSync(f);}catch{}}}return {enqueue(l){let f={id:crypto.randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0};return f.activeOrderKey=g(f.enqueuedAt),H(x(f),f),oe(f)},enqueueMany(l){return l.map(f=>this.enqueue(f))},enqueueIfAbsent(l,f){y();for(let S of [t,r,s])for(let c of ne(S))if(Q(c)?.dedupKey===f)return null;let m={id:crypto.randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0,dedupKey:f};return m.activeOrderKey=g(m.enqueuedAt),H(x(m),m),oe(m)},lease(l){y();let f=Math.max(1,Math.floor(l?.max??1)),m=Math.max(1,Math.floor(l?.visibilityMs??6e4)),S=[];for(let c of ne(t)){if(S.length>=f)break;let i=Q(c);if(!i)continue;let k=u(i.id);try{$(c,k);}catch{continue}let w={...i,attempt:(Number(i.attempt)||0)+1,leaseToken:crypto.randomUUID(),leaseExpiresAt:new Date(Date.now()+m).toISOString()};H(k,w),S.push(ar(w));}return S},ack(l,f){let m=u(l),S=Q(m);if(!S||S.leaseToken!==f)return false;try{$(m,p(l));}catch{return false}return true},nack(l,f,m){let S=u(l),c=Q(S);if(!c||c.leaseToken!==f)return false;let i={id:c.id,body:c.body,enqueuedAt:c.enqueuedAt,attempt:c.attempt,activeOrderKey:c.activeOrderKey};m?.dead?(i.reason=m.reason,H(h(l),i)):H(x(i),i);try{a__namespace.unlinkSync(S);}catch{}return true},peekActive(l){return y(),ne(t).map(f=>Q(f)).filter(f=>!!f).map(oe)},peekDeadLetter(l){return ne(n).map(f=>Q(f)).filter(f=>!!f).map(cr)},stage(l,f){let m=f?.dedupKey;if(m){y();for(let c of [t,r,s])for(let i of ne(c))if(Q(i)?.dedupKey===m)return null}let S={id:crypto.randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0,...m?{dedupKey:m}:{}};return H(R(S.id),S),oe(S)},commitStaged(l){let f=R(l),m=Q(f);if(!m)return false;let S=new Date().toISOString(),c={...m,attempt:0,enqueuedAt:S,activeOrderKey:g(S)};H(x(c),c);try{a__namespace.unlinkSync(f);}catch{}return true},discardStaged(l,f){let m=R(l),S=Q(m);if(!S)return false;let c={id:S.id,body:S.body,enqueuedAt:S.enqueuedAt,attempt:S.attempt,reason:f};H(h(l),c);try{a__namespace.unlinkSync(m);}catch{}return true},peekStaged(l){return ne(s).map(f=>Q(f)).filter(f=>!!f).map(oe)}}}var Ie="__scratch-marker",Pe="__scratch-config.json",ur=1440*60*1e3,dr=720*60*1e3,lr=500;function ct(e,t){if(!e)return t;let r=e.replace(/[^A-Za-z0-9._-]/g,"_");return r.length>0?r:t}function ce(e){a__namespace.mkdirSync(e,{recursive:true});let t=v__namespace.join(e,Ie),r=v__namespace.join(e,Pe),o=!a__namespace.existsSync(t);if(o)try{a__namespace.writeFileSync(t,`scratch-store
|
|
4
4
|
${new Date().toISOString()}
|
|
@@ -8,5 +8,5 @@ ${new Date().toISOString()}
|
|
|
8
8
|
`).filter(Boolean).map(o=>JSON.parse(o)):[]}return {append(r){let o={id:crypto.randomUUID(),payload:r};return a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:true}),a__namespace.appendFileSync(e,JSON.stringify(o)+`
|
|
9
9
|
`,"utf-8"),o},readAll(){return t()},readAfter(r){let o=t();if(!r)return {entries:o,newCursor:o.length>0?o[o.length-1].id:null};let n=o.findIndex(d=>d.id===r),s=n===-1?o:o.slice(n+1);return {entries:s,newCursor:s.length>0?s[s.length-1].id:r}},clear(){a__namespace.existsSync(e)&&a__namespace.truncateSync(e,0);}}}function Fe(e){if(e==null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return `[${e.map(Fe).join(",")}]`;let t=e;return `{${Object.keys(t).sort().map(o=>`${JSON.stringify(o)}:${Fe(t[o])}`).join(",")}}`}function dt(e){return crypto.createHash("sha256").update(Fe(e)).digest("hex")}function Oe(e){let t=v__namespace.join(e,"board-journal.jsonl");return {readAllEntries(){if(!a__namespace.existsSync(t))return [];let r=a__namespace.readFileSync(t,"utf-8").trim();return r?r.split(`
|
|
10
10
|
`).filter(Boolean).map(o=>JSON.parse(o)):[]},appendEntry(r){a__namespace.appendFileSync(t,JSON.stringify(r)+`
|
|
11
|
-
`,"utf-8");},generateId(){return crypto.randomUUID()}}}function lt(e){return {tryAcquire(){try{if(!a__namespace.existsSync(e)){a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:!0});try{a__namespace.writeFileSync(e,"{}",{flag:"wx"});}catch{}}return properLockfile.lockSync(e,{retries:0})}catch{return null}}}}function ft(e,t){if(e?.kind!=="fs-path"||typeof e.value!="string"||!e.value.trim())throw new Error(`${t} must be an fs-path ref`);return v__namespace.default.normalize(e.value)}function xe(e){a__namespace.default.existsSync(e)||a__namespace.default.mkdirSync(e,{recursive:true});}function mr(e=new Date){let t=r=>String(r).padStart(2,"0");return `${t(e.getMonth()+1)}${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}${t(e.getSeconds())}`}function pt(e){return a__namespace.default.existsSync(e)?JSON.parse(a__namespace.default.readFileSync(e,"utf8")):null}function yr(e){let t=e.registry??{},r=ft(t.boardsIndexRef,"registry.boardsIndexRef"),o=ft(t.boardsLayoutRef,"registry.boardsLayoutRef"),n=t.deprecatedContainerRef?.kind==="fs-path"&&typeof t.deprecatedContainerRef.value=="string"&&t.deprecatedContainerRef.value.trim()?v__namespace.default.normalize(t.deprecatedContainerRef.value):"";function s(i){return v__namespace.default.join(r,`${i}.json`)}function d(i){return v__namespace.default.join(o,`${i}.json`)}function g(i){xe(n);let k=mr(),w="",b=1;for(;;){let A=`${i}-${k}${w}`,C=v__namespace.default.join(n,`${A}.json`),E=v__namespace.default.join(n,`${A}.layout.json`),j=v__namespace.default.join(n,A);if(!a__namespace.default.existsSync(C)&&!a__namespace.default.existsSync(E)&&!a__namespace.default.existsSync(j))return {archiveBase:A,archiveRecordPath:C,archiveLayoutPath:E,archiveWorkspaceDir:j};b+=1,w=`-${b}`;}}function x(i,k){if(!i||!a__namespace.default.existsSync(i))return "";let w=10;for(let b=1;b<=w;b+=1)try{return a__namespace.default.renameSync(i,k),k}catch(A){let C=A&&typeof A=="object"&&"code"in A?String(A.code??""):"";if(!(C==="EPERM"||C==="EBUSY"||C==="EACCES"||C==="ENOTEMPTY")||b===w)return "";}return ""}async function u(){if(!a__namespace.default.existsSync(r))return [];let i=[];for(let k of a__namespace.default.readdirSync(r)){if(!k.endsWith(".json"))continue;let w=k.slice(0,-5),b=JSON.parse(a__namespace.default.readFileSync(v__namespace.default.join(r,k),"utf8"));i.push({id:w,record:b});}return i}async function p(i){return pt(s(i))}async function h(i){return a__namespace.default.existsSync(s(i))}async function R(i,k){xe(r),a__namespace.default.writeFileSync(s(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"wx"});}async function y(i,k){xe(r),a__namespace.default.writeFileSync(s(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"w"});}async function l(i){return pt(d(i))}async function f(i,k){xe(o),a__namespace.default.writeFileSync(d(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"w"});}async function m(i){let k=d(i);a__namespace.default.existsSync(k)&&a__namespace.default.unlinkSync(k);}async function S(i,k,w={}){if(await R(i,k),w.layout==null){await m(i);return}await f(i,w.layout);}async function c(i,k={}){let w=s(i),b=d(i);if(!a__namespace.default.existsSync(w))return null;let A=typeof k.workspaceDir=="string"&&k.workspaceDir.trim()?v__namespace.default.normalize(k.workspaceDir):"";if(!n){if(a__namespace.default.rmSync(w,{force:true}),a__namespace.default.existsSync(b)&&a__namespace.default.rmSync(b,{force:true}),A&&a__namespace.default.existsSync(A))try{a__namespace.default.rmSync(A,{recursive:!0,force:!0});}catch{}return {archiveId:"",archiveRecordPath:"",archiveWorkspaceDir:"",archiveLayoutPath:""}}let{archiveBase:C,archiveRecordPath:E,archiveLayoutPath:j,archiveWorkspaceDir:X}=g(i);a__namespace.default.renameSync(w,E),a__namespace.default.existsSync(b)&&a__namespace.default.renameSync(b,j);let K=x(A,X);return {archiveId:C,archiveRecordPath:E,archiveWorkspaceDir:K,archiveLayoutPath:a__namespace.default.existsSync(j)?j:""}}return {kind:"fs-board-container",list:u,get:p,has:h,put:R,set:y,getLayout:l,setLayout:f,removeLayout:m,provision:S,archive:c}}function Z(e){return {status:"success",data:e}}function D(e){return {status:"fail",error:e}}function ie(e){return {status:"error",error:e instanceof Error?e.message:String(e)}}function ae(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function hr(e,t={}){let r=()=>chunkCSHNTZW4_cjs.b(e.kvStorage("config")),o=t.unsupportedLabel??"hosted async runtime";async function n(){return t.taskExecutorRef?t.taskExecutorRef:await r().readTaskExecutorRef().catch(()=>{})}async function s(y,l,f){let m=await n();if(!m||!t.invokeExecutor)throw new Error(`${y} is not supported on the ${o} yet`);let c=(await t.invokeExecutor(m,y,{...l!==void 0?{input:typeof l=="string"?l:JSON.stringify(l)}:{},...f!==void 0?{timeout:f}:{}})).trim();return c?ae(JSON.parse(c)):{}}async function d(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("validateCardPreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=chunk543ZEGP7_cjs.a(f),c=Array.isArray(f.source_defs)&&f.source_defs.length>0,i=[...S.issues];if(c)if(t.invokeExecutor&&await n())for(let k of f.source_defs){let w=typeof k.bindTo=="string"?k.bindTo:"(unknown)";try{let b=await s("validate-source-def",k,1e4);if(b.ok!==!0&&Array.isArray(b.errors))for(let A of b.errors)typeof A=="string"&&A&&i.push(`source "${w}": ${A}`);}catch(b){i.push(`source "${w}": executor validate-source-def failed \u2014 ${b instanceof Error?b.message:String(b)}`);}}else await n()&&i.push(`executor-backed source_def preflight is not supported on the ${o} yet`);return Z({cardId:m,isValid:i.length===0,issues:i})}catch(l){return ie(l)}}function g(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("evalCardCompute requires a JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=l["mock-fetched-sources"]??{},c=l["mock-requires"]??{},i=f.compute;if(!i||!Array.isArray(i)||i.length===0)return Z({cardId:m,ok:!0,computed_values:{},errors:[]});let k={id:m,card_data:f.card_data??{},requires:c,source_defs:f.source_defs,compute:i},w=chunkZV35WD6K_cjs.a.runSync(k,{sourcesData:S});return Z({cardId:m,ok:(w.errors??[]).length===0,computed_values:w.node.computed_values??{},errors:w.errors??[]})}catch(l){return ie(l)}}async function x(y){return D(`${y} is not supported on the ${o} yet`)}async function u(){try{return t.invokeExecutor&&await n()?Z(await s("describe-capabilities",void 0,1e4)):await x("describeTaskExecutorCapabilities")}catch(y){return ie(y)}}async function p(y){try{if(!t.invokeExecutor||!await n())return await x("probeSourcePreflight");if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("probeSourcePreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=ae(l["mock-projections"]??{}),S=y.params?.sourceIdx,c=Array.isArray(f.source_defs)?f.source_defs:[];if(S===void 0)return D("probeSourcePreflight requires params.sourceIdx");if(S<0||S>=c.length)return D(`sourceIdx ${S} out of range (card has ${c.length} source(s))`);let i=c[S],k=typeof i.bindTo=="string"?i.bindTo:"source",w=await s("probe-source-preflight",{...i,_projections:m},i.timeout??6e4);return w.ok!==!0?D(typeof w.error=="string"?w.error:"Preflight probe failed"):Z({bindTo:k,reachable:w.reachable,latencyMs:w.latencyMs,...typeof w.note=="string"?{note:w.note}:{}})}catch(l){return ie(l)}}async function h(y){try{if(!t.invokeExecutor||!await n())return await x("runSourcePreflight");if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("runSourcePreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=ae(l["mock-projections"]??{}),S=y.params?.sourceIdx,c=Array.isArray(f.source_defs)?f.source_defs:[];if(S===void 0)return D("runSourcePreflight requires params.sourceIdx");if(S<0||S>=c.length)return D(`sourceIdx ${S} out of range (card has ${c.length} source(s))`);let i=c[S],k=typeof i.bindTo=="string"?i.bindTo:"source",w=await s("run-source-preflight",{...i,_projections:m},i.timeout??6e4);return w.ok!==!0?Z({bindTo:k,ok:!1,result:null,issues:[typeof w.error=="string"?w.error:"Preflight run failed"]}):Z({bindTo:k,ok:!0,result:Object.prototype.hasOwnProperty.call(w,"resultValue")?w.resultValue:null,issues:[]})}catch(l){return ie(l)}}async function R(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("simulateCardCycle requires a JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=ae(l["mock-fetched-sources"]??{}),c=ae(l["mock-requires"]??{}),i=await d({body:{"card-content":f}}),k=i.status==="success"?{isValid:i.data.isValid,issues:i.data.issues}:{isValid:!1,issues:[i.status==="fail"?i.error:"internal error"]},w=Array.isArray(f.source_defs)?f.source_defs:[],b=ae(f.card_data??{}),A=[],C=[],E=[];if(w.length>0){A=chunkZV35WD6K_cjs.a.enrichSourcesSync(w,{card_data:b,requires:c}),C=A.filter(B=>B._skip!==!0);for(let B of C){let O=B.projections,W=B._projections;if(O&&W){for(let M of Object.keys(O))if(W[M]===void 0){let yt=typeof B.bindTo=="string"?B.bindTo:"(unknown)";E.push({bindTo:yt,key:M,error:`Projection "${M}" resolved to undefined`});}}}}let j=[],X=new Set(C.map(B=>typeof B.bindTo=="string"?B.bindTo:"")),K=Object.fromEntries(Object.entries(S).filter(([B])=>X.has(B)));for(let B=0;B<A.length;B+=1){let O=A[B],W=typeof O.bindTo=="string"?O.bindTo:`source_${B}`;if(O._skip===!0){j.push({bindTo:W,skipped:!0});continue}if(!t.invokeExecutor||!await n()){j.push({bindTo:W,skipped:!0,error:"No task executor configured"});continue}try{let M=await s("run-source-preflight",O,O.timeout??6e4);M.ok===!0&&!Object.prototype.hasOwnProperty.call(S,W)&&Object.prototype.hasOwnProperty.call(M,"resultValue")&&(K[W]=M.resultValue),j.push({bindTo:W,reachable:M.reachable,latencyMs:M.latencyMs,...M.ok===!0?{}:{error:typeof M.error=="string"?M.error:"Preflight run failed"}});}catch{j.push({bindTo:W,skipped:!0,error:"Executor does not support run-source-preflight"});}}let U=f.compute,se={},ee=[];if(U&&Array.isArray(U)&&U.length>0){let B={id:m,card_data:b,requires:c,source_defs:f.source_defs,compute:U},O=chunkZV35WD6K_cjs.a.runSync(B,{sourcesData:K});se=O.node.computed_values??{},ee=O.errors??[];}return Z({cardId:m,ok:k.isValid&&E.length===0&&ee.length===0&&j.every(B=>!B.error),validation:k,source_probes:j,projection_errors:E,fetched_sources:K,computed_values:se,compute_errors:ee})}catch(l){return ie(l)}}return {describeTaskExecutorCapabilities:u,validateCardPreflight:d,evalCardCompute:g,probeSourcePreflight:p,runSourcePreflight:h,simulateCardCycle:R}}function Sn(){return {async invoke(e,t){if(e.howToRun!=="local-node")return {dispatched:false,error:`createNodeSpawnInvocationAdapter: unsupported howToRun "${e.howToRun}"`};let r="";try{let s=e.whatToRun;r=q(s);}catch{r="";}if(!r)return {dispatched:false,error:"createNodeSpawnInvocationAdapter: could not resolve executable path from whatToRun"};let o={...t},n=Buffer.from(JSON.stringify(o)).toString("base64");try{return child_process.spawn(process.execPath,[r,"--boardId",String(t.boardId??""),"--cardId",String(t.cardId??""),"--extraEncJson",n],{stdio:"ignore",windowsHide:!0}).unref(),{dispatched:!0}}catch(s){return {dispatched:false,error:s instanceof Error?s.message:String(s)}}},async describe(e){if(e.howToRun!=="local-node")return null;let t="";try{let r=e.whatToRun;t=q(r);}catch{t="";}if(!t)return null;try{let r=child_process.spawnSync(process.execPath,[t,"describe"],{timeout:5e3,encoding:"utf-8",windowsHide:!0});return r.status!==0?null:JSON.parse(String(r.stdout).trim())}catch{return null}}}}var xr=".board.lock";function gt(e,t){if(!e||!t)return false;let r=String(e).replace(/[\\/]+$/,"").split(/[\\/]+/).filter(Boolean);return r.length>0&&r[r.length-1]===t}function wr(e,t){return typeof e=="string"?{cliDir:e,opts:t}:{cliDir:void 0,opts:e}}function kr(e,t){return typeof e=="string"?{cliDir:e,opts:t}:{cliDir:void 0,opts:e}}function mt(e){if(e)return e;let t=Ve((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('board-live-cards-node.cjs', document.baseURI).href))),r=[t,P(t,"..","cli","node"),P(t,"..","..","cli","node")];for(let o of r)try{return Ze(o),o}catch{}throw new Error(`createFsBoardPlatformAdapter: could not resolve a public CLI directory from module dir ${t}`)}function br(e,t,r){let{cliDir:o,opts:n}=wr(t,r),s=e.value,d=null,g,x=null,u;function p(){return u||(u=mt(o)),u}function h(c){let i=n?.queueStoreRef;if(!i)throw new Error(`createFsBoardPlatformAdapter: ${c} requires opts.queueStoreRef`);return i}function R(c){let i=n?.boardRuntimeStoreRef;if(!i)throw new Error(`createFsBoardPlatformAdapter: ${c} requires opts.boardRuntimeStoreRef`);return i}let y=n?.callbackTransport??chunkEGZPROOH_cjs.d({notifyChannel:n?.notifyChannel,boardRuntimeStoreRef:n?.boardRuntimeStoreRef,queueStoreRef:n?.queueStoreRef}),l;function f(c){return l.queueStorageForRef(h(`internal lane "${c}"`),c)}function m(c){return chunkGPCMBPLK_cjs.a(f(c))}function S(){if(n?.suppressSpawn||d)return;let c=Ae({id:"task-executor",workerStore:m("task-executor"),handleRequest:async(i,k)=>{let w=await re(k.ref,k.args,{cliDir:p(),cwd:process.cwd(),label:"fsBoardAdapter.boardWorker"});if(w.result!=="success"){let b=typeof w.data?.error=="string"?w.data.error:w.error;throw new Error(b||w.result)}}});d=ge(c).catch(i=>{n?.onWarn?.(`[board-worker] in-process queue drain failed: ${i instanceof Error?i.message:String(i)}`);}).finally(()=>{d=null,f("task-executor").peekActive().length>0&&S();});}return l={kvStorage:c=>ue(P(s,`.${c}`)),blobStorage:c=>c?Y(P(s,c)):Y(s),blobStorageForRef:c=>Y(chunkVQCIOKJV_cjs.b(c).value),chatStorageForRef:c=>vr(chunkVQCIOKJV_cjs.b(c).value),queueStorageForRef:(c,i)=>Me(P(chunkVQCIOKJV_cjs.b(c).value,i)),scratchStorage:()=>ce(P(s,".tmp")),scratchStorageForRef:c=>ce(chunkVQCIOKJV_cjs.b(c).value),archiveFactory:()=>Re(P(s,"archive")),archiveFactoryForRef:c=>Re(chunkVQCIOKJV_cjs.b(c).value),journalAdapter:()=>Oe(s),journalAdapterForRef:c=>Oe(chunkVQCIOKJV_cjs.b(c).value),lock:lt(P(s,xr)),callbackTransport:y,async dispatchExecution(c,i){let k=!!i.output?.ref;if(c.howToRun==="queue-storage")try{let b=m("task-executor"),A=typeof c.extra?.boardId=="string"?c.extra.boardId:void 0;if(k)return b.enqueueRequest({boardId:A,ref:c,args:i}),{dispatched:!0};let C=i.source_def?.bindTo??pe().slice(0,8),E=ce(P(s,".tmp")),j=E.create(JSON.stringify(i,null,2),`exec-in-${C}`,".json"),X=E.getUniqueKey(`exec-out-${C}`,".json"),K=E.getUniqueKey(`exec-err-${C}`,".txt"),U=chunkVQCIOKJV_cjs.a(E.keyRef(j)),se=chunkVQCIOKJV_cjs.a(E.keyRef(X)),ee=chunkVQCIOKJV_cjs.a(E.keyRef(K));return b.enqueueRequest({boardId:A,ref:c,args:{subcommand:"run-source-fetch",inRef:U,outRef:se,errRef:ee}}),{dispatched:!0}}catch(b){return {dispatched:false,error:b instanceof Error?b.message:String(b)}}if(k&&(c.howToRun==="http:post"||c.howToRun==="in-process-loop"))try{if(c.howToRun==="http:post"){let C=q(c.whatToRun),E=await fetch(C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,...c.extra?{extra:c.extra}:{}})});if(!E.ok){let j=await E.text().catch(()=>"");return {dispatched:!1,error:`HTTP ${E.status}: ${j}`}}return {dispatched:!0}}let b=await re(c,i,{cwd:process.cwd(),label:"dispatchExecution.directHostedWorker"});return b.result==="success"?{dispatched:!0}:{dispatched:!1,error:(typeof b.data?.error=="string"?b.data.error:b.error)||b.result}}catch(b){return {dispatched:false,error:b instanceof Error?b.message:String(b)}}let w=c.howToRun==="local-node"||c.howToRun==="local-process"||c.howToRun==="local-python"||c.howToRun==="built-in";if(n?.suppressSpawn&&w)return {dispatched:false};try{let b=i.source_def?.bindTo??pe().slice(0,8),A=ce(P(s,".tmp")),C=A.create(JSON.stringify(i,null,2),`exec-in-${b}`,".json"),E=A.getUniqueKey(`exec-out-${b}`,".json"),j=A.getUniqueKey(`exec-err-${b}`,".txt"),X=chunkVQCIOKJV_cjs.a(A.keyRef(C)),K=chunkVQCIOKJV_cjs.a(A.keyRef(E)),U=chunkVQCIOKJV_cjs.a(A.keyRef(j)),se=m("task-executor"),ee=typeof c.extra?.boardId=="string"?c.extra.boardId:void 0;return se.enqueueRequest({boardId:ee,ref:c,args:{subcommand:"run-source-fetch",inRef:X,outRef:K,errRef:U}}),S(),{dispatched:!0}}catch(b){let A=b instanceof Error?b.message:String(b);try{let C=Re(P(s,"archive")),E=new Date().toISOString().replace(/[:.]/g,"-"),j=i.source_def?.bindTo??"unknown";C.blob("exec-failures").write(`${E}-${j}.json`,JSON.stringify({error:A,args:i,ref:c,at:new Date().toISOString()},null,2));}catch{}return {dispatched:false,error:A}}},supportsDirectSourceOutput(c){return c.howToRun==="queue-storage"||c.howToRun==="http:post"||c.howToRun==="in-process-loop"},resolveBlob(c){let i=We(c.value)?$e().read(c.value):Y(s).read(c.value);if(i===null)throw new Error(`resolveBlob: blob not found: ::${c.kind}::${c.value}`);return i},hashFn:dt,genId:()=>He(`${Date.now()}-${Math.random()}`).slice(0,32),kvStorageForRef:c=>ue(chunkVQCIOKJV_cjs.b(c).value),requestProcessAccumulated(){if(n?.suppressSpawn||x)return;let c=this,i=g??=chunkEGZPROOH_cjs.e(e,c,{boardRuntimeStoreRef:R("requestProcessAccumulated")}),k=Te({id:"process-accumulated",queueStorage:f("process-accumulated"),handleMessage:async()=>{let w=await i.processAccumulatedEvents({});if(w.status!=="success")throw new Error(w.error||`processAccumulatedEvents returned ${w.status}`)}});x=ge(k).catch(w=>{n?.onWarn?.(`[process-accumulated] in-process queue drain failed: ${w instanceof Error?w.message:String(w)}`);}).finally(()=>{x=null,f("process-accumulated").peekActive().length>0&&c.requestProcessAccumulated?.();});},publishBoardChangeNotifications(c){if(!n?.notifyChannel||c.length===0)return;let i=c.map(k=>({id:pe(),ts:new Date().toISOString(),boardRef:chunkVQCIOKJV_cjs.a(e),notification:k}));Xe(n.notifyChannel,i,n.onWarn);},onWarn:n?.onWarn},l}function xn(e,t,r){let{cliDir:o,opts:n}=kr(t,r),s,d=()=>(s||(s=mt(o)),s),g=br(e,o,n),x=Be({resolveCliDir:d,...n?.resolveRef?{resolveRef:n.resolveRef}:{}});return {...g,invokeExecutor:x.invokeExecutor,validateSchema(u){let p=chunk3DWVFRQD_cjs.d(u);return {ok:p.errors.length===0,errors:p.errors}},absoluteBlob:$e()}}function wn(e,t={}){let r=t.chatsSubdir??"chats",o=t.kvSubdir??".kv",n=o?[o,"chat"]:["chat"],s=r&&!gt(e,r)?P(e,r):e,d=ue(P(e,...n));return chunkMCPADH33_cjs.a(g=>{let u=`${String(g).replace(/[^a-zA-Z0-9_-]/g,"_")}.jsonl`,p=P(s,u);return Se(p)},d)}function vr(e){return chunkMCPADH33_cjs.a(t=>{let o=`${String(t).replace(/[^a-zA-Z0-9_-]/g,"_")}.jsonl`;return Se(P(e,"journal",o))},ue(P(e,"kv")))}function kn(e,t={}){let r=t.filesSubdir??"files",o=r&&!gt(e,r)?P(e,r):e;return chunkNBJTYAYN_cjs.a(Y(o))}function bn(e){try{let t=JSON.parse(Buffer.from(e,"base64url").toString());return typeof t.br=="string"?t.br:null}catch{return null}}Object.defineProperty(exports,"createChatStorage",{enumerable:true,get:function(){return chunkMCPADH33_cjs.a}});Object.defineProperty(exports,"createInMemoryChatStorage",{enumerable:true,get:function(){return chunkMCPADH33_cjs.c}});Object.defineProperty(exports,"createArtifactsStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.a}});Object.defineProperty(exports,"createCardFileMetadataStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.c}});Object.defineProperty(exports,"createFileArtifactsStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.b}});Object.defineProperty(exports,"createBoardWorkerStore",{enumerable:true,get:function(){return chunkGPCMBPLK_cjs.a}});Object.defineProperty(exports,"createQueueLaneRegistry",{enumerable:true,get:function(){return chunkGPCMBPLK_cjs.b}});Object.defineProperty(exports,"createBoardContainerLifecycle",{enumerable:true,get:function(){return chunk73LKIKD3_cjs.a}});Object.defineProperty(exports,"createBoardLiveCardsNonCorePublic",{enumerable:true,get:function(){return chunkEGZPROOH_cjs.f}});Object.defineProperty(exports,"createBoardLiveCardsPublic",{enumerable:true,get:function(){return chunkEGZPROOH_cjs.e}});Object.defineProperty(exports,"createHttpBoardCallbackTransport",{enumerable:true,get:function(){return chunkEGZPROOH_cjs.b}});Object.defineProperty(exports,"createInProcessBoardCallbackTransport",{enumerable:true,get:function(){return chunkEGZPROOH_cjs.c}});Object.defineProperty(exports,"createLocalNodeBoardCallbackTransport",{enumerable:true,get:function(){return chunkEGZPROOH_cjs.d}});Object.defineProperty(exports,"createBoardLiveCardsMcp",{enumerable:true,get:function(){return chunkESTFYRHF_cjs.a}});Object.defineProperty(exports,"BOARD_GRAPH_KEY",{enumerable:true,get:function(){return chunkJOQWJ3VR_cjs.q}});Object.defineProperty(exports,"EMPTY_CONFIG",{enumerable:true,get:function(){return chunkJOQWJ3VR_cjs.D}});Object.defineProperty(exports,"SNAPSHOT_SCHEMA_VERSION_V1",{enumerable:true,get:function(){return chunkJOQWJ3VR_cjs.p}});Object.defineProperty(exports,"createCardStore",{enumerable:true,get:function(){return chunkJOQWJ3VR_cjs.m}});Object.defineProperty(exports,"createCardStorePublic",{enumerable:true,get:function(){return chunkJOQWJ3VR_cjs.H}});Object.defineProperty(exports,"executionRefFromScriptPath",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.a}});Object.defineProperty(exports,"parseExecutionRef",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.c}});Object.defineProperty(exports,"serializeExecutionRef",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.b}});Object.defineProperty(exports,"parseRef",{enumerable:true,get:function(){return chunkVQCIOKJV_cjs.b}});Object.defineProperty(exports,"serializeRef",{enumerable:true,get:function(){return chunkVQCIOKJV_cjs.a}});Object.defineProperty(exports,"createQueueStoragePublic",{enumerable:true,get:function(){return chunkSDJ3747Q_cjs.a}});Object.defineProperty(exports,"createArtifactsStorePublic",{enumerable:true,get:function(){return chunkP7ZCDICS_cjs.a}});exports.buildLocalBaseSpec=me;exports.createBoardWorkerQueueLane=Ae;exports.createExecutionRefInvoker=rr;exports.createFsBlobStorage=Y;exports.createFsBoardChatStorage=wn;exports.createFsBoardContainerStorage=yr;exports.createFsBoardFileArtifactsStore=kn;exports.createFsBoardNonCorePlatformAdapter=xn;exports.createFsBoardPlatformAdapter=br;exports.createFsChatStorageForRefRoot=vr;exports.createFsQueueStorage=Me;exports.createHostedAsyncBoardNonCorePublic=hr;exports.createNodeSpawnInvocationAdapter=Sn;exports.createNonCoreExecutorDispatcher=Be;exports.createQueueStorageLane=Te;exports.decodeBoardRefFromToken=bn;exports.drainQueueLaneToIdle=ge;exports.evaluateArgsMassaging=Ce;exports.invokeExecutionRef=re;exports.invokeExecutionRefSync=je;exports.invokeRefSync=nr;exports.registerInProcessExecutionHandler=Yt;exports.resolveWhatToRunValue=q;exports.resolveYamlFlowCliPath=ot;exports.startQueueLaneRunner=rt;exports.startQueueLaneRunners=Wt;exports.unregisterInProcessExecutionHandler=Zt;//# sourceMappingURL=board-live-cards-node.cjs.map
|
|
11
|
+
`,"utf-8");},generateId(){return crypto.randomUUID()}}}function lt(e){return {tryAcquire(){try{if(!a__namespace.existsSync(e)){a__namespace.mkdirSync(v__namespace.dirname(e),{recursive:!0});try{a__namespace.writeFileSync(e,"{}",{flag:"wx"});}catch{}}return properLockfile.lockSync(e,{retries:0})}catch{return null}}}}function ft(e,t){if(e?.kind!=="fs-path"||typeof e.value!="string"||!e.value.trim())throw new Error(`${t} must be an fs-path ref`);return v__namespace.default.normalize(e.value)}function xe(e){a__namespace.default.existsSync(e)||a__namespace.default.mkdirSync(e,{recursive:true});}function mr(e=new Date){let t=r=>String(r).padStart(2,"0");return `${t(e.getMonth()+1)}${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}${t(e.getSeconds())}`}function pt(e){return a__namespace.default.existsSync(e)?JSON.parse(a__namespace.default.readFileSync(e,"utf8")):null}function yr(e){let t=e.registry??{},r=ft(t.boardsIndexRef,"registry.boardsIndexRef"),o=ft(t.boardsLayoutRef,"registry.boardsLayoutRef"),n=t.deprecatedContainerRef?.kind==="fs-path"&&typeof t.deprecatedContainerRef.value=="string"&&t.deprecatedContainerRef.value.trim()?v__namespace.default.normalize(t.deprecatedContainerRef.value):"";function s(i){return v__namespace.default.join(r,`${i}.json`)}function d(i){return v__namespace.default.join(o,`${i}.json`)}function g(i){xe(n);let k=mr(),w="",b=1;for(;;){let A=`${i}-${k}${w}`,C=v__namespace.default.join(n,`${A}.json`),E=v__namespace.default.join(n,`${A}.layout.json`),j=v__namespace.default.join(n,A);if(!a__namespace.default.existsSync(C)&&!a__namespace.default.existsSync(E)&&!a__namespace.default.existsSync(j))return {archiveBase:A,archiveRecordPath:C,archiveLayoutPath:E,archiveWorkspaceDir:j};b+=1,w=`-${b}`;}}function x(i,k){if(!i||!a__namespace.default.existsSync(i))return "";let w=10;for(let b=1;b<=w;b+=1)try{return a__namespace.default.renameSync(i,k),k}catch(A){let C=A&&typeof A=="object"&&"code"in A?String(A.code??""):"";if(!(C==="EPERM"||C==="EBUSY"||C==="EACCES"||C==="ENOTEMPTY")||b===w)return "";}return ""}async function u(){if(!a__namespace.default.existsSync(r))return [];let i=[];for(let k of a__namespace.default.readdirSync(r)){if(!k.endsWith(".json"))continue;let w=k.slice(0,-5),b=JSON.parse(a__namespace.default.readFileSync(v__namespace.default.join(r,k),"utf8"));i.push({id:w,record:b});}return i}async function p(i){return pt(s(i))}async function h(i){return a__namespace.default.existsSync(s(i))}async function R(i,k){xe(r),a__namespace.default.writeFileSync(s(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"wx"});}async function y(i,k){xe(r),a__namespace.default.writeFileSync(s(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"w"});}async function l(i){return pt(d(i))}async function f(i,k){xe(o),a__namespace.default.writeFileSync(d(i),JSON.stringify(k,null,2),{encoding:"utf8",flag:"w"});}async function m(i){let k=d(i);a__namespace.default.existsSync(k)&&a__namespace.default.unlinkSync(k);}async function S(i,k,w={}){if(await R(i,k),w.layout==null){await m(i);return}await f(i,w.layout);}async function c(i,k={}){let w=s(i),b=d(i);if(!a__namespace.default.existsSync(w))return null;let A=typeof k.workspaceDir=="string"&&k.workspaceDir.trim()?v__namespace.default.normalize(k.workspaceDir):"";if(!n){if(a__namespace.default.rmSync(w,{force:true}),a__namespace.default.existsSync(b)&&a__namespace.default.rmSync(b,{force:true}),A&&a__namespace.default.existsSync(A))try{a__namespace.default.rmSync(A,{recursive:!0,force:!0});}catch{}return {archiveId:"",archiveRecordPath:"",archiveWorkspaceDir:"",archiveLayoutPath:""}}let{archiveBase:C,archiveRecordPath:E,archiveLayoutPath:j,archiveWorkspaceDir:X}=g(i);a__namespace.default.renameSync(w,E),a__namespace.default.existsSync(b)&&a__namespace.default.renameSync(b,j);let K=x(A,X);return {archiveId:C,archiveRecordPath:E,archiveWorkspaceDir:K,archiveLayoutPath:a__namespace.default.existsSync(j)?j:""}}return {kind:"fs-board-container",list:u,get:p,has:h,put:R,set:y,getLayout:l,setLayout:f,removeLayout:m,provision:S,archive:c}}function Z(e){return {status:"success",data:e}}function D(e){return {status:"fail",error:e}}function ie(e){return {status:"error",error:e instanceof Error?e.message:String(e)}}function ae(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function hr(e,t={}){let r=()=>chunkCSHNTZW4_cjs.b(e.kvStorage("config")),o=t.unsupportedLabel??"hosted async runtime";async function n(){return t.taskExecutorRef?t.taskExecutorRef:await r().readTaskExecutorRef().catch(()=>{})}async function s(y,l,f){let m=await n();if(!m||!t.invokeExecutor)throw new Error(`${y} is not supported on the ${o} yet`);let c=(await t.invokeExecutor(m,y,{...l!==void 0?{input:typeof l=="string"?l:JSON.stringify(l)}:{},...f!==void 0?{timeout:f}:{}})).trim();return c?ae(JSON.parse(c)):{}}async function d(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("validateCardPreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=chunkAW6XLBHX_cjs.a(f),c=Array.isArray(f.source_defs)&&f.source_defs.length>0,i=[...S.issues];if(c)if(t.invokeExecutor&&await n())for(let k of f.source_defs){let w=typeof k.bindTo=="string"?k.bindTo:"(unknown)";try{let b=await s("validate-source-def",k,1e4);if(b.ok!==!0&&Array.isArray(b.errors))for(let A of b.errors)typeof A=="string"&&A&&i.push(`source "${w}": ${A}`);}catch(b){i.push(`source "${w}": executor validate-source-def failed \u2014 ${b instanceof Error?b.message:String(b)}`);}}else await n()&&i.push(`executor-backed source_def preflight is not supported on the ${o} yet`);return Z({cardId:m,isValid:i.length===0,issues:i})}catch(l){return ie(l)}}function g(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("evalCardCompute requires a JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=l["mock-fetched-sources"]??{},c=l["mock-requires"]??{},i=f.compute;if(!i||!Array.isArray(i)||i.length===0)return Z({cardId:m,ok:!0,computed_values:{},errors:[]});let k={id:m,card_data:f.card_data??{},requires:c,source_defs:f.source_defs,compute:i},w=chunk66ZZIF2L_cjs.a.runSync(k,{sourcesData:S});return Z({cardId:m,ok:(w.errors??[]).length===0,computed_values:w.node.computed_values??{},errors:w.errors??[]})}catch(l){return ie(l)}}async function x(y){return D(`${y} is not supported on the ${o} yet`)}async function u(){try{return t.invokeExecutor&&await n()?Z(await s("describe-capabilities",void 0,1e4)):await x("describeTaskExecutorCapabilities")}catch(y){return ie(y)}}async function p(y){try{if(!t.invokeExecutor||!await n())return await x("probeSourcePreflight");if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("probeSourcePreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=ae(l["mock-projections"]??{}),S=y.params?.sourceIdx,c=Array.isArray(f.source_defs)?f.source_defs:[];if(S===void 0)return D("probeSourcePreflight requires params.sourceIdx");if(S<0||S>=c.length)return D(`sourceIdx ${S} out of range (card has ${c.length} source(s))`);let i=c[S],k=typeof i.bindTo=="string"?i.bindTo:"source",w=await s("probe-source-preflight",{...i,_projections:m},i.timeout??6e4);return w.ok!==!0?D(typeof w.error=="string"?w.error:"Preflight probe failed"):Z({bindTo:k,reachable:w.reachable,latencyMs:w.latencyMs,...typeof w.note=="string"?{note:w.note}:{}})}catch(l){return ie(l)}}async function h(y){try{if(!t.invokeExecutor||!await n())return await x("runSourcePreflight");if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("runSourcePreflight requires card JSON object in body");let l=y.body,f=l["card-content"]??l,m=ae(l["mock-projections"]??{}),S=y.params?.sourceIdx,c=Array.isArray(f.source_defs)?f.source_defs:[];if(S===void 0)return D("runSourcePreflight requires params.sourceIdx");if(S<0||S>=c.length)return D(`sourceIdx ${S} out of range (card has ${c.length} source(s))`);let i=c[S],k=typeof i.bindTo=="string"?i.bindTo:"source",w=await s("run-source-preflight",{...i,_projections:m},i.timeout??6e4);return w.ok!==!0?Z({bindTo:k,ok:!1,result:null,issues:[typeof w.error=="string"?w.error:"Preflight run failed"]}):Z({bindTo:k,ok:!0,result:Object.prototype.hasOwnProperty.call(w,"resultValue")?w.resultValue:null,issues:[]})}catch(l){return ie(l)}}async function R(y){try{if(!y.body||typeof y.body!="object"||Array.isArray(y.body))return D("simulateCardCycle requires a JSON object in body");let l=y.body,f=l["card-content"]??l,m=typeof f.id=="string"?f.id:"(unknown)",S=ae(l["mock-fetched-sources"]??{}),c=ae(l["mock-requires"]??{}),i=await d({body:{"card-content":f}}),k=i.status==="success"?{isValid:i.data.isValid,issues:i.data.issues}:{isValid:!1,issues:[i.status==="fail"?i.error:"internal error"]},w=Array.isArray(f.source_defs)?f.source_defs:[],b=ae(f.card_data??{}),A=[],C=[],E=[];if(w.length>0){A=chunk66ZZIF2L_cjs.a.enrichSourcesSync(w,{card_data:b,requires:c}),C=A.filter(B=>B._skip!==!0);for(let B of C){let O=B.projections,W=B._projections;if(O&&W){for(let M of Object.keys(O))if(W[M]===void 0){let yt=typeof B.bindTo=="string"?B.bindTo:"(unknown)";E.push({bindTo:yt,key:M,error:`Projection "${M}" resolved to undefined`});}}}}let j=[],X=new Set(C.map(B=>typeof B.bindTo=="string"?B.bindTo:"")),K=Object.fromEntries(Object.entries(S).filter(([B])=>X.has(B)));for(let B=0;B<A.length;B+=1){let O=A[B],W=typeof O.bindTo=="string"?O.bindTo:`source_${B}`;if(O._skip===!0){j.push({bindTo:W,skipped:!0});continue}if(!t.invokeExecutor||!await n()){j.push({bindTo:W,skipped:!0,error:"No task executor configured"});continue}try{let M=await s("run-source-preflight",O,O.timeout??6e4);M.ok===!0&&!Object.prototype.hasOwnProperty.call(S,W)&&Object.prototype.hasOwnProperty.call(M,"resultValue")&&(K[W]=M.resultValue),j.push({bindTo:W,reachable:M.reachable,latencyMs:M.latencyMs,...M.ok===!0?{}:{error:typeof M.error=="string"?M.error:"Preflight run failed"}});}catch{j.push({bindTo:W,skipped:!0,error:"Executor does not support run-source-preflight"});}}let U=f.compute,se={},ee=[];if(U&&Array.isArray(U)&&U.length>0){let B={id:m,card_data:b,requires:c,source_defs:f.source_defs,compute:U},O=chunk66ZZIF2L_cjs.a.runSync(B,{sourcesData:K});se=O.node.computed_values??{},ee=O.errors??[];}return Z({cardId:m,ok:k.isValid&&E.length===0&&ee.length===0&&j.every(B=>!B.error),validation:k,source_probes:j,projection_errors:E,fetched_sources:K,computed_values:se,compute_errors:ee})}catch(l){return ie(l)}}return {describeTaskExecutorCapabilities:u,validateCardPreflight:d,evalCardCompute:g,probeSourcePreflight:p,runSourcePreflight:h,simulateCardCycle:R}}function Sn(){return {async invoke(e,t){if(e.howToRun!=="local-node")return {dispatched:false,error:`createNodeSpawnInvocationAdapter: unsupported howToRun "${e.howToRun}"`};let r="";try{let s=e.whatToRun;r=q(s);}catch{r="";}if(!r)return {dispatched:false,error:"createNodeSpawnInvocationAdapter: could not resolve executable path from whatToRun"};let o={...t},n=Buffer.from(JSON.stringify(o)).toString("base64");try{return child_process.spawn(process.execPath,[r,"--boardId",String(t.boardId??""),"--cardId",String(t.cardId??""),"--extraEncJson",n],{stdio:"ignore",windowsHide:!0}).unref(),{dispatched:!0}}catch(s){return {dispatched:false,error:s instanceof Error?s.message:String(s)}}},async describe(e){if(e.howToRun!=="local-node")return null;let t="";try{let r=e.whatToRun;t=q(r);}catch{t="";}if(!t)return null;try{let r=child_process.spawnSync(process.execPath,[t,"describe"],{timeout:5e3,encoding:"utf-8",windowsHide:!0});return r.status!==0?null:JSON.parse(String(r.stdout).trim())}catch{return null}}}}var xr=".board.lock";function gt(e,t){if(!e||!t)return false;let r=String(e).replace(/[\\/]+$/,"").split(/[\\/]+/).filter(Boolean);return r.length>0&&r[r.length-1]===t}function wr(e,t){return typeof e=="string"?{cliDir:e,opts:t}:{cliDir:void 0,opts:e}}function kr(e,t){return typeof e=="string"?{cliDir:e,opts:t}:{cliDir:void 0,opts:e}}function mt(e){if(e)return e;let t=Ve((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('board-live-cards-node.cjs', document.baseURI).href))),r=[t,P(t,"..","cli","node"),P(t,"..","..","cli","node")];for(let o of r)try{return Ze(o),o}catch{}throw new Error(`createFsBoardPlatformAdapter: could not resolve a public CLI directory from module dir ${t}`)}function br(e,t,r){let{cliDir:o,opts:n}=wr(t,r),s=e.value,d=null,g,x=null,u;function p(){return u||(u=mt(o)),u}function h(c){let i=n?.queueStoreRef;if(!i)throw new Error(`createFsBoardPlatformAdapter: ${c} requires opts.queueStoreRef`);return i}function R(c){let i=n?.boardRuntimeStoreRef;if(!i)throw new Error(`createFsBoardPlatformAdapter: ${c} requires opts.boardRuntimeStoreRef`);return i}let y=n?.callbackTransport??chunkC7RR2JCL_cjs.d({notifyChannel:n?.notifyChannel,boardRuntimeStoreRef:n?.boardRuntimeStoreRef,queueStoreRef:n?.queueStoreRef}),l;function f(c){return l.queueStorageForRef(h(`internal lane "${c}"`),c)}function m(c){return chunkGPCMBPLK_cjs.a(f(c))}function S(){if(n?.suppressSpawn||d)return;let c=Ae({id:"task-executor",workerStore:m("task-executor"),handleRequest:async(i,k)=>{let w=await re(k.ref,k.args,{cliDir:p(),cwd:process.cwd(),label:"fsBoardAdapter.boardWorker"});if(w.result!=="success"){let b=typeof w.data?.error=="string"?w.data.error:w.error;throw new Error(b||w.result)}}});d=ge(c).catch(i=>{n?.onWarn?.(`[board-worker] in-process queue drain failed: ${i instanceof Error?i.message:String(i)}`);}).finally(()=>{d=null,f("task-executor").peekActive().length>0&&S();});}return l={kvStorage:c=>ue(P(s,`.${c}`)),blobStorage:c=>c?Y(P(s,c)):Y(s),blobStorageForRef:c=>Y(chunkVQCIOKJV_cjs.b(c).value),chatStorageForRef:c=>vr(chunkVQCIOKJV_cjs.b(c).value),queueStorageForRef:(c,i)=>Me(P(chunkVQCIOKJV_cjs.b(c).value,i)),scratchStorage:()=>ce(P(s,".tmp")),scratchStorageForRef:c=>ce(chunkVQCIOKJV_cjs.b(c).value),archiveFactory:()=>Re(P(s,"archive")),archiveFactoryForRef:c=>Re(chunkVQCIOKJV_cjs.b(c).value),journalAdapter:()=>Oe(s),journalAdapterForRef:c=>Oe(chunkVQCIOKJV_cjs.b(c).value),lock:lt(P(s,xr)),callbackTransport:y,async dispatchExecution(c,i){let k=!!i.output?.ref;if(c.howToRun==="queue-storage")try{let b=m("task-executor"),A=typeof c.extra?.boardId=="string"?c.extra.boardId:void 0;if(k)return b.enqueueRequest({boardId:A,ref:c,args:i}),{dispatched:!0};let C=i.source_def?.bindTo??pe().slice(0,8),E=ce(P(s,".tmp")),j=E.create(JSON.stringify(i,null,2),`exec-in-${C}`,".json"),X=E.getUniqueKey(`exec-out-${C}`,".json"),K=E.getUniqueKey(`exec-err-${C}`,".txt"),U=chunkVQCIOKJV_cjs.a(E.keyRef(j)),se=chunkVQCIOKJV_cjs.a(E.keyRef(X)),ee=chunkVQCIOKJV_cjs.a(E.keyRef(K));return b.enqueueRequest({boardId:A,ref:c,args:{subcommand:"run-source-fetch",inRef:U,outRef:se,errRef:ee}}),{dispatched:!0}}catch(b){return {dispatched:false,error:b instanceof Error?b.message:String(b)}}if(k&&(c.howToRun==="http:post"||c.howToRun==="in-process-loop"))try{if(c.howToRun==="http:post"){let C=q(c.whatToRun),E=await fetch(C,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...i,...c.extra?{extra:c.extra}:{}})});if(!E.ok){let j=await E.text().catch(()=>"");return {dispatched:!1,error:`HTTP ${E.status}: ${j}`}}return {dispatched:!0}}let b=await re(c,i,{cwd:process.cwd(),label:"dispatchExecution.directHostedWorker"});return b.result==="success"?{dispatched:!0}:{dispatched:!1,error:(typeof b.data?.error=="string"?b.data.error:b.error)||b.result}}catch(b){return {dispatched:false,error:b instanceof Error?b.message:String(b)}}let w=c.howToRun==="local-node"||c.howToRun==="local-process"||c.howToRun==="local-python"||c.howToRun==="built-in";if(n?.suppressSpawn&&w)return {dispatched:false};try{let b=i.source_def?.bindTo??pe().slice(0,8),A=ce(P(s,".tmp")),C=A.create(JSON.stringify(i,null,2),`exec-in-${b}`,".json"),E=A.getUniqueKey(`exec-out-${b}`,".json"),j=A.getUniqueKey(`exec-err-${b}`,".txt"),X=chunkVQCIOKJV_cjs.a(A.keyRef(C)),K=chunkVQCIOKJV_cjs.a(A.keyRef(E)),U=chunkVQCIOKJV_cjs.a(A.keyRef(j)),se=m("task-executor"),ee=typeof c.extra?.boardId=="string"?c.extra.boardId:void 0;return se.enqueueRequest({boardId:ee,ref:c,args:{subcommand:"run-source-fetch",inRef:X,outRef:K,errRef:U}}),S(),{dispatched:!0}}catch(b){let A=b instanceof Error?b.message:String(b);try{let C=Re(P(s,"archive")),E=new Date().toISOString().replace(/[:.]/g,"-"),j=i.source_def?.bindTo??"unknown";C.blob("exec-failures").write(`${E}-${j}.json`,JSON.stringify({error:A,args:i,ref:c,at:new Date().toISOString()},null,2));}catch{}return {dispatched:false,error:A}}},supportsDirectSourceOutput(c){return c.howToRun==="queue-storage"||c.howToRun==="http:post"||c.howToRun==="in-process-loop"},resolveBlob(c){let i=We(c.value)?$e().read(c.value):Y(s).read(c.value);if(i===null)throw new Error(`resolveBlob: blob not found: ::${c.kind}::${c.value}`);return i},hashFn:dt,genId:()=>He(`${Date.now()}-${Math.random()}`).slice(0,32),kvStorageForRef:c=>ue(chunkVQCIOKJV_cjs.b(c).value),requestProcessAccumulated(){if(n?.suppressSpawn||x)return;let c=this,i=g??=chunkC7RR2JCL_cjs.e(e,c,{boardRuntimeStoreRef:R("requestProcessAccumulated")}),k=Te({id:"process-accumulated",queueStorage:f("process-accumulated"),handleMessage:async()=>{let w=await i.processAccumulatedEvents({});if(w.status!=="success")throw new Error(w.error||`processAccumulatedEvents returned ${w.status}`)}});x=ge(k).catch(w=>{n?.onWarn?.(`[process-accumulated] in-process queue drain failed: ${w instanceof Error?w.message:String(w)}`);}).finally(()=>{x=null,f("process-accumulated").peekActive().length>0&&c.requestProcessAccumulated?.();});},publishBoardChangeNotifications(c){if(!n?.notifyChannel||c.length===0)return;let i=c.map(k=>({id:pe(),ts:new Date().toISOString(),boardRef:chunkVQCIOKJV_cjs.a(e),notification:k}));Xe(n.notifyChannel,i,n.onWarn);},onWarn:n?.onWarn},l}function xn(e,t,r){let{cliDir:o,opts:n}=kr(t,r),s,d=()=>(s||(s=mt(o)),s),g=br(e,o,n),x=Be({resolveCliDir:d,...n?.resolveRef?{resolveRef:n.resolveRef}:{}});return {...g,invokeExecutor:x.invokeExecutor,validateSchema(u){let p=chunkP7STTKRO_cjs.d(u);return {ok:p.errors.length===0,errors:p.errors}},absoluteBlob:$e()}}function wn(e,t={}){let r=t.chatsSubdir??"chats",o=t.kvSubdir??".kv",n=o?[o,"chat"]:["chat"],s=r&&!gt(e,r)?P(e,r):e,d=ue(P(e,...n));return chunkMCPADH33_cjs.a(g=>{let u=`${String(g).replace(/[^a-zA-Z0-9_-]/g,"_")}.jsonl`,p=P(s,u);return Se(p)},d)}function vr(e){return chunkMCPADH33_cjs.a(t=>{let o=`${String(t).replace(/[^a-zA-Z0-9_-]/g,"_")}.jsonl`;return Se(P(e,"journal",o))},ue(P(e,"kv")))}function kn(e,t={}){let r=t.filesSubdir??"files",o=r&&!gt(e,r)?P(e,r):e;return chunkNBJTYAYN_cjs.a(Y(o))}function bn(e){try{let t=JSON.parse(Buffer.from(e,"base64url").toString());return typeof t.br=="string"?t.br:null}catch{return null}}Object.defineProperty(exports,"createChatStorage",{enumerable:true,get:function(){return chunkMCPADH33_cjs.a}});Object.defineProperty(exports,"createInMemoryChatStorage",{enumerable:true,get:function(){return chunkMCPADH33_cjs.c}});Object.defineProperty(exports,"createArtifactsStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.a}});Object.defineProperty(exports,"createCardFileMetadataStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.c}});Object.defineProperty(exports,"createFileArtifactsStore",{enumerable:true,get:function(){return chunkNBJTYAYN_cjs.b}});Object.defineProperty(exports,"createBoardWorkerStore",{enumerable:true,get:function(){return chunkGPCMBPLK_cjs.a}});Object.defineProperty(exports,"createQueueLaneRegistry",{enumerable:true,get:function(){return chunkGPCMBPLK_cjs.b}});Object.defineProperty(exports,"createBoardContainerLifecycle",{enumerable:true,get:function(){return chunk73LKIKD3_cjs.a}});Object.defineProperty(exports,"createBoardLiveCardsNonCorePublic",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.f}});Object.defineProperty(exports,"createBoardLiveCardsPublic",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.e}});Object.defineProperty(exports,"createHttpBoardCallbackTransport",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.b}});Object.defineProperty(exports,"createInProcessBoardCallbackTransport",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.c}});Object.defineProperty(exports,"createLocalNodeBoardCallbackTransport",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.d}});Object.defineProperty(exports,"createBoardLiveCardsMcp",{enumerable:true,get:function(){return chunkG5UUXBIB_cjs.a}});Object.defineProperty(exports,"BOARD_GRAPH_KEY",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.q}});Object.defineProperty(exports,"EMPTY_CONFIG",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.D}});Object.defineProperty(exports,"SNAPSHOT_SCHEMA_VERSION_V1",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.p}});Object.defineProperty(exports,"createCardStore",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.m}});Object.defineProperty(exports,"createCardStorePublic",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.H}});Object.defineProperty(exports,"executionRefFromScriptPath",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.a}});Object.defineProperty(exports,"parseExecutionRef",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.c}});Object.defineProperty(exports,"serializeExecutionRef",{enumerable:true,get:function(){return chunk7JVHYHT2_cjs.b}});Object.defineProperty(exports,"parseRef",{enumerable:true,get:function(){return chunkVQCIOKJV_cjs.b}});Object.defineProperty(exports,"serializeRef",{enumerable:true,get:function(){return chunkVQCIOKJV_cjs.a}});Object.defineProperty(exports,"createQueueStoragePublic",{enumerable:true,get:function(){return chunkSDJ3747Q_cjs.a}});Object.defineProperty(exports,"createArtifactsStorePublic",{enumerable:true,get:function(){return chunkP7ZCDICS_cjs.a}});exports.buildLocalBaseSpec=me;exports.createBoardWorkerQueueLane=Ae;exports.createExecutionRefInvoker=rr;exports.createFsBlobStorage=Y;exports.createFsBoardChatStorage=wn;exports.createFsBoardContainerStorage=yr;exports.createFsBoardFileArtifactsStore=kn;exports.createFsBoardNonCorePlatformAdapter=xn;exports.createFsBoardPlatformAdapter=br;exports.createFsChatStorageForRefRoot=vr;exports.createFsQueueStorage=Me;exports.createHostedAsyncBoardNonCorePublic=hr;exports.createNodeSpawnInvocationAdapter=Sn;exports.createNonCoreExecutorDispatcher=Be;exports.createQueueStorageLane=Te;exports.decodeBoardRefFromToken=bn;exports.drainQueueLaneToIdle=ge;exports.evaluateArgsMassaging=Ce;exports.invokeExecutionRef=re;exports.invokeExecutionRefSync=je;exports.invokeRefSync=nr;exports.registerInProcessExecutionHandler=Yt;exports.resolveWhatToRunValue=q;exports.resolveYamlFlowCliPath=ot;exports.startQueueLaneRunner=rt;exports.startQueueLaneRunners=Wt;exports.unregisterInProcessExecutionHandler=Zt;//# sourceMappingURL=board-live-cards-node.cjs.map
|
|
12
12
|
//# sourceMappingURL=board-live-cards-node.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-Y4WK7HE4.js';export{a as createChatStorage,c as createInMemoryChatStorage}from'./chunk-Y4WK7HE4.js';import {a as a$6}from'./chunk-
|
|
1
|
+
import {a as a$3}from'./chunk-Y4WK7HE4.js';export{a as createChatStorage,c as createInMemoryChatStorage}from'./chunk-Y4WK7HE4.js';import {a as a$6}from'./chunk-BSZYTSFX.js';import {a as a$4}from'./chunk-O5UYCGIN.js';export{a as createArtifactsStore,c as createCardFileMetadataStore,b as createFileArtifactsStore}from'./chunk-O5UYCGIN.js';import {a as a$5}from'./chunk-RKKSVOP2.js';export{a as createBoardWorkerStore,b as createQueueLaneRegistry}from'./chunk-RKKSVOP2.js';import {h}from'./chunk-J4MHQ7JF.js';import {a as a$1}from'./chunk-VGDLSS2H.js';export{a as createBoardContainerLifecycle}from'./chunk-F3A3ZNF6.js';import'./chunk-QLB6PKOT.js';import'./chunk-E7SDEZSI.js';import {b as b$1}from'./chunk-PEJRTZU3.js';import {d,e}from'./chunk-C7OY3PYL.js';export{f as createBoardLiveCardsNonCorePublic,e as createBoardLiveCardsPublic,b as createHttpBoardCallbackTransport,c as createInProcessBoardCallbackTransport,d as createLocalNodeBoardCallbackTransport}from'./chunk-C7OY3PYL.js';import'./chunk-FULAMLUU.js';import'./chunk-EOVTMJYZ.js';export{a as createBoardLiveCardsMcp}from'./chunk-ONJG6QW6.js';export{q as BOARD_GRAPH_KEY,D as EMPTY_CONFIG,p as SNAPSHOT_SCHEMA_VERSION_V1,m as createCardStore,H as createCardStorePublic}from'./chunk-QJQ53PLM.js';export{a as executionRefFromScriptPath,c as parseExecutionRef,b as serializeExecutionRef}from'./chunk-ANKA7HEJ.js';import {a as a$2,b}from'./chunk-44L64VQ2.js';export{b as parseRef,a as serializeRef}from'./chunk-44L64VQ2.js';import'./chunk-Q444D72R.js';import'./chunk-R7SQQSDX.js';import {a as a$7}from'./chunk-QE3QXEHI.js';import {d as d$1}from'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';export{a as createQueueStoragePublic}from'./chunk-BJGK5FNL.js';export{a as createArtifactsStorePublic}from'./chunk-X3LC4LII.js';import'./chunk-UGB7PC4P.js';import'./chunk-FW4363Y4.js';import {spawn,spawnSync,execFile,execFileSync}from'child_process';import*as a from'fs';import a__default from'fs';import*as Je from'os';import*as v from'path';import v__default from'path';import*as Ke from'net';import {fileURLToPath}from'url';import {randomUUID,createHash}from'crypto';import {createRequire}from'module';import {lockSync}from'proper-lockfile';function P(...e){return v.join(...e)}function We(e){return v.isAbsolute(e)}function pe(){return randomUUID()}function He(e){return createHash("sha256").update(e).digest("hex")}function Ve(e){return v.dirname(fileURLToPath(e))}function Qt(e){if(typeof e=="object"&&e!==null){let{command:r,args:o=[],...n}=e,s=De(r,o);return {...n,command:s.command,args:s.args}}let t=Ue(e);if(t.length===0)throw new Error(`Empty command spec: ${JSON.stringify(e)}`);return De(t[0],t.slice(1))}function De(e,t){return /^(node|node\.exe)$/i.test(e)?{command:process.execPath,args:t}:/\.m?js$/i.test(e)?{command:process.execPath,args:[e,...t]}:{command:e,args:t}}function Ue(e){let t=[],r="",o=null;for(let n of e.trim()){if(o){n===o?o=null:r+=n;continue}if(n==='"'||n==="'"){o=n;continue}if(/\s/.test(n)){r&&(t.push(r),r="");continue}r+=n;}if(o)throw new Error(`Unterminated quote in command: ${e}`);return r&&t.push(r),t}function ze(e){return process.platform==="win32"&&/\.(cmd|bat)$/i.test(e)}function Ge(e,t){let{command:r,args:o=[],cwd:n,env:s,timeoutMs:d}=e;return execFileSync(r,o,{shell:ze(r),timeout:d,encoding:t?.encoding??"utf-8",cwd:n,windowsHide:true,env:s?{...process.env,...s}:void 0,input:t?.input})}function Dt(e,t){let{command:r,args:o=[],cwd:n,env:s,timeoutMs:d=3e4}=e;execFile(r,o,{shell:ze(r),encoding:"utf8",windowsHide:true,timeout:d,maxBuffer:10*1024*1024,cwd:n,env:s?{...process.env,...s}:void 0},(g,x,u)=>t(g??null,x,u));}function Ye(e,t,r){let o=v.join(e,"board-live-cards-cli.js");if(a.existsSync(o))return {cmd:process.execPath,args:[o,t,...r]};let n=v.join(e,"board-live-cards-cli.ts"),d=[v.join(e,"..","..","..","node_modules","tsx","dist","cli.mjs"),v.join(e,"..","..","node_modules","tsx","dist","cli.mjs"),v.join(e,"..","..","..","node_modules",".bin","tsx"),v.join(e,"..","..","node_modules",".bin","tsx")].find(x=>a.existsSync(x));return a.existsSync(n)&&d?{cmd:process.execPath,args:[d,n,t,...r]}:{cmd:process.platform==="win32"?"npx.cmd":"npx",args:["tsx",n,t,...r]}}function Ze(e){let t=v.join(e,"board-live-cards-cli.mjs");if(a.existsSync(t))return t;let r=v.join(e,"..","..","..","dev","board-live-cards-cli.js");if(a.existsSync(r))return r;let o=v.join(e,"..","..","dev","board-live-cards-cli.js");if(a.existsSync(o))return o;let n=v.join(e,"board-live-cards-cli.js");if(a.existsSync(n))return n;throw new Error(`resolveBoardCliCallbackTarget: cannot find callback target in ${e} (expected dev/board-live-cards-cli.js wrapper, ${n}, or ${t})`)}function Jt(e){return process.platform==="win32"?`\\\\.\\pipe\\${e}`:v.join(Je.tmpdir(),`${e}.sock`)}var fe=new Map;function Xe(e,t,r){if(t.length===0)return;let o=t.map(g=>JSON.stringify(g)).join(`
|
|
2
2
|
`)+`
|
|
3
3
|
`,n=fe.get(e);if(n&&!n.socket.destroyed){n.ready?n.socket.write(o):n.queue.push(o);return}let s=Jt(e),d=Ke.createConnection(s);n={socket:d,ready:false,queue:[o]},fe.set(e,n),d.on("connect",()=>{n.ready=true;for(let g of n.queue)d.write(g);n.queue.length=0;}),d.on("error",g=>{r?.(`[named-pipe publish] ${s}: ${g instanceof Error?g.message:String(g)}`),fe.delete(e);}),d.on("close",()=>{fe.delete(e);});}function et(){return {executeSync(e,t,r){return Ge({command:e,args:t,cwd:r?.cwd,timeoutMs:r?.timeout,env:r?.env},{encoding:r?.encoding,input:r?.input})},executeAsync(e,t,r){Dt({command:e,args:t},r);},resolveInvocation(e,t){let r=Qt({command:e,args:t});return {cmd:r.command,args:r.args??[]}},splitCommand:Ue}}function Ae(e){return {id:e.id??"board-worker",pollIntervalMs:e.pollIntervalMs,visibilityMs:e.visibilityMs,concurrency:e.concurrency,maxAttempts:e.maxAttempts,async lease(t){return e.workerStore.leaseRequests(t).map(r=>({id:r.messageId,attempt:r.attempt,message:r.request,ack:()=>e.workerStore.ackRequest(r.messageId,r.leaseToken),nack:o=>e.workerStore.nackRequest(r.messageId,r.leaseToken,o)}))},async handle(t){await e.handleRequest(t.args,t);},onError:e.onError}}function Te(e){return {id:e.id,pollIntervalMs:e.pollIntervalMs,visibilityMs:e.visibilityMs,concurrency:e.concurrency,maxAttempts:e.maxAttempts,async lease(t){return e.queueStorage.lease(t).map(r=>({id:r.id,attempt:r.attempt,message:r.body,ack:()=>e.queueStorage.ack(r.id,r.leaseToken),nack:o=>e.queueStorage.nack(r.id,r.leaseToken,o)}))},handle:e.handleMessage,onError:e.onError}}async function tt(e,t){try{await e.handle(t.message,t),await t.ack();}catch(r){let o=t.attempt>=Math.max(1,Math.floor(e.maxAttempts??5));await t.nack({dead:o,reason:r instanceof Error?r.message:String(r)}),e.onError?.(r,t);}}function rt(e){let t=Math.max(1,Math.floor(e.pollIntervalMs??250)),r=Math.max(1,Math.floor(e.visibilityMs??6e4)),o=Math.max(1,Math.floor(e.concurrency??1)),n=false,s=false;async function d(){if(!(n||s)){s=true;try{let x=await e.lease({max:o,visibilityMs:r});for(let u of x)await tt(e,u);}finally{s=false;}}}let g=setInterval(()=>{d();},t);return typeof g.unref=="function"&&g.unref(),d(),()=>{n=true,clearInterval(g);}}async function Kt(e){let t=Math.max(1,Math.floor(e.visibilityMs??6e4)),r=Math.max(1,Math.floor(e.concurrency??1)),o=await e.lease({max:r,visibilityMs:t});for(let n of o)await tt(e,n);return o.length}async function ge(e,t){let r=Math.max(1,Math.floor(t?.maxPasses??256)),o=0;for(let n=0;n<r;n+=1){let s=await Kt(e);if(o+=s,s<=0)return o}throw new Error(`drainQueueLaneToIdle exceeded ${r} passes for lane "${e.id}"`)}function Wt(e){let r=(Array.isArray(e)?e:e.lanes).map(o=>rt(o));return ()=>{for(let o of r)o();}}var Vt=createRequire(import.meta.url);function Ut(e){return typeof e=="object"?e:b(e)}function ot(e){let t=v.basename(String(e||"").trim());if(!t)throw new Error(`resolveYamlFlowCliPath: expected non-empty cli file name, got ${JSON.stringify(e)}`);let r=v.dirname(Vt.resolve("yaml-flow/package.json")),o=t.replace(/\.[^.]+$/,""),n=v.join(r,"cli","bundled",`${o}.mjs`);if(a.existsSync(n))return n;let s=v.join(r,"cli","node",t);if(a.existsSync(s))return s;throw new Error(`resolveYamlFlowCliPath: could not find ${t} under cli/bundled or cli/node in ${r}`)}function q(e){let t=Ut(e);return t.kind==="yaml-flow-cli"?ot(t.value):t.value}function zt(e,t){let r=q(e);switch(r){case "source-cli-task-executor":{let o=v.join(t,"source-cli-task-executor.js");if(a.existsSync(o))return {command:process.execPath,args:[o]};let n=v.join(t,"source-cli-task-executor.ts"),s=v.join(t,"..","..","node_modules","tsx","dist","cli.mjs"),d=v.join(t,"..","..","node_modules",".bin","tsx"),g=a.existsSync(s)?s:d;return a.existsSync(n)&&a.existsSync(g)?{command:process.execPath,args:[g,n]}:{command:process.execPath,args:[o]}}case "board-live-cards":{let{cmd:o,args:n}=Ye(t,"_",[]);return {command:o,args:n}}default:throw new Error(`resolveBuiltIn: unknown built-in name "${r}". Supported: source-cli-task-executor, board-live-cards`)}}function Gt(e,t){if(e.howToRun==="built-in"){let{command:o,args:n}=zt(e.whatToRun,t);return {command:o,baseArgs:n}}let r=(typeof e.whatToRun=="object",q(e.whatToRun));switch(e.howToRun){case "local-node":return {command:process.execPath,baseArgs:[r]};case "local-python":return {command:process.platform==="win32"?"python":"python3",baseArgs:[r]};case "local-process":return {command:r,baseArgs:[]};default:throw new Error(`resolveBaseInvocation: howToRun "${e.howToRun}" is not a local transport`)}}function me(e,t){return Gt(e,t)}var Ee=new Map;function Yt(e,t){let r=String(e||"").trim();if(!r)throw new Error("registerInProcessExecutionHandler: key is required");Ee.set(r,t);}function Zt(e){let t=String(e||"").trim();t&&Ee.delete(t);}function st(e){let t=e.trim();if(!t)throw new Error("empty stdout");try{return JSON.parse(t)}catch{let r=t.split(/\r?\n/).filter(Boolean),o=r[r.length-1];return JSON.parse(o)}}function it(e,t){return {...t,whatToRun:q(e.whatToRun),...e.extra?{extra:e.extra}:{}}}function Ce(e,t,r="invokeExecutionRef"){return a$1(e,t,r)}function at(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.result=="string"&&e.data&&typeof e.data=="object"&&!Array.isArray(e.data))return {...e,...t||{}};if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.status=="string"){let o=e,n=o.status==="success"?"success":o.status==="fail"?"failure":o.status,s=o.data&&typeof o.data=="object"&&!Array.isArray(o.data)?o.data:o.data===void 0?{}:{stdout:o.data};return {result:n,data:s,...typeof o.error=="string"?{error:o.error}:{},...t||{}}}return {result:"success",data:e&&typeof e=="object"&&!Array.isArray(e)?e:{stdout:e},...t||{}}}function N(e){return {result:"failure",data:{error:e}}}function G(e,t,r){let o=r?.label??"invokeExecutionRefSync",n=r?.cliDir??r?.cwd??process.cwd(),s;try{s=Ce(e.argsMassaging,it(e,t),o);}catch(h){let R=h instanceof Error?h.message:String(h);return N(R)}let d;try{d=me(e,n);}catch(h){let R=h instanceof Error?h.message:String(h);return N(`[${o}] ref resolution failed: ${R}`)}let g=[...d.baseArgs,...s.cmdArgs??[]],x=JSON.stringify(s.stdin??t),u=et(),p;try{p=u.executeSync(d.command,g,{timeout:r?.timeoutMs??3e4,encoding:"utf-8",cwd:r?.cwd,input:x});}catch(h){let R=h,y=(R.stderr?String(R.stderr):"").trim(),l=typeof R.status=="number"?R.status:"unknown",f=y||R.message;return N(`[${o}] ref exited with status ${l}${f?`: ${f}`:""}`)}try{return at(st(p))}catch{return {result:"success",data:{stdout:p.trim()}}}}async function nt(e,t,r){let o=r?.label??"invokeExecutionRef",n;try{n=Ce(e.argsMassaging,it(e,t),o);}catch(h){let R=h instanceof Error?h.message:String(h);return N(R)}let s=q(e.whatToRun),d=n.headers?{"Content-Type":"application/json",...n.headers}:{"Content-Type":"application/json"},g=n.url??s,x;if(e.howToRun==="http:get"){let h=n.body&&typeof n.body=="object"&&!Array.isArray(n.body)?n.body:t,R=new URLSearchParams(Object.entries(h).filter(([,y])=>y!=null).map(([y,l])=>[y,String(l)]));R.size>0&&(g=`${g}${g.includes("?")?"&":"?"}${R.toString()}`);}else x=JSON.stringify(n.body??t);let u={method:e.howToRun==="http:get"?"GET":"POST",headers:d,body:x},p=0;for(;;)try{let h=await fetch(g,u);if(!h.ok){let f=await h.text().catch(()=>"");return N(`[${o}] HTTP ${h.status}${f?`: ${f}`:""}`)}let R={};h.headers.forEach((f,m)=>{R[m]=f;});let y=new Uint8Array(await h.arrayBuffer());if(y.byteLength===0)return {result:"success",data:{},headers:R};let l=new TextDecoder().decode(y);try{return at(st(l),{headers:R})}catch{return {result:"success",data:{stdout:l},headers:R}}}catch(h){let R=h?.cause,y=R&&typeof R=="object"&&"code"in R?String(R.code||""):"";if((y==="ECONNRESET"||y==="UND_ERR_SOCKET")&&p===0){p+=1;continue}let f=h instanceof Error?h.message:String(h),m=R instanceof Error?`${R.name}: ${R.message}${y?` [${y}]`:""}`:R?String(R):"",S=n.url??s??"",c=`${f}${m?` (cause: ${m})`:""}${S?` url=${S}`:""}`;return N(`[${o}] ${c}`)}}async function Xt(e,t,r){let o=r?.label??"invokeExecutionRef",n=q(e.whatToRun).trim();if(!n)return N(`[${o}] in-process-loop requires a non-empty handler key`);let s=Ee.get(n);if(!s)return N(`[${o}] no in-process handler registered for: ${n}`);try{return await s(e,t,r)}catch(d){let g=d instanceof Error?d.message:String(d);return N(`[${o}] ${g}`)}}var er={"local-node":async(e,t,r)=>G(e,t,r),"local-python":async(e,t,r)=>G(e,t,r),"local-process":async(e,t,r)=>G(e,t,r),"built-in":async(e,t,r)=>G(e,t,r),"http:post":nt,"http:get":nt,"in-process-loop":Xt},tr={"local-node":G,"local-python":G,"local-process":G,"built-in":G};async function re(e,t,r){let o=r?.transports?.[e.howToRun]??er[e.howToRun];return o?o(e,t,r):N(`[${r?.label??"invokeExecutionRef"}] unsupported howToRun: ${e.howToRun}`)}function je(e,t,r){let o=r?.syncTransports?.[e.howToRun]??tr[e.howToRun];return o?o(e,t,r):N(`[${r?.label??"invokeExecutionRefSync"}] unsupported sync howToRun: ${e.howToRun}`)}function rr(e){return {invoke(t,r){return re(t,r,e)},invokeSync(t,r){return je(t,r,e)}}}function nr(e,t,r){return je(e,t,r)}function Be(e={}){let t=e.resolveRef??(r=>r);return {...e.executorTimeouts?{executorTimeouts:e.executorTimeouts}:{},async invokeExecutor(r,o,n){let s=t(r);if(s.howToRun==="queue-storage")throw new Error("queue-storage does not support inline executor request/response");if(s.howToRun==="http:post"||s.howToRun==="in-process-loop"){let p=await h(s,{subcommand:o,...n?.input!==void 0?{input:n.input}:{}});return typeof p=="string"?p:p&&typeof p=="object"&&!Array.isArray(p)&&typeof p.stdout=="string"?String(p.stdout):JSON.stringify(p??{})}if(s.howToRun==="http:get"){let p=await re(s,{subcommand:o,...n?.input!==void 0?{input:n.input}:{},...s.extra?{extra:s.extra}:{}},{cwd:process.cwd(),timeoutMs:n?.timeout??3e4,label:`invokeExecutor:${o}`});if(p.result!=="success"){let h=typeof p.data?.error=="string"?p.data.error:p.error;throw new Error(h||`executor request failed: ${p.result}`)}return typeof p.data?.stdout=="string"?p.data.stdout:JSON.stringify(p.data??{})}if(!e.resolveCliDir)throw new Error(`createNonCoreExecutorDispatcher: ref.howToRun="${s.howToRun}" requires opts.resolveCliDir`);let{command:d,baseArgs:g}=me(s,e.resolveCliDir()),x=s.extra?["--extra",Buffer.from(JSON.stringify(s.extra)).toString("base64")]:[],u=[...g,o,...x];return await new Promise((p,h)=>{let R=spawn(d,u,{cwd:process.cwd(),stdio:"pipe",windowsHide:true,shell:process.platform==="win32"&&/\.(cmd|bat)$/i.test(d)}),y=[],l=[],f=false,m=null,S=i=>{f||(f=true,m&&clearTimeout(m),h(i));},c=i=>{f||(f=true,m&&clearTimeout(m),p(i));};R.stdout.on("data",i=>{y.push(Buffer.from(i));}),R.stderr.on("data",i=>{l.push(Buffer.from(i));}),R.on("error",i=>{let k=i;k.stdout=Buffer.concat(y).toString("utf-8"),k.stderr=Buffer.concat(l).toString("utf-8"),S(k);}),R.on("close",i=>{let k=Buffer.concat(y).toString("utf-8"),w=Buffer.concat(l).toString("utf-8");if(i===0){c(k);return}let b=new Error(w.trim()||`executor exited with status ${i}`);b.stdout=k,b.stderr=w,S(b);}),n?.timeout&&n.timeout>0&&(m=setTimeout(()=>{R.kill();let i=new Error(`executor timed out after ${n.timeout}ms`);i.stdout=Buffer.concat(y).toString("utf-8"),i.stderr=Buffer.concat(l).toString("utf-8"),S(i);},n.timeout)),n?.input!==void 0?R.stdin.end(n.input):R.stdin.end();})}}}function $(e,t){if(process.platform!=="win32"){a.renameSync(e,t);return}let r=[10,20,40,80,160];for(let o=0;o<=r.length;o++)try{a.renameSync(e,t);return}catch(n){let s=n.code;if((s==="EPERM"||s==="EBUSY")&&o<r.length){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,r[o]);continue}throw n}}function Y(e){function t(n){return v.join(e,...n.split("/"))}function r(n){return v.relative(e,n).replace(/\\/g,"/")}function o(n,s){if(a.existsSync(n))for(let d of a.readdirSync(n,{withFileTypes:true})){let g=v.join(n,d.name);if(d.isDirectory()){o(g,s);continue}d.isFile()&&s.push(r(g));}}return {read(n){let s=t(n);if(!a.existsSync(s))return null;try{return a.readFileSync(s,"utf-8")}catch{return null}},write(n,s){let d=t(n),g=`${d}.${process.pid}.${randomUUID()}.tmp`;a.mkdirSync(v.dirname(d),{recursive:true}),a.writeFileSync(g,s,"utf-8"),$(g,d);},exists(n){return a.existsSync(t(n))},remove(n){let s=t(n);try{a.existsSync(s)&&a.unlinkSync(s);}catch{}},readBytes(n){let s=t(n);if(!a.existsSync(s))return null;try{return new Uint8Array(a.readFileSync(s))}catch{return null}},writeBytes(n,s){let d=t(n),g=`${d}.${process.pid}.${randomUUID()}.tmp`;a.mkdirSync(v.dirname(d),{recursive:true}),a.writeFileSync(g,Buffer.from(s)),$(g,d);},listKeys(n){let s=[];o(e,s);let d=s.sort();return n?d.filter(g=>g.startsWith(n)):d},stat(n){let s=t(n);if(!a.existsSync(s))return null;try{let d=a.statSync(s);return {key:n,size:Number(d.size||0),updatedAt:new Date(d.mtimeMs).toISOString()}}catch{return null}},keyRef(n){return {kind:"fs-path",value:t(n)}},renameKey(n,s){let d=t(n);if(!a.existsSync(d))return false;let g=t(s);return a.mkdirSync(v.dirname(g),{recursive:true}),$(d,g),true}}}function $e(){return {read(e){if(!a.existsSync(e))return null;try{return a.readFileSync(e,"utf-8")}catch{return null}},write(e,t){let r=`${e}.${process.pid}.${randomUUID()}.tmp`;a.mkdirSync(v.dirname(e),{recursive:true}),a.writeFileSync(r,t,"utf-8"),$(r,e);},exists(e){return a.existsSync(e)},remove(e){try{a.existsSync(e)&&a.unlinkSync(e);}catch{}},readBytes(e){if(!a.existsSync(e))return null;try{return new Uint8Array(a.readFileSync(e))}catch{return null}},writeBytes(e,t){let r=`${e}.${process.pid}.${randomUUID()}.tmp`;a.mkdirSync(v.dirname(e),{recursive:true}),a.writeFileSync(r,Buffer.from(t)),$(r,e);},stat(e){if(!a.existsSync(e))return null;try{let t=a.statSync(e);return {key:e,size:Number(t.size||0),updatedAt:new Date(t.mtimeMs).toISOString()}}catch{return null}},listKeys(e){return []},renameKey(e,t){return a.existsSync(e)?(a.mkdirSync(v.dirname(t),{recursive:true}),$(e,t),true):false}}}function H(e,t){let r=`${e}.${process.pid}.${randomUUID()}.tmp`;a.mkdirSync(v.dirname(e),{recursive:true}),a.writeFileSync(r,JSON.stringify(t,null,2),"utf-8"),$(r,e);}function Q(e){if(!a.existsSync(e))return null;try{return JSON.parse(a.readFileSync(e,"utf-8"))}catch{return null}}function ne(e){return a.existsSync(e)?a.readdirSync(e).filter(t=>t.endsWith(".json")).sort().map(t=>v.join(e,t)):[]}function oe(e){return {id:e.id,body:e.body,enqueuedAt:e.enqueuedAt,attempt:e.attempt}}function ar(e){return {...oe(e),leaseToken:String(e.leaseToken||""),leaseExpiresAt:String(e.leaseExpiresAt||"")}}function cr(e){return {...oe(e),reason:e.reason}}function Me(e){let t=v.join(e,"active"),r=v.join(e,"leased"),o=v.join(e,"done"),n=v.join(e,"dead"),s=v.join(e,"staged");for(let l of [t,r,o,n,s])a.mkdirSync(l,{recursive:true});let d=0;function g(l){let f=l.replace(/[:.]/g,"-"),m=String(d++).padStart(6,"0");return `${f}-${m}`}function x(l){let f=l.activeOrderKey||g(String(l.enqueuedAt||new Date().toISOString()));return v.join(t,`${f}-${l.id}.json`)}function u(l){return v.join(r,`${l}.json`)}function p(l){return v.join(o,`${l}.json`)}function h(l){return v.join(n,`${l}.json`)}function R(l){return v.join(s,`${l}.json`)}function y(){let l=Date.now();for(let f of ne(r)){let m=Q(f);if(!m?.leaseExpiresAt)continue;let S=Date.parse(m.leaseExpiresAt);if(Number.isNaN(S)||S>l)continue;let c={id:m.id,body:m.body,enqueuedAt:m.enqueuedAt,attempt:m.attempt,activeOrderKey:m.activeOrderKey};H(x(c),c);try{a.unlinkSync(f);}catch{}}}return {enqueue(l){let f={id:randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0};return f.activeOrderKey=g(f.enqueuedAt),H(x(f),f),oe(f)},enqueueMany(l){return l.map(f=>this.enqueue(f))},enqueueIfAbsent(l,f){y();for(let S of [t,r,s])for(let c of ne(S))if(Q(c)?.dedupKey===f)return null;let m={id:randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0,dedupKey:f};return m.activeOrderKey=g(m.enqueuedAt),H(x(m),m),oe(m)},lease(l){y();let f=Math.max(1,Math.floor(l?.max??1)),m=Math.max(1,Math.floor(l?.visibilityMs??6e4)),S=[];for(let c of ne(t)){if(S.length>=f)break;let i=Q(c);if(!i)continue;let k=u(i.id);try{$(c,k);}catch{continue}let w={...i,attempt:(Number(i.attempt)||0)+1,leaseToken:randomUUID(),leaseExpiresAt:new Date(Date.now()+m).toISOString()};H(k,w),S.push(ar(w));}return S},ack(l,f){let m=u(l),S=Q(m);if(!S||S.leaseToken!==f)return false;try{$(m,p(l));}catch{return false}return true},nack(l,f,m){let S=u(l),c=Q(S);if(!c||c.leaseToken!==f)return false;let i={id:c.id,body:c.body,enqueuedAt:c.enqueuedAt,attempt:c.attempt,activeOrderKey:c.activeOrderKey};m?.dead?(i.reason=m.reason,H(h(l),i)):H(x(i),i);try{a.unlinkSync(S);}catch{}return true},peekActive(l){return y(),ne(t).map(f=>Q(f)).filter(f=>!!f).map(oe)},peekDeadLetter(l){return ne(n).map(f=>Q(f)).filter(f=>!!f).map(cr)},stage(l,f){let m=f?.dedupKey;if(m){y();for(let c of [t,r,s])for(let i of ne(c))if(Q(i)?.dedupKey===m)return null}let S={id:randomUUID(),body:l,enqueuedAt:new Date().toISOString(),attempt:0,...m?{dedupKey:m}:{}};return H(R(S.id),S),oe(S)},commitStaged(l){let f=R(l),m=Q(f);if(!m)return false;let S=new Date().toISOString(),c={...m,attempt:0,enqueuedAt:S,activeOrderKey:g(S)};H(x(c),c);try{a.unlinkSync(f);}catch{}return true},discardStaged(l,f){let m=R(l),S=Q(m);if(!S)return false;let c={id:S.id,body:S.body,enqueuedAt:S.enqueuedAt,attempt:S.attempt,reason:f};H(h(l),c);try{a.unlinkSync(m);}catch{}return true},peekStaged(l){return ne(s).map(f=>Q(f)).filter(f=>!!f).map(oe)}}}var Ie="__scratch-marker",Pe="__scratch-config.json",ur=1440*60*1e3,dr=720*60*1e3,lr=500;function ct(e,t){if(!e)return t;let r=e.replace(/[^A-Za-z0-9._-]/g,"_");return r.length>0?r:t}function ce(e){a.mkdirSync(e,{recursive:true});let t=v.join(e,Ie),r=v.join(e,Pe),o=!a.existsSync(t);if(o)try{a.writeFileSync(t,`scratch-store
|
|
4
4
|
${new Date().toISOString()}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkC7RR2JCL_cjs=require('./chunk-C7RR2JCL.cjs');require('./chunk-AW3COGCI.cjs'),require('./chunk-SIPLKLWU.cjs');var chunkCAID4CGO_cjs=require('./chunk-CAID4CGO.cjs');require('./chunk-7JVHYHT2.cjs'),require('./chunk-VQCIOKJV.cjs'),require('./chunk-VI36DRWG.cjs'),require('./chunk-7Y47QXMX.cjs'),require('./chunk-66ZZIF2L.cjs'),require('./chunk-P7STTKRO.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-2RIHC5TZ.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createBoardLiveCardsNonCorePublic",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.f}});Object.defineProperty(exports,"createBoardLiveCardsPublic",{enumerable:true,get:function(){return chunkC7RR2JCL_cjs.e}});Object.defineProperty(exports,"BOARD_GRAPH_KEY",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.q}});Object.defineProperty(exports,"EMPTY_CONFIG",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.D}});Object.defineProperty(exports,"SNAPSHOT_SCHEMA_VERSION_V1",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.p}});//# sourceMappingURL=board-live-cards-public.cjs.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-public.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{f as createBoardLiveCardsNonCorePublic,e as createBoardLiveCardsPublic}from'./chunk-
|
|
1
|
+
export{f as createBoardLiveCardsNonCorePublic,e as createBoardLiveCardsPublic}from'./chunk-C7OY3PYL.js';import'./chunk-FULAMLUU.js';import'./chunk-EOVTMJYZ.js';export{q as BOARD_GRAPH_KEY,D as EMPTY_CONFIG,p as SNAPSHOT_SCHEMA_VERSION_V1}from'./chunk-QJQ53PLM.js';import'./chunk-ANKA7HEJ.js';import'./chunk-44L64VQ2.js';import'./chunk-Q444D72R.js';import'./chunk-R7SQQSDX.js';import'./chunk-QE3QXEHI.js';import'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';import'./chunk-UGB7PC4P.js';import'./chunk-FW4363Y4.js';//# sourceMappingURL=board-live-cards-public.js.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-public.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk22S5GCQK_cjs=require('./chunk-22S5GCQK.cjs');require('./chunk-LFVMX23W.cjs'),require('./chunk-NM6O35RY.cjs'),require('./chunk-NBJTYAYN.cjs'),require('./chunk-3HCH2ZFB.cjs');var chunkU5BGE52X_cjs=require('./chunk-U5BGE52X.cjs');require('./chunk-BQUQTOPB.cjs'),require('./chunk-GPCMBPLK.cjs'),require('./chunk-7FGPOGRV.cjs'),require('./chunk-LPXVVMQT.cjs'),require('./chunk-272IYUKT.cjs'),require('./chunk-TIQ775WI.cjs'),require('./chunk-CSHNTZW4.cjs'),require('./chunk-C7RR2JCL.cjs'),require('./chunk-AW3COGCI.cjs'),require('./chunk-SIPLKLWU.cjs'),require('./chunk-G5UUXBIB.cjs'),require('./chunk-CAID4CGO.cjs'),require('./chunk-7JVHYHT2.cjs'),require('./chunk-VQCIOKJV.cjs'),require('./chunk-VI36DRWG.cjs'),require('./chunk-7Y47QXMX.cjs'),require('./chunk-66ZZIF2L.cjs'),require('./chunk-P7STTKRO.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-SDJ3747Q.cjs'),require('./chunk-OF4FPYNI.cjs'),require('./chunk-2RIHC5TZ.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createMultiBoardServerRuntime",{enumerable:true,get:function(){return chunk22S5GCQK_cjs.b}});Object.defineProperty(exports,"createSingleBoardServerRuntime",{enumerable:true,get:function(){return chunk22S5GCQK_cjs.a}});Object.defineProperty(exports,"createHostedBoardQueueLaneRegistry",{enumerable:true,get:function(){return chunkU5BGE52X_cjs.a}});//# sourceMappingURL=board-live-cards-server-runtime.cjs.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-server-runtime.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as createMultiBoardServerRuntime,a as createSingleBoardServerRuntime}from'./chunk-
|
|
1
|
+
export{b as createMultiBoardServerRuntime,a as createSingleBoardServerRuntime}from'./chunk-3C52UCJC.js';import'./chunk-JB4Q2W7I.js';import'./chunk-XYN5D3GL.js';import'./chunk-O5UYCGIN.js';import'./chunk-F6KRSQ7V.js';export{a as createHostedBoardQueueLaneRegistry}from'./chunk-AN7MLI7X.js';import'./chunk-FOFGEABN.js';import'./chunk-RKKSVOP2.js';import'./chunk-NTICU4OK.js';import'./chunk-O7NOHKVR.js';import'./chunk-ZJ5M5COT.js';import'./chunk-E7SDEZSI.js';import'./chunk-PEJRTZU3.js';import'./chunk-C7OY3PYL.js';import'./chunk-FULAMLUU.js';import'./chunk-EOVTMJYZ.js';import'./chunk-ONJG6QW6.js';import'./chunk-QJQ53PLM.js';import'./chunk-ANKA7HEJ.js';import'./chunk-44L64VQ2.js';import'./chunk-Q444D72R.js';import'./chunk-R7SQQSDX.js';import'./chunk-QE3QXEHI.js';import'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';import'./chunk-BJGK5FNL.js';import'./chunk-NIBLKYXN.js';import'./chunk-UGB7PC4P.js';import'./chunk-FW4363Y4.js';//# sourceMappingURL=board-live-cards-server-runtime.js.map
|
|
2
2
|
//# sourceMappingURL=board-live-cards-server-runtime.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkPYYRDOD5_cjs=require('../chunk-PYYRDOD5.cjs');require('../chunk-AW3COGCI.cjs'),require('../chunk-SIPLKLWU.cjs'),require('../chunk-VI36DRWG.cjs'),require('../chunk-7Y47QXMX.cjs'),require('../chunk-66ZZIF2L.cjs'),require('../chunk-P7STTKRO.cjs'),require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"LocalStorageService",{enumerable:true,get:function(){return chunkPYYRDOD5_cjs.a}});Object.defineProperty(exports,"buildBrowserArtifactsFromRuntime",{enumerable:true,get:function(){return chunkPYYRDOD5_cjs.e}});Object.defineProperty(exports,"createBoardLiveGraphRuntime",{enumerable:true,get:function(){return chunkPYYRDOD5_cjs.b}});Object.defineProperty(exports,"selectAllLiveCardModels",{enumerable:true,get:function(){return chunkPYYRDOD5_cjs.d}});Object.defineProperty(exports,"selectLiveCardModel",{enumerable:true,get:function(){return chunkPYYRDOD5_cjs.c}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GraphConfig, f as GraphEvent } from '../types-BBhqYGhE.cjs';
|
|
2
|
-
import { R as ReactiveGraph, d as LiveGraph, a as LiveCard, s as schedule, h as TaskHandlerInput, g as ReactiveGraphOptions, L as LiveBoard } from '../live-cards-bridge-
|
|
2
|
+
import { R as ReactiveGraph, d as LiveGraph, a as LiveCard, s as schedule, h as TaskHandlerInput, g as ReactiveGraphOptions, L as LiveBoard } from '../live-cards-bridge-D8kP3uog.cjs';
|
|
3
3
|
|
|
4
4
|
interface BrowserSourceAdapterContext {
|
|
5
5
|
card: LiveCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as GraphConfig, f as GraphEvent } from '../types-BBhqYGhE.js';
|
|
2
|
-
import { R as ReactiveGraph, d as LiveGraph, a as LiveCard, s as schedule, h as TaskHandlerInput, g as ReactiveGraphOptions, L as LiveBoard } from '../live-cards-bridge-
|
|
2
|
+
import { R as ReactiveGraph, d as LiveGraph, a as LiveCard, s as schedule, h as TaskHandlerInput, g as ReactiveGraphOptions, L as LiveBoard } from '../live-cards-bridge-DMBSDgpk.js';
|
|
3
3
|
|
|
4
4
|
interface BrowserSourceAdapterContext {
|
|
5
5
|
card: LiveCard;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as LocalStorageService,e as buildBrowserArtifactsFromRuntime,b as createBoardLiveGraphRuntime,d as selectAllLiveCardModels,c as selectLiveCardModel}from'../chunk-
|
|
1
|
+
export{a as LocalStorageService,e as buildBrowserArtifactsFromRuntime,b as createBoardLiveGraphRuntime,d as selectAllLiveCardModels,c as selectLiveCardModel}from'../chunk-72FB4M6P.js';import'../chunk-FULAMLUU.js';import'../chunk-EOVTMJYZ.js';import'../chunk-Q444D72R.js';import'../chunk-R7SQQSDX.js';import'../chunk-QE3QXEHI.js';import'../chunk-CVTL2EFR.js';import'../chunk-MNEOJWPS.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunk66ZZIF2L_cjs=require('../chunk-66ZZIF2L.cjs'),chunkP7STTKRO_cjs=require('../chunk-P7STTKRO.cjs');require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"CardCompute",{enumerable:true,get:function(){return chunk66ZZIF2L_cjs.a}});Object.defineProperty(exports,"default",{enumerable:true,get:function(){return chunk66ZZIF2L_cjs.b}});Object.defineProperty(exports,"validateLiveCard",{enumerable:true,get:function(){return chunkP7STTKRO_cjs.c}});Object.defineProperty(exports,"validateLiveCardDefinition",{enumerable:true,get:function(){return chunkP7STTKRO_cjs.d}});Object.defineProperty(exports,"validateLiveCardRuntimeExpressions",{enumerable:true,get:function(){return chunkP7STTKRO_cjs.b}});Object.defineProperty(exports,"validateLiveCardSchema",{enumerable:true,get:function(){return chunkP7STTKRO_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as CardCompute,b as default}from'../chunk-
|
|
1
|
+
export{a as CardCompute,b as default}from'../chunk-QE3QXEHI.js';export{c as validateLiveCard,d as validateLiveCardDefinition,b as validateLiveCardRuntimeExpressions,a as validateLiveCardSchema}from'../chunk-CVTL2EFR.js';import'../chunk-MNEOJWPS.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkCAID4CGO_cjs=require('./chunk-CAID4CGO.cjs');require('./chunk-7JVHYHT2.cjs'),require('./chunk-VQCIOKJV.cjs'),require('./chunk-VI36DRWG.cjs'),require('./chunk-7Y47QXMX.cjs'),require('./chunk-66ZZIF2L.cjs'),require('./chunk-P7STTKRO.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-2RIHC5TZ.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createCardStorePublic",{enumerable:true,get:function(){return chunkCAID4CGO_cjs.H}});//# sourceMappingURL=card-store-public.cjs.map
|
|
2
2
|
//# sourceMappingURL=card-store-public.cjs.map
|
package/lib/card-store-public.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{H as createCardStorePublic}from'./chunk-
|
|
1
|
+
export{H as createCardStorePublic}from'./chunk-QJQ53PLM.js';import'./chunk-ANKA7HEJ.js';import'./chunk-44L64VQ2.js';import'./chunk-Q444D72R.js';import'./chunk-R7SQQSDX.js';import'./chunk-QE3QXEHI.js';import'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';import'./chunk-UGB7PC4P.js';import'./chunk-FW4363Y4.js';//# sourceMappingURL=card-store-public.js.map
|
|
2
2
|
//# sourceMappingURL=card-store-public.js.map
|
package/lib/card-validation.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkAW6XLBHX_cjs=require('./chunk-AW6XLBHX.cjs');require('./chunk-P7STTKRO.cjs'),require('./chunk-UJ7ZTV4J.cjs'),require('./chunk-GNFE24S7.cjs');Object.defineProperty(exports,"validateCardPreflight",{enumerable:true,get:function(){return chunkAW6XLBHX_cjs.a}});//# sourceMappingURL=card-validation.cjs.map
|
|
2
2
|
//# sourceMappingURL=card-validation.cjs.map
|
package/lib/card-validation.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as validateCardPreflight}from'./chunk-
|
|
1
|
+
export{a as validateCardPreflight}from'./chunk-BSZYTSFX.js';import'./chunk-CVTL2EFR.js';import'./chunk-MNEOJWPS.js';import'./chunk-FW4363Y4.js';//# sourceMappingURL=card-validation.js.map
|
|
2
2
|
//# sourceMappingURL=card-validation.js.map
|