@skaile/workspaces 3.19.0 → 3.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/{asset-feeds-OO3NIRVI.js → asset-feeds-V4DZPOVS.js} +7 -7
- package/dist/{asset-feeds-OO3NIRVI.js.map → asset-feeds-V4DZPOVS.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +3 -3
- package/dist/asset-manager/index.js +6 -6
- package/dist/asset-manager/installer.js +4 -4
- package/dist/asset-manager/src/index.d.ts +7 -0
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +4 -4
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- 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 +5 -5
- package/dist/{chunk-7ECAUWFU.js → chunk-5JTA7HNJ.js} +9 -9
- package/dist/{chunk-7ECAUWFU.js.map → chunk-5JTA7HNJ.js.map} +1 -1
- package/dist/{chunk-KB2GC6YY.js → chunk-6FZCQT3V.js} +2 -2
- package/dist/{chunk-KB2GC6YY.js.map → chunk-6FZCQT3V.js.map} +1 -1
- package/dist/{chunk-XL45U3C5.js → chunk-6H6HLMWG.js} +3 -3
- package/dist/{chunk-XL45U3C5.js.map → chunk-6H6HLMWG.js.map} +1 -1
- package/dist/{chunk-PWBURVRH.js → chunk-74KGZA7R.js} +3 -3
- package/dist/{chunk-PWBURVRH.js.map → chunk-74KGZA7R.js.map} +1 -1
- package/dist/{chunk-YLSMYOHN.js → chunk-AQJ5ZYD6.js} +36 -25
- package/dist/chunk-AQJ5ZYD6.js.map +1 -0
- package/dist/{chunk-34RUVLL6.js → chunk-CGLJHFQI.js} +7 -7
- package/dist/{chunk-34RUVLL6.js.map → chunk-CGLJHFQI.js.map} +1 -1
- package/dist/{chunk-7J4W54DV.js → chunk-DFELEIPJ.js} +5 -5
- package/dist/{chunk-7J4W54DV.js.map → chunk-DFELEIPJ.js.map} +1 -1
- package/dist/{chunk-4JDCKPTM.js → chunk-EKFFTOQJ.js} +2 -2
- package/dist/{chunk-4JDCKPTM.js.map → chunk-EKFFTOQJ.js.map} +1 -1
- package/dist/{chunk-YWGL52GT.js → chunk-F4ORFHB5.js} +4 -4
- package/dist/{chunk-YWGL52GT.js.map → chunk-F4ORFHB5.js.map} +1 -1
- package/dist/{chunk-SZ3HIMSX.js → chunk-HKKTVD45.js} +27 -14
- package/dist/chunk-HKKTVD45.js.map +1 -0
- package/dist/{chunk-H662SXKS.js → chunk-HSRHO7SK.js} +4 -4
- package/dist/{chunk-H662SXKS.js.map → chunk-HSRHO7SK.js.map} +1 -1
- package/dist/{chunk-DCG4UWJM.js → chunk-IB4XKQMQ.js} +3 -3
- package/dist/{chunk-DCG4UWJM.js.map → chunk-IB4XKQMQ.js.map} +1 -1
- package/dist/{chunk-SBDTLR3Q.js → chunk-IUOXPQA3.js} +2 -2
- package/dist/{chunk-SBDTLR3Q.js.map → chunk-IUOXPQA3.js.map} +1 -1
- package/dist/{chunk-WB4EWSDR.js → chunk-K5BUXOBH.js} +3 -3
- package/dist/{chunk-WB4EWSDR.js.map → chunk-K5BUXOBH.js.map} +1 -1
- package/dist/{chunk-RPVTPVGX.js → chunk-MBARHWMZ.js} +71 -36
- package/dist/chunk-MBARHWMZ.js.map +1 -0
- package/dist/{chunk-QEZPFJX3.js → chunk-NCHMJPKN.js} +3 -3
- package/dist/{chunk-QEZPFJX3.js.map → chunk-NCHMJPKN.js.map} +1 -1
- package/dist/{chunk-JVFZ5R7L.js → chunk-NW65H5EV.js} +3 -3
- package/dist/{chunk-JVFZ5R7L.js.map → chunk-NW65H5EV.js.map} +1 -1
- package/dist/{chunk-S635WMXH.js → chunk-OHLYKLGJ.js} +4 -4
- package/dist/{chunk-S635WMXH.js.map → chunk-OHLYKLGJ.js.map} +1 -1
- package/dist/{chunk-HFL3PYJ7.js → chunk-OJOK4VKC.js} +3 -3
- package/dist/{chunk-HFL3PYJ7.js.map → chunk-OJOK4VKC.js.map} +1 -1
- package/dist/{chunk-3BOWST5G.js → chunk-PLLVREB2.js} +59 -26
- package/dist/chunk-PLLVREB2.js.map +1 -0
- package/dist/{chunk-OLRKNOO2.js → chunk-PVVPGD7P.js} +4 -4
- package/dist/{chunk-OLRKNOO2.js.map → chunk-PVVPGD7P.js.map} +1 -1
- package/dist/{chunk-5Y4RBNT2.js → chunk-RQ6YLAXF.js} +6 -6
- package/dist/{chunk-5Y4RBNT2.js.map → chunk-RQ6YLAXF.js.map} +1 -1
- package/dist/{chunk-5T7Y3AZU.js → chunk-SIREWRZE.js} +3 -3
- package/dist/{chunk-5T7Y3AZU.js.map → chunk-SIREWRZE.js.map} +1 -1
- package/dist/{chunk-QG2ZXU5W.js → chunk-TCHEW3T2.js} +4 -4
- package/dist/{chunk-QG2ZXU5W.js.map → chunk-TCHEW3T2.js.map} +1 -1
- package/dist/{chunk-SFCVAEJ5.js → chunk-W5LPG3X6.js} +3 -3
- package/dist/{chunk-SFCVAEJ5.js.map → chunk-W5LPG3X6.js.map} +1 -1
- package/dist/cli/index.js +47 -47
- package/dist/connectors/config.js +4 -4
- package/dist/connectors/index.js +8 -8
- package/dist/core/index.js +3 -3
- package/dist/core/runtime-assets.js +2 -2
- package/dist/core/src/index.d.ts +2 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +30 -1
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/workspace-config.js +1 -1
- package/dist/deploy/index.js +3 -3
- package/dist/{ensure-sources-PR7YN3HV.js → ensure-sources-HXAPBBA5.js} +9 -9
- package/dist/{ensure-sources-PR7YN3HV.js.map → ensure-sources-HXAPBBA5.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.js +8 -8
- package/dist/factory-assets/connectors/flow/engine.js +4 -4
- package/dist/factory-assets/connectors/flow/run-flow.js +9 -9
- package/dist/factory-assets/connectors/flow.js +8 -8
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- 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-COBS26MK.js → flows-4DYGXE4A.js} +6 -6
- package/dist/{flows-COBS26MK.js.map → flows-4DYGXE4A.js.map} +1 -1
- package/dist/{helpers-TFSZSWT5.js → helpers-3VAE3TYQ.js} +9 -9
- package/dist/{helpers-TFSZSWT5.js.map → helpers-3VAE3TYQ.js.map} +1 -1
- package/dist/library/index.js +4 -4
- package/dist/library/install.js +3 -3
- package/dist/{library-publish-WVIUUYG3.js → library-publish-Z7QQDGOL.js} +13 -13
- package/dist/{library-publish-WVIUUYG3.js.map → library-publish-Z7QQDGOL.js.map} +1 -1
- package/dist/{open-library-2AWZGIWE.js → open-library-424UBGA7.js} +11 -11
- package/dist/{open-library-2AWZGIWE.js.map → open-library-424UBGA7.js.map} +1 -1
- package/dist/{paths-CZPCCBYX.js → paths-CZEH643M.js} +6 -6
- package/dist/{paths-CZPCCBYX.js.map → paths-CZEH643M.js.map} +1 -1
- package/dist/{plugin-store-ZEIBSNTO.js → plugin-store-QJNBPIQK.js} +5 -5
- package/dist/{plugin-store-ZEIBSNTO.js.map → plugin-store-QJNBPIQK.js.map} +1 -1
- package/dist/{project-XZDKNIRG.js → project-HLSVZVAF.js} +10 -10
- package/dist/{project-XZDKNIRG.js.map → project-HLSVZVAF.js.map} +1 -1
- package/dist/resolver/index.js +3 -3
- package/dist/runner/index.js +13 -13
- package/dist/runner/src/ai-credential-refresh.d.ts +13 -0
- package/dist/runner/src/ai-credential-refresh.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +6 -6
- package/dist/sdk/bridge.js +5 -5
- package/dist/sdk/core.js +3 -3
- package/dist/sdk/flow.js +4 -4
- package/dist/sdk/index.js +13 -13
- package/dist/sdk/resolver.js +3 -3
- package/dist/sdk/runner.js +13 -13
- package/dist/{setup-J34TR5IR.js → setup-WXYQJW56.js} +7 -7
- package/dist/{setup-J34TR5IR.js.map → setup-WXYQJW56.js.map} +1 -1
- package/dist/{skills-LG6IQSSN.js → skills-IE3IWWB7.js} +5 -5
- package/dist/{skills-LG6IQSSN.js.map → skills-IE3IWWB7.js.map} +1 -1
- package/dist/{source-QYINHHUP.js → source-SWZRKTKL.js} +12 -12
- package/dist/{source-QYINHHUP.js.map → source-SWZRKTKL.js.map} +1 -1
- package/dist/{source-manifest-publish-3RBW5E2O.js → source-manifest-publish-XBRXFOHO.js} +14 -14
- package/dist/{source-manifest-publish-3RBW5E2O.js.map → source-manifest-publish-XBRXFOHO.js.map} +1 -1
- package/dist/tui/index.js +13 -13
- package/dist/workspace-plugin/adapters/mcp.js +5 -5
- package/dist/workspace-plugin/adapters/omp.js +7 -7
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3BOWST5G.js.map +0 -1
- package/dist/chunk-RPVTPVGX.js.map +0 -1
- package/dist/chunk-SZ3HIMSX.js.map +0 -1
- package/dist/chunk-YLSMYOHN.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { resolveAuthRef } from './chunk-
|
|
2
|
-
import { EventNormalizer } from './chunk-
|
|
1
|
+
import { resolveAuthRef } from './chunk-SIREWRZE.js';
|
|
2
|
+
import { EventNormalizer } from './chunk-K5BUXOBH.js';
|
|
3
3
|
import { resolveModelTier } from './chunk-GURXUF2J.js';
|
|
4
|
-
import { createDriver } from './chunk-
|
|
4
|
+
import { createDriver } from './chunk-6FZCQT3V.js';
|
|
5
5
|
import { pluginRegistry } from './chunk-6E6PKKAD.js';
|
|
6
6
|
import { computeStimulus } from './chunk-IFGTRL2I.js';
|
|
7
|
-
import { resolveNodeBindings, getConsumedOutputSchema, validateConsumedNodeOutput, appendAttempt, resolveTerminalFailureStatus, remainingActiveExecutionMs, interpolateNodeInstruction, deriveCheckEvidence, computeFlowStateFromSnapshots, availableRouterFrontier, evaluateRouterSelection, routerSelectionOutput, planRouterSkips, unsettledRouterBranchIds, countFailedAttempts, hasAutomaticRetryBudget, persistedRouterSelection } from './chunk-
|
|
7
|
+
import { resolveNodeBindings, getConsumedOutputSchema, validateConsumedNodeOutput, appendAttempt, resolveTerminalFailureStatus, remainingActiveExecutionMs, interpolateNodeInstruction, deriveCheckEvidence, computeFlowStateFromSnapshots, availableRouterFrontier, evaluateRouterSelection, routerSelectionOutput, planRouterSkips, unsettledRouterBranchIds, countFailedAttempts, hasAutomaticRetryBudget, persistedRouterSelection } from './chunk-W5LPG3X6.js';
|
|
8
8
|
import { INPUT_SCHEMA_SHAPES_HINT, coerceInputSchema } from './chunk-YCMHWNZA.js';
|
|
9
9
|
import { parseFlowDefinition } from './chunk-CP62G5PK.js';
|
|
10
10
|
import { describeStimulus, buildOrchestratorPrompt, renderSubpromptPrompt, renderStimulusPrompt } from './chunk-2D5BYAL6.js';
|
|
11
11
|
import { deterministicNodeKindLabel, flowDefaults, isAgentNode, isGateNode, isCheckNode, nodeRequiresApproval, isSubFlowNode, isFunctionNode, isSubpromptNode, nodeInstruction, isRouterNode, isActiveRuntimeNode, nodeIsOptional, nodeLabel, nodeAssets } from './chunk-ELPR5XBG.js';
|
|
12
|
-
import { portableSpawn } from './chunk-
|
|
12
|
+
import { portableSpawn } from './chunk-HSRHO7SK.js';
|
|
13
13
|
import { withFsDeadline, tryWithFsDeadline, FsDeadlineError, fsDeadlineMs } from './chunk-MKZOK4JU.js';
|
|
14
14
|
import { createLogger } from './chunk-W4IPN3DD.js';
|
|
15
15
|
import { resolve, relative, sep, isAbsolute, join, dirname } from 'path';
|
|
16
|
-
import { mkdir, rename, writeFile, readFile, stat, cp, readdir, chmod, realpath } from 'fs/promises';
|
|
16
|
+
import { mkdir, rename, writeFile, readFile, stat, cp, readdir, chmod, rm, realpath } from 'fs/promises';
|
|
17
17
|
import * as z4 from 'zod';
|
|
18
18
|
import { execFile } from 'child_process';
|
|
19
19
|
import { promisify } from 'util';
|
|
@@ -550,7 +550,7 @@ var SessionSubpromptRunner = class {
|
|
|
550
550
|
};
|
|
551
551
|
var DEFAULT_SUBPROMPT_TIMEOUT_MS = 5 * 6e4;
|
|
552
552
|
function runIsolatedPrompt(driver, prompt) {
|
|
553
|
-
return new Promise((
|
|
553
|
+
return new Promise((resolve7, reject) => {
|
|
554
554
|
const normalizer = new EventNormalizer();
|
|
555
555
|
let text = "";
|
|
556
556
|
let settled = false;
|
|
@@ -559,7 +559,7 @@ function runIsolatedPrompt(driver, prompt) {
|
|
|
559
559
|
settled = true;
|
|
560
560
|
driver.off("agent-event", onEvent);
|
|
561
561
|
if (err) reject(err);
|
|
562
|
-
else
|
|
562
|
+
else resolve7(text);
|
|
563
563
|
};
|
|
564
564
|
const onEvent = (event) => {
|
|
565
565
|
for (const normalized of normalizer.normalize(event)) {
|
|
@@ -1399,6 +1399,38 @@ function git(args, cwd, timeout = 3e4) {
|
|
|
1399
1399
|
function pathExists(path) {
|
|
1400
1400
|
return tryWithFsDeadline(`stat ${path}`, () => stat(path).then(() => true), false);
|
|
1401
1401
|
}
|
|
1402
|
+
var MAX_GIT_CHILD_TIMEOUT_MS = 12e4;
|
|
1403
|
+
async function clearStaleIndexLock(targetDir, log) {
|
|
1404
|
+
let lockPath;
|
|
1405
|
+
try {
|
|
1406
|
+
lockPath = resolve(
|
|
1407
|
+
targetDir,
|
|
1408
|
+
await git(["rev-parse", "--git-path", "index.lock"], targetDir, 5e3)
|
|
1409
|
+
);
|
|
1410
|
+
} catch {
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
const mtimeMs = await tryWithFsDeadline(
|
|
1414
|
+
`stat ${lockPath}`,
|
|
1415
|
+
() => stat(lockPath).then((s) => s.mtimeMs),
|
|
1416
|
+
null
|
|
1417
|
+
);
|
|
1418
|
+
if (mtimeMs === null) {
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
const ageMs = Date.now() - mtimeMs;
|
|
1422
|
+
if (ageMs < MAX_GIT_CHILD_TIMEOUT_MS) {
|
|
1423
|
+
return;
|
|
1424
|
+
}
|
|
1425
|
+
const removed = await tryWithFsDeadline(
|
|
1426
|
+
`rm ${lockPath}`,
|
|
1427
|
+
() => rm(lockPath, { force: true }).then(() => true),
|
|
1428
|
+
false
|
|
1429
|
+
);
|
|
1430
|
+
if (removed) {
|
|
1431
|
+
log.warn("removed an abandoned .git/index.lock", { lockPath, ageMs });
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1402
1434
|
async function syncSubmodules(cwd, log) {
|
|
1403
1435
|
if (!await pathExists(join(cwd, ".gitmodules"))) return;
|
|
1404
1436
|
try {
|
|
@@ -1633,6 +1665,7 @@ var GitConnector = class extends AbstractConnector {
|
|
|
1633
1665
|
async prepareCheckout(targetDir, url, branch, authUrl, access, started) {
|
|
1634
1666
|
try {
|
|
1635
1667
|
if (await pathExists(join(targetDir, ".git"))) {
|
|
1668
|
+
await clearStaleIndexLock(targetDir, this.log);
|
|
1636
1669
|
if (await this.isInitialisedCheckout(targetDir)) {
|
|
1637
1670
|
this.log.info("found existing checkout \u2014 using as-is", { branch, targetDir });
|
|
1638
1671
|
} else {
|
|
@@ -3890,7 +3923,7 @@ var MinIOConnector = class extends AbstractConnector {
|
|
|
3890
3923
|
const { client, bucket } = handle.state;
|
|
3891
3924
|
const entries = [];
|
|
3892
3925
|
const stream = client.listObjects(bucket, path ?? "", recursive);
|
|
3893
|
-
return new Promise((
|
|
3926
|
+
return new Promise((resolve7, reject) => {
|
|
3894
3927
|
stream.on("data", (obj) => {
|
|
3895
3928
|
entries.push({
|
|
3896
3929
|
name: obj.name,
|
|
@@ -3900,7 +3933,7 @@ var MinIOConnector = class extends AbstractConnector {
|
|
|
3900
3933
|
modifiedAt: obj.lastModified
|
|
3901
3934
|
});
|
|
3902
3935
|
});
|
|
3903
|
-
stream.on("end", () =>
|
|
3936
|
+
stream.on("end", () => resolve7(entries));
|
|
3904
3937
|
stream.on("error", reject);
|
|
3905
3938
|
});
|
|
3906
3939
|
}
|
|
@@ -3908,9 +3941,9 @@ var MinIOConnector = class extends AbstractConnector {
|
|
|
3908
3941
|
const { client, bucket } = handle.state;
|
|
3909
3942
|
const chunks = [];
|
|
3910
3943
|
const stream = await client.getObject(bucket, path);
|
|
3911
|
-
return new Promise((
|
|
3944
|
+
return new Promise((resolve7, reject) => {
|
|
3912
3945
|
stream.on("data", (chunk) => chunks.push(chunk));
|
|
3913
|
-
stream.on("end", () =>
|
|
3946
|
+
stream.on("end", () => resolve7({ data: Buffer.concat(chunks).toString() }));
|
|
3914
3947
|
stream.on("error", reject);
|
|
3915
3948
|
});
|
|
3916
3949
|
}
|
|
@@ -5178,7 +5211,7 @@ async function checkCliExists(cli) {
|
|
|
5178
5211
|
}
|
|
5179
5212
|
}
|
|
5180
5213
|
async function spawnCloudflaredTunnel(port) {
|
|
5181
|
-
return new Promise((
|
|
5214
|
+
return new Promise((resolve7, reject) => {
|
|
5182
5215
|
const proc = portableSpawn(["cloudflared", "tunnel", "--url", `http://localhost:${port}`]);
|
|
5183
5216
|
const decoder = new TextDecoder();
|
|
5184
5217
|
const reader = proc.stderr.getReader();
|
|
@@ -5189,7 +5222,7 @@ async function spawnCloudflaredTunnel(port) {
|
|
|
5189
5222
|
const chunk = decoder.decode(value);
|
|
5190
5223
|
const match = chunk.match(/https:\/\/[^\s"]+\.trycloudflare\.com/);
|
|
5191
5224
|
if (match) {
|
|
5192
|
-
|
|
5225
|
+
resolve7({ url: match[0], process: proc });
|
|
5193
5226
|
return;
|
|
5194
5227
|
}
|
|
5195
5228
|
}
|
|
@@ -7576,7 +7609,7 @@ async function ensureFleetMounted(dir, log, options) {
|
|
|
7576
7609
|
return;
|
|
7577
7610
|
} catch (err) {
|
|
7578
7611
|
lastErr = err;
|
|
7579
|
-
await new Promise((
|
|
7612
|
+
await new Promise((resolve7) => setTimeout(resolve7, pollIntervalMs));
|
|
7580
7613
|
}
|
|
7581
7614
|
}
|
|
7582
7615
|
throw new Error(
|
|
@@ -7954,19 +7987,19 @@ var PortPool = class _PortPool {
|
|
|
7954
7987
|
}
|
|
7955
7988
|
/** Quick TCP connect test — returns true if nothing is listening. */
|
|
7956
7989
|
static isPortFree(port, host = "127.0.0.1") {
|
|
7957
|
-
return new Promise((
|
|
7990
|
+
return new Promise((resolve7) => {
|
|
7958
7991
|
const socket = createConnection({ port, host });
|
|
7959
7992
|
socket.once("connect", () => {
|
|
7960
7993
|
socket.destroy();
|
|
7961
|
-
|
|
7994
|
+
resolve7(false);
|
|
7962
7995
|
});
|
|
7963
7996
|
socket.once("error", () => {
|
|
7964
7997
|
socket.destroy();
|
|
7965
|
-
|
|
7998
|
+
resolve7(true);
|
|
7966
7999
|
});
|
|
7967
8000
|
socket.setTimeout(500, () => {
|
|
7968
8001
|
socket.destroy();
|
|
7969
|
-
|
|
8002
|
+
resolve7(true);
|
|
7970
8003
|
});
|
|
7971
8004
|
});
|
|
7972
8005
|
}
|
|
@@ -8202,7 +8235,7 @@ var AGENT_INLINE_OPERATIONS = /* @__PURE__ */ new Set([
|
|
|
8202
8235
|
var NodeTimeoutError = class extends Error {
|
|
8203
8236
|
};
|
|
8204
8237
|
function raceWithTimeout(promise, ms, timeoutMessage) {
|
|
8205
|
-
return new Promise((
|
|
8238
|
+
return new Promise((resolve7, reject) => {
|
|
8206
8239
|
const timer = setTimeout(() => {
|
|
8207
8240
|
reject(new NodeTimeoutError(timeoutMessage));
|
|
8208
8241
|
promise.catch(() => {
|
|
@@ -8212,7 +8245,7 @@ function raceWithTimeout(promise, ms, timeoutMessage) {
|
|
|
8212
8245
|
promise.then(
|
|
8213
8246
|
(value) => {
|
|
8214
8247
|
clearTimeout(timer);
|
|
8215
|
-
|
|
8248
|
+
resolve7(value);
|
|
8216
8249
|
},
|
|
8217
8250
|
(err) => {
|
|
8218
8251
|
clearTimeout(timer);
|
|
@@ -8223,12 +8256,12 @@ function raceWithTimeout(promise, ms, timeoutMessage) {
|
|
|
8223
8256
|
}
|
|
8224
8257
|
var ABORTED_ATTEMPT_SETTLE_MS = ABORT_SIGKILL_GRACE_MS + 1e3;
|
|
8225
8258
|
function settleWithin(promise, ms) {
|
|
8226
|
-
return new Promise((
|
|
8227
|
-
const timer = setTimeout(
|
|
8259
|
+
return new Promise((resolve7) => {
|
|
8260
|
+
const timer = setTimeout(resolve7, ms);
|
|
8228
8261
|
timer.unref?.();
|
|
8229
8262
|
const settled = () => {
|
|
8230
8263
|
clearTimeout(timer);
|
|
8231
|
-
|
|
8264
|
+
resolve7();
|
|
8232
8265
|
};
|
|
8233
8266
|
promise.then(settled, settled);
|
|
8234
8267
|
});
|
|
@@ -10685,5 +10718,5 @@ function createConnector() {
|
|
|
10685
10718
|
}
|
|
10686
10719
|
|
|
10687
10720
|
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, BoxConnector, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, DeployConnector, DevServerConnector, FlowAdapter, GitConnector, GmailConnector, GoogleDriveConnector, LocalConnector, LogBuffer, ManagedGitconfigCollisionError, MattermostConnector, MemoryConnector, MinIOConnector, PortPool, PostgresConnector, S3Connector, SQLiteConnector, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, SharePointConnector, StaticServerConnector, TunnelConnector, WebDAVConnector, XStateConnector, XStateStoreConnector, __test, atomicReplaceCredential, buildConnectorPromptSection, buildConnectorToolDefs, buildFlowPromptEvent, buildFlowToolDefs, buildSdkConnectorTools, buildSdkFlowTools, createConnector, createConnector10, createConnector11, createConnector12, createConnector13, createConnector14, createConnector15, createConnector16, createConnector17, createConnector18, createConnector19, createConnector2, createConnector20, createConnector3, createConnector4, createConnector5, createConnector6, createConnector7, createConnector8, createConnector9, createFsWatcher, createWorktree, defaultSpawn, driveOrchestratorTurn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, readGitSyncStatus, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock };
|
|
10688
|
-
//# sourceMappingURL=chunk-
|
|
10689
|
-
//# sourceMappingURL=chunk-
|
|
10721
|
+
//# sourceMappingURL=chunk-PLLVREB2.js.map
|
|
10722
|
+
//# sourceMappingURL=chunk-PLLVREB2.js.map
|