@skaile/workspaces 3.26.0 → 3.27.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 +22 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-ISSC2HYE.js → asset-feeds-AJOUKX55.js} +4 -4
- package/dist/{asset-feeds-ISSC2HYE.js.map → asset-feeds-AJOUKX55.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/bridge/drivers/claude-sdk.js +3 -3
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +3 -3
- package/dist/bridge/drivers/gemini.js +3 -3
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +3 -3
- package/dist/bridge/index.js +4 -4
- package/dist/{chunk-3DOLXE4Z.js → chunk-3U3ZKYR7.js} +3 -3
- package/dist/{chunk-3DOLXE4Z.js.map → chunk-3U3ZKYR7.js.map} +1 -1
- package/dist/{chunk-CP62G5PK.js → chunk-53ORCYPJ.js} +347 -16
- package/dist/chunk-53ORCYPJ.js.map +1 -0
- package/dist/{chunk-S3Z5KF6R.js → chunk-5UWAOYDN.js} +4 -4
- package/dist/{chunk-S3Z5KF6R.js.map → chunk-5UWAOYDN.js.map} +1 -1
- package/dist/{chunk-U2QALNKX.js → chunk-72DG6GSB.js} +4 -4
- package/dist/{chunk-U2QALNKX.js.map → chunk-72DG6GSB.js.map} +1 -1
- package/dist/{chunk-EKFFTOQJ.js → chunk-773WLEXL.js} +2 -2
- package/dist/{chunk-EKFFTOQJ.js.map → chunk-773WLEXL.js.map} +1 -1
- package/dist/{chunk-A565EFTW.js → chunk-7P6ASOFL.js} +3 -3
- package/dist/{chunk-A565EFTW.js.map → chunk-7P6ASOFL.js.map} +1 -1
- package/dist/{chunk-AY4OKT3U.js → chunk-AEN2UFDN.js} +2 -2
- package/dist/{chunk-AY4OKT3U.js.map → chunk-AEN2UFDN.js.map} +1 -1
- package/dist/{chunk-DGPCBJNQ.js → chunk-AQW4BWNR.js} +2 -2
- package/dist/{chunk-DGPCBJNQ.js.map → chunk-AQW4BWNR.js.map} +1 -1
- package/dist/{chunk-GLOHIJ7B.js → chunk-AU4TUVHW.js} +3 -3
- package/dist/{chunk-GLOHIJ7B.js.map → chunk-AU4TUVHW.js.map} +1 -1
- package/dist/{chunk-ALSDJ6F4.js → chunk-DY5GHUTC.js} +2 -2
- package/dist/{chunk-ALSDJ6F4.js.map → chunk-DY5GHUTC.js.map} +1 -1
- package/dist/{chunk-UOERRCR3.js → chunk-F2GEM5B3.js} +6 -6
- package/dist/{chunk-UOERRCR3.js.map → chunk-F2GEM5B3.js.map} +1 -1
- package/dist/{chunk-KFH5GCDB.js → chunk-FFE7YLYO.js} +4 -4
- package/dist/{chunk-KFH5GCDB.js.map → chunk-FFE7YLYO.js.map} +1 -1
- package/dist/{chunk-XHPWI6XF.js → chunk-FYIHH56K.js} +4 -4
- package/dist/{chunk-XHPWI6XF.js.map → chunk-FYIHH56K.js.map} +1 -1
- package/dist/{chunk-W5LPG3X6.js → chunk-JMYOJ3PA.js} +5 -3
- package/dist/chunk-JMYOJ3PA.js.map +1 -0
- package/dist/{chunk-2FDKUKDE.js → chunk-M6VQU5TS.js} +3 -3
- package/dist/{chunk-2FDKUKDE.js.map → chunk-M6VQU5TS.js.map} +1 -1
- package/dist/{chunk-NQG77HXO.js → chunk-MQASB52N.js} +3 -3
- package/dist/{chunk-NQG77HXO.js.map → chunk-MQASB52N.js.map} +1 -1
- package/dist/{chunk-NRKEZBVP.js → chunk-N27DSFA7.js} +209 -12
- package/dist/chunk-N27DSFA7.js.map +1 -0
- package/dist/{chunk-XGO6CP5S.js → chunk-O5JUZIVR.js} +4 -4
- package/dist/{chunk-XGO6CP5S.js.map → chunk-O5JUZIVR.js.map} +1 -1
- package/dist/{chunk-YCMHWNZA.js → chunk-TIOT3ZOQ.js} +3 -3
- package/dist/{chunk-YCMHWNZA.js.map → chunk-TIOT3ZOQ.js.map} +1 -1
- package/dist/{chunk-UQTPSVJV.js → chunk-UAEGKCE5.js} +6 -6
- package/dist/{chunk-UQTPSVJV.js.map → chunk-UAEGKCE5.js.map} +1 -1
- package/dist/{chunk-5SXY4B65.js → chunk-UL4LD7KD.js} +3 -3
- package/dist/{chunk-5SXY4B65.js.map → chunk-UL4LD7KD.js.map} +1 -1
- package/dist/{chunk-RPE5VYB6.js → chunk-XMULHVKX.js} +4 -4
- package/dist/{chunk-RPE5VYB6.js.map → chunk-XMULHVKX.js.map} +1 -1
- package/dist/{chunk-Q6SWQEF7.js → chunk-YLL65VXQ.js} +34 -13
- package/dist/chunk-YLL65VXQ.js.map +1 -0
- package/dist/cli/index.js +37 -37
- package/dist/connectors/index.js +8 -8
- package/dist/{ensure-sources-YH6X5XI4.js → ensure-sources-DYGQNAJM.js} +4 -4
- package/dist/{ensure-sources-YH6X5XI4.js.map → ensure-sources-DYGQNAJM.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +8 -8
- package/dist/factory-assets/connectors/deploy.js +8 -8
- package/dist/factory-assets/connectors/devserver.js +8 -8
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +8 -8
- package/dist/factory-assets/connectors/flow/classifier-subprompt-runner.d.ts +40 -0
- package/dist/factory-assets/connectors/flow/classifier-subprompt-runner.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/contract/classifier.d.ts +60 -0
- package/dist/factory-assets/connectors/flow/contract/classifier.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts +22 -0
- package/dist/factory-assets/connectors/flow/contract/expression.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/index.d.ts +2 -1
- package/dist/factory-assets/connectors/flow/contract/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract/schema.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/contract.js +3 -3
- package/dist/factory-assets/connectors/flow/engine/engine.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts +9 -1
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +2 -2
- package/dist/factory-assets/connectors/flow/index.d.ts +1 -0
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +9 -9
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts +7 -0
- package/dist/factory-assets/connectors/flow/subprompt-runner.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow.js +8 -8
- package/dist/factory-assets/connectors/git.js +8 -8
- package/dist/factory-assets/connectors/gmail.js +8 -8
- package/dist/factory-assets/connectors/googledrive.js +8 -8
- package/dist/factory-assets/connectors/local.js +8 -8
- package/dist/factory-assets/connectors/mattermost.js +8 -8
- package/dist/factory-assets/connectors/memory.js +8 -8
- package/dist/factory-assets/connectors/minio.js +8 -8
- package/dist/factory-assets/connectors/postgres.js +8 -8
- package/dist/factory-assets/connectors/s3.js +8 -8
- package/dist/factory-assets/connectors/sharepoint.js +8 -8
- package/dist/factory-assets/connectors/sqlite.js +8 -8
- package/dist/factory-assets/connectors/static-server.js +8 -8
- package/dist/factory-assets/connectors/tunnel.js +8 -8
- package/dist/factory-assets/connectors/webdav.js +8 -8
- package/dist/factory-assets/connectors/xstate-store.js +8 -8
- package/dist/factory-assets/connectors/xstate.js +8 -8
- package/dist/{flows-4DYGXE4A.js → flows-MI2VM5JZ.js} +3 -3
- package/dist/{flows-4DYGXE4A.js.map → flows-MI2VM5JZ.js.map} +1 -1
- package/dist/{helpers-EJEK6NN6.js → helpers-G6XZPN6L.js} +4 -4
- package/dist/{helpers-EJEK6NN6.js.map → helpers-G6XZPN6L.js.map} +1 -1
- package/dist/{library-publish-66FHWXAA.js → library-publish-WHGKK7G5.js} +8 -8
- package/dist/{library-publish-66FHWXAA.js.map → library-publish-WHGKK7G5.js.map} +1 -1
- package/dist/{open-library-4W2UGVJN.js → open-library-4JSLGWL6.js} +7 -7
- package/dist/{open-library-4W2UGVJN.js.map → open-library-4JSLGWL6.js.map} +1 -1
- package/dist/{project-6OECVELE.js → project-LISE6I5O.js} +5 -5
- package/dist/{project-6OECVELE.js.map → project-LISE6I5O.js.map} +1 -1
- package/dist/runner/index.js +14 -14
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/bridge.js +4 -4
- package/dist/sdk/flow.js +2 -2
- package/dist/sdk/index.js +14 -14
- package/dist/sdk/runner.js +14 -14
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/session/index.js +2 -2
- package/dist/{setup-6IEVFDWB.js → setup-CIRH5BYB.js} +6 -6
- package/dist/{setup-6IEVFDWB.js.map → setup-CIRH5BYB.js.map} +1 -1
- package/dist/{source-HJQNRGTP.js → source-FKVEUOBQ.js} +8 -8
- package/dist/{source-HJQNRGTP.js.map → source-FKVEUOBQ.js.map} +1 -1
- package/dist/{source-manifest-publish-VU4BGFDU.js → source-manifest-publish-LTRXO2OQ.js} +9 -9
- package/dist/{source-manifest-publish-VU4BGFDU.js.map → source-manifest-publish-LTRXO2OQ.js.map} +1 -1
- package/dist/tui/index.js +14 -14
- package/dist/types/index.js +1 -1
- package/dist/types/src/flow.d.ts +94 -0
- package/dist/types/src/flow.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +8 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +3 -3
- 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-CP62G5PK.js.map +0 -1
- package/dist/chunk-NRKEZBVP.js.map +0 -1
- package/dist/chunk-Q6SWQEF7.js.map +0 -1
- package/dist/chunk-W5LPG3X6.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-
|
|
2
|
+
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-UAEGKCE5.js';
|
|
3
3
|
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-6H6HLMWG.js';
|
|
4
|
-
import { makeSourceCommand, syncProjectSources } from '../chunk-
|
|
5
|
-
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-
|
|
6
|
-
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-
|
|
4
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-F2GEM5B3.js';
|
|
5
|
+
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-O5JUZIVR.js';
|
|
6
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-7P6ASOFL.js';
|
|
7
7
|
import { AI_RESOURCES } from '../chunk-NW65H5EV.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 '../chunk-
|
|
9
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-YLL65VXQ.js';
|
|
10
|
+
import '../chunk-FFE7YLYO.js';
|
|
11
11
|
import '../chunk-E7HKNQTH.js';
|
|
12
12
|
import '../chunk-FUCYTGAE.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-773WLEXL.js';
|
|
14
14
|
import '../chunk-R6O6YWU7.js';
|
|
15
15
|
import '../chunk-FAI2SMFE.js';
|
|
16
16
|
import '../chunk-7IRJ4K4F.js';
|
|
17
|
-
import { buildClaudePluginFiles } from '../chunk-
|
|
17
|
+
import { buildClaudePluginFiles } from '../chunk-DY5GHUTC.js';
|
|
18
18
|
import '../chunk-X5YPJV4N.js';
|
|
19
19
|
import '../chunk-W3UDISS2.js';
|
|
20
20
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -23,29 +23,29 @@ import '../chunk-GTS2FODO.js';
|
|
|
23
23
|
import '../chunk-73ZXUUL6.js';
|
|
24
24
|
import '../chunk-32NA4TVC.js';
|
|
25
25
|
import '../chunk-T3YLZQS4.js';
|
|
26
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
26
|
+
import { runFlow, resumeFlow } from '../chunk-5UWAOYDN.js';
|
|
27
27
|
import '../chunk-4R6DROGN.js';
|
|
28
28
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-3XXQPHGL.js';
|
|
29
29
|
import '../chunk-7BUZQVRR.js';
|
|
30
|
-
import '../chunk-
|
|
31
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-M6VQU5TS.js';
|
|
31
|
+
import '../chunk-N27DSFA7.js';
|
|
32
32
|
import '../chunk-SIREWRZE.js';
|
|
33
|
-
import '../chunk-
|
|
33
|
+
import '../chunk-XMULHVKX.js';
|
|
34
34
|
import '../chunk-3NCGSSCU.js';
|
|
35
35
|
import '../chunk-LOO5CB5M.js';
|
|
36
|
-
import '../chunk-
|
|
36
|
+
import '../chunk-UL4LD7KD.js';
|
|
37
37
|
import '../chunk-GURXUF2J.js';
|
|
38
38
|
import '../chunk-GAH4YRCI.js';
|
|
39
|
-
import '../chunk-
|
|
39
|
+
import '../chunk-AQW4BWNR.js';
|
|
40
40
|
import '../chunk-6E6PKKAD.js';
|
|
41
41
|
import '../chunk-IFGTRL2I.js';
|
|
42
|
-
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-
|
|
43
|
-
import '../chunk-
|
|
44
|
-
import '../chunk-
|
|
42
|
+
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-JMYOJ3PA.js';
|
|
43
|
+
import '../chunk-TIOT3ZOQ.js';
|
|
44
|
+
import '../chunk-53ORCYPJ.js';
|
|
45
45
|
import '../chunk-2D5BYAL6.js';
|
|
46
46
|
import { nodeLabel, nodeSkillAsset, nodeIsInert, nodeIsOptional, nodeRunKind, flowSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
47
|
-
import '../chunk-
|
|
48
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
47
|
+
import '../chunk-72DG6GSB.js';
|
|
48
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-AEN2UFDN.js';
|
|
49
49
|
import { getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-TCHEW3T2.js';
|
|
50
50
|
import '../chunk-DZ4UZOFB.js';
|
|
51
51
|
import '../chunk-UKJMQZV6.js';
|
|
@@ -120,7 +120,7 @@ async function runSearch(kind, query, opts) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async function searchIndex(query, kind) {
|
|
123
|
-
const { openLibrary: openLibrary2 } = await import('../open-library-
|
|
123
|
+
const { openLibrary: openLibrary2 } = await import('../open-library-4JSLGWL6.js');
|
|
124
124
|
const library = await openLibrary2();
|
|
125
125
|
try {
|
|
126
126
|
const defs = await library.listAssetDefs(kind ? { kind } : {});
|
|
@@ -173,7 +173,7 @@ async function searchLocal(query, kind, opts, showStore, airGapped) {
|
|
|
173
173
|
const factory = await searchFactory(projectDir, query, kind);
|
|
174
174
|
let entries = unionEntries(await searchIndex(query, kind), factory);
|
|
175
175
|
if (entries.length === 0 && !query && !kind && !airGapped) {
|
|
176
|
-
const { autoSyncForSearch } = await import('../source-
|
|
176
|
+
const { autoSyncForSearch } = await import('../source-FKVEUOBQ.js');
|
|
177
177
|
if (await autoSyncForSearch(projectDir)) {
|
|
178
178
|
entries = unionEntries(await searchIndex(query, kind), factory);
|
|
179
179
|
}
|
|
@@ -227,7 +227,7 @@ async function searchStore(query, kind, opts, airGapped) {
|
|
|
227
227
|
logInfo("air-gapped (cache_ttl: 0) \u2014 local sources only");
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
230
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-4JSLGWL6.js');
|
|
231
231
|
try {
|
|
232
232
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
233
233
|
const assets = await remote.listAssets(kind ? { kind } : {});
|
|
@@ -542,7 +542,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
542
542
|
return { entry: match ?? deployed };
|
|
543
543
|
}
|
|
544
544
|
const lookup = opts.storeLookup ?? (async (filter) => {
|
|
545
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
545
|
+
const { resolveCatalogSource } = await import('../open-library-4JSLGWL6.js');
|
|
546
546
|
const { source, close } = await resolveCatalogSource({ projectDir: opts.projectDir });
|
|
547
547
|
try {
|
|
548
548
|
return await source.listAssets(filter);
|
|
@@ -558,7 +558,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
558
558
|
);
|
|
559
559
|
return { entry: hit ? catalogAssetToEntry(hit) : null };
|
|
560
560
|
} catch (err) {
|
|
561
|
-
const { LocalCatalogDisabledError } = await import('../open-library-
|
|
561
|
+
const { LocalCatalogDisabledError } = await import('../open-library-4JSLGWL6.js');
|
|
562
562
|
const storeNote = err instanceof Error ? err.message : String(err);
|
|
563
563
|
const disabled = err instanceof LocalCatalogDisabledError || /catalog\.url/i.test(storeNote);
|
|
564
564
|
return { entry: null, storeNote, ...disabled ? { storeDisabled: true } : {} };
|
|
@@ -1178,7 +1178,7 @@ function makeCatalogCommand() {
|
|
|
1178
1178
|
return catalog;
|
|
1179
1179
|
}
|
|
1180
1180
|
async function runLocalCatalogTest(projectDir) {
|
|
1181
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
1181
|
+
const { resolveCatalogSource } = await import('../open-library-4JSLGWL6.js');
|
|
1182
1182
|
let resolved;
|
|
1183
1183
|
try {
|
|
1184
1184
|
resolved = await resolveCatalogSource({ projectDir });
|
|
@@ -3417,16 +3417,16 @@ function makeLibraryCommand() {
|
|
|
3417
3417
|
});
|
|
3418
3418
|
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(
|
|
3419
3419
|
async (lib, opts) => {
|
|
3420
|
-
const { runLibraryPublish } = await import('../library-publish-
|
|
3420
|
+
const { runLibraryPublish } = await import('../library-publish-WHGKK7G5.js');
|
|
3421
3421
|
await withStoreErrorHandling(() => runLibraryPublish(lib, opts));
|
|
3422
3422
|
}
|
|
3423
3423
|
);
|
|
3424
3424
|
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) => {
|
|
3425
|
-
const { runLibraryRegister } = await import('../library-publish-
|
|
3425
|
+
const { runLibraryRegister } = await import('../library-publish-WHGKK7G5.js');
|
|
3426
3426
|
await withStoreErrorHandling(() => runLibraryRegister(lib, opts));
|
|
3427
3427
|
});
|
|
3428
3428
|
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) => {
|
|
3429
|
-
const { runLibraryYank } = await import('../library-publish-
|
|
3429
|
+
const { runLibraryYank } = await import('../library-publish-WHGKK7G5.js');
|
|
3430
3430
|
await withStoreErrorHandling(() => runLibraryYank(lib, opts));
|
|
3431
3431
|
});
|
|
3432
3432
|
return cmd;
|
|
@@ -4148,7 +4148,7 @@ function scheduleSoftDepPreview() {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
async function loadAssets() {
|
|
4150
4150
|
softDepPreviewCache.clear();
|
|
4151
|
-
const { gatherAssetFeeds } = await import('../asset-feeds-
|
|
4151
|
+
const { gatherAssetFeeds } = await import('../asset-feeds-AJOUKX55.js');
|
|
4152
4152
|
const { entries, domains, notes } = await gatherAssetFeeds(am, am.projectDir);
|
|
4153
4153
|
if (notes.length > 0) {
|
|
4154
4154
|
state.message = notes.map((n) => `[${n.feed}] ${n.message}`).join(" \u2022 ");
|
|
@@ -4354,7 +4354,7 @@ function reconcileCollapsedSets(rows) {
|
|
|
4354
4354
|
async function loadSourcesAndLibraries() {
|
|
4355
4355
|
try {
|
|
4356
4356
|
const [{ openLibraryManager: openLibraryManager2 }, { skaileHomeDir }, { getGlobalCacheDir: getGlobalCacheDir2 }] = await Promise.all([
|
|
4357
|
-
import('../open-library-
|
|
4357
|
+
import('../open-library-4JSLGWL6.js'),
|
|
4358
4358
|
import('../library/index.js'),
|
|
4359
4359
|
import('../core/index.js')
|
|
4360
4360
|
]);
|
|
@@ -6805,7 +6805,7 @@ function makeServeCommand() {
|
|
|
6805
6805
|
);
|
|
6806
6806
|
}
|
|
6807
6807
|
async function ensurePluginsLoadedForServe(projectDir) {
|
|
6808
|
-
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-
|
|
6808
|
+
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-G6XZPN6L.js');
|
|
6809
6809
|
try {
|
|
6810
6810
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
6811
6811
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
@@ -6824,7 +6824,7 @@ async function ensurePluginsLoadedForServe(projectDir) {
|
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
6826
|
async function runCompileTest(opts) {
|
|
6827
|
-
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-
|
|
6827
|
+
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-G6XZPN6L.js');
|
|
6828
6828
|
const { tmpdir } = await import('os');
|
|
6829
6829
|
const { dirname: dirname4, join: join7, resolve: resolve5 } = await import('path');
|
|
6830
6830
|
const { fileURLToPath: fileURLToPath2 } = await import('url');
|
|
@@ -7706,7 +7706,7 @@ function makeStoreCommand() {
|
|
|
7706
7706
|
process.exit(2);
|
|
7707
7707
|
});
|
|
7708
7708
|
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) => {
|
|
7709
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7709
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-4JSLGWL6.js');
|
|
7710
7710
|
try {
|
|
7711
7711
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7712
7712
|
const assets = await remote.listAssets(opts.kind ? { kind: opts.kind } : {});
|
|
@@ -7739,8 +7739,8 @@ function makeStoreCommand() {
|
|
|
7739
7739
|
}
|
|
7740
7740
|
});
|
|
7741
7741
|
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) => {
|
|
7742
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7743
|
-
const { supportsInstallManifest } = await import('../project-
|
|
7742
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-4JSLGWL6.js');
|
|
7743
|
+
const { supportsInstallManifest } = await import('../project-LISE6I5O.js');
|
|
7744
7744
|
try {
|
|
7745
7745
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7746
7746
|
const asset = await remote.resolve(ref);
|
|
@@ -8826,7 +8826,7 @@ async function bootstrapUserConfig() {
|
|
|
8826
8826
|
}
|
|
8827
8827
|
async function hydrateInitSources(resolved, created) {
|
|
8828
8828
|
try {
|
|
8829
|
-
const { ensureSourcesCloned } = await import('../ensure-sources-
|
|
8829
|
+
const { ensureSourcesCloned } = await import('../ensure-sources-DYGQNAJM.js');
|
|
8830
8830
|
const hydrate = ensureSourcesCloned(resolved, { quiet: true });
|
|
8831
8831
|
for (const n of hydrate.cloned) created.push(`~/.skaile/cache/sources/${n}/`);
|
|
8832
8832
|
if (hydrate.failed.length > 0) {
|
|
@@ -8866,7 +8866,7 @@ function printInitSummary(resolved, projectDir, created) {
|
|
|
8866
8866
|
console.log();
|
|
8867
8867
|
}
|
|
8868
8868
|
program.command("setup").description("Interactive provider setup wizard").action(async () => {
|
|
8869
|
-
const { cmdSetup } = await import('../setup-
|
|
8869
|
+
const { cmdSetup } = await import('../setup-CIRH5BYB.js');
|
|
8870
8870
|
await cmdSetup([], { projectDir: process.cwd() });
|
|
8871
8871
|
});
|
|
8872
8872
|
program.addCommand(makeInstallCommand());
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-N27DSFA7.js';
|
|
2
2
|
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-SIREWRZE.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-XMULHVKX.js';
|
|
4
4
|
import '../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../chunk-LOO5CB5M.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-UL4LD7KD.js';
|
|
7
7
|
import '../chunk-GURXUF2J.js';
|
|
8
8
|
import '../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-AQW4BWNR.js';
|
|
10
10
|
import '../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-JMYOJ3PA.js';
|
|
13
|
+
import '../chunk-TIOT3ZOQ.js';
|
|
14
|
+
import '../chunk-53ORCYPJ.js';
|
|
15
15
|
import '../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-72DG6GSB.js';
|
|
18
18
|
import '../chunk-HSRHO7SK.js';
|
|
19
19
|
import '../chunk-F3HNW354.js';
|
|
20
20
|
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-7P6ASOFL.js';
|
|
2
|
+
import './chunk-AEN2UFDN.js';
|
|
3
3
|
import './chunk-TCHEW3T2.js';
|
|
4
4
|
import './chunk-DZ4UZOFB.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-DYGQNAJM.js.map
|
|
90
|
+
//# sourceMappingURL=ensure-sources-DYGQNAJM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAMA,SAAS,kBAAA,CAAmB,KAAA,EAAoB,KAAA,EAAgB,MAAA,EAA4B;AAC1F,EAAA,MAAM,GAAA,GAAM,cAAA,CAAe,KAAA,CAAM,GAAG,CAAA;AACpC,EAAA,MAAM,IAAA,GAAO,eAAA,CAAgB,KAAA,CAAM,GAAG,CAAA;AACtC,EAAA,MAAM,IAAA,GAAO,gBAAgB,GAAG,CAAA;AAChC,EAAA,IAAI,UAAA,CAAW,IAAI,CAAA,EAAG;AACpB,IAAA,MAAA,CA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AAC,CAAA,EAAA,CAAI,CAAA;AAC5D,EAAA,IAAI,MAAA,CAAO,MAAA,CAAO,MAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,OAAA,CAAQ,yBAAyB,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,EAC7D;AACF;AAUO,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-DYGQNAJM.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,20 +1,20 @@
|
|
|
1
|
-
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-
|
|
1
|
+
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-N27DSFA7.js';
|
|
2
2
|
import '../../chunk-SIREWRZE.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-XMULHVKX.js';
|
|
4
4
|
import '../../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../../chunk-LOO5CB5M.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-UL4LD7KD.js';
|
|
7
7
|
import '../../chunk-GURXUF2J.js';
|
|
8
8
|
import '../../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-AQW4BWNR.js';
|
|
10
10
|
import '../../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-JMYOJ3PA.js';
|
|
13
|
+
import '../../chunk-TIOT3ZOQ.js';
|
|
14
|
+
import '../../chunk-53ORCYPJ.js';
|
|
15
15
|
import '../../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-72DG6GSB.js';
|
|
18
18
|
import '../../chunk-HSRHO7SK.js';
|
|
19
19
|
import '../../chunk-F3HNW354.js';
|
|
20
20
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-
|
|
1
|
+
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-N27DSFA7.js';
|
|
2
2
|
import '../../chunk-SIREWRZE.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-XMULHVKX.js';
|
|
4
4
|
import '../../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../../chunk-LOO5CB5M.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-UL4LD7KD.js';
|
|
7
7
|
import '../../chunk-GURXUF2J.js';
|
|
8
8
|
import '../../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-AQW4BWNR.js';
|
|
10
10
|
import '../../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-JMYOJ3PA.js';
|
|
13
|
+
import '../../chunk-TIOT3ZOQ.js';
|
|
14
|
+
import '../../chunk-53ORCYPJ.js';
|
|
15
15
|
import '../../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-72DG6GSB.js';
|
|
18
18
|
import '../../chunk-HSRHO7SK.js';
|
|
19
19
|
import '../../chunk-F3HNW354.js';
|
|
20
20
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-
|
|
1
|
+
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-N27DSFA7.js';
|
|
2
2
|
import '../../chunk-SIREWRZE.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-XMULHVKX.js';
|
|
4
4
|
import '../../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../../chunk-LOO5CB5M.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-UL4LD7KD.js';
|
|
7
7
|
import '../../chunk-GURXUF2J.js';
|
|
8
8
|
import '../../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-AQW4BWNR.js';
|
|
10
10
|
import '../../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-JMYOJ3PA.js';
|
|
13
|
+
import '../../chunk-TIOT3ZOQ.js';
|
|
14
|
+
import '../../chunk-53ORCYPJ.js';
|
|
15
15
|
import '../../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-72DG6GSB.js';
|
|
18
18
|
import '../../chunk-HSRHO7SK.js';
|
|
19
19
|
import '../../chunk-F3HNW354.js';
|
|
20
20
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -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,EAEpB,KAAK,mBAAmB,EAGxB,KAAK,QAAQ,EACd,MAAM,+BAA+B,CAAC;AACvC,OA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F;IACjF,gCAAgC,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE;IASnE,gEAAgE;IAChE,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE;IAIpD;;;;OAIG;IACH,oBAAoB,CAAC,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,GAAG,OAAO;IA8B9E;;;;OAIG;IACG,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;IAIxE;;;;;;OAMG;IACG,6BAA6B,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;YAItE,0BAA0B;IAwpBxC,8FAA8F;IAC9F,OAAO,CAAC,sBAAsB;IA2I9B,OAAO,CAAC,CAAC;IAIT;;;;;;OAMG;IACH,OAAO,CAAC,MAAM;IAgDd;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAkEjB,OAAO,CAAC,cAAc;IAOtB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,kBAAkB;IAK1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,cAAc;IA+BtB;;;;;;;;;OASG;YACW,0BAA0B;IAsCxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,kBAAkB;IA4C1B;;OAEG;IACH,OAAO,CAAC,YAAY;CA+ErB;AAoZD,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,EAAE,CAE9D"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-
|
|
1
|
+
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-N27DSFA7.js';
|
|
2
2
|
import '../../../chunk-SIREWRZE.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-XMULHVKX.js';
|
|
4
4
|
import '../../../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../../../chunk-LOO5CB5M.js';
|
|
6
|
-
import '../../../chunk-
|
|
6
|
+
import '../../../chunk-UL4LD7KD.js';
|
|
7
7
|
import '../../../chunk-GURXUF2J.js';
|
|
8
8
|
import '../../../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../../../chunk-
|
|
9
|
+
import '../../../chunk-AQW4BWNR.js';
|
|
10
10
|
import '../../../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../../../chunk-IFGTRL2I.js';
|
|
12
|
-
export { isBlocking } from '../../../chunk-
|
|
13
|
-
import '../../../chunk-
|
|
14
|
-
import '../../../chunk-
|
|
12
|
+
export { isBlocking } from '../../../chunk-JMYOJ3PA.js';
|
|
13
|
+
import '../../../chunk-TIOT3ZOQ.js';
|
|
14
|
+
import '../../../chunk-53ORCYPJ.js';
|
|
15
15
|
import '../../../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../../../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../../../chunk-
|
|
17
|
+
import '../../../chunk-72DG6GSB.js';
|
|
18
18
|
import '../../../chunk-HSRHO7SK.js';
|
|
19
19
|
import '../../../chunk-F3HNW354.js';
|
|
20
20
|
import '../../../chunk-K5GBV4SA.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { FlowClassifierQuestion, HostClassifyInput } from "@skaile/workspaces/types";
|
|
2
|
+
import { type ClassifierDecision } from "./contract/classifier.js";
|
|
3
|
+
import type { SubpromptExecutorRequest, SubpromptExecutorResult, SubpromptRunner } from "./subprompt-runner.js";
|
|
4
|
+
/** Calls the host's `host.classify` runtime capability; resolves with its raw result. */
|
|
5
|
+
export type HostClassifyInvoker = (input: HostClassifyInput) => Promise<unknown>;
|
|
6
|
+
/** Why a classifier-shaped node ran on the generative fallback instead. */
|
|
7
|
+
export interface ClassifierFallback {
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The host's `ok: false` code, `invalid_result`, or `invoke_failed`. */
|
|
10
|
+
reason: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Dependencies of {@link ClassifierSubpromptRunner}. */
|
|
14
|
+
export interface ClassifierSubpromptRunnerOptions {
|
|
15
|
+
/** The generative runner: every non-classifier node, and the fallback for classifier nodes. */
|
|
16
|
+
inner: SubpromptRunner;
|
|
17
|
+
classify: HostClassifyInvoker;
|
|
18
|
+
/** Carried to the host for its audit and usage records. */
|
|
19
|
+
runId?: string;
|
|
20
|
+
/** Observes each fallback, e.g. to log it; the node itself still completes. */
|
|
21
|
+
onFallback?: (fallback: ClassifierFallback) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Sends classifier-shaped subprompt nodes to the host's classifier and every
|
|
25
|
+
* other subprompt to the wrapped runner.
|
|
26
|
+
*
|
|
27
|
+
* A classification never hard-fails a flow because a vendor is down: when the
|
|
28
|
+
* host has no classifier, the provider failed, or the answer does not fit the
|
|
29
|
+
* declared decision, the node runs on the wrapped generative runner, and the
|
|
30
|
+
* adapter forces that answer uncalibrated so it lands at the gate.
|
|
31
|
+
*/
|
|
32
|
+
export declare class ClassifierSubpromptRunner implements SubpromptRunner {
|
|
33
|
+
private readonly options;
|
|
34
|
+
constructor(options: ClassifierSubpromptRunnerOptions);
|
|
35
|
+
execute(request: SubpromptExecutorRequest): Promise<SubpromptExecutorResult>;
|
|
36
|
+
private fallback;
|
|
37
|
+
}
|
|
38
|
+
/** The host-port question for one classifier decision. */
|
|
39
|
+
export declare function classifierQuestion(decision: ClassifierDecision, instructions: string): FlowClassifierQuestion;
|
|
40
|
+
//# sourceMappingURL=classifier-subprompt-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classifier-subprompt-runner.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/classifier-subprompt-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,0BAA0B,CAAC;AAGvF,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAE/B,yFAAyF;AACzF,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEjF,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yDAAyD;AACzD,MAAM,WAAW,gCAAgC;IAC/C,+FAA+F;IAC/F,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,qBAAa,yBAA0B,YAAW,eAAe;IACnD,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,gCAAgC;IAEhE,OAAO,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAqClF,OAAO,CAAC,QAAQ;CAOjB;AAED,0DAA0D;AAC1D,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,kBAAkB,EAC5B,YAAY,EAAE,MAAM,GACnB,sBAAsB,CAUxB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classifier-shaped `subprompt` nodes (classifier spec D5): a subprompt opts in by
|
|
3
|
+
* declaring the reserved output properties `confidence` and `calibrated` next to
|
|
4
|
+
* exactly one closed decision property. Only the runtime ever writes the two
|
|
5
|
+
* reserved values, so a threshold on `confidence` can trust them.
|
|
6
|
+
*
|
|
7
|
+
* Pure: shared by the contract rules (`schema.ts`), the adapter, and the runner's
|
|
8
|
+
* classifier decorator, so all three agree on what "classifier-shaped" means.
|
|
9
|
+
*/
|
|
10
|
+
/** Output properties only the runtime may write on a classifier node. */
|
|
11
|
+
export declare const RESERVED_CLASSIFIER_FIELDS: readonly ["confidence", "calibrated"];
|
|
12
|
+
/** One of {@link RESERVED_CLASSIFIER_FIELDS}. */
|
|
13
|
+
export type ReservedClassifierField = (typeof RESERVED_CLASSIFIER_FIELDS)[number];
|
|
14
|
+
/** The one decision a classifier node asks for, in the vocabulary of the host port. */
|
|
15
|
+
export type ClassifierDecision = {
|
|
16
|
+
kind: "choice";
|
|
17
|
+
field: string;
|
|
18
|
+
/** Label → rubric (null when the author gave none), in declared order. */
|
|
19
|
+
options: Record<string, string | null>;
|
|
20
|
+
} | {
|
|
21
|
+
kind: "score";
|
|
22
|
+
field: string;
|
|
23
|
+
/** Levels in ascending `const` order; an answer's level index maps back through {@link values}. */
|
|
24
|
+
levels: string[];
|
|
25
|
+
/** The authored integer `const` for each entry of {@link levels}. */
|
|
26
|
+
values: number[];
|
|
27
|
+
} | {
|
|
28
|
+
kind: "binary";
|
|
29
|
+
field: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
};
|
|
32
|
+
/** Top-level output property names a contract declares, or `[]` when it declares none. */
|
|
33
|
+
export declare function declaredOutputProperties(outputSchema: unknown): string[];
|
|
34
|
+
/** True when the contract declares either reserved name as a top-level output property. */
|
|
35
|
+
export declare function declaresReservedClassifierField(outputSchema: unknown): boolean;
|
|
36
|
+
/** Result of checking a subprompt's output contract against the classifier shape. */
|
|
37
|
+
export type ClassifierShapeCheck = {
|
|
38
|
+
classifier: false;
|
|
39
|
+
} | {
|
|
40
|
+
classifier: true;
|
|
41
|
+
decision: ClassifierDecision;
|
|
42
|
+
} | {
|
|
43
|
+
classifier: true;
|
|
44
|
+
issues: string[];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check an output contract against the classifier shape. Returns `classifier: false`
|
|
48
|
+
* when neither reserved name is declared (no opt-in), the decision when the shape
|
|
49
|
+
* holds, or the issues when the node opted in but the shape does not hold.
|
|
50
|
+
*/
|
|
51
|
+
export declare function checkClassifierShape(outputSchema: unknown): ClassifierShapeCheck;
|
|
52
|
+
/** The decision of a well-formed classifier contract, or `undefined` for any other contract. */
|
|
53
|
+
export declare function classifierDecision(outputSchema: unknown): ClassifierDecision | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* The output schema with the reserved properties removed, for the prompt the
|
|
56
|
+
* generative fallback sees: the model is asked only for the decision, never for
|
|
57
|
+
* a number it would make up.
|
|
58
|
+
*/
|
|
59
|
+
export declare function withoutReservedClassifierFields(outputSchema: Record<string, unknown>): Record<string, unknown>;
|
|
60
|
+
//# sourceMappingURL=classifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classifier.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,yEAAyE;AACzE,eAAO,MAAM,0BAA0B,uCAAwC,CAAC;AAEhF,iDAAiD;AACjD,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAOlF,uFAAuF;AACvF,MAAM,MAAM,kBAAkB,GAC1B;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACxC,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,qEAAqE;IACrE,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,GACD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D,0FAA0F;AAC1F,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,OAAO,GAAG,MAAM,EAAE,CAKxE;AAED,2FAA2F;AAC3F,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,OAAO,GAAG,OAAO,CAG9E;AAyID,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAC5B;IAAE,UAAU,EAAE,KAAK,CAAA;CAAE,GACrB;IAAE,UAAU,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GAClD;IAAE,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,OAAO,GAAG,oBAAoB,CAwChF;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAGxF;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzB"}
|
|
@@ -61,6 +61,28 @@ export interface FlowExpressionReference {
|
|
|
61
61
|
/** True when logical evaluation requires the resolved value itself to be boolean. */
|
|
62
62
|
booleanOperand: boolean;
|
|
63
63
|
}
|
|
64
|
+
/** One side of a comparison: a context path, or a literal (anything that is not a bare path). */
|
|
65
|
+
export type FlowExpressionOperand = {
|
|
66
|
+
path: string;
|
|
67
|
+
} | {
|
|
68
|
+
literal: unknown;
|
|
69
|
+
};
|
|
70
|
+
/** Static evidence for one comparison, with the guards that short-circuit ahead of it. */
|
|
71
|
+
export interface FlowExpressionComparison {
|
|
72
|
+
/** `==`, `!=`, `<`, `<=`, `>`, `>=` or `in`. */
|
|
73
|
+
operator: string;
|
|
74
|
+
left: FlowExpressionOperand;
|
|
75
|
+
right: FlowExpressionOperand;
|
|
76
|
+
/**
|
|
77
|
+
* Paths `p` of every literal `p == true` conjunct that sits strictly earlier in
|
|
78
|
+
* an enclosing `&&` chain, so the comparison is evaluated only once each is
|
|
79
|
+
* true. Only that literal form counts: `true == p` and `p != false` are not
|
|
80
|
+
* recognized as guards.
|
|
81
|
+
*/
|
|
82
|
+
guards: string[];
|
|
83
|
+
}
|
|
84
|
+
/** Report every comparison in an authored expression, for rules that need operators and guards. */
|
|
85
|
+
export declare function inspectFlowExpressionComparisons(expression: string): FlowExpressionComparison[];
|
|
64
86
|
/** Validates authored syntax without reading runtime values; binding mode relaxes only the result type. */
|
|
65
87
|
export declare function inspectFlowExpression(expression: string, requireBoolean?: boolean): FlowExpressionReference[];
|
|
66
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,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,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,KAAK,EAAE,OAAO,CAAC;IACf,oEAAoE;IACpE,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,+EAA+E;AAC/E,MAAM,WAAW,oBAAoB;IACnC,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,MAAM,gBAAgB,GAAG,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;IAE/C,gFAAgF;IAChF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAE9B,iFAAiF;IACjF,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEtB,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM;CAK5E;
|
|
1
|
+
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;EAMjC,CAAC;AAEH,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,wDAAwD;IACxD,IAAI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8 @@
|
|
|
1
1
|
export { FlowDefinitionSchema, type FlowAssetRef, type FlowDefinition, type FlowEdge, type FlowInputContract, type FlowJsonArray, type FlowJsonValue, 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 { coerceInputSchema, INPUT_SCHEMA_SHAPES_HINT, type InputSchemaCoercion, } from "./input-schema.js";
|
|
3
3
|
export { normalizeV1, parseFlowDefinition, type FlowDefinitionIssue, type FlowDefinitionParseResult, type LegacyCompatibilityEdge, type ParsedFlowDefinition, } from "./normalize.js";
|
|
4
|
-
export { evaluate, evaluateFlowExpression, FLOW_EXPRESSION_LIMITS, FlowExpressionError, resolveFlowBindings, type BindingOrigin, type FlowExpressionContext, type NodeOutputOrigin, type ResolvedBinding, type ResolvedNodeBindings, } from "./expression.js";
|
|
4
|
+
export { evaluate, evaluateFlowExpression, FLOW_EXPRESSION_LIMITS, FlowExpressionError, inspectFlowExpressionComparisons, resolveFlowBindings, type FlowExpressionComparison, type FlowExpressionOperand, type BindingOrigin, type FlowExpressionContext, type NodeOutputOrigin, type ResolvedBinding, type ResolvedNodeBindings, } from "./expression.js";
|
|
5
|
+
export { checkClassifierShape, classifierDecision, declaresReservedClassifierField, RESERVED_CLASSIFIER_FIELDS, withoutReservedClassifierFields, type ClassifierDecision, type ClassifierShapeCheck, type ReservedClassifierField, } from "./classifier.js";
|
|
5
6
|
export { canonicalizeFlowDefinition, hashFlowDefinition } from "./hash.js";
|
|
6
7
|
export { FLOW_DEFINITION_JSON_SCHEMA_ID, generateFlowDefinitionJsonSchema, } from "./json-schema.js";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|