yaml-flow 8.2.5 → 8.4.0
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 +3 -3
- package/browser/board-livecards-client.js +1 -1
- package/browser/board-livecards-localstorage.js +6 -4
- package/browser/live-cards.js +19 -25
- package/cli/{board-live-cards-lib-Iq_XAC09.d.ts → board-live-cards-lib-tjYsPt5U.d.ts} +1 -1
- package/cli/browser-api/board-live-cards-browser-adapter.d.ts +3 -3
- package/cli/browser-api/board-live-cards-browser-adapter.js +3 -2
- package/cli/browser-api/card-store-browser-api.d.ts +1 -1
- package/cli/browser-api/card-store-browser-api.js +1 -1
- package/cli/{execution-interface-ftO1W7Po.d.ts → execution-interface-DCFBy4L8.d.ts} +151 -2
- package/cli/node/artifacts-store-cli.js +5 -5
- package/cli/node/batch-runner-cli.d.ts +3 -0
- package/cli/node/batch-runner-cli.js +2 -1
- package/cli/node/board-live-cards-cli.js +14 -8
- package/cli/node/card-store-cli.js +6 -6
- package/cli/node/chat-store-cli.d.ts +23 -0
- package/cli/node/chat-store-cli.js +8 -0
- package/cli/node/execution-adapter.d.ts +4 -2
- package/cli/node/execution-adapter.js +2 -2
- package/cli/node/fs-board-adapter.d.ts +75 -75
- package/cli/node/fs-board-adapter.js +14 -10
- package/cli/node/source-cli-task-executor.js +4 -4
- package/cli/node/step-machine-cli.js +3 -3
- package/cli/{types--rXGWbSR.d.ts → types-Dc2VRMUw.d.ts} +27 -124
- package/examples/board/demo-shell-with-server.html +3 -196
- package/examples/board/doc.html +465 -0
- package/examples/board/server/board-server.js +30 -82
- package/examples/board/server/board-worker/source_def_flows.json +2 -2
- package/examples/board/server/chat-flow/copilot-chat/assistant.js +44 -185
- package/examples/board/server/chat-flow/copilot-chat/copilot_wrapper.bat +157 -0
- package/examples/board/server/chat-flow/copilot-chat/copilot_wrapper_helper.ps1 +190 -0
- package/examples/board/server/chat-flow/flow-steps.json +122 -56
- package/examples/board/test/server-http-test.js +252 -220
- package/examples/board-local/demo-shell-localstorage.html +3 -3
- package/lib/{artifacts-store-lib-public-GD4H-fFp.d.ts → artifacts-store-lib-454TAuov.d.ts} +2 -32
- package/lib/{artifacts-store-lib-public-C5UL5tyG.d.cts → artifacts-store-lib-zsGFbBV8.d.cts} +2 -32
- package/lib/artifacts-store-public.d.cts +34 -3
- package/lib/artifacts-store-public.d.ts +34 -3
- package/lib/board-live-cards-node.cjs +14 -10
- package/lib/board-live-cards-node.d.cts +42 -21
- package/lib/board-live-cards-node.d.ts +42 -21
- package/lib/board-live-cards-node.js +14 -10
- package/lib/{board-live-cards-public-BLXbcBNk.d.cts → board-live-cards-public-BM6jCEIa.d.cts} +25 -5
- package/lib/{board-live-cards-public-BZaNb2mi.d.ts → board-live-cards-public-Bz07XKRK.d.ts} +25 -5
- package/lib/board-live-cards-public.cjs +2 -2
- package/lib/board-live-cards-public.d.cts +2 -2
- package/lib/board-live-cards-public.d.ts +2 -2
- package/lib/board-live-cards-public.js +2 -2
- package/lib/board-live-cards-server-runtime.cjs +4 -4
- package/lib/board-live-cards-server-runtime.d.cts +5 -3
- package/lib/board-live-cards-server-runtime.d.ts +5 -3
- package/lib/board-live-cards-server-runtime.js +4 -4
- package/lib/board-worker-adapter.cjs +2 -2
- package/lib/board-worker-adapter.js +2 -2
- package/lib/card-store-public.d.cts +2 -2
- package/lib/card-store-public.d.ts +2 -2
- package/lib/chat-storage-lib-DGaKrjVe.d.ts +53 -0
- package/lib/chat-storage-lib-OX0Q_Ttf.d.cts +53 -0
- package/lib/chat-store-public.cjs +2 -0
- package/lib/chat-store-public.d.cts +128 -0
- package/lib/chat-store-public.d.ts +128 -0
- package/lib/chat-store-public.js +2 -0
- package/lib/execution-refs.cjs +1 -1
- package/lib/execution-refs.d.cts +10 -1
- package/lib/execution-refs.d.ts +10 -1
- package/lib/execution-refs.js +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/server-runtime/index.cjs +4 -4
- package/lib/server-runtime/index.d.cts +6 -4
- package/lib/server-runtime/index.d.ts +6 -4
- package/lib/server-runtime/index.js +4 -4
- package/lib/step-machine-public/index.cjs +3 -3
- package/lib/step-machine-public/index.d.cts +1 -1
- package/lib/step-machine-public/index.d.ts +1 -1
- package/lib/step-machine-public/index.js +3 -3
- package/lib/{storage-interface-B6ecOulj.d.ts → storage-interface-B-7pDHwD.d.cts} +36 -1
- package/lib/{storage-interface-B6ecOulj.d.cts → storage-interface-B-7pDHwD.d.ts} +36 -1
- package/lib/stores/index.d.cts +1 -1
- package/lib/stores/index.d.ts +1 -1
- package/lib/stores/kv.d.cts +1 -1
- package/lib/stores/kv.d.ts +1 -1
- package/lib/{types-D-xVWPdY.d.ts → types-Cn0b8G-i.d.ts} +16 -65
- package/lib/{types-Bztd1KoK.d.cts → types-Dszjwfud.d.cts} +16 -65
- package/package.json +8 -2
- package/examples/board/.board-ws/cards/store/_index.json +0 -17
- package/examples/board/.board-ws/cards/store/card-market-prices.json +0 -80
- package/examples/board/.board-ws/cards/store/card-portfolio-value.json +0 -90
- package/examples/board/.board-ws/cards/store/card-portfolio.json +0 -78
- package/examples/board/server/chat-flow/chat-clear-processing.js +0 -41
- package/examples/board/server/chat-flow/chat-open-turn.js +0 -144
- package/examples/board/server/chat-flow/chat-write-assistant.js +0 -44
- package/examples/board/server/chat-flow/echo-probe/assistant.js +0 -28
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
1
|
+
import { a as ArtifactsStore } from './artifacts-store-lib-zsGFbBV8.cjs';
|
|
2
|
+
export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-zsGFbBV8.cjs';
|
|
3
|
+
import { I as InvocationAdapter } from './types-Dszjwfud.cjs';
|
|
4
|
+
export { D as DescribeEnvelope } from './types-Dszjwfud.cjs';
|
|
5
|
+
import { a as KindValueRef } from './storage-interface-B-7pDHwD.cjs';
|
|
6
|
+
export { p as parseRef, s as serializeRef } from './storage-interface-B-7pDHwD.cjs';
|
|
7
|
+
import { e as BoardNonCorePlatformAdapter, d as BoardPlatformAdapter } from './board-live-cards-public-BM6jCEIa.cjs';
|
|
8
|
+
export { f as BOARD_GRAPH_KEY, g as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, C as CommandInput, a as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, h as createBoardLiveCardsNonCorePublic, i as createBoardLiveCardsPublic, j as createCardStore } from './board-live-cards-public-BM6jCEIa.cjs';
|
|
9
|
+
import { c as ChatStorage } from './chat-storage-lib-OX0Q_Ttf.cjs';
|
|
10
|
+
export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-OX0Q_Ttf.cjs';
|
|
7
11
|
import { ExecutionRef, ArgsMassaging } from './execution-refs.cjs';
|
|
8
12
|
export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.cjs';
|
|
9
13
|
export { createCardStorePublic } from './card-store-public.cjs';
|
|
10
|
-
export {
|
|
14
|
+
export { createArtifactsStorePublic } from './artifacts-store-public.cjs';
|
|
11
15
|
import './types-BBhqYGhE.cjs';
|
|
12
16
|
|
|
13
17
|
/**
|
|
@@ -80,6 +84,24 @@ interface MassagedArgs {
|
|
|
80
84
|
* If argsMassaging is absent, the adapter uses its default mapping.
|
|
81
85
|
*/
|
|
82
86
|
|
|
87
|
+
declare function resolveYamlFlowCliPath(cliFileName: string): string;
|
|
88
|
+
declare function resolveWhatToRunValue(whatToRun: string | KindValueRef): string;
|
|
89
|
+
/**
|
|
90
|
+
* Resolve an ExecutionRef to its base { command, baseArgs } for local transports.
|
|
91
|
+
*
|
|
92
|
+
* Exported for callers that need to stay synchronous (e.g. validate-source-def,
|
|
93
|
+
* describe-capabilities) and build their own final argv.
|
|
94
|
+
* Does NOT evaluate argsMassaging — append custom argv after baseArgs.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* const { command, baseArgs } = buildLocalBaseSpec(teRef, cliDir);
|
|
98
|
+
* executor.executeSync(command, [...baseArgs, 'describe-capabilities'], { timeout: 10_000 });
|
|
99
|
+
*/
|
|
100
|
+
declare function buildLocalBaseSpec(ref: ExecutionRef, cliDir: string): {
|
|
101
|
+
command: string;
|
|
102
|
+
baseArgs: string[];
|
|
103
|
+
};
|
|
104
|
+
|
|
83
105
|
/** Normalized envelope returned by invokeRefSync. */
|
|
84
106
|
interface InvokeRefResult {
|
|
85
107
|
/** Outcome key — drives transitions in the step machine ('success' | 'failure' | custom). */
|
|
@@ -136,18 +158,6 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
|
|
|
136
158
|
*/
|
|
137
159
|
declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
|
|
138
160
|
|
|
139
|
-
/**
|
|
140
|
-
* fs-board-adapter.ts
|
|
141
|
-
*
|
|
142
|
-
* Wires Node.js / FS platform adapters into BoardPlatformAdapter and
|
|
143
|
-
* BoardNonCorePlatformAdapter, and provides FS-specific board utility functions.
|
|
144
|
-
*
|
|
145
|
-
* Everything in the board-live-cards system that is platform-free lives in
|
|
146
|
-
* src/cli/common/. All FS / Node.js / process concerns live here.
|
|
147
|
-
*
|
|
148
|
-
* Re-exports the full public API so consumers only need to import from this file.
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
161
|
/**
|
|
152
162
|
* Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
|
|
153
163
|
*
|
|
@@ -169,11 +179,22 @@ type FsBoardNonCoreAdapterOpts = {
|
|
|
169
179
|
};
|
|
170
180
|
declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
|
|
171
181
|
declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
|
|
172
|
-
|
|
182
|
+
interface FsBoardChatStorageOptions {
|
|
183
|
+
/** Subdirectory under boardDir for per-card jsonl files. Default: 'chats'. Pass '' to write directly under boardDir. */
|
|
184
|
+
chatsSubdir?: string;
|
|
185
|
+
/** Subdirectory under boardDir for chat KV (processing flags + config). Default: '.kv'. Pass '' to root at boardDir. */
|
|
186
|
+
kvSubdir?: string;
|
|
187
|
+
}
|
|
188
|
+
declare function createFsBoardChatStorage(boardDir: string, opts?: FsBoardChatStorageOptions): ChatStorage;
|
|
189
|
+
interface FsBoardFileArtifactsStoreOptions {
|
|
190
|
+
/** Subdirectory under baseDir for file uploads. Default: 'files'. Pass '' to root at baseDir. */
|
|
191
|
+
filesSubdir?: string;
|
|
192
|
+
}
|
|
193
|
+
declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoardFileArtifactsStoreOptions): ArtifactsStore;
|
|
173
194
|
/**
|
|
174
195
|
* Extract the serialized board ref from a source token (which has a `br` field).
|
|
175
196
|
* Returns null for callback tokens (which don't carry a board ref).
|
|
176
197
|
*/
|
|
177
198
|
declare function decodeBoardRefFromToken(token: string): string | null;
|
|
178
199
|
|
|
179
|
-
export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync };
|
|
200
|
+
export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, resolveWhatToRunValue, resolveYamlFlowCliPath };
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
1
|
+
import { a as ArtifactsStore } from './artifacts-store-lib-454TAuov.js';
|
|
2
|
+
export { c as createArtifactsStore, b as createCardFileMetadataStore, d as createFileArtifactsStore } from './artifacts-store-lib-454TAuov.js';
|
|
3
|
+
import { I as InvocationAdapter } from './types-Cn0b8G-i.js';
|
|
4
|
+
export { D as DescribeEnvelope } from './types-Cn0b8G-i.js';
|
|
5
|
+
import { a as KindValueRef } from './storage-interface-B-7pDHwD.js';
|
|
6
|
+
export { p as parseRef, s as serializeRef } from './storage-interface-B-7pDHwD.js';
|
|
7
|
+
import { e as BoardNonCorePlatformAdapter, d as BoardPlatformAdapter } from './board-live-cards-public-Bz07XKRK.js';
|
|
8
|
+
export { f as BOARD_GRAPH_KEY, g as BoardLiveCardsNonCorePublic, c as BoardLiveCardsPublic, C as CommandInput, a as CommandResult, E as EMPTY_CONFIG, L as LiveCard, S as SNAPSHOT_SCHEMA_VERSION_V1, h as createBoardLiveCardsNonCorePublic, i as createBoardLiveCardsPublic, j as createCardStore } from './board-live-cards-public-Bz07XKRK.js';
|
|
9
|
+
import { c as ChatStorage } from './chat-storage-lib-DGaKrjVe.js';
|
|
10
|
+
export { b as ChatConfig, C as ChatRecord, d as createChatStorage, e as createInMemoryChatStorage } from './chat-storage-lib-DGaKrjVe.js';
|
|
7
11
|
import { ExecutionRef, ArgsMassaging } from './execution-refs.js';
|
|
8
12
|
export { executionRefFromScriptPath, parseExecutionRef, serializeExecutionRef } from './execution-refs.js';
|
|
9
13
|
export { createCardStorePublic } from './card-store-public.js';
|
|
10
|
-
export {
|
|
14
|
+
export { createArtifactsStorePublic } from './artifacts-store-public.js';
|
|
11
15
|
import './types-BBhqYGhE.js';
|
|
12
16
|
|
|
13
17
|
/**
|
|
@@ -80,6 +84,24 @@ interface MassagedArgs {
|
|
|
80
84
|
* If argsMassaging is absent, the adapter uses its default mapping.
|
|
81
85
|
*/
|
|
82
86
|
|
|
87
|
+
declare function resolveYamlFlowCliPath(cliFileName: string): string;
|
|
88
|
+
declare function resolveWhatToRunValue(whatToRun: string | KindValueRef): string;
|
|
89
|
+
/**
|
|
90
|
+
* Resolve an ExecutionRef to its base { command, baseArgs } for local transports.
|
|
91
|
+
*
|
|
92
|
+
* Exported for callers that need to stay synchronous (e.g. validate-source-def,
|
|
93
|
+
* describe-capabilities) and build their own final argv.
|
|
94
|
+
* Does NOT evaluate argsMassaging — append custom argv after baseArgs.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* const { command, baseArgs } = buildLocalBaseSpec(teRef, cliDir);
|
|
98
|
+
* executor.executeSync(command, [...baseArgs, 'describe-capabilities'], { timeout: 10_000 });
|
|
99
|
+
*/
|
|
100
|
+
declare function buildLocalBaseSpec(ref: ExecutionRef, cliDir: string): {
|
|
101
|
+
command: string;
|
|
102
|
+
baseArgs: string[];
|
|
103
|
+
};
|
|
104
|
+
|
|
83
105
|
/** Normalized envelope returned by invokeRefSync. */
|
|
84
106
|
interface InvokeRefResult {
|
|
85
107
|
/** Outcome key — drives transitions in the step machine ('success' | 'failure' | custom). */
|
|
@@ -136,18 +158,6 @@ declare function createExecutionRefInvoker(options?: CreateExecutionRefInvokerOp
|
|
|
136
158
|
*/
|
|
137
159
|
declare function invokeRefSync(ref: ExecutionRef, args: Record<string, unknown>, options?: InvokeRefSyncOptions): InvokeRefResult;
|
|
138
160
|
|
|
139
|
-
/**
|
|
140
|
-
* fs-board-adapter.ts
|
|
141
|
-
*
|
|
142
|
-
* Wires Node.js / FS platform adapters into BoardPlatformAdapter and
|
|
143
|
-
* BoardNonCorePlatformAdapter, and provides FS-specific board utility functions.
|
|
144
|
-
*
|
|
145
|
-
* Everything in the board-live-cards system that is platform-free lives in
|
|
146
|
-
* src/cli/common/. All FS / Node.js / process concerns live here.
|
|
147
|
-
*
|
|
148
|
-
* Re-exports the full public API so consumers only need to import from this file.
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
161
|
/**
|
|
152
162
|
* Creates an InvocationAdapter backed by Node.js `spawn`/`spawnSync`.
|
|
153
163
|
*
|
|
@@ -169,11 +179,22 @@ type FsBoardNonCoreAdapterOpts = {
|
|
|
169
179
|
};
|
|
170
180
|
declare function createFsBoardPlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardAdapterOpts, maybeOpts?: FsBoardAdapterOpts): BoardPlatformAdapter;
|
|
171
181
|
declare function createFsBoardNonCorePlatformAdapter(baseRef: KindValueRef, cliDirOrOpts?: string | FsBoardNonCoreAdapterOpts, maybeOpts?: FsBoardNonCoreAdapterOpts): BoardNonCorePlatformAdapter;
|
|
172
|
-
|
|
182
|
+
interface FsBoardChatStorageOptions {
|
|
183
|
+
/** Subdirectory under boardDir for per-card jsonl files. Default: 'chats'. Pass '' to write directly under boardDir. */
|
|
184
|
+
chatsSubdir?: string;
|
|
185
|
+
/** Subdirectory under boardDir for chat KV (processing flags + config). Default: '.kv'. Pass '' to root at boardDir. */
|
|
186
|
+
kvSubdir?: string;
|
|
187
|
+
}
|
|
188
|
+
declare function createFsBoardChatStorage(boardDir: string, opts?: FsBoardChatStorageOptions): ChatStorage;
|
|
189
|
+
interface FsBoardFileArtifactsStoreOptions {
|
|
190
|
+
/** Subdirectory under baseDir for file uploads. Default: 'files'. Pass '' to root at baseDir. */
|
|
191
|
+
filesSubdir?: string;
|
|
192
|
+
}
|
|
193
|
+
declare function createFsBoardFileArtifactsStore(baseDir: string, opts?: FsBoardFileArtifactsStoreOptions): ArtifactsStore;
|
|
173
194
|
/**
|
|
174
195
|
* Extract the serialized board ref from a source token (which has a `br` field).
|
|
175
196
|
* Returns null for callback tokens (which don't carry a board ref).
|
|
176
197
|
*/
|
|
177
198
|
declare function decodeBoardRefFromToken(token: string): string | null;
|
|
178
199
|
|
|
179
|
-
export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync };
|
|
200
|
+
export { BoardNonCorePlatformAdapter, BoardPlatformAdapter, ChatStorage, type CreateExecutionRefInvokerOptions, ExecutionRef, type ExecutionRefInvoker, type FsBoardChatStorageOptions, type FsBoardFileArtifactsStoreOptions, InvocationAdapter, type InvokeExecutionRefOptions, type InvokeRefResult, KindValueRef, type SyncTransportInvoker, type TransportInvoker, buildLocalBaseSpec, createExecutionRefInvoker, createFsBoardChatStorage, createFsBoardFileArtifactsStore, createFsBoardNonCorePlatformAdapter, createFsBoardPlatformAdapter, createNodeSpawnInvocationAdapter, decodeBoardRefFromToken, evaluateArgsMassaging, invokeExecutionRef, invokeExecutionRefSync, invokeRefSync, resolveWhatToRunValue, resolveYamlFlowCliPath };
|