yaml-flow 8.6.4 → 8.7.1
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/adapters/firebase-storage.js +3 -0
- package/browser/adapters/firestore-storage.js +3 -0
- package/browser/adapters/localstorage-storage.js +4 -0
- package/browser/asset-integrity.json +22 -6
- package/browser/live-cards.schema.json +10 -1
- package/browser/server-runtime-controlface.js +8 -0
- package/examples/ARCHITECTURE.md +5 -32
- package/examples/board/demo-shell-with-server.html +2 -2
- package/examples/board/doc.html +2 -2
- package/examples/board/server/board-server.js +4 -2
- package/examples/board/test/server-http-test.js +73 -79
- package/examples/board-firestore/README.md +81 -0
- package/examples/board-firestore/browser/board-runtime.js +263 -0
- package/examples/board-firestore/firestore.indexes.json +29 -0
- package/examples/board-firestore/package.json +14 -0
- package/examples/board-firestore/server/adapters/firestore-archive-factory.js +59 -0
- package/examples/board-firestore/server/adapters/firestore-blob-storage.js +82 -0
- package/examples/board-firestore/server/adapters/firestore-board-adapter.js +127 -0
- package/examples/board-firestore/server/adapters/firestore-journal-storage.js +54 -0
- package/examples/board-firestore/server/adapters/firestore-kv-storage.js +47 -0
- package/examples/board-firestore/server/adapters/firestore-lock.js +62 -0
- package/examples/board-firestore/server/adapters/firestore-queue-storage.js +186 -0
- package/examples/board-firestore/server/adapters/firestore-scratch-storage.js +50 -0
- package/examples/board-firestore/server/worker.js +146 -0
- package/lib/{artifacts-store-lib-BR-Samty.d.cts → artifacts-store-lib-D9nMkVcE.d.cts} +1 -1
- package/lib/{artifacts-store-lib-DT7XlWUL.d.ts → artifacts-store-lib-DSSMqVL2.d.ts} +1 -1
- package/lib/artifacts-store-public.d.cts +2 -2
- package/lib/artifacts-store-public.d.ts +2 -2
- package/lib/board-live-cards-mcp.cjs +1 -1
- package/lib/board-live-cards-mcp.d.cts +51 -3
- package/lib/board-live-cards-mcp.d.ts +51 -3
- package/lib/board-live-cards-mcp.js +1 -1
- package/lib/board-live-cards-node.cjs +5 -5
- package/lib/board-live-cards-node.d.cts +16 -11
- package/lib/board-live-cards-node.d.ts +16 -11
- package/lib/board-live-cards-node.js +5 -5
- package/lib/{board-live-cards-public-BMUIPOrc.d.ts → board-live-cards-public-JNRKfBZy.d.ts} +1 -1
- package/lib/{board-live-cards-public-wkNmBIRC.d.cts → board-live-cards-public-LlVUQPL2.d.cts} +1 -1
- package/lib/board-live-cards-public-async-Di9QB141.d.cts +55 -0
- package/lib/board-live-cards-public-async-fwd1QI82.d.ts +55 -0
- package/lib/board-live-cards-public.cjs +1 -1
- package/lib/board-live-cards-public.d.cts +1 -1
- package/lib/board-live-cards-public.d.ts +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.d.cts +10 -6
- package/lib/board-live-cards-server-runtime.d.ts +10 -6
- 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.js +1 -1
- package/lib/board-platform-adapter-async-BfHmHdx2.d.cts +129 -0
- package/lib/board-platform-adapter-async-DYahVzIK.d.ts +129 -0
- package/lib/board-worker-adapter.cjs +3 -3
- package/lib/board-worker-adapter.js +3 -3
- package/lib/card-compute/index.cjs +1 -1
- package/lib/card-compute/index.js +1 -1
- package/lib/card-store-public.d.cts +1 -1
- package/lib/card-store-public.d.ts +1 -1
- package/lib/card-validation.cjs +1 -1
- package/lib/card-validation.js +1 -1
- package/lib/{chat-storage-lib-BIUbE-fM.d.cts → chat-storage-lib-B9Q34Dyv.d.cts} +1 -1
- package/lib/{chat-storage-lib-BlG-sobS.d.ts → chat-storage-lib-DB9iSai2.d.ts} +1 -1
- package/lib/chat-store-public.d.cts +2 -2
- package/lib/chat-store-public.d.ts +2 -2
- package/lib/chunk-272IYUKT.cjs +2 -0
- package/lib/chunk-3KC6LBOG.js +3 -0
- package/lib/chunk-5XHOHTLZ.cjs +2 -0
- package/lib/chunk-6APH25VI.js +2 -0
- package/lib/chunk-76C7N4YT.js +3 -0
- package/lib/chunk-7FGPOGRV.cjs +2 -0
- package/lib/chunk-7ICPAABP.cjs +7 -0
- package/lib/chunk-ASR44K7H.cjs +3 -0
- package/lib/chunk-CPAXTVBQ.cjs +2 -0
- package/lib/chunk-EGRHWZRV.js +2 -0
- package/lib/chunk-EZENHAVZ.cjs +2 -0
- package/lib/chunk-FO4KNVU7.cjs +2 -0
- package/lib/chunk-GL2OHR2E.cjs +2 -0
- package/lib/chunk-HWYMZK3N.cjs +3 -0
- package/lib/chunk-IPLSRN6P.cjs +4 -0
- package/lib/{chunk-H5HBXPOI.cjs → chunk-J6EGN6S4.cjs} +3 -3
- package/lib/chunk-JH37NJGP.js +3 -0
- package/lib/chunk-JJL5VOQZ.cjs +3 -0
- package/lib/chunk-KAWQPLIE.cjs +2 -0
- package/lib/chunk-LPXVVMQT.cjs +2 -0
- package/lib/chunk-NJJ7WEDT.cjs +2 -0
- package/lib/chunk-NKIQRCOM.cjs +2 -0
- package/lib/chunk-NM6O35RY.cjs +2 -0
- package/lib/chunk-NTICU4OK.js +2 -0
- package/lib/chunk-O7NOHKVR.js +2 -0
- package/lib/chunk-PBOQ4HYB.cjs +2 -0
- package/lib/{chunk-VMW4Z6EF.js → chunk-PRKRXAVN.js} +3 -3
- package/lib/chunk-QJVR3FWQ.js +2 -0
- package/lib/chunk-S44QZUDX.js +2 -0
- package/lib/chunk-SGV7PU4H.js +2 -0
- package/lib/chunk-TSN3RTXT.js +4 -0
- package/lib/chunk-VXJHBWK3.js +2 -0
- package/lib/chunk-WHDEBJLT.js +7 -0
- package/lib/chunk-XYN5D3GL.js +2 -0
- package/lib/chunk-YBYXCFAI.js +2 -0
- package/lib/chunk-YGALANRO.js +2 -0
- package/lib/chunk-ZCNN6XPV.js +2 -0
- package/lib/chunk-ZJ5M5COT.js +2 -0
- package/lib/cloud-storage.cjs +1 -1
- package/lib/cloud-storage.d.cts +5 -3
- package/lib/cloud-storage.d.ts +5 -3
- package/lib/cloud-storage.js +1 -1
- package/lib/continuous-event-graph/index.cjs +1 -1
- package/lib/continuous-event-graph/index.js +1 -1
- package/lib/firebase-storage/index.cjs +3 -0
- package/lib/firebase-storage/index.d.cts +57 -0
- package/lib/firebase-storage/index.d.ts +57 -0
- package/lib/firebase-storage/index.js +3 -0
- package/lib/firestore-storage/index.cjs +3 -0
- package/lib/firestore-storage/index.d.cts +111 -0
- package/lib/firestore-storage/index.d.ts +111 -0
- package/lib/firestore-storage/index.js +3 -0
- package/lib/index.cjs +2 -2
- package/lib/index.js +1 -1
- package/lib/localstorage-storage/index.cjs +2 -0
- package/lib/localstorage-storage/index.d.cts +39 -0
- package/lib/localstorage-storage/index.d.ts +39 -0
- package/lib/localstorage-storage/index.js +2 -0
- package/lib/mcp-tool-registries-BBObLYga.d.ts +41 -0
- package/lib/mcp-tool-registries-W3TRj6O5.d.cts +41 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.cts +30 -0
- package/lib/queue-lane-registry-PaZuFpwp.d.ts +30 -0
- package/lib/server-jobs-queue-runner/index.cjs +2 -0
- package/lib/server-jobs-queue-runner/index.d.cts +22 -0
- package/lib/server-jobs-queue-runner/index.d.ts +22 -0
- package/lib/server-jobs-queue-runner/index.js +2 -0
- package/lib/server-runtime/index.cjs +1 -1
- package/lib/server-runtime/index.d.cts +11 -17
- package/lib/server-runtime/index.d.ts +11 -17
- package/lib/server-runtime/index.js +1 -1
- package/lib/server-runtime-agentface/index.cjs +2 -0
- package/lib/server-runtime-agentface/index.d.cts +53 -0
- package/lib/server-runtime-agentface/index.d.ts +53 -0
- package/lib/server-runtime-agentface/index.js +2 -0
- package/lib/server-runtime-controlface/index.cjs +2 -0
- package/lib/server-runtime-controlface/index.d.cts +29 -0
- package/lib/server-runtime-controlface/index.d.ts +29 -0
- package/lib/server-runtime-controlface/index.js +2 -0
- package/lib/server-runtime-core/index.cjs +2 -0
- package/lib/server-runtime-core/index.d.cts +378 -0
- package/lib/server-runtime-core/index.d.ts +378 -0
- package/lib/server-runtime-core/index.js +2 -0
- package/lib/server-runtime-watchers/index.cjs +2 -0
- package/lib/server-runtime-watchers/index.d.cts +127 -0
- package/lib/server-runtime-watchers/index.d.ts +127 -0
- package/lib/server-runtime-watchers/index.js +2 -0
- package/lib/server-runtime-webhooks/index.cjs +2 -0
- package/lib/server-runtime-webhooks/index.d.cts +34 -0
- package/lib/server-runtime-webhooks/index.d.ts +34 -0
- package/lib/server-runtime-webhooks/index.js +2 -0
- package/lib/storage-async-interface-BRR4eBjx.d.cts +81 -0
- package/lib/storage-async-interface-DhlOVPSp.d.ts +81 -0
- package/lib/{queue-lane-registry-BPKWWgd4.d.cts → types-Ba8H5_Wo.d.cts} +10 -34
- package/lib/{queue-lane-registry-Be6c0ftj.d.ts → types-SO5OZm4s.d.ts} +10 -34
- package/package.json +46 -2
- package/schema/live-cards.schema.json +10 -1
- package/examples/board-local/demo-shell-localstorage.html +0 -843
- package/lib/board-live-cards-public-async-DKZqbJVU.d.ts +0 -256
- package/lib/board-live-cards-public-async-dMWNbWq6.d.cts +0 -256
- package/lib/chunk-KXWT3CY6.cjs +0 -8
- package/lib/chunk-MLVTJASJ.js +0 -2
- package/lib/chunk-N6P2JW4W.js +0 -3
- package/lib/chunk-NMZ6XNLB.cjs +0 -3
- package/lib/chunk-OEFTOO47.cjs +0 -3
- package/lib/chunk-OJLA6NLU.js +0 -8
- package/lib/chunk-R5L5WUKN.js +0 -2
- package/lib/chunk-VLBB3D6B.js +0 -3
- package/lib/chunk-WOALA3V5.cjs +0 -2
- package/lib/chunk-YEB5QHGE.cjs +0 -2
package/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export{i as createCallbackHandler,j as createFireAndForgetHandler,o as createNoopHandler,l as createProcessHandler,m as createScriptHandler,k as createShellHandler,n as createWebhookHandler,e as getDownstream,c as getUnreachableNodes,b as getUnreachableTokens,d as getUpstream,a as inspect,p as liveCardsToReactiveGraph,h as mutateGraph,f as validateLiveGraph,g as validateReactiveGraph}from'./chunk-OPNGCSXJ.js';export{b as createBoardLiveGraphRuntime}from'./chunk-YGKDQLYP.js';export{f as FlowEngine,f as StepMachine,a as applyStepResult,b as checkCircuitBreaker,c as computeStepInput,g as createEngine,e as createInitialState,g as createStepMachine,d as extractReturnData,j as loadStepFlow,k as validateFlowSchema,i as validateStepFlowConfig}from'./chunk-QWBNDVUA.js';export{h as apply,i as applyAll,e as detectStuckState,o as exportGraphConfig,p as exportGraphConfigToFile,l as flowToMermaid,g as getCandidateTasks,k as graphToMermaid,d as isExecutionComplete,n as loadGraphConfig,f as next,j as planExecution,q as validateGraph,m as validateGraphConfig,r as validateGraphSchema}from'./chunk-HLJH7LGW.js';export{a as MemoryStore}from'./chunk-JM5EKT57.js';export{a as KVStorageStore}from'./chunk-FZ2SBU5M.js';export{a as batch}from'./chunk-7BKNHFNH.js';export{b as resolveConfigTemplates,a as resolveVariables}from'./chunk-DAXACY63.js';export{s as MemoryJournal,d as addNode,h as addProvides,f as addRequires,b as applyEvent,c as applyEvents,a as createLiveGraph,u as createReactiveGraph,m as disableNode,k as drainTokens,n as enableNode,o as getNode,j as injectTokens,e as removeNode,i as removeProvides,g as removeRequires,l as resetNode,q as restore,r as schedule,p as snapshot}from'./chunk-VGT3TRQG.js';export{c as COMPLETION_STRATEGIES,e as CONFLICT_STRATEGIES,f as DEFAULTS,d as EXECUTION_MODES,b as EXECUTION_STATUS,a as TASK_STATUS,y as addDynamicTask,r as computeAvailableOutputs,z as createDefaultGraphEngineStore,A as createInitialExecutionState,i as getAllTasks,q as getMaxExecutions,g as getProvides,o as getRefreshStrategy,h as getRequires,j as getTask,k as hasTask,l as isNonActiveTask,p as isRerunnable,m as isTaskCompleted,n as isTaskRunning}from'./chunk-WDPOGXTY.js';export{a as CardCompute}from'./chunk-JMDHDY6M.js';export{c as validateLiveCard,d as validateLiveCardDefinition,b as validateLiveCardRuntimeExpressions,a as validateLiveCardSchema}from'./chunk-VLBB3D6B.js';import {a as a$1,c,g,i,b,l,j as j$1,k,m,n,o,h,p,d,e,f}from'./chunk-MNEOJWPS.js';import {a,b as b$1}from'./chunk-FW4363Y4.js';import Ba from'ajv-formats';var T=a(b=>{Object.defineProperty(b,"__esModule",{value:true});b.dynamicAnchor=void 0;var q=a$1(),Cr=c(),Z=g(),kr=i(),xr={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Q(e,e.schema)};function Q(e,t){let{gen:r,it:i}=e;i.schemaEnv.root.dynamicAnchors[t]=true;let s=(0, q._)`${Cr.default.dynamicAnchors}${(0, q.getProperty)(t)}`,c=i.errSchemaPath==="#"?i.validateName:Er(e);r.if((0, q._)`!${s}`,()=>r.assign(s,c));}b.dynamicAnchor=Q;function Er(e){let{schemaEnv:t,schema:r,self:i}=e.it,{root:s,baseId:c,localRefs:p,meta:u}=t.root,{schemaId:o}=i.opts,m=new Z.SchemaEnv({schema:r,schemaId:o,root:s,baseId:c,localRefs:p,meta:u});return Z.compileSchema.call(i,m),(0, kr.getValidate)(e,m)}b.default=xr;});var A=a($=>{Object.defineProperty($,"__esModule",{value:true});$.dynamicRef=void 0;var Y=a$1(),Or=c(),ee=i(),Mr={keyword:"$dynamicRef",schemaType:"string",code:e=>te(e,e.schema)};function te(e,t){let{gen:r,keyword:i,it:s}=e;if(t[0]!=="#")throw new Error(`"${i}" only supports hash fragment reference`);let c=t.slice(1);if(s.allErrors)p();else {let o=r.let("valid",false);p(o),e.ok(o);}function p(o){if(s.schemaEnv.root.dynamicAnchors[c]){let m=r.let("_v",(0, Y._)`${Or.default.dynamicAnchors}${(0, Y.getProperty)(c)}`);r.if(m,u(m,o),u(s.validateName,o));}else u(s.validateName,o)();}function u(o,m){return m?()=>r.block(()=>{(0, ee.callRef)(e,o),r.let(m,true);}):()=>(0, ee.callRef)(e,o)}}$.dynamicRef=te;$.default=Mr;});var re=a(C=>{Object.defineProperty(C,"__esModule",{value:true});var wr=T(),Ir=b(),Nr={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0, wr.dynamicAnchor)(e,""):(0, Ir.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored");}};C.default=Nr;});var ae=a(k=>{Object.defineProperty(k,"__esModule",{value:true});var Vr=A(),Gr={keyword:"$recursiveRef",schemaType:"string",code:e=>(0, Vr.dynamicRef)(e,e.schema)};k.default=Gr;});var ne=a(x=>{Object.defineProperty(x,"__esModule",{value:true});var Lr=T(),Br=A(),Dr=re(),Fr=ae(),Hr=[Lr.default,Br.default,Dr.default,Fr.default];x.default=Hr;});var ie=a(E=>{Object.defineProperty(E,"__esModule",{value:true});var oe=l(),Ur={keyword:"dependentRequired",type:"object",schemaType:"object",error:oe.error,code:e=>(0, oe.validatePropertyDeps)(e)};E.default=Ur;});var se=a(O=>{Object.defineProperty(O,"__esModule",{value:true});var Kr=l(),Jr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0, Kr.validateSchemaDeps)(e)};O.default=Jr;});var ce=a(M=>{Object.defineProperty(M,"__esModule",{value:true});var zr=b(),Wr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0, zr.checkStrictMode)(r,`"${e}" without "contains" is ignored`);}};M.default=Wr;});var de=a(w=>{Object.defineProperty(w,"__esModule",{value:true});var Xr=ie(),Zr=se(),Qr=ce(),Yr=[Xr.default,Zr.default,Qr.default];w.default=Yr;});var me=a(I=>{Object.defineProperty(I,"__esModule",{value:true});var l=a$1(),ue=b(),ea=c(),ta={message:"must NOT have unevaluated properties",params:({params:e})=>(0, l._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},ra={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:ta,code(e){let{gen:t,schema:r,data:i,errsCount:s,it:c}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:p,props:u}=c;u instanceof l.Name?t.if((0, l._)`${u} !== true`,()=>t.forIn("key",i,d=>t.if(m(u,d),()=>o(d)))):u!==true&&t.forIn("key",i,d=>u===void 0?o(d):t.if(R(u,d),()=>o(d))),c.props=true,e.ok((0, l._)`${s} === ${ea.default.errors}`);function o(d){if(r===false){e.setParams({unevaluatedProperty:d}),e.error(),p||t.break();return}if(!(0, ue.alwaysValidSchema)(c,r)){let h=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:ue.Type.Str},h),p||t.if((0, l.not)(h),()=>t.break());}}function m(d,h){return (0, l._)`!${d} || !${d}[${h}]`}function R(d,h){let F=[];for(let H in d)d[H]===true&&F.push((0, l._)`${h} !== ${H}`);return (0, l.and)(...F)}}};I.default=ra;});var le=a(N=>{Object.defineProperty(N,"__esModule",{value:true});var f=a$1(),pe=b(),aa={message:({params:{len:e}})=>(0, f.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0, f._)`{limit: ${e}}`},na={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:aa,code(e){let{gen:t,schema:r,data:i,it:s}=e,c=s.items||0;if(c===true)return;let p=t.const("len",(0, f._)`${i}.length`);if(r===false)e.setParams({len:c}),e.fail((0, f._)`${p} > ${c}`);else if(typeof r=="object"&&!(0, pe.alwaysValidSchema)(s,r)){let o=t.var("valid",(0, f._)`${p} <= ${c}`);t.if((0, f.not)(o),()=>u(o,c)),e.ok(o);}s.items=true;function u(o,m){t.forRange("i",m,p,R=>{e.subschema({keyword:"unevaluatedItems",dataProp:R,dataPropType:pe.Type.Num},o),s.allErrors||t.if((0, f.not)(o),()=>t.break());});}}};N.default=na;});var fe=a(V=>{Object.defineProperty(V,"__esModule",{value:true});var oa=me(),ia=le(),sa=[oa.default,ia.default];V.default=sa;});var ye=a(G=>{Object.defineProperty(G,"__esModule",{value:true});var ca=j$1(),da=k(),ua=m(),ma=ne(),pa=de(),la=fe(),fa=n(),he=o(),ha=[ma.default,ca.default,da.default,(0, ua.default)(true),fa.default,he.metadataVocabulary,he.contentVocabulary,pa.default,la.default];G.default=ha;});var ge=a((on,ya)=>{ya.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:true,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:true,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:true},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:true}}};});var ve=a((sn,ga)=>{ga.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":true},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}};});var be=a((cn,va)=>{va.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}};});var $e=a((dn,ba)=>{ba.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":true},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}};});var _e=a((un,$a)=>{$a.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":true},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}};});var Se=a((mn,_a)=>{_a.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}};});var je=a((pn,Sa)=>{Sa.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:true,deprecated:{type:"boolean",default:false},readOnly:{type:"boolean",default:false},writeOnly:{type:"boolean",default:false},examples:{type:"array",items:true}}};});var Re=a((ln,ja)=>{ja.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":true},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:true}]},const:true,enum:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}}};});var Pe=a(L=>{Object.defineProperty(L,"__esModule",{value:true});var Ra=ge(),Pa=ve(),qa=be(),Ta=$e(),Aa=_e(),Ca=Se(),ka=je(),xa=Re(),Ea=["/properties"];function Oa(e){return [Ra,Pa,qa,Ta,Aa,t(this,Ca),ka,t(this,xa)].forEach(r=>this.addMetaSchema(r,void 0,false)),this;function t(r,i){return e?r.$dataMetaSchema(i,Ea):i}}L.default=Oa;});var qe=a((a,D)=>{Object.defineProperty(a,"__esModule",{value:true});a.MissingRefError=a.ValidationError=a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=a.Ajv2020=void 0;var Ma=h(),wa=ye(),Ia=p(),Na=Pe(),B="https://json-schema.org/draft/2020-12/schema",y=class extends Ma.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true});}_addVocabularies(){super._addVocabularies(),wa.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ia.default);}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Na.default.call(this,t),this.refs["http://json-schema.org/schema"]=B);}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(B)?B:void 0)}};a.Ajv2020=y;D.exports=a=y;D.exports.Ajv2020=y;Object.defineProperty(a,"__esModule",{value:true});a.default=y;var Va=d();Object.defineProperty(a,"KeywordCxt",{enumerable:true,get:function(){return Va.KeywordCxt}});var g=a$1();Object.defineProperty(a,"_",{enumerable:true,get:function(){return g._}});Object.defineProperty(a,"str",{enumerable:true,get:function(){return g.str}});Object.defineProperty(a,"stringify",{enumerable:true,get:function(){return g.stringify}});Object.defineProperty(a,"nil",{enumerable:true,get:function(){return g.nil}});Object.defineProperty(a,"Name",{enumerable:true,get:function(){return g.Name}});Object.defineProperty(a,"CodeGen",{enumerable:true,get:function(){return g.CodeGen}});var Ga=e();Object.defineProperty(a,"ValidationError",{enumerable:true,get:function(){return Ga.default}});var La=f();Object.defineProperty(a,"MissingRefError",{enumerable:true,get:function(){return La.default}});});var W={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://yaml-flow.dev/schema/board-status.schema.json",title:"Board Status Object",type:"object",additionalProperties:false,required:["schema_version","meta","summary","cards"],properties:{schema_version:{type:"string",const:"v1"},meta:{type:"object",additionalProperties:false,required:["board"],properties:{board:{type:"object",additionalProperties:false,required:["path"],properties:{path:{type:"string"}}}}},summary:{type:"object",additionalProperties:false,required:["card_count","completed","eligible","pending","blocked","unresolved"],properties:{card_count:{type:"integer",minimum:0},completed:{type:"integer",minimum:0},eligible:{type:"integer",minimum:0},pending:{type:"integer",minimum:0},blocked:{type:"integer",minimum:0},unresolved:{type:"integer",minimum:0},failed:{type:"integer",minimum:0},in_progress:{type:"integer",minimum:0},orphan_cards:{type:"integer",minimum:0},topology:{type:"object",additionalProperties:false,required:["edge_count","max_fan_out_card","max_fan_out"],properties:{edge_count:{type:"integer",minimum:0},max_fan_out_card:{type:["string","null"]},max_fan_out:{type:"integer",minimum:0}}}}},cards:{type:"array",items:{type:"object",additionalProperties:false,required:["name","status","requires","requires_satisfied","requires_missing","provides_declared","provides_runtime","blocked_by","unblocks","runtime"],properties:{name:{type:"string"},status:{type:"string"},error:{type:"object",additionalProperties:false,required:["message"],properties:{message:{type:"string"},code:{type:"string"},at:{type:["string","null"]},source:{type:"string"}}},requires:{type:"array",items:{type:"string"}},requires_satisfied:{type:"array",items:{type:"string"}},requires_missing:{type:"array",items:{type:"string"}},provides_declared:{type:"array",items:{type:"string"}},provides_runtime:{type:"array",items:{type:"string"}},blocked_by:{type:"array",items:{type:"string"}},unblocks:{type:"array",items:{type:"string"}},runtime:{type:"object",additionalProperties:false,required:["attempt_count","restart_count","in_progress_since","last_transition_at","last_completed_at","last_restarted_at","status_age_ms"],properties:{attempt_count:{type:"integer",minimum:0},restart_count:{type:"integer",minimum:0},in_progress_since:{type:["string","null"]},last_transition_at:{type:["string","null"]},last_completed_at:{type:["string","null"]},last_restarted_at:{type:["string","null"]},status_age_ms:{type:["integer","null"],minimum:0}}}}}}}};var X={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://yaml-flow.dev/schema/card-runtime.schema.json",title:"Card Runtime Computed Artifact",description:"Published per-card runtime artifact written to runtime-out/cards/<card-id>.computed.json. Contains only values produced by the compute step.",type:"object",required:["schema_version","card_id","computed_values"],additionalProperties:false,properties:{schema_version:{type:"string",const:"v1",description:"Artifact schema version."},card_id:{type:"string",description:"The ID of the card this artifact belongs to."},computed_values:{type:"object",description:"Key/value map of outputs produced by the card's JSONata compute steps.",additionalProperties:true}}};var Te=b$1(qe(),1);var S=null,j=null;function Ae(){let e=new Te.default({allErrors:true,strict:false});return Ba(e),e}function Ce(e){return {ok:false,errors:(e.errors??[]).map(r=>`${r.instancePath||"/"}: ${r.message??"unknown error"}`)}}function Da(){return S||(S=Ae().compile(W),S)}function Fa(){return j||(j=Ae().compile(X),j)}function ke(e){let t=Da();return t(e)?{ok:true,errors:[]}:Ce(t)}function xe(e){let t=Fa();return t(e)?{ok:true,errors:[]}:Ce(t)}
|
|
1
|
+
export{i as createCallbackHandler,j as createFireAndForgetHandler,o as createNoopHandler,l as createProcessHandler,m as createScriptHandler,k as createShellHandler,n as createWebhookHandler,e as getDownstream,c as getUnreachableNodes,b as getUnreachableTokens,d as getUpstream,a as inspect,p as liveCardsToReactiveGraph,h as mutateGraph,f as validateLiveGraph,g as validateReactiveGraph}from'./chunk-OPNGCSXJ.js';export{b as createBoardLiveGraphRuntime}from'./chunk-YGKDQLYP.js';export{f as FlowEngine,f as StepMachine,a as applyStepResult,b as checkCircuitBreaker,c as computeStepInput,g as createEngine,e as createInitialState,g as createStepMachine,d as extractReturnData,j as loadStepFlow,k as validateFlowSchema,i as validateStepFlowConfig}from'./chunk-QWBNDVUA.js';export{h as apply,i as applyAll,e as detectStuckState,o as exportGraphConfig,p as exportGraphConfigToFile,l as flowToMermaid,g as getCandidateTasks,k as graphToMermaid,d as isExecutionComplete,n as loadGraphConfig,f as next,j as planExecution,q as validateGraph,m as validateGraphConfig,r as validateGraphSchema}from'./chunk-HLJH7LGW.js';export{a as MemoryStore}from'./chunk-JM5EKT57.js';export{a as KVStorageStore}from'./chunk-FZ2SBU5M.js';export{a as batch}from'./chunk-7BKNHFNH.js';export{b as resolveConfigTemplates,a as resolveVariables}from'./chunk-DAXACY63.js';export{s as MemoryJournal,d as addNode,h as addProvides,f as addRequires,b as applyEvent,c as applyEvents,a as createLiveGraph,u as createReactiveGraph,m as disableNode,k as drainTokens,n as enableNode,o as getNode,j as injectTokens,e as removeNode,i as removeProvides,g as removeRequires,l as resetNode,q as restore,r as schedule,p as snapshot}from'./chunk-VGT3TRQG.js';export{c as COMPLETION_STRATEGIES,e as CONFLICT_STRATEGIES,f as DEFAULTS,d as EXECUTION_MODES,b as EXECUTION_STATUS,a as TASK_STATUS,y as addDynamicTask,r as computeAvailableOutputs,z as createDefaultGraphEngineStore,A as createInitialExecutionState,i as getAllTasks,q as getMaxExecutions,g as getProvides,o as getRefreshStrategy,h as getRequires,j as getTask,k as hasTask,l as isNonActiveTask,p as isRerunnable,m as isTaskCompleted,n as isTaskRunning}from'./chunk-WDPOGXTY.js';export{a as CardCompute}from'./chunk-JMDHDY6M.js';export{c as validateLiveCard,d as validateLiveCardDefinition,b as validateLiveCardRuntimeExpressions,a as validateLiveCardSchema}from'./chunk-3KC6LBOG.js';import {a as a$1,c,g,i,b,l,j as j$1,k,m,n,o,h,p,d,e,f}from'./chunk-MNEOJWPS.js';import {a,b as b$1}from'./chunk-FW4363Y4.js';import Ba from'ajv-formats';var T=a(b=>{Object.defineProperty(b,"__esModule",{value:true});b.dynamicAnchor=void 0;var q=a$1(),Cr=c(),Z=g(),kr=i(),xr={keyword:"$dynamicAnchor",schemaType:"string",code:e=>Q(e,e.schema)};function Q(e,t){let{gen:r,it:i}=e;i.schemaEnv.root.dynamicAnchors[t]=true;let s=(0, q._)`${Cr.default.dynamicAnchors}${(0, q.getProperty)(t)}`,c=i.errSchemaPath==="#"?i.validateName:Er(e);r.if((0, q._)`!${s}`,()=>r.assign(s,c));}b.dynamicAnchor=Q;function Er(e){let{schemaEnv:t,schema:r,self:i}=e.it,{root:s,baseId:c,localRefs:p,meta:u}=t.root,{schemaId:o}=i.opts,m=new Z.SchemaEnv({schema:r,schemaId:o,root:s,baseId:c,localRefs:p,meta:u});return Z.compileSchema.call(i,m),(0, kr.getValidate)(e,m)}b.default=xr;});var A=a($=>{Object.defineProperty($,"__esModule",{value:true});$.dynamicRef=void 0;var Y=a$1(),Or=c(),ee=i(),Mr={keyword:"$dynamicRef",schemaType:"string",code:e=>te(e,e.schema)};function te(e,t){let{gen:r,keyword:i,it:s}=e;if(t[0]!=="#")throw new Error(`"${i}" only supports hash fragment reference`);let c=t.slice(1);if(s.allErrors)p();else {let o=r.let("valid",false);p(o),e.ok(o);}function p(o){if(s.schemaEnv.root.dynamicAnchors[c]){let m=r.let("_v",(0, Y._)`${Or.default.dynamicAnchors}${(0, Y.getProperty)(c)}`);r.if(m,u(m,o),u(s.validateName,o));}else u(s.validateName,o)();}function u(o,m){return m?()=>r.block(()=>{(0, ee.callRef)(e,o),r.let(m,true);}):()=>(0, ee.callRef)(e,o)}}$.dynamicRef=te;$.default=Mr;});var re=a(C=>{Object.defineProperty(C,"__esModule",{value:true});var wr=T(),Ir=b(),Nr={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0, wr.dynamicAnchor)(e,""):(0, Ir.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored");}};C.default=Nr;});var ae=a(k=>{Object.defineProperty(k,"__esModule",{value:true});var Vr=A(),Gr={keyword:"$recursiveRef",schemaType:"string",code:e=>(0, Vr.dynamicRef)(e,e.schema)};k.default=Gr;});var ne=a(x=>{Object.defineProperty(x,"__esModule",{value:true});var Lr=T(),Br=A(),Dr=re(),Fr=ae(),Hr=[Lr.default,Br.default,Dr.default,Fr.default];x.default=Hr;});var ie=a(E=>{Object.defineProperty(E,"__esModule",{value:true});var oe=l(),Ur={keyword:"dependentRequired",type:"object",schemaType:"object",error:oe.error,code:e=>(0, oe.validatePropertyDeps)(e)};E.default=Ur;});var se=a(O=>{Object.defineProperty(O,"__esModule",{value:true});var Kr=l(),Jr={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0, Kr.validateSchemaDeps)(e)};O.default=Jr;});var ce=a(M=>{Object.defineProperty(M,"__esModule",{value:true});var zr=b(),Wr={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0, zr.checkStrictMode)(r,`"${e}" without "contains" is ignored`);}};M.default=Wr;});var de=a(w=>{Object.defineProperty(w,"__esModule",{value:true});var Xr=ie(),Zr=se(),Qr=ce(),Yr=[Xr.default,Zr.default,Qr.default];w.default=Yr;});var me=a(I=>{Object.defineProperty(I,"__esModule",{value:true});var l=a$1(),ue=b(),ea=c(),ta={message:"must NOT have unevaluated properties",params:({params:e})=>(0, l._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},ra={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:true,error:ta,code(e){let{gen:t,schema:r,data:i,errsCount:s,it:c}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:p,props:u}=c;u instanceof l.Name?t.if((0, l._)`${u} !== true`,()=>t.forIn("key",i,d=>t.if(m(u,d),()=>o(d)))):u!==true&&t.forIn("key",i,d=>u===void 0?o(d):t.if(R(u,d),()=>o(d))),c.props=true,e.ok((0, l._)`${s} === ${ea.default.errors}`);function o(d){if(r===false){e.setParams({unevaluatedProperty:d}),e.error(),p||t.break();return}if(!(0, ue.alwaysValidSchema)(c,r)){let h=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:ue.Type.Str},h),p||t.if((0, l.not)(h),()=>t.break());}}function m(d,h){return (0, l._)`!${d} || !${d}[${h}]`}function R(d,h){let F=[];for(let H in d)d[H]===true&&F.push((0, l._)`${h} !== ${H}`);return (0, l.and)(...F)}}};I.default=ra;});var le=a(N=>{Object.defineProperty(N,"__esModule",{value:true});var f=a$1(),pe=b(),aa={message:({params:{len:e}})=>(0, f.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0, f._)`{limit: ${e}}`},na={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:aa,code(e){let{gen:t,schema:r,data:i,it:s}=e,c=s.items||0;if(c===true)return;let p=t.const("len",(0, f._)`${i}.length`);if(r===false)e.setParams({len:c}),e.fail((0, f._)`${p} > ${c}`);else if(typeof r=="object"&&!(0, pe.alwaysValidSchema)(s,r)){let o=t.var("valid",(0, f._)`${p} <= ${c}`);t.if((0, f.not)(o),()=>u(o,c)),e.ok(o);}s.items=true;function u(o,m){t.forRange("i",m,p,R=>{e.subschema({keyword:"unevaluatedItems",dataProp:R,dataPropType:pe.Type.Num},o),s.allErrors||t.if((0, f.not)(o),()=>t.break());});}}};N.default=na;});var fe=a(V=>{Object.defineProperty(V,"__esModule",{value:true});var oa=me(),ia=le(),sa=[oa.default,ia.default];V.default=sa;});var ye=a(G=>{Object.defineProperty(G,"__esModule",{value:true});var ca=j$1(),da=k(),ua=m(),ma=ne(),pa=de(),la=fe(),fa=n(),he=o(),ha=[ma.default,ca.default,da.default,(0, ua.default)(true),fa.default,he.metadataVocabulary,he.contentVocabulary,pa.default,la.default];G.default=ha;});var ge=a((on,ya)=>{ya.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:true,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:true,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:true},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:true}}};});var ve=a((sn,ga)=>{ga.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":true},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}};});var be=a((cn,va)=>{va.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}};});var $e=a((dn,ba)=>{ba.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":true},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}};});var _e=a((un,$a)=>{$a.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":true},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}};});var Se=a((mn,_a)=>{_a.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}};});var je=a((pn,Sa)=>{Sa.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:true,deprecated:{type:"boolean",default:false},readOnly:{type:"boolean",default:false},writeOnly:{type:"boolean",default:false},examples:{type:"array",items:true}}};});var Re=a((ln,ja)=>{ja.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":true},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:true}]},const:true,enum:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}}};});var Pe=a(L=>{Object.defineProperty(L,"__esModule",{value:true});var Ra=ge(),Pa=ve(),qa=be(),Ta=$e(),Aa=_e(),Ca=Se(),ka=je(),xa=Re(),Ea=["/properties"];function Oa(e){return [Ra,Pa,qa,Ta,Aa,t(this,Ca),ka,t(this,xa)].forEach(r=>this.addMetaSchema(r,void 0,false)),this;function t(r,i){return e?r.$dataMetaSchema(i,Ea):i}}L.default=Oa;});var qe=a((a,D)=>{Object.defineProperty(a,"__esModule",{value:true});a.MissingRefError=a.ValidationError=a.CodeGen=a.Name=a.nil=a.stringify=a.str=a._=a.KeywordCxt=a.Ajv2020=void 0;var Ma=h(),wa=ye(),Ia=p(),Na=Pe(),B="https://json-schema.org/draft/2020-12/schema",y=class extends Ma.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true});}_addVocabularies(){super._addVocabularies(),wa.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Ia.default);}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Na.default.call(this,t),this.refs["http://json-schema.org/schema"]=B);}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(B)?B:void 0)}};a.Ajv2020=y;D.exports=a=y;D.exports.Ajv2020=y;Object.defineProperty(a,"__esModule",{value:true});a.default=y;var Va=d();Object.defineProperty(a,"KeywordCxt",{enumerable:true,get:function(){return Va.KeywordCxt}});var g=a$1();Object.defineProperty(a,"_",{enumerable:true,get:function(){return g._}});Object.defineProperty(a,"str",{enumerable:true,get:function(){return g.str}});Object.defineProperty(a,"stringify",{enumerable:true,get:function(){return g.stringify}});Object.defineProperty(a,"nil",{enumerable:true,get:function(){return g.nil}});Object.defineProperty(a,"Name",{enumerable:true,get:function(){return g.Name}});Object.defineProperty(a,"CodeGen",{enumerable:true,get:function(){return g.CodeGen}});var Ga=e();Object.defineProperty(a,"ValidationError",{enumerable:true,get:function(){return Ga.default}});var La=f();Object.defineProperty(a,"MissingRefError",{enumerable:true,get:function(){return La.default}});});var W={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://yaml-flow.dev/schema/board-status.schema.json",title:"Board Status Object",type:"object",additionalProperties:false,required:["schema_version","meta","summary","cards"],properties:{schema_version:{type:"string",const:"v1"},meta:{type:"object",additionalProperties:false,required:["board"],properties:{board:{type:"object",additionalProperties:false,required:["path"],properties:{path:{type:"string"}}}}},summary:{type:"object",additionalProperties:false,required:["card_count","completed","eligible","pending","blocked","unresolved"],properties:{card_count:{type:"integer",minimum:0},completed:{type:"integer",minimum:0},eligible:{type:"integer",minimum:0},pending:{type:"integer",minimum:0},blocked:{type:"integer",minimum:0},unresolved:{type:"integer",minimum:0},failed:{type:"integer",minimum:0},in_progress:{type:"integer",minimum:0},orphan_cards:{type:"integer",minimum:0},topology:{type:"object",additionalProperties:false,required:["edge_count","max_fan_out_card","max_fan_out"],properties:{edge_count:{type:"integer",minimum:0},max_fan_out_card:{type:["string","null"]},max_fan_out:{type:"integer",minimum:0}}}}},cards:{type:"array",items:{type:"object",additionalProperties:false,required:["name","status","requires","requires_satisfied","requires_missing","provides_declared","provides_runtime","blocked_by","unblocks","runtime"],properties:{name:{type:"string"},status:{type:"string"},error:{type:"object",additionalProperties:false,required:["message"],properties:{message:{type:"string"},code:{type:"string"},at:{type:["string","null"]},source:{type:"string"}}},requires:{type:"array",items:{type:"string"}},requires_satisfied:{type:"array",items:{type:"string"}},requires_missing:{type:"array",items:{type:"string"}},provides_declared:{type:"array",items:{type:"string"}},provides_runtime:{type:"array",items:{type:"string"}},blocked_by:{type:"array",items:{type:"string"}},unblocks:{type:"array",items:{type:"string"}},runtime:{type:"object",additionalProperties:false,required:["attempt_count","restart_count","in_progress_since","last_transition_at","last_completed_at","last_restarted_at","status_age_ms"],properties:{attempt_count:{type:"integer",minimum:0},restart_count:{type:"integer",minimum:0},in_progress_since:{type:["string","null"]},last_transition_at:{type:["string","null"]},last_completed_at:{type:["string","null"]},last_restarted_at:{type:["string","null"]},status_age_ms:{type:["integer","null"],minimum:0}}}}}}}};var X={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://yaml-flow.dev/schema/card-runtime.schema.json",title:"Card Runtime Computed Artifact",description:"Published per-card runtime artifact written to runtime-out/cards/<card-id>.computed.json. Contains only values produced by the compute step.",type:"object",required:["schema_version","card_id","computed_values"],additionalProperties:false,properties:{schema_version:{type:"string",const:"v1",description:"Artifact schema version."},card_id:{type:"string",description:"The ID of the card this artifact belongs to."},computed_values:{type:"object",description:"Key/value map of outputs produced by the card's JSONata compute steps.",additionalProperties:true}}};var Te=b$1(qe(),1);var S=null,j=null;function Ae(){let e=new Te.default({allErrors:true,strict:false});return Ba(e),e}function Ce(e){return {ok:false,errors:(e.errors??[]).map(r=>`${r.instancePath||"/"}: ${r.message??"unknown error"}`)}}function Da(){return S||(S=Ae().compile(W),S)}function Fa(){return j||(j=Ae().compile(X),j)}function ke(e){let t=Da();return t(e)?{ok:true,errors:[]}:Ce(t)}function xe(e){let t=Fa();return t(e)?{ok:true,errors:[]}:Ce(t)}
|
|
2
2
|
export{ke as validateBoardStatusSchema,xe as validateCardRuntimeSchema};//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkIPLSRN6P_cjs=require('../chunk-IPLSRN6P.cjs');require('../chunk-NKIQRCOM.cjs'),require('../chunk-5XHOHTLZ.cjs');var chunkJ6EGN6S4_cjs=require('../chunk-J6EGN6S4.cjs');require('../chunk-PBCDDO4V.cjs'),require('../chunk-JJL5VOQZ.cjs'),require('../chunk-U2N6MCD5.cjs');var chunkSFVO2LB2_cjs=require('../chunk-SFVO2LB2.cjs');require('../chunk-G4XXRHL2.cjs'),require('../chunk-LODXIALE.cjs'),require('../chunk-IXZG74EW.cjs'),require('../chunk-HWYMZK3N.cjs'),require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-YMEIPKLW.cjs'),require('../chunk-GNFE24S7.cjs');function E(){let n=false;return {async tryAcquire(){return n?null:(n=true,()=>{n=false;})}}}function y(){let n=new Map,r=new Map;return {async enqueue(e){let t={id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,body:e,enqueuedAt:new Date().toISOString(),attempt:0};return n.set(t.id,t),t},async enqueueIfAbsent(e,t){for(let i of n.values())if(i.dedupKey===t)return null;let a={id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,body:e,enqueuedAt:new Date().toISOString(),attempt:0,dedupKey:t};return n.set(a.id,a),a},async lease(e){let t=Math.max(1,Math.floor(e?.max??1)),a=Math.max(1,Math.floor(e?.visibilityMs??6e4)),i=Date.now();for(let o of n.values())o.leaseExpiresAt&&Date.parse(o.leaseExpiresAt)<=i&&(delete o.leaseToken,delete o.leaseExpiresAt);let s=[];for(let o of n.values()){if(s.length>=t)break;o.leaseToken||(o.attempt+=1,o.leaseToken=globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,o.leaseExpiresAt=new Date(Date.now()+a).toISOString(),s.push({id:o.id,body:o.body,enqueuedAt:o.enqueuedAt,attempt:o.attempt,leaseToken:o.leaseToken,leaseExpiresAt:o.leaseExpiresAt}));}return s},async ack(e,t){let a=n.get(e);return !a||a.leaseToken!==t?false:(n.delete(e),true)},async nack(e,t,a){let i=n.get(e);return !i||i.leaseToken!==t?false:(delete i.leaseToken,delete i.leaseExpiresAt,a?.dead&&(n.delete(e),r.set(e,{...i,reason:a.reason})),true)},async peekActive(e=""){return Array.from(n.values()).filter(t=>!t.leaseToken).filter(t=>!e||t.id.startsWith(e)).map(t=>({id:t.id,body:t.body,enqueuedAt:t.enqueuedAt,attempt:t.attempt}))},async peekDeadLetter(e=""){return Array.from(r.values()).filter(t=>!e||t.id.startsWith(e)).map(t=>({id:t.id,body:t.body,enqueuedAt:t.enqueuedAt,attempt:t.attempt,reason:t.reason}))}}}function B(n){let r=chunkIPLSRN6P_cjs.e(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async delete(e){r.delete(e);},async listKeys(e){return r.listKeys(e)}}}function L(n){let r=chunkIPLSRN6P_cjs.b(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async exists(e){return r.exists(e)},async remove(e){r.remove(e);},async readBytes(e){return r.readBytes?.(e)??null},async writeBytes(e,t){await r.writeBytes?.(e,t);},async listKeys(e){return r.listKeys(e)},async stat(e){return r.stat?.(e)??null}}}function k(n){let r=chunkIPLSRN6P_cjs.c(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async exists(e){return r.exists(e)},async remove(e){r.remove(e);},async readBytes(e){return r.readBytes?.(e)??null},async writeBytes(e,t){await r.writeBytes?.(e,t);},async listKeys(e){return r.listKeys(e)},async stat(e){return r.stat?.(e)??null},async getUniqueKey(e,t){return r.getUniqueKey(e,t)},async create(e,t,a){return r.create(e,t,a)},keyRef(e){return r.keyRef(e)},config:{async get(e){return r.config.get(e)},async set(e,t){r.config.set(e,t);}}}}function K(n){let r=chunkIPLSRN6P_cjs.f(n);function e(t){return {id:t.id,payload:t.event}}return {async append(t){let a={id:r.generateId(),event:t};return r.appendEntry(a),e(a)},async readAll(){return r.readAllEntries().map(e)},async readAfter(t){let a=r.readAllEntries().map(e);if(!t)return {entries:a,newCursor:a.length>0?a[a.length-1].id:null};let i=a.findIndex(o=>o.id===t),s=i===-1?a:a.slice(i+1);return {entries:s,newCursor:s.length>0?s[s.length-1].id:t}}}}function x(n){let r=chunkIPLSRN6P_cjs.d(n);return {stream(e){let t=r.stream(e);return {async append(a){return t.append(a)},async readAll(){return t.readAll()},async readAfter(a){return t.readAfter(a)},async clear(){t.clear?.();}}},blob(e){let t=r.blob(e);return {async read(a){return t.read(a)},async write(a,i){t.write(a,i);},async exists(a){return t.exists(a)},async remove(a){t.remove(a);},async readBytes(a){return t.readBytes?.(a)??null},async writeBytes(a,i){await t.writeBytes?.(a,i);},async listKeys(a){return t.listKeys(a)},async stat(a){return t.stat?.(a)??null}}},async listStreams(e){return r.listStreams(e)},async listBlobs(e){return r.listBlobs(e)},config:{async get(e){return r.config.get(e)},async set(e,t){r.config.set(e,t);}}}}function $(n){return String(n||"").trim()}function T(n){return {kind:"local-storage",value:$(n)}}function c(n){return chunkSFVO2LB2_cjs.a(T(n))}function q(n){let r=`boards:${n}`;return {baseRef:T(r),cardStoreRef:c(`${r}:cards`),outputsStoreRef:c(`${r}:runtime-out`),scratchStoreRef:c(`${r}:scratch`),archiveStoreRef:c(`${r}:archive`),chatStoreRef:c(`${r}:chat`),artifactsStoreRef:c(`${r}:files`)}}function g(n,r){try{let e=chunkSFVO2LB2_cjs.b(n);if(e?.kind==="local-storage"&&e.value)return $(e.value)}catch{}return r}function D(n,r={}){let e=q(n),t=y(),a=y(),i=y();return chunkJ6EGN6S4_cjs.i({boardId:n,kvStorage(s){return B(`${e.baseRef.value}:${s||"root"}`)},kvStorageForRef(s){return B(g(s,`${e.baseRef.value}:root`))},blobStorage(s){return L(s?`${e.baseRef.value}:${s}`:e.baseRef.value)},scratchStorage(){return k(`${e.baseRef.value}:scratch`)},scratchStorageForRef(s){return k(g(s,`${e.baseRef.value}:scratch`))},archiveFactory(){return x(`${e.baseRef.value}:archive`)},archiveFactoryForRef(s){return x(g(s,`${e.baseRef.value}:archive`))},journalStorage(){return K(`${e.baseRef.value}:journal`)},queueStorage:t,chatAgentQueueStorage:a,processAccumulatedQueueStorage:i,lock:E(),resolveBlob:async s=>{let o=s?.kind==="local-storage"?s:null;if(!o?.value)throw new Error(`Unsupported localStorage ref: ${chunkSFVO2LB2_cjs.a(s)}`);let f=chunkIPLSRN6P_cjs.b(o.value),l=await Promise.resolve(f.read(""));if(l===null)throw new Error(`Blob not found: ${chunkSFVO2LB2_cjs.a(s)}`);try{let p=JSON.parse(l);if(p?.__kind==="bytes-b64"&&typeof p.data=="string"){let S=await Promise.resolve(f.readBytes?.(""));if(S)return new TextDecoder().decode(S)}}catch{}return l},hashFn:chunkIPLSRN6P_cjs.a,genId:()=>(globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`).replace(/-/g,""),requestProcessAccumulated:r.requestProcessAccumulated,publishBoardChangeNotifications:r.publishBoardChangeNotifications,onWarn:s=>console.warn(`[localstorage-board-adapter:${n}] ${s}`)})}function U(n,r={}){return {refs:{...q(n),...r.refs??{}},boardAdapter:D(n,r)}}exports.createLocalStorageBoardAdapter=D;exports.createLocalStorageBoardRefs=q;exports.createLocalStorageBoardRuntimeBundle=U;exports.makeLocalStorageRef=T;exports.serializeLocalStorageRef=c;//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { a as KindValueRef } from '../storage-interface-BFiD3kyB.cjs';
|
|
2
|
+
import { A as AsyncBoardPlatformAdapter } from '../board-platform-adapter-async-BfHmHdx2.cjs';
|
|
3
|
+
import '../board-live-cards-public-LlVUQPL2.cjs';
|
|
4
|
+
import '../execution-refs.cjs';
|
|
5
|
+
import '../types-BBhqYGhE.cjs';
|
|
6
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
7
|
+
|
|
8
|
+
interface LocalStorageBoardRefs {
|
|
9
|
+
baseRef: KindValueRef;
|
|
10
|
+
cardStoreRef: string;
|
|
11
|
+
outputsStoreRef: string;
|
|
12
|
+
scratchStoreRef: string;
|
|
13
|
+
archiveStoreRef: string;
|
|
14
|
+
chatStoreRef: string;
|
|
15
|
+
artifactsStoreRef: string;
|
|
16
|
+
}
|
|
17
|
+
interface LocalStorageBoardAdapterOptions {
|
|
18
|
+
refs?: Partial<LocalStorageBoardRefs>;
|
|
19
|
+
requestProcessAccumulated?: () => void | Promise<void>;
|
|
20
|
+
publishBoardChangeNotifications?: (notifications: unknown[]) => void | Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
declare function makeLocalStorageRef(path: string): KindValueRef;
|
|
23
|
+
declare function serializeLocalStorageRef(path: string): string;
|
|
24
|
+
declare function createLocalStorageBoardRefs(boardId: string): LocalStorageBoardRefs;
|
|
25
|
+
declare function createLocalStorageBoardAdapter(boardId: string, options?: LocalStorageBoardAdapterOptions): AsyncBoardPlatformAdapter;
|
|
26
|
+
declare function createLocalStorageBoardRuntimeBundle(boardId: string, options?: LocalStorageBoardAdapterOptions): {
|
|
27
|
+
refs: {
|
|
28
|
+
baseRef: KindValueRef;
|
|
29
|
+
cardStoreRef: string;
|
|
30
|
+
outputsStoreRef: string;
|
|
31
|
+
scratchStoreRef: string;
|
|
32
|
+
archiveStoreRef: string;
|
|
33
|
+
chatStoreRef: string;
|
|
34
|
+
artifactsStoreRef: string;
|
|
35
|
+
};
|
|
36
|
+
boardAdapter: AsyncBoardPlatformAdapter;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { type LocalStorageBoardAdapterOptions, type LocalStorageBoardRefs, createLocalStorageBoardAdapter, createLocalStorageBoardRefs, createLocalStorageBoardRuntimeBundle, makeLocalStorageRef, serializeLocalStorageRef };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { a as KindValueRef } from '../storage-interface-BFiD3kyB.js';
|
|
2
|
+
import { A as AsyncBoardPlatformAdapter } from '../board-platform-adapter-async-DYahVzIK.js';
|
|
3
|
+
import '../board-live-cards-public-JNRKfBZy.js';
|
|
4
|
+
import '../execution-refs.js';
|
|
5
|
+
import '../types-BBhqYGhE.js';
|
|
6
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
7
|
+
|
|
8
|
+
interface LocalStorageBoardRefs {
|
|
9
|
+
baseRef: KindValueRef;
|
|
10
|
+
cardStoreRef: string;
|
|
11
|
+
outputsStoreRef: string;
|
|
12
|
+
scratchStoreRef: string;
|
|
13
|
+
archiveStoreRef: string;
|
|
14
|
+
chatStoreRef: string;
|
|
15
|
+
artifactsStoreRef: string;
|
|
16
|
+
}
|
|
17
|
+
interface LocalStorageBoardAdapterOptions {
|
|
18
|
+
refs?: Partial<LocalStorageBoardRefs>;
|
|
19
|
+
requestProcessAccumulated?: () => void | Promise<void>;
|
|
20
|
+
publishBoardChangeNotifications?: (notifications: unknown[]) => void | Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
declare function makeLocalStorageRef(path: string): KindValueRef;
|
|
23
|
+
declare function serializeLocalStorageRef(path: string): string;
|
|
24
|
+
declare function createLocalStorageBoardRefs(boardId: string): LocalStorageBoardRefs;
|
|
25
|
+
declare function createLocalStorageBoardAdapter(boardId: string, options?: LocalStorageBoardAdapterOptions): AsyncBoardPlatformAdapter;
|
|
26
|
+
declare function createLocalStorageBoardRuntimeBundle(boardId: string, options?: LocalStorageBoardAdapterOptions): {
|
|
27
|
+
refs: {
|
|
28
|
+
baseRef: KindValueRef;
|
|
29
|
+
cardStoreRef: string;
|
|
30
|
+
outputsStoreRef: string;
|
|
31
|
+
scratchStoreRef: string;
|
|
32
|
+
archiveStoreRef: string;
|
|
33
|
+
chatStoreRef: string;
|
|
34
|
+
artifactsStoreRef: string;
|
|
35
|
+
};
|
|
36
|
+
boardAdapter: AsyncBoardPlatformAdapter;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { type LocalStorageBoardAdapterOptions, type LocalStorageBoardRefs, createLocalStorageBoardAdapter, createLocalStorageBoardRefs, createLocalStorageBoardRuntimeBundle, makeLocalStorageRef, serializeLocalStorageRef };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1,b,f,d,c as c$1,e}from'../chunk-TSN3RTXT.js';import'../chunk-EGRHWZRV.js';import'../chunk-S44QZUDX.js';import {i}from'../chunk-PRKRXAVN.js';import'../chunk-HEEDJEKM.js';import'../chunk-JH37NJGP.js';import'../chunk-XQRNDX4Q.js';import {a,b as b$1}from'../chunk-BQS3EIEK.js';import'../chunk-VGT3TRQG.js';import'../chunk-WDPOGXTY.js';import'../chunk-JMDHDY6M.js';import'../chunk-3KC6LBOG.js';import'../chunk-MNEOJWPS.js';import'../chunk-KBELAKIY.js';import'../chunk-FW4363Y4.js';function E(){let n=false;return {async tryAcquire(){return n?null:(n=true,()=>{n=false;})}}}function y(){let n=new Map,r=new Map;return {async enqueue(e){let t={id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,body:e,enqueuedAt:new Date().toISOString(),attempt:0};return n.set(t.id,t),t},async enqueueIfAbsent(e,t){for(let i of n.values())if(i.dedupKey===t)return null;let a={id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,body:e,enqueuedAt:new Date().toISOString(),attempt:0,dedupKey:t};return n.set(a.id,a),a},async lease(e){let t=Math.max(1,Math.floor(e?.max??1)),a=Math.max(1,Math.floor(e?.visibilityMs??6e4)),i=Date.now();for(let o of n.values())o.leaseExpiresAt&&Date.parse(o.leaseExpiresAt)<=i&&(delete o.leaseToken,delete o.leaseExpiresAt);let s=[];for(let o of n.values()){if(s.length>=t)break;o.leaseToken||(o.attempt+=1,o.leaseToken=globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,o.leaseExpiresAt=new Date(Date.now()+a).toISOString(),s.push({id:o.id,body:o.body,enqueuedAt:o.enqueuedAt,attempt:o.attempt,leaseToken:o.leaseToken,leaseExpiresAt:o.leaseExpiresAt}));}return s},async ack(e,t){let a=n.get(e);return !a||a.leaseToken!==t?false:(n.delete(e),true)},async nack(e,t,a){let i=n.get(e);return !i||i.leaseToken!==t?false:(delete i.leaseToken,delete i.leaseExpiresAt,a?.dead&&(n.delete(e),r.set(e,{...i,reason:a.reason})),true)},async peekActive(e=""){return Array.from(n.values()).filter(t=>!t.leaseToken).filter(t=>!e||t.id.startsWith(e)).map(t=>({id:t.id,body:t.body,enqueuedAt:t.enqueuedAt,attempt:t.attempt}))},async peekDeadLetter(e=""){return Array.from(r.values()).filter(t=>!e||t.id.startsWith(e)).map(t=>({id:t.id,body:t.body,enqueuedAt:t.enqueuedAt,attempt:t.attempt,reason:t.reason}))}}}function B(n){let r=e(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async delete(e){r.delete(e);},async listKeys(e){return r.listKeys(e)}}}function L(n){let r=b(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async exists(e){return r.exists(e)},async remove(e){r.remove(e);},async readBytes(e){return r.readBytes?.(e)??null},async writeBytes(e,t){await r.writeBytes?.(e,t);},async listKeys(e){return r.listKeys(e)},async stat(e){return r.stat?.(e)??null}}}function k(n){let r=c$1(n);return {async read(e){return r.read(e)},async write(e,t){r.write(e,t);},async exists(e){return r.exists(e)},async remove(e){r.remove(e);},async readBytes(e){return r.readBytes?.(e)??null},async writeBytes(e,t){await r.writeBytes?.(e,t);},async listKeys(e){return r.listKeys(e)},async stat(e){return r.stat?.(e)??null},async getUniqueKey(e,t){return r.getUniqueKey(e,t)},async create(e,t,a){return r.create(e,t,a)},keyRef(e){return r.keyRef(e)},config:{async get(e){return r.config.get(e)},async set(e,t){r.config.set(e,t);}}}}function K(n){let r=f(n);function e(t){return {id:t.id,payload:t.event}}return {async append(t){let a={id:r.generateId(),event:t};return r.appendEntry(a),e(a)},async readAll(){return r.readAllEntries().map(e)},async readAfter(t){let a=r.readAllEntries().map(e);if(!t)return {entries:a,newCursor:a.length>0?a[a.length-1].id:null};let i=a.findIndex(o=>o.id===t),s=i===-1?a:a.slice(i+1);return {entries:s,newCursor:s.length>0?s[s.length-1].id:t}}}}function x(n){let r=d(n);return {stream(e){let t=r.stream(e);return {async append(a){return t.append(a)},async readAll(){return t.readAll()},async readAfter(a){return t.readAfter(a)},async clear(){t.clear?.();}}},blob(e){let t=r.blob(e);return {async read(a){return t.read(a)},async write(a,i){t.write(a,i);},async exists(a){return t.exists(a)},async remove(a){t.remove(a);},async readBytes(a){return t.readBytes?.(a)??null},async writeBytes(a,i){await t.writeBytes?.(a,i);},async listKeys(a){return t.listKeys(a)},async stat(a){return t.stat?.(a)??null}}},async listStreams(e){return r.listStreams(e)},async listBlobs(e){return r.listBlobs(e)},config:{async get(e){return r.config.get(e)},async set(e,t){r.config.set(e,t);}}}}function $(n){return String(n||"").trim()}function T(n){return {kind:"local-storage",value:$(n)}}function c(n){return a(T(n))}function q(n){let r=`boards:${n}`;return {baseRef:T(r),cardStoreRef:c(`${r}:cards`),outputsStoreRef:c(`${r}:runtime-out`),scratchStoreRef:c(`${r}:scratch`),archiveStoreRef:c(`${r}:archive`),chatStoreRef:c(`${r}:chat`),artifactsStoreRef:c(`${r}:files`)}}function g(n,r){try{let e=b$1(n);if(e?.kind==="local-storage"&&e.value)return $(e.value)}catch{}return r}function D(n,r={}){let e=q(n),t=y(),a$2=y(),i$1=y();return i({boardId:n,kvStorage(s){return B(`${e.baseRef.value}:${s||"root"}`)},kvStorageForRef(s){return B(g(s,`${e.baseRef.value}:root`))},blobStorage(s){return L(s?`${e.baseRef.value}:${s}`:e.baseRef.value)},scratchStorage(){return k(`${e.baseRef.value}:scratch`)},scratchStorageForRef(s){return k(g(s,`${e.baseRef.value}:scratch`))},archiveFactory(){return x(`${e.baseRef.value}:archive`)},archiveFactoryForRef(s){return x(g(s,`${e.baseRef.value}:archive`))},journalStorage(){return K(`${e.baseRef.value}:journal`)},queueStorage:t,chatAgentQueueStorage:a$2,processAccumulatedQueueStorage:i$1,lock:E(),resolveBlob:async s=>{let o=s?.kind==="local-storage"?s:null;if(!o?.value)throw new Error(`Unsupported localStorage ref: ${a(s)}`);let f=b(o.value),l=await Promise.resolve(f.read(""));if(l===null)throw new Error(`Blob not found: ${a(s)}`);try{let p=JSON.parse(l);if(p?.__kind==="bytes-b64"&&typeof p.data=="string"){let S=await Promise.resolve(f.readBytes?.(""));if(S)return new TextDecoder().decode(S)}}catch{}return l},hashFn:a$1,genId:()=>(globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2,10)}`).replace(/-/g,""),requestProcessAccumulated:r.requestProcessAccumulated,publishBoardChangeNotifications:r.publishBoardChangeNotifications,onWarn:s=>console.warn(`[localstorage-board-adapter:${n}] ${s}`)})}function U(n,r={}){return {refs:{...q(n),...r.refs??{}},boardAdapter:D(n,r)}}export{D as createLocalStorageBoardAdapter,q as createLocalStorageBoardRefs,U as createLocalStorageBoardRuntimeBundle,T as makeLocalStorageRef,c as serializeLocalStorageRef};//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BoardLiveCardsMcp } from './board-live-cards-mcp.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* server-runtime/mcp-tool-registries.ts
|
|
5
|
+
*
|
|
6
|
+
* Builds the two MCP tool dispatch tables: the per-board tool registry
|
|
7
|
+
* (wraps facade entry-points) and the controlplane registry (wraps the
|
|
8
|
+
* cross-board control handlers + admin facade calls). Pure-mechanical
|
|
9
|
+
* dispatch — argument parsing lives in ./mcp-args.ts, transport in
|
|
10
|
+
* ./mcp-invoker.ts.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
type ToolHandler = (args: Record<string, unknown>) => unknown | Promise<unknown>;
|
|
14
|
+
type ToolRegistry = Record<string, ToolHandler>;
|
|
15
|
+
/** Subset of the per-board MCP facade consumed by the tool registry. */
|
|
16
|
+
type McpFacadeForRegistry = BoardLiveCardsMcp;
|
|
17
|
+
type McpWebhookFacadeForRegistry = Pick<BoardLiveCardsMcp, 'webhookProcessAccumulated' | 'webhookSourceFetchDone' | 'webhookSourceFetchFailed'>;
|
|
18
|
+
declare function createMcpToolRegistry(mcp: McpFacadeForRegistry): ToolRegistry;
|
|
19
|
+
declare function createMcpWebhookToolRegistry(mcp: McpWebhookFacadeForRegistry): ToolRegistry;
|
|
20
|
+
/** Per-board upload entry point as exposed by createCardFileOps. */
|
|
21
|
+
type UploadCardFile = (cardId: string, fileName: string, contentType: string, bytes: Uint8Array, opts?: {
|
|
22
|
+
inChat?: boolean;
|
|
23
|
+
}) => unknown | Promise<unknown>;
|
|
24
|
+
interface McpControlplaneRegistryDeps {
|
|
25
|
+
boardId: string;
|
|
26
|
+
uploadCardFile: UploadCardFile;
|
|
27
|
+
/** Resolves the (lazy) per-board MCP facade for admin tool dispatch. */
|
|
28
|
+
getMcpFacade: () => Pick<McpFacadeForRegistry, 'listRuntimeCards' | 'adminReadCard' | 'adminUpsertCard' | 'manageAddChatAttachment' | 'manageAddChatEntryAndAnyAttachments' | 'managePatchCard' | 'manageRemoveCard' | 'manageUpsertCard'>;
|
|
29
|
+
controlplane: {
|
|
30
|
+
getChatProcessing: (args: Record<string, unknown>) => unknown;
|
|
31
|
+
setChatProcessing: (args: Record<string, unknown>, active: boolean) => unknown;
|
|
32
|
+
getCardMeta: (args: Record<string, unknown>) => unknown;
|
|
33
|
+
setCardMeta: (args: Record<string, unknown>) => unknown;
|
|
34
|
+
requireCardArgs: (args: Record<string, unknown>) => {
|
|
35
|
+
cardId: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare function createMcpControlplaneToolRegistry(deps: McpControlplaneRegistryDeps): ToolRegistry;
|
|
40
|
+
|
|
41
|
+
export { type McpControlplaneRegistryDeps as M, type ToolRegistry as T, type McpFacadeForRegistry as a, type McpWebhookFacadeForRegistry as b, createMcpControlplaneToolRegistry as c, createMcpToolRegistry as d, createMcpWebhookToolRegistry as e };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BoardLiveCardsMcp } from './board-live-cards-mcp.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* server-runtime/mcp-tool-registries.ts
|
|
5
|
+
*
|
|
6
|
+
* Builds the two MCP tool dispatch tables: the per-board tool registry
|
|
7
|
+
* (wraps facade entry-points) and the controlplane registry (wraps the
|
|
8
|
+
* cross-board control handlers + admin facade calls). Pure-mechanical
|
|
9
|
+
* dispatch — argument parsing lives in ./mcp-args.ts, transport in
|
|
10
|
+
* ./mcp-invoker.ts.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
type ToolHandler = (args: Record<string, unknown>) => unknown | Promise<unknown>;
|
|
14
|
+
type ToolRegistry = Record<string, ToolHandler>;
|
|
15
|
+
/** Subset of the per-board MCP facade consumed by the tool registry. */
|
|
16
|
+
type McpFacadeForRegistry = BoardLiveCardsMcp;
|
|
17
|
+
type McpWebhookFacadeForRegistry = Pick<BoardLiveCardsMcp, 'webhookProcessAccumulated' | 'webhookSourceFetchDone' | 'webhookSourceFetchFailed'>;
|
|
18
|
+
declare function createMcpToolRegistry(mcp: McpFacadeForRegistry): ToolRegistry;
|
|
19
|
+
declare function createMcpWebhookToolRegistry(mcp: McpWebhookFacadeForRegistry): ToolRegistry;
|
|
20
|
+
/** Per-board upload entry point as exposed by createCardFileOps. */
|
|
21
|
+
type UploadCardFile = (cardId: string, fileName: string, contentType: string, bytes: Uint8Array, opts?: {
|
|
22
|
+
inChat?: boolean;
|
|
23
|
+
}) => unknown | Promise<unknown>;
|
|
24
|
+
interface McpControlplaneRegistryDeps {
|
|
25
|
+
boardId: string;
|
|
26
|
+
uploadCardFile: UploadCardFile;
|
|
27
|
+
/** Resolves the (lazy) per-board MCP facade for admin tool dispatch. */
|
|
28
|
+
getMcpFacade: () => Pick<McpFacadeForRegistry, 'listRuntimeCards' | 'adminReadCard' | 'adminUpsertCard' | 'manageAddChatAttachment' | 'manageAddChatEntryAndAnyAttachments' | 'managePatchCard' | 'manageRemoveCard' | 'manageUpsertCard'>;
|
|
29
|
+
controlplane: {
|
|
30
|
+
getChatProcessing: (args: Record<string, unknown>) => unknown;
|
|
31
|
+
setChatProcessing: (args: Record<string, unknown>, active: boolean) => unknown;
|
|
32
|
+
getCardMeta: (args: Record<string, unknown>) => unknown;
|
|
33
|
+
setCardMeta: (args: Record<string, unknown>) => unknown;
|
|
34
|
+
requireCardArgs: (args: Record<string, unknown>) => {
|
|
35
|
+
cardId: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
declare function createMcpControlplaneToolRegistry(deps: McpControlplaneRegistryDeps): ToolRegistry;
|
|
40
|
+
|
|
41
|
+
export { type McpControlplaneRegistryDeps as M, type ToolRegistry as T, type McpFacadeForRegistry as a, type McpWebhookFacadeForRegistry as b, createMcpControlplaneToolRegistry as c, createMcpToolRegistry as d, createMcpWebhookToolRegistry as e };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type QueueLaneAwaitable<T> = T | Promise<T>;
|
|
2
|
+
interface QueueLaneLease<TMessage = unknown> {
|
|
3
|
+
id: string;
|
|
4
|
+
attempt: number;
|
|
5
|
+
message: TMessage;
|
|
6
|
+
ack(): QueueLaneAwaitable<boolean>;
|
|
7
|
+
nack(opts?: {
|
|
8
|
+
dead?: boolean;
|
|
9
|
+
reason?: string;
|
|
10
|
+
}): QueueLaneAwaitable<boolean>;
|
|
11
|
+
}
|
|
12
|
+
interface QueueLaneDescriptor<TMessage = unknown> {
|
|
13
|
+
id: string;
|
|
14
|
+
pollIntervalMs?: number;
|
|
15
|
+
visibilityMs?: number;
|
|
16
|
+
concurrency?: number;
|
|
17
|
+
maxAttempts?: number;
|
|
18
|
+
lease(opts?: {
|
|
19
|
+
max?: number;
|
|
20
|
+
visibilityMs?: number;
|
|
21
|
+
}): QueueLaneAwaitable<QueueLaneLease<TMessage>[]>;
|
|
22
|
+
handle(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
|
|
23
|
+
onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
|
|
24
|
+
}
|
|
25
|
+
interface QueueLaneRegistry {
|
|
26
|
+
lanes: QueueLaneDescriptor[];
|
|
27
|
+
}
|
|
28
|
+
declare function createQueueLaneRegistry(lanes: QueueLaneDescriptor[]): QueueLaneRegistry;
|
|
29
|
+
|
|
30
|
+
export { type QueueLaneLease as Q, type QueueLaneDescriptor as a, type QueueLaneRegistry as b, createQueueLaneRegistry as c };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type QueueLaneAwaitable<T> = T | Promise<T>;
|
|
2
|
+
interface QueueLaneLease<TMessage = unknown> {
|
|
3
|
+
id: string;
|
|
4
|
+
attempt: number;
|
|
5
|
+
message: TMessage;
|
|
6
|
+
ack(): QueueLaneAwaitable<boolean>;
|
|
7
|
+
nack(opts?: {
|
|
8
|
+
dead?: boolean;
|
|
9
|
+
reason?: string;
|
|
10
|
+
}): QueueLaneAwaitable<boolean>;
|
|
11
|
+
}
|
|
12
|
+
interface QueueLaneDescriptor<TMessage = unknown> {
|
|
13
|
+
id: string;
|
|
14
|
+
pollIntervalMs?: number;
|
|
15
|
+
visibilityMs?: number;
|
|
16
|
+
concurrency?: number;
|
|
17
|
+
maxAttempts?: number;
|
|
18
|
+
lease(opts?: {
|
|
19
|
+
max?: number;
|
|
20
|
+
visibilityMs?: number;
|
|
21
|
+
}): QueueLaneAwaitable<QueueLaneLease<TMessage>[]>;
|
|
22
|
+
handle(message: TMessage, lease: QueueLaneLease<TMessage>): Promise<void>;
|
|
23
|
+
onError?: (error: unknown, lease: QueueLaneLease<TMessage>) => void;
|
|
24
|
+
}
|
|
25
|
+
interface QueueLaneRegistry {
|
|
26
|
+
lanes: QueueLaneDescriptor[];
|
|
27
|
+
}
|
|
28
|
+
declare function createQueueLaneRegistry(lanes: QueueLaneDescriptor[]): QueueLaneRegistry;
|
|
29
|
+
|
|
30
|
+
export { type QueueLaneLease as Q, type QueueLaneDescriptor as a, type QueueLaneRegistry as b, createQueueLaneRegistry as c };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkCPAXTVBQ_cjs=require('../chunk-CPAXTVBQ.cjs');require('../chunk-GL2OHR2E.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createHostedBoardQueueLaneRegistry",{enumerable:true,get:function(){return chunkCPAXTVBQ_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { f as BoardWorkerRequest } from '../board-live-cards-public-LlVUQPL2.cjs';
|
|
2
|
+
import { b as QueueLaneRegistry } from '../queue-lane-registry-PaZuFpwp.cjs';
|
|
3
|
+
import { b as SingleBoardRuntime, d as BoardRuntimePlatformAdapter, R as RuntimeLogger } from '../types-Ba8H5_Wo.cjs';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.cjs';
|
|
5
|
+
import '../execution-refs.cjs';
|
|
6
|
+
import '../types-BBhqYGhE.cjs';
|
|
7
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
8
|
+
import '../board-platform-adapter-async-BfHmHdx2.cjs';
|
|
9
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
10
|
+
import '../board-live-cards-public-async-Di9QB141.cjs';
|
|
11
|
+
import '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
12
|
+
|
|
13
|
+
interface HostedBoardQueueLaneRegistryOptions {
|
|
14
|
+
boardId: string;
|
|
15
|
+
runtime: Pick<SingleBoardRuntime, 'processAccumulatedLane' | 'handleChatAgentRequest' | 'queueLaneTuning'>;
|
|
16
|
+
boardAdapter: BoardRuntimePlatformAdapter;
|
|
17
|
+
logger?: RuntimeLogger;
|
|
18
|
+
executeTaskExecutorRequest?: (args: Record<string, unknown>, request: BoardWorkerRequest) => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRegistryOptions): QueueLaneRegistry;
|
|
21
|
+
|
|
22
|
+
export { type HostedBoardQueueLaneRegistryOptions, createHostedBoardQueueLaneRegistry };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { f as BoardWorkerRequest } from '../board-live-cards-public-JNRKfBZy.js';
|
|
2
|
+
import { b as QueueLaneRegistry } from '../queue-lane-registry-PaZuFpwp.js';
|
|
3
|
+
import { b as SingleBoardRuntime, d as BoardRuntimePlatformAdapter, R as RuntimeLogger } from '../types-SO5OZm4s.js';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.js';
|
|
5
|
+
import '../execution-refs.js';
|
|
6
|
+
import '../types-BBhqYGhE.js';
|
|
7
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
8
|
+
import '../board-platform-adapter-async-DYahVzIK.js';
|
|
9
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
10
|
+
import '../board-live-cards-public-async-fwd1QI82.js';
|
|
11
|
+
import '../chat-storage-lib-DB9iSai2.js';
|
|
12
|
+
|
|
13
|
+
interface HostedBoardQueueLaneRegistryOptions {
|
|
14
|
+
boardId: string;
|
|
15
|
+
runtime: Pick<SingleBoardRuntime, 'processAccumulatedLane' | 'handleChatAgentRequest' | 'queueLaneTuning'>;
|
|
16
|
+
boardAdapter: BoardRuntimePlatformAdapter;
|
|
17
|
+
logger?: RuntimeLogger;
|
|
18
|
+
executeTaskExecutorRequest?: (args: Record<string, unknown>, request: BoardWorkerRequest) => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRegistryOptions): QueueLaneRegistry;
|
|
21
|
+
|
|
22
|
+
export { type HostedBoardQueueLaneRegistryOptions, createHostedBoardQueueLaneRegistry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkASR44K7H_cjs=require('../chunk-ASR44K7H.cjs');require('../chunk-EZENHAVZ.cjs'),require('../chunk-7FGPOGRV.cjs'),require('../chunk-LPXVVMQT.cjs'),require('../chunk-7ICPAABP.cjs'),require('../chunk-KAWQPLIE.cjs'),require('../chunk-NM6O35RY.cjs'),require('../chunk-272IYUKT.cjs');var chunkCPAXTVBQ_cjs=require('../chunk-CPAXTVBQ.cjs');require('../chunk-NJJ7WEDT.cjs'),require('../chunk-GL2OHR2E.cjs'),require('../chunk-J6EGN6S4.cjs'),require('../chunk-PBCDDO4V.cjs'),require('../chunk-JJL5VOQZ.cjs'),require('../chunk-U2N6MCD5.cjs'),require('../chunk-SFVO2LB2.cjs'),require('../chunk-G4XXRHL2.cjs'),require('../chunk-LODXIALE.cjs'),require('../chunk-PBOQ4HYB.cjs'),require('../chunk-IXZG74EW.cjs'),require('../chunk-HWYMZK3N.cjs'),require('../chunk-UJ7ZTV4J.cjs'),require('../chunk-YMEIPKLW.cjs'),require('../chunk-GYQXDNNI.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createMultiBoardServerRuntime",{enumerable:true,get:function(){return chunkASR44K7H_cjs.b}});Object.defineProperty(exports,"createSingleBoardServerRuntime",{enumerable:true,get:function(){return chunkASR44K7H_cjs.a}});Object.defineProperty(exports,"createHostedBoardQueueLaneRegistry",{enumerable:true,get:function(){return chunkCPAXTVBQ_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as Awaitable,
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export { A as
|
|
1
|
+
import { M as MultiBoardRuntimeOptions, a as MultiBoardRuntime, S as SingleBoardRuntimeOptions, b as SingleBoardRuntime } from '../types-Ba8H5_Wo.cjs';
|
|
2
|
+
export { A as Awaitable, B as BoardContextConfig, c as BoardRuntimeNonCorePublic, d as BoardRuntimePlatformAdapter, e as BoardRuntimePublic, C as ChatHandlerFlowRunner, D as DescribeEnvelope, H as HostedBoardQueueLaneTuning, I as InvocationAdapter, N as NotificationTransport, Q as QueueLaneRuntimeTuning, R as RuntimeLogger, f as RuntimeRequest, g as RuntimeResponse } from '../types-Ba8H5_Wo.cjs';
|
|
3
|
+
export { HostedBoardQueueLaneRegistryOptions, createHostedBoardQueueLaneRegistry } from '../server-jobs-queue-runner/index.cjs';
|
|
4
|
+
export { A as AsyncBoardLiveCardsPublic } from '../board-live-cards-public-async-Di9QB141.cjs';
|
|
5
|
+
export { A as AsyncBoardPlatformAdapter } from '../board-platform-adapter-async-BfHmHdx2.cjs';
|
|
6
6
|
export { B as BlobStorage, K as KVStorage, a as KindValueRef } from '../storage-interface-BFiD3kyB.cjs';
|
|
7
|
-
export { c as
|
|
7
|
+
export { B as BoardChangeNotification, c as BoardLiveCardsPublic, d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter, f as BoardWorkerRequest, C as CommandInput, a as CommandResult } from '../board-live-cards-public-LlVUQPL2.cjs';
|
|
8
|
+
export { C as ChatStorage } from '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
8
9
|
export { ExecutionRef } from '../execution-refs.cjs';
|
|
9
|
-
import '../artifacts-store-lib-
|
|
10
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
11
|
+
import '../queue-lane-registry-PaZuFpwp.cjs';
|
|
12
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
10
13
|
import '../types-BBhqYGhE.cjs';
|
|
11
14
|
|
|
12
|
-
interface HostedBoardQueueLaneRegistryOptions {
|
|
13
|
-
boardId: string;
|
|
14
|
-
runtime: Pick<SingleBoardRuntime, 'processAccumulatedLane' | 'handleChatAgentRequest' | 'queueLaneTuning'>;
|
|
15
|
-
boardAdapter: BoardRuntimePlatformAdapter;
|
|
16
|
-
logger?: RuntimeLogger;
|
|
17
|
-
executeTaskExecutorRequest?: (args: Record<string, unknown>, request: BoardWorkerRequest) => Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRegistryOptions): QueueLaneRegistry;
|
|
20
|
-
|
|
21
15
|
/**
|
|
22
16
|
* server-runtime/index.ts
|
|
23
17
|
*
|
|
@@ -41,4 +35,4 @@ declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRe
|
|
|
41
35
|
declare function createSingleBoardServerRuntime(options: SingleBoardRuntimeOptions): SingleBoardRuntime;
|
|
42
36
|
declare function createMultiBoardServerRuntime(options: MultiBoardRuntimeOptions): MultiBoardRuntime;
|
|
43
37
|
|
|
44
|
-
export {
|
|
38
|
+
export { MultiBoardRuntime, MultiBoardRuntimeOptions, SingleBoardRuntime, SingleBoardRuntimeOptions, createMultiBoardServerRuntime, createSingleBoardServerRuntime };
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as Awaitable,
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export { A as
|
|
1
|
+
import { M as MultiBoardRuntimeOptions, a as MultiBoardRuntime, S as SingleBoardRuntimeOptions, b as SingleBoardRuntime } from '../types-SO5OZm4s.js';
|
|
2
|
+
export { A as Awaitable, B as BoardContextConfig, c as BoardRuntimeNonCorePublic, d as BoardRuntimePlatformAdapter, e as BoardRuntimePublic, C as ChatHandlerFlowRunner, D as DescribeEnvelope, H as HostedBoardQueueLaneTuning, I as InvocationAdapter, N as NotificationTransport, Q as QueueLaneRuntimeTuning, R as RuntimeLogger, f as RuntimeRequest, g as RuntimeResponse } from '../types-SO5OZm4s.js';
|
|
3
|
+
export { HostedBoardQueueLaneRegistryOptions, createHostedBoardQueueLaneRegistry } from '../server-jobs-queue-runner/index.js';
|
|
4
|
+
export { A as AsyncBoardLiveCardsPublic } from '../board-live-cards-public-async-fwd1QI82.js';
|
|
5
|
+
export { A as AsyncBoardPlatformAdapter } from '../board-platform-adapter-async-DYahVzIK.js';
|
|
6
6
|
export { B as BlobStorage, K as KVStorage, a as KindValueRef } from '../storage-interface-BFiD3kyB.js';
|
|
7
|
-
export { c as
|
|
7
|
+
export { B as BoardChangeNotification, c as BoardLiveCardsPublic, d as BoardNonCorePlatformAdapter, e as BoardPlatformAdapter, f as BoardWorkerRequest, C as CommandInput, a as CommandResult } from '../board-live-cards-public-JNRKfBZy.js';
|
|
8
|
+
export { C as ChatStorage } from '../chat-storage-lib-DB9iSai2.js';
|
|
8
9
|
export { ExecutionRef } from '../execution-refs.js';
|
|
9
|
-
import '../artifacts-store-lib-
|
|
10
|
+
import '../artifacts-store-lib-DSSMqVL2.js';
|
|
11
|
+
import '../queue-lane-registry-PaZuFpwp.js';
|
|
12
|
+
import '../storage-async-interface-DhlOVPSp.js';
|
|
10
13
|
import '../types-BBhqYGhE.js';
|
|
11
14
|
|
|
12
|
-
interface HostedBoardQueueLaneRegistryOptions {
|
|
13
|
-
boardId: string;
|
|
14
|
-
runtime: Pick<SingleBoardRuntime, 'processAccumulatedLane' | 'handleChatAgentRequest' | 'queueLaneTuning'>;
|
|
15
|
-
boardAdapter: BoardRuntimePlatformAdapter;
|
|
16
|
-
logger?: RuntimeLogger;
|
|
17
|
-
executeTaskExecutorRequest?: (args: Record<string, unknown>, request: BoardWorkerRequest) => Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRegistryOptions): QueueLaneRegistry;
|
|
20
|
-
|
|
21
15
|
/**
|
|
22
16
|
* server-runtime/index.ts
|
|
23
17
|
*
|
|
@@ -41,4 +35,4 @@ declare function createHostedBoardQueueLaneRegistry(opts: HostedBoardQueueLaneRe
|
|
|
41
35
|
declare function createSingleBoardServerRuntime(options: SingleBoardRuntimeOptions): SingleBoardRuntime;
|
|
42
36
|
declare function createMultiBoardServerRuntime(options: MultiBoardRuntimeOptions): MultiBoardRuntime;
|
|
43
37
|
|
|
44
|
-
export {
|
|
38
|
+
export { MultiBoardRuntime, MultiBoardRuntimeOptions, SingleBoardRuntime, SingleBoardRuntimeOptions, createMultiBoardServerRuntime, createSingleBoardServerRuntime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b as createMultiBoardServerRuntime,a as createSingleBoardServerRuntime}from'../chunk-76C7N4YT.js';import'../chunk-QJVR3FWQ.js';import'../chunk-NTICU4OK.js';import'../chunk-O7NOHKVR.js';import'../chunk-WHDEBJLT.js';import'../chunk-SGV7PU4H.js';import'../chunk-XYN5D3GL.js';import'../chunk-ZJ5M5COT.js';export{a as createHostedBoardQueueLaneRegistry}from'../chunk-YGALANRO.js';import'../chunk-6APH25VI.js';import'../chunk-VXJHBWK3.js';import'../chunk-PRKRXAVN.js';import'../chunk-HEEDJEKM.js';import'../chunk-JH37NJGP.js';import'../chunk-XQRNDX4Q.js';import'../chunk-BQS3EIEK.js';import'../chunk-VGT3TRQG.js';import'../chunk-WDPOGXTY.js';import'../chunk-ZCNN6XPV.js';import'../chunk-JMDHDY6M.js';import'../chunk-3KC6LBOG.js';import'../chunk-MNEOJWPS.js';import'../chunk-KBELAKIY.js';import'../chunk-76ON3V7R.js';import'../chunk-FW4363Y4.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk7FGPOGRV_cjs=require('../chunk-7FGPOGRV.cjs');require('../chunk-LPXVVMQT.cjs'),require('../chunk-272IYUKT.cjs'),require('../chunk-GNFE24S7.cjs');Object.defineProperty(exports,"createRoutesAgentface",{enumerable:true,get:function(){return chunk7FGPOGRV_cjs.a}});//# sourceMappingURL=index.cjs.map
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { f as RuntimeRequest, g as RuntimeResponse } from '../types-Ba8H5_Wo.cjs';
|
|
2
|
+
import { T as ToolRegistry } from '../mcp-tool-registries-W3TRj6O5.cjs';
|
|
3
|
+
import '../artifacts-store-lib-D9nMkVcE.cjs';
|
|
4
|
+
import '../storage-interface-BFiD3kyB.cjs';
|
|
5
|
+
import '../board-live-cards-public-LlVUQPL2.cjs';
|
|
6
|
+
import '../execution-refs.cjs';
|
|
7
|
+
import '../types-BBhqYGhE.cjs';
|
|
8
|
+
import '../board-platform-adapter-async-BfHmHdx2.cjs';
|
|
9
|
+
import '../storage-async-interface-BRR4eBjx.cjs';
|
|
10
|
+
import '../board-live-cards-public-async-Di9QB141.cjs';
|
|
11
|
+
import '../chat-storage-lib-B9Q34Dyv.cjs';
|
|
12
|
+
import '../board-live-cards-mcp.cjs';
|
|
13
|
+
import '../chat-store-public.cjs';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* server-runtime/routes-agentface.ts
|
|
17
|
+
*
|
|
18
|
+
* Agent-facing MCP routes extracted from createSingleBoardServerRuntime.
|
|
19
|
+
* POST /mcp — general MCP tool dispatch (read-only, stateless)
|
|
20
|
+
* POST /mcp-raw — raw file-content streaming (inspect.file-contents only)
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
interface McpFacadeLike {
|
|
24
|
+
inspectFileContents: (args: {
|
|
25
|
+
cardId: string;
|
|
26
|
+
fileIdx: number;
|
|
27
|
+
}) => unknown;
|
|
28
|
+
}
|
|
29
|
+
interface CardFileRecord {
|
|
30
|
+
name?: unknown;
|
|
31
|
+
stored_name?: unknown;
|
|
32
|
+
mime_type?: unknown;
|
|
33
|
+
}
|
|
34
|
+
interface RoutesAgentfaceDeps {
|
|
35
|
+
apiBasePath: string;
|
|
36
|
+
json: (res: RuntimeResponse, status: number, payload: unknown) => void;
|
|
37
|
+
readJsonBody: (req: RuntimeRequest) => Promise<Record<string, unknown>>;
|
|
38
|
+
bootstrapBoard: () => Promise<void>;
|
|
39
|
+
createMcpFacade: () => McpFacadeLike;
|
|
40
|
+
createMcpToolRegistry: (mcp: McpFacadeLike) => ToolRegistry;
|
|
41
|
+
resolveCardFileDownloadPayload: (cardId: string, idx: number, expectedStoredName: string | null) => Promise<{
|
|
42
|
+
fileRecord: CardFileRecord;
|
|
43
|
+
bytes: Uint8Array;
|
|
44
|
+
}>;
|
|
45
|
+
isLikelyTextMimeType: (mimeType: string) => boolean;
|
|
46
|
+
sliceTextByLines: (text: string, mode: 'head' | 'tail', count: number) => string;
|
|
47
|
+
}
|
|
48
|
+
interface RoutesAgentface {
|
|
49
|
+
handleAgentfaceApi: (req: RuntimeRequest, res: RuntimeResponse, parsedUrl: URL) => Promise<boolean>;
|
|
50
|
+
}
|
|
51
|
+
declare function createRoutesAgentface(deps: RoutesAgentfaceDeps): RoutesAgentface;
|
|
52
|
+
|
|
53
|
+
export { type RoutesAgentface, type RoutesAgentfaceDeps, createRoutesAgentface };
|