@skaile/workspaces 2.5.0 → 2.7.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/CHANGELOG.md +23 -0
- package/README.md +26 -11
- package/dist/{asset-feeds-4AWAT5PW.js → asset-feeds-23CP6YUY.js} +4 -4
- package/dist/{asset-feeds-4AWAT5PW.js.map → asset-feeds-23CP6YUY.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/{chunk-WSARNOPP.js → chunk-6AYGXPPF.js} +2 -2
- package/dist/{chunk-WSARNOPP.js.map → chunk-6AYGXPPF.js.map} +1 -1
- package/dist/{chunk-ENBTXMPL.js → chunk-AZ44F3AT.js} +6 -6
- package/dist/{chunk-ENBTXMPL.js.map → chunk-AZ44F3AT.js.map} +1 -1
- package/dist/{chunk-4O2RAXKJ.js → chunk-E4AVJMOJ.js} +316 -6
- package/dist/chunk-E4AVJMOJ.js.map +1 -0
- package/dist/{chunk-JAFEMG7W.js → chunk-FW2C6JJP.js} +3 -3
- package/dist/{chunk-JAFEMG7W.js.map → chunk-FW2C6JJP.js.map} +1 -1
- package/dist/{chunk-EEHOMCRU.js → chunk-HVQWLYZB.js} +129 -11
- package/dist/chunk-HVQWLYZB.js.map +1 -0
- package/dist/{chunk-V4ZLZJFN.js → chunk-IWUIXNMF.js} +6 -3
- package/dist/chunk-IWUIXNMF.js.map +1 -0
- package/dist/{chunk-IHX2SN35.js → chunk-JIA2S3T2.js} +6 -6
- package/dist/{chunk-IHX2SN35.js.map → chunk-JIA2S3T2.js.map} +1 -1
- package/dist/{chunk-RK3HU3H3.js → chunk-KSHCQ777.js} +8 -6
- package/dist/chunk-KSHCQ777.js.map +1 -0
- package/dist/{chunk-YWPEDILM.js → chunk-OAUKA7VT.js} +8 -8
- package/dist/{chunk-YWPEDILM.js.map → chunk-OAUKA7VT.js.map} +1 -1
- package/dist/{chunk-MADO7PH5.js → chunk-ONUDDQGS.js} +2 -2
- package/dist/{chunk-MADO7PH5.js.map → chunk-ONUDDQGS.js.map} +1 -1
- package/dist/{chunk-EUWN4EK4.js → chunk-P3DUVOAW.js} +6 -6
- package/dist/{chunk-EUWN4EK4.js.map → chunk-P3DUVOAW.js.map} +1 -1
- package/dist/{chunk-FKBQRV4J.js → chunk-SCR3WGW7.js} +3 -3
- package/dist/{chunk-FKBQRV4J.js.map → chunk-SCR3WGW7.js.map} +1 -1
- package/dist/{chunk-4QROZZ5Z.js → chunk-TUYN2HDT.js} +7 -4
- package/dist/chunk-TUYN2HDT.js.map +1 -0
- package/dist/{chunk-OEGHKO5N.js → chunk-XJ74XFIZ.js} +20 -9
- package/dist/chunk-XJ74XFIZ.js.map +1 -0
- package/dist/{chunk-PJ6INYDD.js → chunk-XTFZOYNY.js} +3 -3
- package/dist/{chunk-PJ6INYDD.js.map → chunk-XTFZOYNY.js.map} +1 -1
- package/dist/{chunk-UZYTSIX6.js → chunk-ZJ7MRR2R.js} +4 -4
- package/dist/{chunk-UZYTSIX6.js.map → chunk-ZJ7MRR2R.js.map} +1 -1
- package/dist/{chunk-AKVAZ5CB.js → chunk-ZJOEU5GP.js} +2 -2
- package/dist/{chunk-AKVAZ5CB.js.map → chunk-ZJOEU5GP.js.map} +1 -1
- package/dist/cli/index.js +31 -31
- package/dist/connectors/index.js +5 -5
- package/dist/{ensure-sources-QF72HVUM.js → ensure-sources-N7B7657V.js} +4 -4
- package/dist/{ensure-sources-QF72HVUM.js.map → ensure-sources-N7B7657V.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +5 -5
- package/dist/factory-assets/connectors/deploy.js +5 -5
- package/dist/factory-assets/connectors/devserver.js +5 -5
- package/dist/factory-assets/connectors/flow/CONNECTOR.md +36 -8
- package/dist/factory-assets/connectors/flow/adapter.d.ts +4 -1
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +5 -5
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts +3 -0
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/flow.v2.schema.json +5 -1
- package/dist/factory-assets/connectors/flow/contract/hash.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/index.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/contract/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts +21 -2
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract.js +2 -2
- package/dist/factory-assets/connectors/flow/engine/engine.d.ts +30 -0
- package/dist/factory-assets/connectors/flow/engine/engine.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts +6 -0
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts +48 -0
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +13 -24
- package/dist/factory-assets/connectors/flow/engine/types.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +3 -3
- package/dist/factory-assets/connectors/flow/prompt-fragments.js +2 -2
- package/dist/factory-assets/connectors/flow/run-flow.js +6 -6
- package/dist/factory-assets/connectors/flow.js +5 -5
- package/dist/factory-assets/connectors/git.js +5 -5
- package/dist/factory-assets/connectors/gmail.js +5 -5
- package/dist/factory-assets/connectors/googledrive.js +5 -5
- package/dist/factory-assets/connectors/local.js +5 -5
- package/dist/factory-assets/connectors/mattermost.js +5 -5
- package/dist/factory-assets/connectors/memory.js +5 -5
- package/dist/factory-assets/connectors/minio.js +5 -5
- package/dist/factory-assets/connectors/postgres.js +5 -5
- package/dist/factory-assets/connectors/s3.js +5 -5
- package/dist/factory-assets/connectors/sharepoint.js +5 -5
- package/dist/factory-assets/connectors/sqlite.js +5 -5
- package/dist/factory-assets/connectors/static-server.js +5 -5
- package/dist/factory-assets/connectors/tunnel.js +5 -5
- package/dist/factory-assets/connectors/webdav.js +5 -5
- package/dist/factory-assets/connectors/xstate-store.js +5 -5
- package/dist/factory-assets/connectors/xstate.js +5 -5
- package/dist/{flows-YIW4HL3L.js → flows-K7B253U6.js} +3 -3
- package/dist/{flows-YIW4HL3L.js.map → flows-K7B253U6.js.map} +1 -1
- package/dist/{helpers-LURCZHA4.js → helpers-PXEHIKF7.js} +4 -4
- package/dist/{helpers-LURCZHA4.js.map → helpers-PXEHIKF7.js.map} +1 -1
- package/dist/{library-publish-2GMJM3NZ.js → library-publish-3Z33J2ZY.js} +9 -9
- package/dist/{library-publish-2GMJM3NZ.js.map → library-publish-3Z33J2ZY.js.map} +1 -1
- package/dist/{open-library-POFOXZWH.js → open-library-Y5SKFAMK.js} +8 -8
- package/dist/{open-library-POFOXZWH.js.map → open-library-Y5SKFAMK.js.map} +1 -1
- package/dist/{project-GVOPZEJZ.js → project-DQRC6J6M.js} +5 -5
- package/dist/{project-GVOPZEJZ.js.map → project-DQRC6J6M.js.map} +1 -1
- package/dist/runner/index.js +9 -9
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/flow.js +3 -3
- package/dist/sdk/index.js +9 -9
- package/dist/sdk/runner.js +9 -9
- package/dist/sdk/store.js +1 -1
- package/dist/{source-FB3T4IHP.js → source-XBJ5KTAV.js} +9 -9
- package/dist/{source-FB3T4IHP.js.map → source-XBJ5KTAV.js.map} +1 -1
- package/dist/{source-manifest-publish-XTRDVPSC.js → source-manifest-publish-Q7TXBMCW.js} +10 -10
- package/dist/{source-manifest-publish-XTRDVPSC.js.map → source-manifest-publish-Q7TXBMCW.js.map} +1 -1
- package/dist/store/index.js +1 -1
- package/dist/store/src/store.d.ts +3 -2
- package/dist/store/src/store.d.ts.map +1 -1
- package/dist/tui/index.js +9 -9
- package/dist/types/src/events.d.ts +5 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +1 -1
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4O2RAXKJ.js.map +0 -1
- package/dist/chunk-4QROZZ5Z.js.map +0 -1
- package/dist/chunk-EEHOMCRU.js.map +0 -1
- package/dist/chunk-OEGHKO5N.js.map +0 -1
- package/dist/chunk-RK3HU3H3.js.map +0 -1
- package/dist/chunk-V4ZLZJFN.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-
|
|
3
|
-
import { makeSourceCommand, syncProjectSources } from '../chunk-
|
|
2
|
+
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-AZ44F3AT.js';
|
|
3
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-JIA2S3T2.js';
|
|
4
4
|
import { AI_RESOURCES, aiResourceRoots } from '../chunk-57RFYEVM.js';
|
|
5
5
|
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-AM5LFRXJ.js';
|
|
6
|
-
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-
|
|
7
|
-
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-
|
|
6
|
+
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-ZJ7MRR2R.js';
|
|
7
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-XTFZOYNY.js';
|
|
8
8
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
9
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
10
|
-
import { buildClaudePluginFiles } from '../chunk-
|
|
9
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-OAUKA7VT.js';
|
|
10
|
+
import { buildClaudePluginFiles } from '../chunk-ZJOEU5GP.js';
|
|
11
11
|
import '../chunk-X5YPJV4N.js';
|
|
12
12
|
import '../chunk-W3UDISS2.js';
|
|
13
13
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -21,21 +21,21 @@ import '../chunk-RRVQAE5D.js';
|
|
|
21
21
|
import '../chunk-BMQKMOQY.js';
|
|
22
22
|
import '../chunk-GAH4YRCI.js';
|
|
23
23
|
import '../chunk-HY3MBSNC.js';
|
|
24
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
24
|
+
import { runFlow, resumeFlow } from '../chunk-P3DUVOAW.js';
|
|
25
25
|
import '../chunk-4R6DROGN.js';
|
|
26
26
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-CZZRDYT4.js';
|
|
27
27
|
import '../chunk-BEAIJRVF.js';
|
|
28
|
-
import '../chunk-
|
|
29
|
-
import '../chunk-
|
|
28
|
+
import '../chunk-IWUIXNMF.js';
|
|
29
|
+
import '../chunk-HVQWLYZB.js';
|
|
30
30
|
import '../chunk-ZNIHTT22.js';
|
|
31
31
|
import '../chunk-6E6PKKAD.js';
|
|
32
32
|
import '../chunk-IFGTRL2I.js';
|
|
33
|
-
import { loadFlow, loadAllFlows } from '../chunk-
|
|
34
|
-
import '../chunk-
|
|
35
|
-
import '../chunk-
|
|
36
|
-
import '../chunk-
|
|
33
|
+
import { loadFlow, loadAllFlows } from '../chunk-E4AVJMOJ.js';
|
|
34
|
+
import '../chunk-XJ74XFIZ.js';
|
|
35
|
+
import '../chunk-SCR3WGW7.js';
|
|
36
|
+
import '../chunk-TUYN2HDT.js';
|
|
37
37
|
import '../chunk-D4VHBAJC.js';
|
|
38
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
38
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-6AYGXPPF.js';
|
|
39
39
|
import { resolveLibraryDir, getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-3HVASHBF.js';
|
|
40
40
|
import '../chunk-NU4E7C5I.js';
|
|
41
41
|
import '../chunk-UKJMQZV6.js';
|
|
@@ -110,7 +110,7 @@ async function runSearch(kind, query, opts) {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
async function searchIndex(query, kind) {
|
|
113
|
-
const { openLibrary: openLibrary2 } = await import('../open-library-
|
|
113
|
+
const { openLibrary: openLibrary2 } = await import('../open-library-Y5SKFAMK.js');
|
|
114
114
|
const library = await openLibrary2();
|
|
115
115
|
try {
|
|
116
116
|
const defs = await library.listAssetDefs(kind ? { kind } : {});
|
|
@@ -163,7 +163,7 @@ async function searchLocal(query, kind, opts, showStore, airGapped) {
|
|
|
163
163
|
const factory = await searchFactory(projectDir, query, kind);
|
|
164
164
|
let entries = unionEntries(await searchIndex(query, kind), factory);
|
|
165
165
|
if (entries.length === 0 && !query && !kind && !airGapped) {
|
|
166
|
-
const { autoSyncForSearch } = await import('../source-
|
|
166
|
+
const { autoSyncForSearch } = await import('../source-XBJ5KTAV.js');
|
|
167
167
|
if (await autoSyncForSearch(projectDir)) {
|
|
168
168
|
entries = unionEntries(await searchIndex(query, kind), factory);
|
|
169
169
|
}
|
|
@@ -217,7 +217,7 @@ async function searchStore(query, kind, opts, airGapped) {
|
|
|
217
217
|
logInfo("air-gapped (cache_ttl: 0) \u2014 local sources only");
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
220
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-Y5SKFAMK.js');
|
|
221
221
|
try {
|
|
222
222
|
const remote = await openCatalogSource2({ projectDir: path14__default.resolve(opts.projectDir) });
|
|
223
223
|
const assets = await remote.listAssets(kind ? { kind } : {});
|
|
@@ -532,7 +532,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
532
532
|
return { entry: match ?? deployed };
|
|
533
533
|
}
|
|
534
534
|
const lookup = opts.storeLookup ?? (async (filter) => {
|
|
535
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
535
|
+
const { resolveCatalogSource } = await import('../open-library-Y5SKFAMK.js');
|
|
536
536
|
const { source, close } = await resolveCatalogSource({ projectDir: opts.projectDir });
|
|
537
537
|
try {
|
|
538
538
|
return await source.listAssets(filter);
|
|
@@ -548,7 +548,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
548
548
|
);
|
|
549
549
|
return { entry: hit ? catalogAssetToEntry(hit) : null };
|
|
550
550
|
} catch (err) {
|
|
551
|
-
const { LocalCatalogDisabledError } = await import('../open-library-
|
|
551
|
+
const { LocalCatalogDisabledError } = await import('../open-library-Y5SKFAMK.js');
|
|
552
552
|
const storeNote = err instanceof Error ? err.message : String(err);
|
|
553
553
|
const disabled = err instanceof LocalCatalogDisabledError || /catalog\.url/i.test(storeNote);
|
|
554
554
|
return { entry: null, storeNote, ...disabled ? { storeDisabled: true } : {} };
|
|
@@ -1168,7 +1168,7 @@ function makeCatalogCommand() {
|
|
|
1168
1168
|
return catalog;
|
|
1169
1169
|
}
|
|
1170
1170
|
async function runLocalCatalogTest(projectDir) {
|
|
1171
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
1171
|
+
const { resolveCatalogSource } = await import('../open-library-Y5SKFAMK.js');
|
|
1172
1172
|
let resolved;
|
|
1173
1173
|
try {
|
|
1174
1174
|
resolved = await resolveCatalogSource({ projectDir });
|
|
@@ -3407,16 +3407,16 @@ function makeLibraryCommand() {
|
|
|
3407
3407
|
});
|
|
3408
3408
|
cmd.command("publish <lib>").description("Push + register the library's manifest atomically (needs git backend)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--create-repo", "Provision + link a public github repo if the library has no remote").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; push nothing and call no store endpoint").action(
|
|
3409
3409
|
async (lib, opts) => {
|
|
3410
|
-
const { runLibraryPublish } = await import('../library-publish-
|
|
3410
|
+
const { runLibraryPublish } = await import('../library-publish-3Z33J2ZY.js');
|
|
3411
3411
|
await withStoreErrorHandling(() => runLibraryPublish(lib, opts));
|
|
3412
3412
|
}
|
|
3413
3413
|
);
|
|
3414
3414
|
cmd.command("register <lib>").description("Register the library's manifest without pushing (bytes already on github)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; call no store endpoint").action(async (lib, opts) => {
|
|
3415
|
-
const { runLibraryRegister } = await import('../library-publish-
|
|
3415
|
+
const { runLibraryRegister } = await import('../library-publish-3Z33J2ZY.js');
|
|
3416
3416
|
await withStoreErrorHandling(() => runLibraryRegister(lib, opts));
|
|
3417
3417
|
});
|
|
3418
3418
|
cmd.command("yank <lib>").description("Retract the library's published assets from the store").option("--asset <ref>", "Yank only the single asset matching this ref/name").action(async (lib, opts) => {
|
|
3419
|
-
const { runLibraryYank } = await import('../library-publish-
|
|
3419
|
+
const { runLibraryYank } = await import('../library-publish-3Z33J2ZY.js');
|
|
3420
3420
|
await withStoreErrorHandling(() => runLibraryYank(lib, opts));
|
|
3421
3421
|
});
|
|
3422
3422
|
return cmd;
|
|
@@ -4138,7 +4138,7 @@ function scheduleSoftDepPreview() {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
async function loadAssets() {
|
|
4140
4140
|
softDepPreviewCache.clear();
|
|
4141
|
-
const { gatherAssetFeeds } = await import('../asset-feeds-
|
|
4141
|
+
const { gatherAssetFeeds } = await import('../asset-feeds-23CP6YUY.js');
|
|
4142
4142
|
const { entries, domains, notes } = await gatherAssetFeeds(am, am.projectDir);
|
|
4143
4143
|
if (notes.length > 0) {
|
|
4144
4144
|
state.message = notes.map((n) => `[${n.feed}] ${n.message}`).join(" \u2022 ");
|
|
@@ -4344,7 +4344,7 @@ function reconcileCollapsedSets(rows) {
|
|
|
4344
4344
|
async function loadSourcesAndLibraries() {
|
|
4345
4345
|
try {
|
|
4346
4346
|
const [{ openLibraryManager: openLibraryManager2 }, { skaileHomeDir }, { getGlobalCacheDir: getGlobalCacheDir2 }] = await Promise.all([
|
|
4347
|
-
import('../open-library-
|
|
4347
|
+
import('../open-library-Y5SKFAMK.js'),
|
|
4348
4348
|
import('../library/index.js'),
|
|
4349
4349
|
import('../core/index.js')
|
|
4350
4350
|
]);
|
|
@@ -6788,7 +6788,7 @@ function makeServeCommand() {
|
|
|
6788
6788
|
);
|
|
6789
6789
|
}
|
|
6790
6790
|
async function ensurePluginsLoadedForServe(projectDir) {
|
|
6791
|
-
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-
|
|
6791
|
+
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-PXEHIKF7.js');
|
|
6792
6792
|
try {
|
|
6793
6793
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
6794
6794
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
@@ -6807,7 +6807,7 @@ async function ensurePluginsLoadedForServe(projectDir) {
|
|
|
6807
6807
|
}
|
|
6808
6808
|
}
|
|
6809
6809
|
async function runCompileTest(opts) {
|
|
6810
|
-
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-
|
|
6810
|
+
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-PXEHIKF7.js');
|
|
6811
6811
|
const { tmpdir } = await import('os');
|
|
6812
6812
|
const { dirname: dirname4, join: join7, resolve: resolve5 } = await import('path');
|
|
6813
6813
|
const { fileURLToPath: fileURLToPath2 } = await import('url');
|
|
@@ -7689,7 +7689,7 @@ function makeStoreCommand() {
|
|
|
7689
7689
|
process.exit(2);
|
|
7690
7690
|
});
|
|
7691
7691
|
store.command("search <query>").description("Search the AI Asset Store catalog by name, description, or publisher").option("--kind <kind>", "Filter by asset kind (skill, agent, prompt, flow, \u2026)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (query, opts) => {
|
|
7692
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7692
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-Y5SKFAMK.js');
|
|
7693
7693
|
try {
|
|
7694
7694
|
const remote = await openCatalogSource2({ projectDir: path14__default.resolve(opts.projectDir) });
|
|
7695
7695
|
const assets = await remote.listAssets(opts.kind ? { kind: opts.kind } : {});
|
|
@@ -7722,8 +7722,8 @@ function makeStoreCommand() {
|
|
|
7722
7722
|
}
|
|
7723
7723
|
});
|
|
7724
7724
|
store.command("show <ref>").description("Show a store asset's details + provenance (source, files, integrity)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (ref, opts) => {
|
|
7725
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7726
|
-
const { supportsInstallManifest } = await import('../project-
|
|
7725
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-Y5SKFAMK.js');
|
|
7726
|
+
const { supportsInstallManifest } = await import('../project-DQRC6J6M.js');
|
|
7727
7727
|
try {
|
|
7728
7728
|
const remote = await openCatalogSource2({ projectDir: path14__default.resolve(opts.projectDir) });
|
|
7729
7729
|
const asset = await remote.resolve(ref);
|
|
@@ -8803,7 +8803,7 @@ async function bootstrapUserConfig() {
|
|
|
8803
8803
|
}
|
|
8804
8804
|
async function hydrateInitSources(resolved, created) {
|
|
8805
8805
|
try {
|
|
8806
|
-
const { ensureSourcesCloned } = await import('../ensure-sources-
|
|
8806
|
+
const { ensureSourcesCloned } = await import('../ensure-sources-N7B7657V.js');
|
|
8807
8807
|
const hydrate = ensureSourcesCloned(resolved, { quiet: true });
|
|
8808
8808
|
for (const n of hydrate.cloned) created.push(`~/.skaile/cache/sources/${n}/`);
|
|
8809
8809
|
if (hydrate.failed.length > 0) {
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-HVQWLYZB.js';
|
|
2
2
|
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-E4AVJMOJ.js';
|
|
6
|
+
import '../chunk-XJ74XFIZ.js';
|
|
7
|
+
import '../chunk-SCR3WGW7.js';
|
|
8
|
+
import '../chunk-TUYN2HDT.js';
|
|
9
9
|
import '../chunk-P43HBWKK.js';
|
|
10
10
|
import '../chunk-F3HNW354.js';
|
|
11
11
|
import '../chunk-K5GBV4SA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { logErr, logOk, logInfo } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { logErr, logOk, logInfo } from './chunk-XTFZOYNY.js';
|
|
2
|
+
import './chunk-6AYGXPPF.js';
|
|
3
3
|
import './chunk-3HVASHBF.js';
|
|
4
4
|
import './chunk-NU4E7C5I.js';
|
|
5
5
|
import './chunk-UKJMQZV6.js';
|
|
@@ -86,5 +86,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export { ensureSourcesCloned };
|
|
89
|
-
//# sourceMappingURL=ensure-sources-
|
|
90
|
-
//# sourceMappingURL=ensure-sources-
|
|
89
|
+
//# sourceMappingURL=ensure-sources-N7B7657V.js.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,SAAS,mBAAA,CACd,UAAA,EACA,IAAA,GAA4B,EAAC,EACf;AACd,EAAA,MAAM,MAAA,GAAuB,EAAE,MAAA,EAAQ,EAAC,EAAG,QAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAClE,EAAA,MAAM,QAAA,GAAgB,IAAA,CAAA,IAAA,CAAK,UAAA,EAAY,aAAa,CAAA;AACpD,EAAA,IAAI,CAAC,UAAA,CAAW,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-N7B7657V.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-
|
|
1
|
+
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-HVQWLYZB.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-E4AVJMOJ.js';
|
|
6
|
+
import '../../chunk-XJ74XFIZ.js';
|
|
7
|
+
import '../../chunk-SCR3WGW7.js';
|
|
8
|
+
import '../../chunk-TUYN2HDT.js';
|
|
9
9
|
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-
|
|
1
|
+
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-HVQWLYZB.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-E4AVJMOJ.js';
|
|
6
|
+
import '../../chunk-XJ74XFIZ.js';
|
|
7
|
+
import '../../chunk-SCR3WGW7.js';
|
|
8
|
+
import '../../chunk-TUYN2HDT.js';
|
|
9
9
|
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-
|
|
1
|
+
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-HVQWLYZB.js';
|
|
2
2
|
import '../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IFGTRL2I.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-E4AVJMOJ.js';
|
|
6
|
+
import '../../chunk-XJ74XFIZ.js';
|
|
7
|
+
import '../../chunk-SCR3WGW7.js';
|
|
8
|
+
import '../../chunk-TUYN2HDT.js';
|
|
9
9
|
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -16,9 +16,10 @@ bridges three ownership roles:
|
|
|
16
16
|
`request_input`, `complete_node`, `skip_node`, `fail_node`, plus the
|
|
17
17
|
read-only `get_state`, `get_globals`, `get_available`, `validate_node`,
|
|
18
18
|
`build_handoff`).
|
|
19
|
-
- **Runtime** —
|
|
20
|
-
available `
|
|
21
|
-
`
|
|
19
|
+
- **Runtime** — resolves available `router` nodes with bounded expressions,
|
|
20
|
+
drains available `function` nodes through `NodeExecutor`, parks available
|
|
21
|
+
`gate` nodes through durable approval state, and drives available `sub-flow`
|
|
22
|
+
nodes inline before an agent turn is considered.
|
|
22
23
|
- **Host** — the runner applies out-of-turn mutations through direct adapter
|
|
23
24
|
methods (`applyApproval`, `applyInput`, `retryNode`, `setAutonomousMode`,
|
|
24
25
|
`cancel`, `hydrate`) in response to platform actions, forwards persistence
|
|
@@ -36,10 +37,13 @@ declared in `skaile.yaml` — it is constructed by the runner per session
|
|
|
36
37
|
and bound to the active `FlowDefinition`.
|
|
37
38
|
|
|
38
39
|
The adapter normalizes authored definitions at its connect/start boundary.
|
|
39
|
-
Strict v2 `run.kind: agent`, `run.kind: function`, `run.kind: gate`,
|
|
40
|
-
`run.kind: sub-flow` nodes are active. Among legacy
|
|
41
|
-
`type: skill` nodes normalize into the agent shape and exact `type: sub-flow`
|
|
42
|
-
nodes with `data.flow` normalize into the active inline-child shape.
|
|
40
|
+
Strict v2 `run.kind: agent`, `run.kind: function`, `run.kind: gate`,
|
|
41
|
+
`run.kind: router`, and `run.kind: sub-flow` nodes are active. Among legacy
|
|
42
|
+
definitions, explicit `type: skill` nodes normalize into the agent shape and exact `type: sub-flow`
|
|
43
|
+
nodes with `data.flow` normalize into the active inline-child shape. Other
|
|
44
|
+
legacy kinds normalize to false-precondition router placeholders: they are
|
|
45
|
+
tracked but never become available, so their outgoing hard flow edges remain
|
|
46
|
+
blocking. A selected
|
|
43
47
|
available or running agent receives its instruction, resolved
|
|
44
48
|
bindings with origins, asset requirements, and completed predecessor
|
|
45
49
|
context through `build_handoff`. Functions receive resolved raw values as
|
|
@@ -57,6 +61,29 @@ Autonomous mode does not bypass a first-class gate. The authored `run.schema`
|
|
|
57
61
|
remains part of the strict contract; richer free-text response transport is
|
|
58
62
|
tracked separately in [platform #2097](https://github.com/skaile-ai/platform/issues/2097).
|
|
59
63
|
|
|
64
|
+
An available router is engine-owned deterministic coordination. Its routes are
|
|
65
|
+
evaluated in authored order with the same bounded expression evaluator and
|
|
66
|
+
resolved context as preconditions and bindings. Decidable routing advances
|
|
67
|
+
through frontier waves before other runtime work, with at most one router from
|
|
68
|
+
each source ownership component settling in a wave. Each selected target is
|
|
69
|
+
retained in the existing node output for later drains and hydration. The first
|
|
70
|
+
match completes the router and skips only hard-flow-exclusive losing nodes.
|
|
71
|
+
Selected routes, unsettled-router targets, shared convergence, and nodes with
|
|
72
|
+
another live hard predecessor remain live; optional and parallel edges do not
|
|
73
|
+
participate in branch pruning. An explicit default handles the
|
|
74
|
+
no-earlier-match case, including `target: null`. Missing declared runtime output
|
|
75
|
+
waits for its producer, and a valid unmatched router does not starve unrelated
|
|
76
|
+
work. Its possible targets and hard-flow-exclusive descendants remain off
|
|
77
|
+
runtime and agent-facing availability until selection; nested routers settle in
|
|
78
|
+
later frontier waves. Cyclic route ownership remains valid because every member
|
|
79
|
+
of a source ownership component is ungated together; normal hard-edge and
|
|
80
|
+
precondition admission chooses its available members. Each wave settles the
|
|
81
|
+
first available, decidable member in definition order, so unresolved peers do
|
|
82
|
+
not starve it and a peer made losing in that wave cannot also complete.
|
|
83
|
+
Independent source components may settle together. Route evaluation happens
|
|
84
|
+
only after admission and never invokes the session agent, model client, or
|
|
85
|
+
`NodeExecutor`.
|
|
86
|
+
|
|
60
87
|
An inline sub-flow is runtime-owned coordination. The host resolves the child
|
|
61
88
|
definition and creates a transient child `FlowAdapter` in the materialized
|
|
62
89
|
session, reusing the session driver for agent nodes, the existing `NodeExecutor`
|
|
@@ -76,7 +103,8 @@ transient children first. Cold hydrate returns a running or projected-waiting
|
|
|
76
103
|
sub-flow to admission and restarts it from the durable parent boundary.
|
|
77
104
|
|
|
78
105
|
The pure engine evaluates `contract.requires` before admission and reports failed
|
|
79
|
-
conditions separately from hard-edge blockers.
|
|
106
|
+
conditions separately from hard-edge blockers. It resolves routers only after
|
|
107
|
+
admission, rather than during state computation. Output schemas are enforced only
|
|
80
108
|
when another node reads the producer through a precondition, binding, or router.
|
|
81
109
|
The first invalid agent completion persists and publishes one correction request;
|
|
82
110
|
the second fails. Function output fails directly, with captured diagnostics kept.
|
|
@@ -224,7 +224,8 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
224
224
|
shouldDriveAgentTurn(handle: ConnectorHandle, stimulus: TurnStimulus): boolean;
|
|
225
225
|
/**
|
|
226
226
|
* Drain runtime-owned nodes in definition order until only agent work or a human decision
|
|
227
|
-
* remains.
|
|
227
|
+
* remains. Routers select branches, function nodes use NodeExecutor, gates park, and sub-flows
|
|
228
|
+
* delegate to the host.
|
|
228
229
|
*/
|
|
229
230
|
drainRuntimeNodes(handle: ConnectorHandle): Promise<FlowExecution>;
|
|
230
231
|
/**
|
|
@@ -234,6 +235,8 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
234
235
|
*/
|
|
235
236
|
executeAvailableFunctionNodes(handle: ConnectorHandle): Promise<FlowExecution>;
|
|
236
237
|
private drainAvailableRuntimeNodes;
|
|
238
|
+
/** Settle one decidable router per source ownership component before runtime side effects. */
|
|
239
|
+
private settleAvailableRouters;
|
|
237
240
|
private s;
|
|
238
241
|
/**
|
|
239
242
|
* Central mutation pipeline: runs the mutator, recomputes derived
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAKpB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAGV,aAAa,EAUd,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAEL,KAAK,cAAc,EAInB,UAAU,EAGX,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EACL,iBAAiB,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAKpB,KAAK,QAAQ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export { FlowAdapter, createConnector } from '../../../chunk-HVQWLYZB.js';
|
|
2
2
|
import '../../../chunk-ZNIHTT22.js';
|
|
3
3
|
import '../../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../../chunk-IFGTRL2I.js';
|
|
5
|
-
export { isBlocking } from '../../../chunk-
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
5
|
+
export { isBlocking } from '../../../chunk-E4AVJMOJ.js';
|
|
6
|
+
import '../../../chunk-XJ74XFIZ.js';
|
|
7
|
+
import '../../../chunk-SCR3WGW7.js';
|
|
8
|
+
import '../../../chunk-TUYN2HDT.js';
|
|
9
9
|
import '../../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../../chunk-K5GBV4SA.js';
|
|
@@ -70,6 +70,9 @@ export declare function collectFlowBindingExpressions(value: unknown): string[];
|
|
|
70
70
|
export declare class FlowExpressionError extends Error {
|
|
71
71
|
/** Stable error name for callers that classify evaluator failures. */
|
|
72
72
|
readonly name = "FlowExpressionError";
|
|
73
|
+
/** Runtime path that was grammar-valid but absent from the supplied context. */
|
|
74
|
+
readonly missingPath?: string;
|
|
75
|
+
constructor(message: string, missingPath?: string);
|
|
73
76
|
}
|
|
74
77
|
/** Static path evidence used to reconcile safe grammar with declared producer output types. */
|
|
75
78
|
export interface FlowExpressionReference {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,wDAAwD;IACxD,IAAI,EAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC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G,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;AAEnE,mFAAmF;AACnF,eAAO,MAAM,yBAAyB,QAAoB,CAAC;AAE3D,8EAA8E;AAC9E,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAOtE;AAED,kFAAkF;AAClF,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,sEAAsE;IACtE,SAAkB,IAAI,yBAAyB;
|
|
1
|
+
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,wDAAwD;IACxD,IAAI,EAAE;QAAE,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC,CAAC;CAC3E;AAED,iFAAiF;AACjF,MAAM,MAAM,aAAa,GACrB;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,CAAA;CAAE,GAC1D;IAAE,MAAM,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,CAAA;CAAE,GAC7D;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,SAAS,CAAA;CAAE,GAC1D;IACE,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM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AM,EAClB,cAAc,UAAO,GACpB,uBAAuB,EAAE,CAkB3B;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAQT;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAEpF;AAkDD,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASrD;AA+HD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7C,OAAO,EAAE,qBAAqB,EAC9B,gBAAgB,GAAE,gBAAqB,EACvC,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAM,GACrD,oBAAoB,CAsBtB"}
|
|
@@ -139,6 +139,10 @@
|
|
|
139
139
|
"type": "string",
|
|
140
140
|
"minLength": 1
|
|
141
141
|
},
|
|
142
|
+
"model": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"enum": ["small", "default", "deep"]
|
|
145
|
+
},
|
|
142
146
|
"assets": {
|
|
143
147
|
"type": "array",
|
|
144
148
|
"items": {
|
|
@@ -163,7 +167,7 @@
|
|
|
163
167
|
},
|
|
164
168
|
"model": {
|
|
165
169
|
"type": "string",
|
|
166
|
-
"
|
|
170
|
+
"enum": ["small", "default", "deep"]
|
|
167
171
|
},
|
|
168
172
|
"assets": {
|
|
169
173
|
"type": "array",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/hash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/hash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAmF3D,qGAAqG;AACrG,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,oBAAoB,GAAG,MAAM,CAEnF;AAED,0FAA0F;AAC1F,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CAI1F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FlowDefinitionSchema, type FlowAssetRef, type FlowDefinition, type FlowEdge, type FlowInputContract, type FlowNode, type FlowNodeBindings, type FlowNodeContract, type FlowNodeControl, type FlowNodeKind, type FlowNodePrecondition, type FlowNodeRun, type FlowOutputContract, type FlowRoute, } from "./schema.js";
|
|
1
|
+
export { FlowDefinitionSchema, type FlowAssetRef, type FlowDefinition, type FlowEdge, type FlowInputContract, type FlowModelTier, type FlowNode, type FlowNodeBindings, type FlowNodeContract, type FlowNodeControl, type FlowNodeKind, type FlowNodePrecondition, type FlowNodeRun, type FlowOutputContract, type FlowRoute, } from "./schema.js";
|
|
2
2
|
export { normalizeV1, parseFlowDefinition, type FlowDefinitionIssue, type FlowDefinitionParseResult, type LegacyCompatibilityEdge, type ParsedFlowDefinition, } from "./normalize.js";
|
|
3
3
|
export { evaluate, evaluateFlowExpression, FLOW_EXPRESSION_LIMITS, FlowExpressionError, resolveFlowBindings, type BindingOrigin, type FlowExpressionContext, type NodeOutputOrigin, type ResolvedBinding, type ResolvedNodeBindings, } from "./expression.js";
|
|
4
4
|
export { canonicalizeFlowDefinition, hashFlowDefinition } from "./hash.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,SAAS,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
declare const modelTier: z.ZodEnum<{
|
|
3
|
+
default: "default";
|
|
4
|
+
small: "small";
|
|
5
|
+
deep: "deep";
|
|
6
|
+
}>;
|
|
2
7
|
/** Validates normalized field shapes without applying authored-v2 graph semantics. */
|
|
3
8
|
export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafeParseResult<{
|
|
4
9
|
schemaVersion: 2;
|
|
@@ -13,11 +18,12 @@ export declare function parseFlowDefinitionStructure(data: unknown): z.ZodSafePa
|
|
|
13
18
|
kind: "agent";
|
|
14
19
|
instruction: string;
|
|
15
20
|
assets?: string[] | undefined;
|
|
21
|
+
model?: "default" | "small" | "deep" | undefined;
|
|
16
22
|
} | {
|
|
17
23
|
kind: "subprompt";
|
|
18
24
|
instruction: string;
|
|
19
25
|
assets?: string[] | undefined;
|
|
20
|
-
model?:
|
|
26
|
+
model?: "default" | "small" | "deep" | undefined;
|
|
21
27
|
} | {
|
|
22
28
|
command: string;
|
|
23
29
|
kind: "function";
|
|
@@ -192,11 +198,20 @@ export declare const FlowDefinitionSchema: z.ZodObject<{
|
|
|
192
198
|
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
199
|
kind: z.ZodLiteral<"agent">;
|
|
194
200
|
instruction: z.ZodString;
|
|
201
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
default: "default";
|
|
203
|
+
small: "small";
|
|
204
|
+
deep: "deep";
|
|
205
|
+
}>>;
|
|
195
206
|
}, z.core.$strict>, z.ZodObject<{
|
|
196
207
|
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
197
208
|
kind: z.ZodLiteral<"subprompt">;
|
|
198
209
|
instruction: z.ZodString;
|
|
199
|
-
model: z.ZodOptional<z.
|
|
210
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
211
|
+
default: "default";
|
|
212
|
+
small: "small";
|
|
213
|
+
deep: "deep";
|
|
214
|
+
}>>;
|
|
200
215
|
}, z.core.$strict>, z.ZodObject<{
|
|
201
216
|
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
217
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
@@ -373,4 +388,8 @@ export type FlowRoute = Extract<FlowNodeRun, {
|
|
|
373
388
|
}>["routes"][number];
|
|
374
389
|
/** Asset requirement independent of node identity and available on every run kind. */
|
|
375
390
|
export type FlowAssetRef = NonNullable<FlowNodeRun["assets"]>[number];
|
|
391
|
+
/** Model tier for `agent` and `subprompt` runs; `default` inherits the session model
|
|
392
|
+
* (`agent`) or the runtime default (`subprompt`) rather than naming a concrete model. */
|
|
393
|
+
export type FlowModelTier = z.infer<typeof modelTier>;
|
|
394
|
+
export {};
|
|
376
395
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA6EzB,QAAA,MAAM,SAAS;;;;EAAuC,CAAC;AAmKvD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AC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAEjE,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;AAE/D,uEAAuE;AACvE,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;AAE1E,kGAAkG;AAClG,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,SAC5E,KAAK,CAAC,MAAM,CAAC,CAAC,GACd,SAAS,GACT,CAAC,GACD,KAAK,CAAC;AAEV,qFAAqF;AACrF,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnF,sFAAsF;AACtF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;yFACyF;AACzF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-
|
|
2
|
-
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, evaluate, evaluateFlowExpression, normalizeV1, parseFlowDefinition, resolveFlowBindings } from '../../../chunk-
|
|
1
|
+
export { FLOW_DEFINITION_JSON_SCHEMA_ID, canonicalizeFlowDefinition, generateFlowDefinitionJsonSchema, hashFlowDefinition } from '../../../chunk-IWUIXNMF.js';
|
|
2
|
+
export { FLOW_EXPRESSION_LIMITS, FlowDefinitionSchema, FlowExpressionError, evaluate, evaluateFlowExpression, normalizeV1, parseFlowDefinition, resolveFlowBindings } from '../../../chunk-XJ74XFIZ.js';
|
|
3
3
|
import '../../../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=contract.js.map
|
|
5
5
|
//# sourceMappingURL=contract.js.map
|