@skaile/workspaces 2.7.0 → 2.9.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/{asset-feeds-23CP6YUY.js → asset-feeds-EO2QDJ4C.js} +4 -4
- package/dist/{asset-feeds-23CP6YUY.js.map → asset-feeds-EO2QDJ4C.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/{chunk-6AYGXPPF.js → chunk-4PSDPZUG.js} +2 -2
- package/dist/{chunk-6AYGXPPF.js.map → chunk-4PSDPZUG.js.map} +1 -1
- package/dist/{chunk-OAUKA7VT.js → chunk-5LA4XI4Y.js} +8 -8
- package/dist/{chunk-OAUKA7VT.js.map → chunk-5LA4XI4Y.js.map} +1 -1
- package/dist/{chunk-JIA2S3T2.js → chunk-AFUOORJE.js} +6 -6
- package/dist/{chunk-JIA2S3T2.js.map → chunk-AFUOORJE.js.map} +1 -1
- package/dist/{chunk-TUYN2HDT.js → chunk-AGFAOSCZ.js} +10 -4
- package/dist/chunk-AGFAOSCZ.js.map +1 -0
- package/dist/{chunk-AZ44F3AT.js → chunk-BIKTLLLD.js} +6 -6
- package/dist/{chunk-AZ44F3AT.js.map → chunk-BIKTLLLD.js.map} +1 -1
- package/dist/{chunk-HVQWLYZB.js → chunk-E5VGAW4E.js} +508 -83
- package/dist/chunk-E5VGAW4E.js.map +1 -0
- package/dist/{chunk-XJ74XFIZ.js → chunk-INHE5U74.js} +21 -8
- package/dist/chunk-INHE5U74.js.map +1 -0
- package/dist/{chunk-SCR3WGW7.js → chunk-OHLKWUO3.js} +3 -3
- package/dist/{chunk-SCR3WGW7.js.map → chunk-OHLKWUO3.js.map} +1 -1
- package/dist/{chunk-XTFZOYNY.js → chunk-QVFCDSRH.js} +3 -3
- package/dist/{chunk-XTFZOYNY.js.map → chunk-QVFCDSRH.js.map} +1 -1
- package/dist/{chunk-ONUDDQGS.js → chunk-TU7JDHKS.js} +2 -2
- package/dist/{chunk-ONUDDQGS.js.map → chunk-TU7JDHKS.js.map} +1 -1
- package/dist/{chunk-E4AVJMOJ.js → chunk-UAIR3K6X.js} +85 -5
- package/dist/chunk-UAIR3K6X.js.map +1 -0
- package/dist/{chunk-ZJOEU5GP.js → chunk-UTHMTZEH.js} +2 -2
- package/dist/{chunk-ZJOEU5GP.js.map → chunk-UTHMTZEH.js.map} +1 -1
- package/dist/{chunk-P3DUVOAW.js → chunk-XHSS3YHV.js} +6 -6
- package/dist/{chunk-P3DUVOAW.js.map → chunk-XHSS3YHV.js.map} +1 -1
- package/dist/{chunk-FW2C6JJP.js → chunk-XXDQHZJY.js} +3 -3
- package/dist/{chunk-FW2C6JJP.js.map → chunk-XXDQHZJY.js.map} +1 -1
- package/dist/{chunk-ZJ7MRR2R.js → chunk-YFAED6OB.js} +4 -4
- package/dist/{chunk-ZJ7MRR2R.js.map → chunk-YFAED6OB.js.map} +1 -1
- package/dist/{chunk-IWUIXNMF.js → chunk-ZXJKWA44.js} +3 -3
- package/dist/{chunk-IWUIXNMF.js.map → chunk-ZXJKWA44.js.map} +1 -1
- package/dist/cli/index.js +31 -31
- package/dist/connectors/index.js +5 -5
- package/dist/{ensure-sources-N7B7657V.js → ensure-sources-6ZOD45TO.js} +4 -4
- package/dist/{ensure-sources-N7B7657V.js.map → ensure-sources-6ZOD45TO.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 +39 -11
- package/dist/factory-assets/connectors/flow/adapter.d.ts +92 -5
- 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 +2 -24
- package/dist/factory-assets/connectors/flow/contract/expression.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 +2 -2
- package/dist/factory-assets/connectors/flow/engine/check-provenance.d.ts +47 -0
- package/dist/factory-assets/connectors/flow/engine/check-provenance.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/index.d.ts +3 -0
- package/dist/factory-assets/connectors/flow/engine/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/node-attempts.d.ts +68 -0
- package/dist/factory-assets/connectors/flow/engine/node-attempts.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/node-deadline.d.ts +44 -0
- package/dist/factory-assets/connectors/flow/engine/node-deadline.d.ts.map +1 -0
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts +8 -0
- package/dist/factory-assets/connectors/flow/engine/node-shape.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine/types.d.ts +13 -12
- 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/index.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/node-executor.d.ts +10 -4
- package/dist/factory-assets/connectors/flow/node-executor.d.ts.map +1 -1
- 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-K7B253U6.js → flows-7N5AUUIS.js} +3 -3
- package/dist/{flows-K7B253U6.js.map → flows-7N5AUUIS.js.map} +1 -1
- package/dist/{helpers-PXEHIKF7.js → helpers-HWLCANAK.js} +4 -4
- package/dist/{helpers-PXEHIKF7.js.map → helpers-HWLCANAK.js.map} +1 -1
- package/dist/{library-publish-3Z33J2ZY.js → library-publish-GSAIZCO3.js} +9 -9
- package/dist/{library-publish-3Z33J2ZY.js.map → library-publish-GSAIZCO3.js.map} +1 -1
- package/dist/{open-library-Y5SKFAMK.js → open-library-ZB2STYC6.js} +8 -8
- package/dist/{open-library-Y5SKFAMK.js.map → open-library-ZB2STYC6.js.map} +1 -1
- package/dist/{project-DQRC6J6M.js → project-EJFCLSHS.js} +5 -5
- package/dist/{project-DQRC6J6M.js.map → project-EJFCLSHS.js.map} +1 -1
- package/dist/run-group-engine/index.js +2 -1
- package/dist/run-group-engine/index.js.map +1 -1
- package/dist/run-group-engine/src/admit.d.ts +8 -5
- package/dist/run-group-engine/src/admit.d.ts.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/{source-XBJ5KTAV.js → source-ILV6ZKWM.js} +9 -9
- package/dist/{source-XBJ5KTAV.js.map → source-ILV6ZKWM.js.map} +1 -1
- package/dist/{source-manifest-publish-Q7TXBMCW.js → source-manifest-publish-QE2IFDRW.js} +10 -10
- package/dist/{source-manifest-publish-Q7TXBMCW.js.map → source-manifest-publish-QE2IFDRW.js.map} +1 -1
- package/dist/tui/index.js +9 -9
- package/dist/types/src/flow.d.ts +128 -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/run-group.d.ts +7 -0
- package/dist/types/src/run-group.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-E4AVJMOJ.js.map +0 -1
- package/dist/chunk-HVQWLYZB.js.map +0 -1
- package/dist/chunk-TUYN2HDT.js.map +0 -1
- package/dist/chunk-XJ74XFIZ.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-BIKTLLLD.js';
|
|
3
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-AFUOORJE.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-YFAED6OB.js';
|
|
7
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-QVFCDSRH.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-5LA4XI4Y.js';
|
|
10
|
+
import { buildClaudePluginFiles } from '../chunk-UTHMTZEH.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-XHSS3YHV.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-ZXJKWA44.js';
|
|
29
|
+
import '../chunk-E5VGAW4E.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-UAIR3K6X.js';
|
|
34
|
+
import '../chunk-INHE5U74.js';
|
|
35
|
+
import '../chunk-OHLKWUO3.js';
|
|
36
|
+
import '../chunk-AGFAOSCZ.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-4PSDPZUG.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-ZB2STYC6.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-ILV6ZKWM.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-ZB2STYC6.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-ZB2STYC6.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-ZB2STYC6.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-ZB2STYC6.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-GSAIZCO3.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-GSAIZCO3.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-GSAIZCO3.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-EO2QDJ4C.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-ZB2STYC6.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-HWLCANAK.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-HWLCANAK.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-ZB2STYC6.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-ZB2STYC6.js');
|
|
7726
|
+
const { supportsInstallManifest } = await import('../project-EJFCLSHS.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-6ZOD45TO.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-E5VGAW4E.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-UAIR3K6X.js';
|
|
6
|
+
import '../chunk-INHE5U74.js';
|
|
7
|
+
import '../chunk-OHLKWUO3.js';
|
|
8
|
+
import '../chunk-AGFAOSCZ.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-QVFCDSRH.js';
|
|
2
|
+
import './chunk-4PSDPZUG.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-6ZOD45TO.js.map
|
|
90
|
+
//# sourceMappingURL=ensure-sources-6ZOD45TO.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,CAAO,MAAA,CAAO,KAAK,IAAI,CAAA;AACvB,IAAA;AAAA,EACF;AACA,EAAA,SAAA,CAAe,aAAQ,IAAI,CAAA,EAAG,E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AA,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-6ZOD45TO.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-E5VGAW4E.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-UAIR3K6X.js';
|
|
6
|
+
import '../../chunk-INHE5U74.js';
|
|
7
|
+
import '../../chunk-OHLKWUO3.js';
|
|
8
|
+
import '../../chunk-AGFAOSCZ.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-E5VGAW4E.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-UAIR3K6X.js';
|
|
6
|
+
import '../../chunk-INHE5U74.js';
|
|
7
|
+
import '../../chunk-OHLKWUO3.js';
|
|
8
|
+
import '../../chunk-AGFAOSCZ.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-E5VGAW4E.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-UAIR3K6X.js';
|
|
6
|
+
import '../../chunk-INHE5U74.js';
|
|
7
|
+
import '../../chunk-OHLKWUO3.js';
|
|
8
|
+
import '../../chunk-AGFAOSCZ.js';
|
|
9
9
|
import '../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../chunk-K5GBV4SA.js';
|
|
@@ -17,9 +17,9 @@ bridges three ownership roles:
|
|
|
17
17
|
read-only `get_state`, `get_globals`, `get_available`, `validate_node`,
|
|
18
18
|
`build_handoff`).
|
|
19
19
|
- **Runtime** — resolves available `router` nodes with bounded expressions,
|
|
20
|
-
drains available `function` nodes through `NodeExecutor`, parks
|
|
21
|
-
`gate` nodes through durable approval state, and drives available
|
|
22
|
-
nodes inline before an agent turn is considered.
|
|
20
|
+
drains available `function` and `check` nodes through `NodeExecutor`, parks
|
|
21
|
+
available `gate` nodes through durable approval state, and drives available
|
|
22
|
+
`sub-flow` nodes inline before an agent turn is considered.
|
|
23
23
|
- **Host** — the runner applies out-of-turn mutations through direct adapter
|
|
24
24
|
methods (`applyApproval`, `applyInput`, `retryNode`, `setAutonomousMode`,
|
|
25
25
|
`cancel`, `hydrate`) in response to platform actions, forwards persistence
|
|
@@ -37,20 +37,48 @@ declared in `skaile.yaml` — it is constructed by the runner per session
|
|
|
37
37
|
and bound to the active `FlowDefinition`.
|
|
38
38
|
|
|
39
39
|
The adapter normalizes authored definitions at its connect/start boundary.
|
|
40
|
-
Strict v2 `run.kind: agent`, `run.kind: function`, `run.kind:
|
|
41
|
-
`run.kind: router`, and `run.kind: sub-flow` nodes are
|
|
42
|
-
definitions, explicit `type: skill` nodes normalize into the agent shape and exact `type: sub-flow`
|
|
40
|
+
Strict v2 `run.kind: agent`, `run.kind: function`, `run.kind: check`,
|
|
41
|
+
`run.kind: gate`, `run.kind: router`, and `run.kind: sub-flow` nodes are
|
|
42
|
+
active. Among legacy definitions, explicit `type: skill` nodes normalize into the agent shape and exact `type: sub-flow`
|
|
43
43
|
nodes with `data.flow` normalize into the active inline-child shape. Other
|
|
44
44
|
legacy kinds normalize to false-precondition router placeholders: they are
|
|
45
45
|
tracked but never become available, so their outgoing hard flow edges remain
|
|
46
46
|
blocking. A selected
|
|
47
47
|
available or running agent receives its instruction, resolved
|
|
48
48
|
bindings with origins, asset requirements, and completed predecessor
|
|
49
|
-
context through `build_handoff`. Functions receive resolved raw
|
|
50
|
-
environment variables while provenance remains on the executor
|
|
51
|
-
inherit the session environment and run from the session
|
|
52
|
-
Configured stdout/stderr captures map only to `fields.<name>`
|
|
53
|
-
remain attached to both completed and failed node executions.
|
|
49
|
+
context through `build_handoff`. Functions and checks receive resolved raw
|
|
50
|
+
values as environment variables while provenance remains on the executor
|
|
51
|
+
request. They inherit the session environment and run from the session
|
|
52
|
+
workspace. Configured stdout/stderr captures map only to `fields.<name>`
|
|
53
|
+
output keys and remain attached to both completed and failed node executions.
|
|
54
|
+
|
|
55
|
+
A `check` runs the same deterministic process as a function, through the same
|
|
56
|
+
`NodeExecutor` seam, but its exit status is a pass/fail verdict rather than a
|
|
57
|
+
plain success/failure. A clean exit inside `successExit` completes the node
|
|
58
|
+
exactly like a function — no approval, no agent turn, dark. A clean exit
|
|
59
|
+
outside `successExit` is a fail *verdict*: the runtime derives evidence — each
|
|
60
|
+
compared binding's value, whether *every compared value's immediate origin*
|
|
61
|
+
was runtime-obtained (`"verified"`) or at least one was agent-obtained
|
|
62
|
+
(`"asserted"`; the taint check is one-hop, not transitive — see
|
|
63
|
+
`engine/check-provenance.ts`), and whether the check's inputs could have
|
|
64
|
+
observed anything beyond the flow's own authored state — plus the process
|
|
65
|
+
record (`runtime`, `command`, `cwd`, `successExit`) so a persisted attempt is
|
|
66
|
+
self-describing, and attaches it to the attempt. `provenance` is present only
|
|
67
|
+
when there was at least one compared value; `inputs` defaults to `"live"`
|
|
68
|
+
(the floor for any check that runs a process) and is `"flow-local"` only when
|
|
69
|
+
every compared value's origins are all `literal`/`default`/`flow-input`. A
|
|
70
|
+
check cannot declare `control.optional` — rejected at parse time, since an
|
|
71
|
+
optional verification is close to a contradiction either way it could resolve.
|
|
72
|
+
Once the automatic retry budget (`control.retries`) is exhausted, `onFail:
|
|
73
|
+
'fail'` (the alternative) fails the node terminally, while `onFail: 'escalate'`
|
|
74
|
+
(the default) parks it at `awaiting_approval` with an `Approval` naming the
|
|
75
|
+
failed check, its exit status, and the provenance label when one applies.
|
|
76
|
+
Escalation is a one-way door: `applyApproval` rejects an `"approved"` decision
|
|
77
|
+
on a check outright rather than silently ignoring it, and a `"rejected"`
|
|
78
|
+
decision ends the node terminally `failed` — there is no revision path and no
|
|
79
|
+
way back to `available`. A spawn failure or a timeout produced no verdict at
|
|
80
|
+
all, so it is always a plain node failure, carries no evidence, and never
|
|
81
|
+
escalates regardless of `onFail`.
|
|
54
82
|
|
|
55
83
|
A first-class gate never enters the agent mutation surface and never calls
|
|
56
84
|
`NodeExecutor`. Admission parks it at `awaiting_approval` with `run.prompt` as
|
|
@@ -91,6 +91,14 @@ export interface FlowAdapterState {
|
|
|
91
91
|
inlineSubFlowAncestry: string[];
|
|
92
92
|
/** Non-durable ownership epoch for results returned by in-flight inline children. */
|
|
93
93
|
executionGeneration: number;
|
|
94
|
+
/**
|
|
95
|
+
* Non-durable opportunistic wake timer for agent-node deadline re-evaluation.
|
|
96
|
+
* The derived deadline (see `engine/node-deadline.ts`) is the source of truth;
|
|
97
|
+
* this timer's only job is to trigger a re-evaluation call while nothing else
|
|
98
|
+
* would (a genuinely hung agent turn has no other event to react to). Rearmed
|
|
99
|
+
* after every mutation, `connect()`, and `hydrate()`; cleared on `disconnect()`.
|
|
100
|
+
*/
|
|
101
|
+
wakeTimer: ReturnType<typeof setTimeout> | null;
|
|
94
102
|
}
|
|
95
103
|
/**
|
|
96
104
|
* Options the runner passes via `declaration.options` when connecting the `FlowAdapter`.
|
|
@@ -188,7 +196,9 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
188
196
|
/**
|
|
189
197
|
* Record an approval decision on a node currently `awaiting_approval`.
|
|
190
198
|
* A first-class gate completes directly when approved and remains parked when rejected.
|
|
191
|
-
* Agent-node approvals keep their existing resume behavior.
|
|
199
|
+
* Agent-node approvals keep their existing resume behavior. A check's escalation is a
|
|
200
|
+
* one-way door: only `rejected` is legal, and it ends the node terminally `failed` —
|
|
201
|
+
* there is no decision that resumes or passes a check.
|
|
192
202
|
*/
|
|
193
203
|
applyApproval(handle: ConnectorHandle, nodeId: string, decision: "approved" | "rejected", feedback: string | undefined, decidedBy: string): void;
|
|
194
204
|
/**
|
|
@@ -204,7 +214,13 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
204
214
|
retryNode(handle: ConnectorHandle, nodeId: string): void;
|
|
205
215
|
/** Toggle autonomous mode at the flow-execution level. */
|
|
206
216
|
setAutonomousMode(handle: ConnectorHandle, enabled: boolean): void;
|
|
207
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* Cancel the flow run. Status transitions to `cancelled`; dependents stay
|
|
219
|
+
* put. Bumps `executionGeneration` — the sole late-settlement rejection
|
|
220
|
+
* mechanism every in-flight await (function executor, sub-flow child)
|
|
221
|
+
* checks after resolving, so a result that arrives after cancellation can
|
|
222
|
+
* never write state.
|
|
223
|
+
*/
|
|
208
224
|
cancel(handle: ConnectorHandle): void;
|
|
209
225
|
/** Read-only access to the current FlowExecution snapshot. */
|
|
210
226
|
getExecution(handle: ConnectorHandle): FlowExecution;
|
|
@@ -229,9 +245,11 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
229
245
|
*/
|
|
230
246
|
drainRuntimeNodes(handle: ConnectorHandle): Promise<FlowExecution>;
|
|
231
247
|
/**
|
|
232
|
-
* Run every currently available function node through the
|
|
233
|
-
* NodeExecutor. Newly-unblocked function nodes are
|
|
234
|
-
* order before returning control to the runner's
|
|
248
|
+
* Run every currently available function and check node through the
|
|
249
|
+
* configured NodeExecutor. Newly-unblocked function/check nodes are
|
|
250
|
+
* drained in definition order before returning control to the runner's
|
|
251
|
+
* agent-turn decision. Routers and gates are excluded — see
|
|
252
|
+
* {@link drainRuntimeNodes} for the full drain.
|
|
235
253
|
*/
|
|
236
254
|
executeAvailableFunctionNodes(handle: ConnectorHandle): Promise<FlowExecution>;
|
|
237
255
|
private drainAvailableRuntimeNodes;
|
|
@@ -252,6 +270,75 @@ export declare class FlowAdapter extends AbstractConnector {
|
|
|
252
270
|
* state directly.
|
|
253
271
|
*/
|
|
254
272
|
private recompute;
|
|
273
|
+
private clearWakeTimer;
|
|
274
|
+
/**
|
|
275
|
+
* Whether `execution` counts as "actively running" for `control.timeoutSec`
|
|
276
|
+
* evaluation. Ordinarily this is just `status === "running"`. The one
|
|
277
|
+
* exception: a non-gate agent node whose approval was just decided
|
|
278
|
+
* `approved` stays at `awaiting_approval` — `applyApproval` deliberately
|
|
279
|
+
* does not restore `running` there, because `doCompleteNode`'s
|
|
280
|
+
* `approvedPrior` check requires exactly that status (a mandatory-approval
|
|
281
|
+
* node has no `runningAutonomous` fallback). Without this second clause the
|
|
282
|
+
* timeout would pause for the approval wait (correctly, via
|
|
283
|
+
* `remainingActiveExecutionMs` reading the now-resolved `approvalHistory`
|
|
284
|
+
* entry) and then never resume, since nothing re-evaluates a node that
|
|
285
|
+
* never looks "running" again.
|
|
286
|
+
*/
|
|
287
|
+
private isDeadlineEligible;
|
|
288
|
+
/**
|
|
289
|
+
* Recomputes the pending wake timer against the current state: cancels any
|
|
290
|
+
* previously-armed timer, then arms a fresh one for the earliest deadline
|
|
291
|
+
* among currently `running` agent nodes with a `control.timeoutSec`. A
|
|
292
|
+
* no-op when nothing is running against a timeout, or the flow is already
|
|
293
|
+
* terminal. Called after every {@link mutate}, plus `connect()` and
|
|
294
|
+
* `hydrate()` (which bypass `mutate()`).
|
|
295
|
+
*
|
|
296
|
+
* `disconnect()` clears the timer and bumps `executionGeneration`, but a
|
|
297
|
+
* `mutate()` already in flight (or one that lands after teardown for any
|
|
298
|
+
* other reason) still calls this on its way out — bail here on
|
|
299
|
+
* `handle.status` so a post-disconnect mutation can never re-arm a timer
|
|
300
|
+
* that would fire against a handle nothing is watching anymore.
|
|
301
|
+
*/
|
|
302
|
+
private rearmWakeTimer;
|
|
303
|
+
/**
|
|
304
|
+
* Re-checks every `running` agent node's derived deadline and, for any that
|
|
305
|
+
* have expired, either auto-retries (bounded by `control.retries`, composing
|
|
306
|
+
* with the existing `doFailNode(recoverable: true)` and `retryNode`
|
|
307
|
+
* pathways) or terminally fails the node. Safe to call at any time — the
|
|
308
|
+
* derived deadline means this is a no-op unless something has actually
|
|
309
|
+
* expired. Goes through {@link mutate}, so a state change here republishes
|
|
310
|
+
* `onChange`/stimulus exactly like any other mutation, waking a fresh turn
|
|
311
|
+
* when the node retries or the flow rolls up to `failed`.
|
|
312
|
+
*/
|
|
313
|
+
private evaluateAgentNodeDeadlines;
|
|
314
|
+
/**
|
|
315
|
+
* Records one failed attempt on `nodeId`'s execution and decides whether
|
|
316
|
+
* the automatic bounded retry (`control.retries`) still has budget. Shared
|
|
317
|
+
* by every automatic-failure seam (agent-node timeout, function/check
|
|
318
|
+
* execution/timeout failure, sub-flow execution/timeout failure, and a
|
|
319
|
+
* check's fail verdict) so the budget — derived from prior `'failed'`
|
|
320
|
+
* entries in `outputHistory`, not a separate durable counter — is computed
|
|
321
|
+
* once, the same way, everywhere.
|
|
322
|
+
*
|
|
323
|
+
* Returns the `NodeExecution` patch (error/errorHistory/outputHistory/
|
|
324
|
+
* output) plus whether budget remains; the caller decides the resulting
|
|
325
|
+
* `status` because that differs by kind (e.g. sub-flow degrades an
|
|
326
|
+
* optional node's exhausted failure to `skipped`; agent/function do not,
|
|
327
|
+
* preserving their existing behavior). A terminal failure whose node has
|
|
328
|
+
* any `control.retries` configured carries `recoverable: true` so the
|
|
329
|
+
* manual `retryNode` operator override — which sits outside this budget
|
|
330
|
+
* entirely — remains usable once the automatic budget runs out.
|
|
331
|
+
*
|
|
332
|
+
* @param sourceErrorAtIso - The failure's own timestamp, when the caller has
|
|
333
|
+
* one more precise than `completedAtIso` (e.g. a sub-flow child reports
|
|
334
|
+
* its own `error.at`, which can predate this node's parent-side
|
|
335
|
+
* `completedAt` by however long the result took to propagate). Defaults
|
|
336
|
+
* to `completedAtIso` for callers (agent-timeout, function-node) whose
|
|
337
|
+
* failure message is synthesized at the moment of detection.
|
|
338
|
+
* @param checkEvidence - Derived evidence for a check's fail verdict, so it
|
|
339
|
+
* rides on the same appended attempt as the failure it explains.
|
|
340
|
+
*/
|
|
341
|
+
private planAutomaticRetry;
|
|
255
342
|
/**
|
|
256
343
|
* Build the selected agent node's complete turn briefing plus upstream context.
|
|
257
344
|
*/
|
|
@@ -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,EAE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,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC;YAItE,0BAA0B;IAocxC,8FAA8F;IAC9F,OAAO,CAAC,sBAAsB;IA4G9B,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;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,CAAC,kBAAkB;IA4C1B;;OAEG;IACH,OAAO,CAAC,YAAY;CAwErB;AAmID,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAE7C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector } from '../../../chunk-
|
|
1
|
+
export { FlowAdapter, createConnector } from '../../../chunk-E5VGAW4E.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-UAIR3K6X.js';
|
|
6
|
+
import '../../../chunk-INHE5U74.js';
|
|
7
|
+
import '../../../chunk-OHLKWUO3.js';
|
|
8
|
+
import '../../../chunk-AGFAOSCZ.js';
|
|
9
9
|
import '../../../chunk-P43HBWKK.js';
|
|
10
10
|
import '../../../chunk-F3HNW354.js';
|
|
11
11
|
import '../../../chunk-K5GBV4SA.js';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { BindingOrigin } from "@skaile/workspaces/types";
|
|
2
|
+
export type { BindingOrigin };
|
|
1
3
|
/** Hard resource budgets applied to every Flow expression evaluation. */
|
|
2
4
|
export declare const FLOW_EXPRESSION_LIMITS: Readonly<{
|
|
3
5
|
maxLength: 4096;
|
|
@@ -22,30 +24,6 @@ export interface FlowExpressionContext {
|
|
|
22
24
|
};
|
|
23
25
|
}>;
|
|
24
26
|
}
|
|
25
|
-
/** Runtime or agent provenance retained for one value used by a node binding. */
|
|
26
|
-
export type BindingOrigin = {
|
|
27
|
-
source: "literal";
|
|
28
|
-
path: string;
|
|
29
|
-
obtainedBy: "runtime";
|
|
30
|
-
} | {
|
|
31
|
-
source: "flow-input";
|
|
32
|
-
path: string;
|
|
33
|
-
obtainedBy: "runtime";
|
|
34
|
-
} | {
|
|
35
|
-
source: "default";
|
|
36
|
-
path: string;
|
|
37
|
-
obtainedBy: "runtime";
|
|
38
|
-
} | {
|
|
39
|
-
source: "node-status";
|
|
40
|
-
nodeId: string;
|
|
41
|
-
path: string;
|
|
42
|
-
obtainedBy: "runtime";
|
|
43
|
-
} | {
|
|
44
|
-
source: "node-output";
|
|
45
|
-
nodeId: string;
|
|
46
|
-
path: string;
|
|
47
|
-
obtainedBy: "agent" | "runtime";
|
|
48
|
-
};
|
|
49
27
|
/** A resolved JSON value together with every source that contributed to it. */
|
|
50
28
|
export interface ResolvedBinding {
|
|
51
29
|
/** Runtime value passed to the node executor. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression.d.ts","sourceRoot":"","sources":["../../../../../factory-assets/connectors/flow/contract/expression.ts"],"names":[],"mappings":"
|
|
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,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