deepline 0.3.325 → 0.3.327
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/dist/bundling-sources/sdk/src/client.ts +23 -25
- package/dist/bundling-sources/sdk/src/compat.ts +11 -6
- package/dist/bundling-sources/sdk/src/db/query.ts +172 -0
- package/dist/bundling-sources/sdk/src/errors.ts +35 -0
- package/dist/bundling-sources/sdk/src/index.ts +13 -0
- package/dist/bundling-sources/sdk/src/play.ts +34 -31
- package/dist/bundling-sources/sdk/src/plays/authoring-graph-path.ts +13 -0
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +2 -1
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +189 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/projection.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -11
- package/dist/cli/auth-67YOPQ6M.js +31 -0
- package/dist/cli/{auth-PIZESRPC.mjs → auth-EBBDOKNV.mjs} +4 -4
- package/dist/cli/{billing-DQKFCQV5.js → billing-6AAB7WPJ.js} +70 -70
- package/dist/cli/{billing-HSL6VTCM.mjs → billing-IM2QUFX4.mjs} +4 -4
- package/dist/cli/{chunk-WW4XZIVM.mjs → chunk-3ITDKXNC.mjs} +12 -9
- package/dist/cli/{chunk-K7FC5IUU.js → chunk-3MXRNPBN.js} +1 -1
- package/dist/cli/{chunk-DLW7X2UK.js → chunk-4TO56P22.js} +5928 -5730
- package/dist/cli/{chunk-MNKDSR2J.js → chunk-4ZARCCPT.js} +344 -254
- package/dist/cli/{chunk-PBNZXZCW.js → chunk-77RAV5XX.js} +48 -48
- package/dist/cli/{chunk-HUKWYHBG.js → chunk-7RCJDAJX.js} +2 -2
- package/dist/cli/{chunk-5TYU3UIS.mjs → chunk-A5SKM3GL.mjs} +1 -1
- package/dist/cli/{chunk-XNL3SEMC.js → chunk-AFNEQ43J.js} +8 -3
- package/dist/cli/{chunk-XSEMQ4II.js → chunk-AGH6YP2T.js} +2 -1
- package/dist/cli/chunk-AID3OYVJ.js +8 -0
- package/dist/cli/{chunk-YE3O2UHM.mjs → chunk-CCRQ2VGJ.mjs} +24 -1
- package/dist/cli/{chunk-HPTQEWCF.js → chunk-CISKBOXD.js} +70 -67
- package/dist/cli/{chunk-OPERWJR6.mjs → chunk-D6GD5AVN.mjs} +3 -3
- package/dist/cli/{chunk-6RMKHN7S.mjs → chunk-DCAU6PND.mjs} +4 -20
- package/dist/cli/{chunk-PVDQ55PS.js → chunk-DM3SHV6U.js} +29 -6
- package/dist/cli/{chunk-CV5GDCKN.js → chunk-DSDX6EUW.js} +29 -45
- package/dist/cli/{chunk-5FHU7TV4.mjs → chunk-DVV4FPS7.mjs} +2 -2
- package/dist/cli/{chunk-AQUNQJ5Y.mjs → chunk-F45425TB.mjs} +1 -1
- package/dist/cli/{chunk-NWBARG3F.mjs → chunk-G5774EFF.mjs} +1 -1
- package/dist/cli/chunk-GVESPYSY.mjs +234 -0
- package/dist/cli/{chunk-H5TJBRSC.mjs → chunk-HOWQKN6J.mjs} +98 -113
- package/dist/cli/{chunk-UYFWTIKF.js → chunk-HZZJR2GV.js} +26 -26
- package/dist/cli/{chunk-76VKBPOC.mjs → chunk-JOA6IKDE.mjs} +7 -2
- package/dist/cli/chunk-LVEDPCLJ.js +234 -0
- package/dist/cli/{chunk-KZNFYOHX.js → chunk-MOP6D7Z5.js} +6 -6
- package/dist/cli/{chunk-YXRPWMGN.js → chunk-NWIJLTRL.js} +147 -162
- package/dist/cli/chunk-OVDNJAJN.mjs +8 -0
- package/dist/cli/{chunk-XIVUB36F.mjs → chunk-QZAP5VOS.mjs} +104 -14
- package/dist/cli/{chunk-6VZDSBK6.mjs → chunk-REP2MYBI.mjs} +2 -2
- package/dist/cli/{chunk-PWV2M4LW.mjs → chunk-RSEVBSFE.mjs} +1 -1
- package/dist/cli/{chunk-OOPSX57I.js → chunk-TAGHNT5P.js} +6 -6
- package/dist/cli/{chunk-QQ2FG5W3.js → chunk-UROXKPND.js} +6 -6
- package/dist/cli/{chunk-7PZFGB7L.mjs → chunk-YIY74KUF.mjs} +2 -1
- package/dist/cli/{chunk-7MD453WV.mjs → chunk-ZOFARJWH.mjs} +5674 -5476
- package/dist/cli/client-7LZCG4VD.js +20 -0
- package/dist/cli/{client-57SR4KVM.mjs → client-JCMSACT4.mjs} +3 -3
- package/dist/cli/{csv-G2FRMOXL.mjs → csv-NPMWVM5D.mjs} +3 -3
- package/dist/cli/{csv-5DJSC6BD.js → csv-OILKDKUX.js} +12 -12
- package/dist/cli/{db-WWZEXM3N.mjs → db-AZUAOWPQ.mjs} +214 -137
- package/dist/cli/{db-NVO7P4VO.js → db-MNDRYYEX.js} +226 -149
- package/dist/cli/{describe-26OMF3A4.mjs → describe-KJWOHMKC.mjs} +12 -11
- package/dist/cli/{describe-M26LHDBQ.js → describe-QENLDLM2.js} +28 -27
- package/dist/cli/{executions-KI47LPKE.js → executions-P36UHBPG.js} +6 -6
- package/dist/cli/{executions-2LLHY3IL.mjs → executions-QZNQWF6F.mjs} +4 -4
- package/dist/cli/{feedback-2Y26C2BZ.js → feedback-K4UGTLFD.js} +6 -6
- package/dist/cli/{feedback-O26VL2OF.mjs → feedback-RQ6HSZSG.mjs} +3 -3
- package/dist/cli/{git-UVPGZN3K.mjs → git-PBRMCBMI.mjs} +4 -4
- package/dist/cli/git-RPFH3NJ2.js +23 -0
- package/dist/cli/index.js +105 -87
- package/dist/cli/index.mjs +65 -47
- package/dist/cli/{legacy-noops-IK5CH72U.mjs → legacy-noops-G7GWJ5UC.mjs} +4 -4
- package/dist/cli/{legacy-noops-H6Y3SEVB.js → legacy-noops-X74FM35Q.js} +7 -7
- package/dist/cli/{monitors-SFVVMAJT.mjs → monitors-KL2MCR57.mjs} +4 -4
- package/dist/cli/{monitors-JL6TTQCI.js → monitors-VKURX3YM.js} +85 -85
- package/dist/cli/{org-SSDONL57.mjs → org-DT53KTNW.mjs} +4 -4
- package/dist/cli/{org-OVMAZCQS.js → org-ZYXJDC44.js} +60 -60
- package/dist/cli/play-BUQV47E2.js +153 -0
- package/dist/cli/{play-X6NPACUO.mjs → play-WIJGQYTB.mjs} +11 -10
- package/dist/cli/{providers-E24JDWSR.js → providers-GRTW4TXX.js} +7 -7
- package/dist/cli/{providers-ONUBYYY4.mjs → providers-GYGKGS2J.mjs} +4 -4
- package/dist/cli/{quickstart-TB7C3DLG.js → quickstart-WB26543C.js} +5 -5
- package/dist/cli/{quickstart-B7NIXACV.mjs → quickstart-XF3M2M2S.mjs} +3 -3
- package/dist/cli/{search-N3QUIATW.mjs → search-ANJLTOF2.mjs} +5 -5
- package/dist/cli/search-CR2GZLCM.js +26 -0
- package/dist/cli/{secrets-CPCVFDYB.js → secrets-5KBUGMTK.js} +13 -13
- package/dist/cli/{secrets-V7Z4M67T.mjs → secrets-D6UR5CTW.mjs} +4 -4
- package/dist/cli/{sessions-E4FIZLQP.js → sessions-46PXFULL.js} +5 -5
- package/dist/cli/{sessions-PDOBKAKO.mjs → sessions-S7N4JEWK.mjs} +4 -4
- package/dist/cli/{settings-UVM2WDE4.js → settings-KMNBITSU.js} +74 -74
- package/dist/cli/{settings-QYHYHZDI.mjs → settings-V6U3SRTH.mjs} +7 -7
- package/dist/cli/{setup-3JFAXQLJ.js → setup-4K5FY6AU.js} +41 -41
- package/dist/cli/{setup-4RLAETDW.mjs → setup-OGITSLTN.mjs} +6 -6
- package/dist/cli/skills-4FP2MZKL.js +28 -0
- package/dist/cli/{skills-ZX2JSWOZ.mjs → skills-AXWAYPBY.mjs} +4 -4
- package/dist/cli/tools-7YZPH6WC.js +39 -0
- package/dist/cli/{tools-EGXCVIPJ.mjs → tools-LJCY6B23.mjs} +8 -7
- package/dist/cli/update-3VUOW6AP.js +28 -0
- package/dist/cli/{update-7FEKRQFE.mjs → update-DDR5XIUB.mjs} +6 -6
- package/dist/cli/{workflow-54VCKIG2.js → workflow-7CTCDWL3.js} +15 -15
- package/dist/cli/{workflow-7V7TTTKK.mjs → workflow-PRNCVANQ.mjs} +5 -5
- package/dist/{client-Bb4Jjzmj.d.ts → client-DHq8dJ56.d.ts} +39 -11
- package/dist/{client-COa-3GHK.d.mts → client-wiWPZhnI.d.mts} +39 -11
- package/dist/{compiler-manifest-CsnWj-AK.d.mts → compiler-manifest-9TkZ_ykI.d.mts} +711 -711
- package/dist/{compiler-manifest-CsnWj-AK.d.ts → compiler-manifest-9TkZ_ykI.d.ts} +711 -711
- package/dist/index-B-5_Xhud.d.mts +75 -0
- package/dist/index-ykksoEyR.d.ts +75 -0
- package/dist/index.d.mts +52 -13
- package/dist/index.d.ts +52 -13
- package/dist/index.js +142 -68
- package/dist/index.mjs +102 -28
- package/dist/install-integrity.json +91 -84
- package/dist/plays/bundle-play-file.d.mts +7 -75
- package/dist/plays/bundle-play-file.d.ts +7 -75
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-RXCD4GOV.js +0 -31
- package/dist/cli/chunk-OWJZUE3Y.mjs +0 -103
- package/dist/cli/chunk-SDK3ZA2C.js +0 -103
- package/dist/cli/client-562MULXK.js +0 -20
- package/dist/cli/git-KGPX5YPD.js +0 -23
- package/dist/cli/play-3DB4MSHN.js +0 -152
- package/dist/cli/search-NJ637YGQ.js +0 -26
- package/dist/cli/skills-BYRYG64R.js +0 -28
- package/dist/cli/tools-TAWOAY5X.js +0 -38
- package/dist/cli/update-H24GEBXM.js +0 -28
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7RCJDAJXjs = require('./chunk-7RCJDAJX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCISKBOXDjs = require('./chunk-CISKBOXD.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkUROXKPNDjs = require('./chunk-UROXKPND.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDM3SHV6Ujs = require('./chunk-DM3SHV6U.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -306,21 +306,6 @@ function shouldRunCliAutoUpdate(homeDir = _os.homedir.call(void 0, )) {
|
|
|
306
306
|
const preferences = readCliUpdatePreferences(homeDir);
|
|
307
307
|
return preferences.autoUpdateEnabled && preferences.pinnedVersion === null;
|
|
308
308
|
}
|
|
309
|
-
function consumePendingCliUpdateMessages(homeDir = _os.homedir.call(void 0, )) {
|
|
310
|
-
const preferences = readCliUpdatePreferences(homeDir);
|
|
311
|
-
const acknowledged = new Set(preferences.acknowledgedMessages);
|
|
312
|
-
const pending = CLI_UPDATE_MESSAGES.filter(({ id }) => !acknowledged.has(id));
|
|
313
|
-
if (pending.length === 0) return [];
|
|
314
|
-
for (const { id } of pending) acknowledged.add(id);
|
|
315
|
-
try {
|
|
316
|
-
writeCliUpdatePreferences(
|
|
317
|
-
{ ...preferences, acknowledgedMessages: [...acknowledged] },
|
|
318
|
-
homeDir
|
|
319
|
-
);
|
|
320
|
-
} catch (e2) {
|
|
321
|
-
}
|
|
322
|
-
return pending.map(({ message }) => message);
|
|
323
|
-
}
|
|
324
309
|
|
|
325
310
|
// src/cli/commands/update.ts
|
|
326
311
|
function canAutomaticallyApplyUpdatePlan(plan) {
|
|
@@ -380,7 +365,7 @@ function sidecarRegistryUrl(hostUrl) {
|
|
|
380
365
|
let url;
|
|
381
366
|
try {
|
|
382
367
|
url = new URL(hostUrl);
|
|
383
|
-
} catch (
|
|
368
|
+
} catch (e2) {
|
|
384
369
|
throw new Error(
|
|
385
370
|
"The Python-managed SDK sidecar is missing a valid Deepline host URL for its npm registry."
|
|
386
371
|
);
|
|
@@ -395,14 +380,14 @@ function sidecarRegistryUrl(hostUrl) {
|
|
|
395
380
|
function publicNpmFallbackRegistryUrl(hostUrl) {
|
|
396
381
|
try {
|
|
397
382
|
return sidecarRegistryUrl(hostUrl);
|
|
398
|
-
} catch (
|
|
383
|
+
} catch (e3) {
|
|
399
384
|
return void 0;
|
|
400
385
|
}
|
|
401
386
|
}
|
|
402
387
|
function readOptionalText(path) {
|
|
403
388
|
try {
|
|
404
389
|
return _fs.readFileSync.call(void 0, path, "utf8").trim();
|
|
405
|
-
} catch (
|
|
390
|
+
} catch (e4) {
|
|
406
391
|
return "";
|
|
407
392
|
}
|
|
408
393
|
}
|
|
@@ -463,7 +448,7 @@ function inferNpmGlobalPrefixFromEntrypoint(entrypoint, env) {
|
|
|
463
448
|
const normalized = (() => {
|
|
464
449
|
try {
|
|
465
450
|
return _fs.realpathSync.call(void 0, entrypoint);
|
|
466
|
-
} catch (
|
|
451
|
+
} catch (e5) {
|
|
467
452
|
return _path.resolve.call(void 0, entrypoint);
|
|
468
453
|
}
|
|
469
454
|
})();
|
|
@@ -496,7 +481,7 @@ function normalizedNpmPrefix(value) {
|
|
|
496
481
|
const normalized = (() => {
|
|
497
482
|
try {
|
|
498
483
|
return _fs.realpathSync.call(void 0, _path.resolve.call(void 0, trimmed));
|
|
499
|
-
} catch (
|
|
484
|
+
} catch (e6) {
|
|
500
485
|
return _path.resolve.call(void 0, trimmed);
|
|
501
486
|
}
|
|
502
487
|
})().replace(/\\/g, "/");
|
|
@@ -504,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
504
489
|
}
|
|
505
490
|
function resolveNpmGlobalPrefix(env) {
|
|
506
491
|
try {
|
|
507
|
-
const plan =
|
|
492
|
+
const plan = _chunkCISKBOXDjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
508
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
509
494
|
encoding: "utf8",
|
|
510
495
|
env,
|
|
@@ -513,7 +498,7 @@ function resolveNpmGlobalPrefix(env) {
|
|
|
513
498
|
});
|
|
514
499
|
if (result.status !== 0) return null;
|
|
515
500
|
return String(_nullishCoalesce(result.stdout, () => ( ""))).trim() || null;
|
|
516
|
-
} catch (
|
|
501
|
+
} catch (e7) {
|
|
517
502
|
return null;
|
|
518
503
|
}
|
|
519
504
|
}
|
|
@@ -521,7 +506,7 @@ function isHomebrewFormulaEntrypoint(entrypoint) {
|
|
|
521
506
|
const normalized = (() => {
|
|
522
507
|
try {
|
|
523
508
|
return _fs.realpathSync.call(void 0, entrypoint);
|
|
524
|
-
} catch (
|
|
509
|
+
} catch (e8) {
|
|
525
510
|
return _path.resolve.call(void 0, entrypoint);
|
|
526
511
|
}
|
|
527
512
|
})();
|
|
@@ -560,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
560
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
561
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
562
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
563
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
564
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk7RCJDAJXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunk7RCJDAJXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
565
550
|
const args = installPrefix ? [
|
|
566
551
|
"install",
|
|
567
552
|
"-g",
|
|
@@ -571,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
571
556
|
packageSpec
|
|
572
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
573
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
574
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkDM3SHV6Ujs.autoDetectBaseUrl.call(void 0, )
|
|
575
560
|
);
|
|
576
561
|
return {
|
|
577
562
|
kind: "npm-global",
|
|
@@ -611,7 +596,7 @@ function readAutoUpdateFailure(plan) {
|
|
|
611
596
|
if ((parsed.kind === "npm-global" || parsed.kind === "python-sidecar") && typeof parsed.packageSpec === "string" && typeof parsed.failedAt === "string" && typeof parsed.exitCode === "number" && typeof parsed.manualCommand === "string") {
|
|
612
597
|
return parsed;
|
|
613
598
|
}
|
|
614
|
-
} catch (
|
|
599
|
+
} catch (e9) {
|
|
615
600
|
return null;
|
|
616
601
|
}
|
|
617
602
|
return null;
|
|
@@ -630,7 +615,7 @@ function writeAutoUpdateFailure(plan, exitCode) {
|
|
|
630
615
|
_fs.mkdirSync.call(void 0, _path.dirname.call(void 0, path), { recursive: true });
|
|
631
616
|
_fs.writeFileSync.call(void 0, path, `${JSON.stringify(marker, null, 2)}
|
|
632
617
|
`, "utf8");
|
|
633
|
-
} catch (
|
|
618
|
+
} catch (e10) {
|
|
634
619
|
}
|
|
635
620
|
}
|
|
636
621
|
function clearAutoUpdateFailure(plan) {
|
|
@@ -638,7 +623,7 @@ function clearAutoUpdateFailure(plan) {
|
|
|
638
623
|
if (!path) return;
|
|
639
624
|
try {
|
|
640
625
|
_fs.unlinkSync.call(void 0, path);
|
|
641
|
-
} catch (
|
|
626
|
+
} catch (e11) {
|
|
642
627
|
}
|
|
643
628
|
}
|
|
644
629
|
function matchingAutoUpdateFailure(plan) {
|
|
@@ -694,7 +679,7 @@ function installedPackageVersion(versionDir) {
|
|
|
694
679
|
try {
|
|
695
680
|
const parsed = JSON.parse(_fs.readFileSync.call(void 0, packageJsonPath, "utf8"));
|
|
696
681
|
return typeof parsed.version === "string" ? safeVersionSegment(parsed.version) : "";
|
|
697
|
-
} catch (
|
|
682
|
+
} catch (e12) {
|
|
698
683
|
return "";
|
|
699
684
|
}
|
|
700
685
|
}
|
|
@@ -718,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
718
703
|
function runCommand(command, args, env = process.env) {
|
|
719
704
|
return new Promise((resolveResult) => {
|
|
720
705
|
let output = "";
|
|
721
|
-
const plan =
|
|
706
|
+
const plan = _chunkCISKBOXDjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
722
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
723
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
724
709
|
shell: plan.shell,
|
|
@@ -748,7 +733,7 @@ function isRegistryAccessFailure(output, registryUrl) {
|
|
|
748
733
|
let registryHost = "";
|
|
749
734
|
try {
|
|
750
735
|
registryHost = new URL(registryUrl).hostname;
|
|
751
|
-
} catch (
|
|
736
|
+
} catch (e13) {
|
|
752
737
|
return false;
|
|
753
738
|
}
|
|
754
739
|
if (!registryHost || !output.toLowerCase().includes(registryHost.toLowerCase())) {
|
|
@@ -983,7 +968,7 @@ async function runPythonSidecarUpdatePlan(plan) {
|
|
|
983
968
|
try {
|
|
984
969
|
_fs.renameSync.call(void 0, backupDir, finalDir);
|
|
985
970
|
backupDir = null;
|
|
986
|
-
} catch (
|
|
971
|
+
} catch (e14) {
|
|
987
972
|
}
|
|
988
973
|
}
|
|
989
974
|
process.stderr.write(
|
|
@@ -1094,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1094
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1095
1080
|
}
|
|
1096
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1097
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkDM3SHV6Ujs.autoDetectBaseUrl));
|
|
1098
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1099
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1100
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1101
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1102
1087
|
process.stdout.write = (() => true);
|
|
1103
1088
|
try {
|
|
1104
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkCISKBOXDjs.runSkillsCommand.call(void 0, { json: true });
|
|
1105
1090
|
if (exitCode !== 0) {
|
|
1106
1091
|
throw new Error(
|
|
1107
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1172,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1172
1157
|
]
|
|
1173
1158
|
};
|
|
1174
1159
|
if (options.json && !options.executeWithJson) {
|
|
1175
|
-
|
|
1160
|
+
_chunkUROXKPNDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1176
1161
|
return 0;
|
|
1177
1162
|
}
|
|
1178
1163
|
if (options.printCommand) {
|
|
1179
|
-
|
|
1164
|
+
_chunkUROXKPNDjs.printCommandEnvelope.call(void 0,
|
|
1180
1165
|
{
|
|
1181
1166
|
...plan,
|
|
1182
1167
|
render: {
|
|
@@ -1189,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1189
1174
|
return 0;
|
|
1190
1175
|
}
|
|
1191
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1192
|
-
|
|
1177
|
+
_chunkUROXKPNDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1193
1178
|
return 0;
|
|
1194
1179
|
}
|
|
1195
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1219,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1219
1204
|
);
|
|
1220
1205
|
}
|
|
1221
1206
|
if (options.executeWithJson && options.json) {
|
|
1222
|
-
|
|
1207
|
+
_chunkUROXKPNDjs.printCommandEnvelope.call(void 0,
|
|
1223
1208
|
{
|
|
1224
1209
|
ok: true,
|
|
1225
1210
|
pinnedVersion
|
|
@@ -1265,5 +1250,4 @@ Examples:
|
|
|
1265
1250
|
|
|
1266
1251
|
|
|
1267
1252
|
|
|
1268
|
-
|
|
1269
|
-
exports.readCliUpdatePreferences = readCliUpdatePreferences; exports.setCliAutoUpdateEnabled = setCliAutoUpdateEnabled; exports.shouldRunCliAutoUpdate = shouldRunCliAutoUpdate; exports.consumePendingCliUpdateMessages = consumePendingCliUpdateMessages; exports.canAutomaticallyApplyUpdatePlan = canAutomaticallyApplyUpdatePlan; exports.resolveUpdatePlan = resolveUpdatePlan; exports.runAutomaticUpdatePlan = runAutomaticUpdatePlan; exports.runUpdatePlan = runUpdatePlan; exports.publishedVersionSupportsPin = publishedVersionSupportsPin; exports.runUpdateCommand = runUpdateCommand; exports.registerUpdateCommand = registerUpdateCommand;
|
|
1253
|
+
exports.readCliUpdatePreferences = readCliUpdatePreferences; exports.setCliAutoUpdateEnabled = setCliAutoUpdateEnabled; exports.shouldRunCliAutoUpdate = shouldRunCliAutoUpdate; exports.canAutomaticallyApplyUpdatePlan = canAutomaticallyApplyUpdatePlan; exports.resolveUpdatePlan = resolveUpdatePlan; exports.runAutomaticUpdatePlan = runAutomaticUpdatePlan; exports.runUpdatePlan = runUpdatePlan; exports.publishedVersionSupportsPin = publishedVersionSupportsPin; exports.runUpdateCommand = runUpdateCommand; exports.registerUpdateCommand = registerUpdateCommand;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F45425TB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CCRQ2VGJ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.327",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// src/plays/local-play-execution.ts
|
|
2
|
+
function importedNodes(graph) {
|
|
3
|
+
const visited = /* @__PURE__ */ new Set();
|
|
4
|
+
const visiting = /* @__PURE__ */ new Set();
|
|
5
|
+
const ordered = [];
|
|
6
|
+
const names = /* @__PURE__ */ new Map();
|
|
7
|
+
const visit = (node) => {
|
|
8
|
+
if (visiting.has(node.filePath))
|
|
9
|
+
throw new Error(`Recursive imported Play graph at ${node.filePath}.`);
|
|
10
|
+
if (visited.has(node.filePath)) return;
|
|
11
|
+
visiting.add(node.filePath);
|
|
12
|
+
for (const dependency of node.importedPlayDependencies) {
|
|
13
|
+
const child = graph.nodes.get(dependency.filePath);
|
|
14
|
+
if (!child)
|
|
15
|
+
throw new Error(
|
|
16
|
+
`Missing bundled Play dependency ${dependency.filePath}.`
|
|
17
|
+
);
|
|
18
|
+
visit(child);
|
|
19
|
+
}
|
|
20
|
+
visiting.delete(node.filePath);
|
|
21
|
+
visited.add(node.filePath);
|
|
22
|
+
if (node === graph.root) return;
|
|
23
|
+
if (!node.playName)
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Imported Play ${node.filePath} must export definePlay(...).`
|
|
26
|
+
);
|
|
27
|
+
const existing = names.get(node.playName);
|
|
28
|
+
if (existing !== void 0 && existing !== node.filePath)
|
|
29
|
+
throw new Error(
|
|
30
|
+
`Imported Play name ${node.playName} belongs to more than one source file.`
|
|
31
|
+
);
|
|
32
|
+
names.set(node.playName, node.filePath);
|
|
33
|
+
ordered.push(node);
|
|
34
|
+
};
|
|
35
|
+
visit(graph.root);
|
|
36
|
+
return ordered;
|
|
37
|
+
}
|
|
38
|
+
function planLocalPlayExecution(graph, input = {}) {
|
|
39
|
+
const imports = importedNodes(graph).map((node) => ({
|
|
40
|
+
name: node.playName,
|
|
41
|
+
artifactHash: node.artifact.artifactHash,
|
|
42
|
+
graphHash: node.artifact.graphHash
|
|
43
|
+
}));
|
|
44
|
+
return {
|
|
45
|
+
command: "plays run",
|
|
46
|
+
root: {
|
|
47
|
+
name: graph.root.playName,
|
|
48
|
+
artifactHash: graph.root.artifact.artifactHash,
|
|
49
|
+
publication: "unpublished"
|
|
50
|
+
},
|
|
51
|
+
importedPlays: imports.map((node) => ({
|
|
52
|
+
...node,
|
|
53
|
+
publication: "pinned"
|
|
54
|
+
})),
|
|
55
|
+
effects: {
|
|
56
|
+
cloudMutations: imports.length ? [
|
|
57
|
+
"store_imported_execution_artifacts",
|
|
58
|
+
"stage_files_if_present",
|
|
59
|
+
"register_unpublished_root_revision",
|
|
60
|
+
"start_run"
|
|
61
|
+
] : [
|
|
62
|
+
"stage_files_if_present",
|
|
63
|
+
"register_unpublished_root_revision",
|
|
64
|
+
"start_run"
|
|
65
|
+
],
|
|
66
|
+
localWrites: input.runIdFile ? ["bundle_cache", "run_identity_file"] : ["bundle_cache"],
|
|
67
|
+
creditSpending: "tool_calls_may_spend",
|
|
68
|
+
recovery: "inspect_or_resume_original_run_id"
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
async function pinLocalPlayImports(client, graph) {
|
|
73
|
+
const imports = importedNodes(graph);
|
|
74
|
+
if (imports.length === 0) return graph;
|
|
75
|
+
for (const node of [...imports, graph.root]) {
|
|
76
|
+
if (!node.compilerManifest)
|
|
77
|
+
throw new Error(`Missing compiler manifest for ${node.filePath}.`);
|
|
78
|
+
}
|
|
79
|
+
const nodes = new Map(graph.nodes);
|
|
80
|
+
const stored = /* @__PURE__ */ new Map();
|
|
81
|
+
const withPins = (node) => {
|
|
82
|
+
const closure = /* @__PURE__ */ new Map();
|
|
83
|
+
for (const dependency of node.importedPlayDependencies) {
|
|
84
|
+
const child = nodes.get(dependency.filePath);
|
|
85
|
+
const pointer = stored.get(dependency.filePath);
|
|
86
|
+
if (!pointer)
|
|
87
|
+
throw new Error(`Imported Play ${dependency.filePath} was not stored.`);
|
|
88
|
+
for (const [name, pin] of Object.entries(
|
|
89
|
+
child.artifact.importedPlayArtifacts ?? {}
|
|
90
|
+
))
|
|
91
|
+
closure.set(name, pin);
|
|
92
|
+
closure.set(child.playName, pointer);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
...node,
|
|
96
|
+
artifact: {
|
|
97
|
+
...node.artifact,
|
|
98
|
+
...closure.size ? { importedPlayArtifacts: Object.fromEntries(closure) } : {}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
for (const original of imports) {
|
|
103
|
+
const node = withPins(original);
|
|
104
|
+
const result = await client.registerPlayArtifact({
|
|
105
|
+
name: node.playName,
|
|
106
|
+
sourceCode: node.sourceCode,
|
|
107
|
+
sourceFiles: node.sourceFiles,
|
|
108
|
+
description: node.playDescription ?? void 0,
|
|
109
|
+
artifact: node.artifact,
|
|
110
|
+
compilerManifest: node.compilerManifest,
|
|
111
|
+
publish: false,
|
|
112
|
+
artifactOnly: true
|
|
113
|
+
});
|
|
114
|
+
if (typeof result.artifactStorageKey !== "string" || !result.artifactStorageKey.trim())
|
|
115
|
+
throw new Error(
|
|
116
|
+
`No immutable artifact identity was returned for ${node.playName}.`
|
|
117
|
+
);
|
|
118
|
+
stored.set(node.filePath, {
|
|
119
|
+
artifactStorageKey: result.artifactStorageKey,
|
|
120
|
+
artifactHash: node.artifact.artifactHash,
|
|
121
|
+
graphHash: node.artifact.graphHash
|
|
122
|
+
});
|
|
123
|
+
nodes.set(node.filePath, node);
|
|
124
|
+
}
|
|
125
|
+
const root = withPins(graph.root);
|
|
126
|
+
nodes.set(root.filePath, root);
|
|
127
|
+
return { root, nodes };
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// ../plays/bootstrap-routes.ts
|
|
131
|
+
var DEEPLINE_TOOL_CATEGORIES = [
|
|
132
|
+
"company_search",
|
|
133
|
+
"people_search",
|
|
134
|
+
"people_enrich",
|
|
135
|
+
"email_finder",
|
|
136
|
+
"email_verify",
|
|
137
|
+
"phone_finder",
|
|
138
|
+
"phone_verify",
|
|
139
|
+
"identity_resolution",
|
|
140
|
+
"reverse_lookup",
|
|
141
|
+
"enrichment",
|
|
142
|
+
"batch",
|
|
143
|
+
"premium",
|
|
144
|
+
"free"
|
|
145
|
+
];
|
|
146
|
+
var PLAY_BOOTSTRAP_TEMPLATES = [
|
|
147
|
+
"people-list",
|
|
148
|
+
"company-list",
|
|
149
|
+
"people-email",
|
|
150
|
+
"people-phone",
|
|
151
|
+
"company-people",
|
|
152
|
+
"company-people-email",
|
|
153
|
+
"company-people-phone"
|
|
154
|
+
];
|
|
155
|
+
var PLAY_BOOTSTRAP_SOURCE_KINDS = [
|
|
156
|
+
"csv",
|
|
157
|
+
"play",
|
|
158
|
+
"provider",
|
|
159
|
+
"providers"
|
|
160
|
+
];
|
|
161
|
+
var PLAY_BOOTSTRAP_STAGE_KINDS = [
|
|
162
|
+
"play",
|
|
163
|
+
"provider",
|
|
164
|
+
"providers"
|
|
165
|
+
];
|
|
166
|
+
var PLAY_BOOTSTRAP_FINDER_KINDS = [
|
|
167
|
+
"email_finder",
|
|
168
|
+
"phone_finder"
|
|
169
|
+
];
|
|
170
|
+
var PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY = "company_search";
|
|
171
|
+
var PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY = "people_search";
|
|
172
|
+
var PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER = {
|
|
173
|
+
email_finder: "email_finder",
|
|
174
|
+
phone_finder: "phone_finder"
|
|
175
|
+
};
|
|
176
|
+
var PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER = {
|
|
177
|
+
email_finder: "email",
|
|
178
|
+
phone_finder: "phone"
|
|
179
|
+
};
|
|
180
|
+
var PLAY_BOOTSTRAP_CONTACT_FIELDS = [
|
|
181
|
+
"first_name",
|
|
182
|
+
"last_name",
|
|
183
|
+
"domain",
|
|
184
|
+
"company_name",
|
|
185
|
+
"linkedin_url",
|
|
186
|
+
"title",
|
|
187
|
+
"email",
|
|
188
|
+
"phone"
|
|
189
|
+
];
|
|
190
|
+
var PLAY_BOOTSTRAP_COMPANY_FIELDS = [
|
|
191
|
+
"domain",
|
|
192
|
+
"company_domain",
|
|
193
|
+
"company_name",
|
|
194
|
+
"linkedin_url",
|
|
195
|
+
"website"
|
|
196
|
+
];
|
|
197
|
+
function isPlayBootstrapFinderKind(value) {
|
|
198
|
+
return PLAY_BOOTSTRAP_FINDER_KINDS.includes(value);
|
|
199
|
+
}
|
|
200
|
+
function isPlayBootstrapTemplate(value) {
|
|
201
|
+
return PLAY_BOOTSTRAP_TEMPLATES.includes(value);
|
|
202
|
+
}
|
|
203
|
+
function formatPlayBootstrapFinderKinds() {
|
|
204
|
+
return PLAY_BOOTSTRAP_FINDER_KINDS.join("|");
|
|
205
|
+
}
|
|
206
|
+
function formatPlayBootstrapTemplates() {
|
|
207
|
+
return PLAY_BOOTSTRAP_TEMPLATES.join("|");
|
|
208
|
+
}
|
|
209
|
+
function formatPlayBootstrapFinderKindsForSentence() {
|
|
210
|
+
const allButLast = PLAY_BOOTSTRAP_FINDER_KINDS.slice(0, -1);
|
|
211
|
+
const last = PLAY_BOOTSTRAP_FINDER_KINDS.at(-1);
|
|
212
|
+
return `${allButLast.join(", ")} or ${last}`;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export {
|
|
216
|
+
planLocalPlayExecution,
|
|
217
|
+
pinLocalPlayImports,
|
|
218
|
+
DEEPLINE_TOOL_CATEGORIES,
|
|
219
|
+
PLAY_BOOTSTRAP_TEMPLATES,
|
|
220
|
+
PLAY_BOOTSTRAP_SOURCE_KINDS,
|
|
221
|
+
PLAY_BOOTSTRAP_STAGE_KINDS,
|
|
222
|
+
PLAY_BOOTSTRAP_FINDER_KINDS,
|
|
223
|
+
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
224
|
+
PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY,
|
|
225
|
+
PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER,
|
|
226
|
+
PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
|
|
227
|
+
PLAY_BOOTSTRAP_CONTACT_FIELDS,
|
|
228
|
+
PLAY_BOOTSTRAP_COMPANY_FIELDS,
|
|
229
|
+
isPlayBootstrapFinderKind,
|
|
230
|
+
isPlayBootstrapTemplate,
|
|
231
|
+
formatPlayBootstrapFinderKinds,
|
|
232
|
+
formatPlayBootstrapTemplates,
|
|
233
|
+
formatPlayBootstrapFinderKindsForSentence
|
|
234
|
+
};
|