deepline 0.3.505 → 0.3.507
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-core.ts +148 -11
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +38 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
- package/dist/bundling-sources/shared_libs/monitors/package.json +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +24 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +405 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +8 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +13 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
- package/dist/cli/auth-6PJ4G5PC.js +43 -0
- package/dist/cli/{auth-AHE2EDQA.mjs → auth-BNP3M27C.mjs} +5 -5
- package/dist/cli/{billing-JOIZPHON.js → billing-7HIVX4YJ.js} +101 -91
- package/dist/cli/{billing-7CPWTGGI.mjs → billing-JKJ2AEZ6.mjs} +27 -17
- package/dist/cli/{chunk-PDLOPF5L.mjs → chunk-2OKEMB5A.mjs} +1 -1
- package/dist/cli/{chunk-HASFFOSU.js → chunk-2ZINJVWW.js} +16 -16
- package/dist/cli/{chunk-MHZAG2ZQ.js → chunk-3D5ZNYYI.js} +93 -60
- package/dist/cli/{chunk-7DDACLMX.js → chunk-56SRWY5F.js} +16 -16
- package/dist/cli/{chunk-QGNNAZ5M.mjs → chunk-5A66OJZD.mjs} +1 -1
- package/dist/cli/{chunk-UZ24SF7N.mjs → chunk-5I2XKXLS.mjs} +5 -5
- package/dist/cli/{chunk-SPN7U3MV.js → chunk-5PXGAA2M.js} +4 -4
- package/dist/cli/{chunk-EMUFF6EU.js → chunk-6AQO5OJ5.js} +7 -7
- package/dist/cli/{chunk-WTQLUULB.js → chunk-76R5I7HR.js} +6 -6
- package/dist/cli/{chunk-OMEDQ77C.mjs → chunk-7TZA6LJI.mjs} +5 -5
- package/dist/cli/{chunk-JVKEZT7L.mjs → chunk-AFSYNOG4.mjs} +22 -1
- package/dist/cli/{chunk-OORPAQVC.js → chunk-AXYLMDU3.js} +8 -8
- package/dist/cli/{chunk-FIQ5UEIF.mjs → chunk-D2T4W5LR.mjs} +2 -2
- package/dist/cli/{chunk-Y52XY56V.js → chunk-E5HGDYU3.js} +41 -41
- package/dist/cli/{chunk-3YEOOXD4.js → chunk-E7YIIEZU.js} +11 -11
- package/dist/cli/{chunk-NARJWXBR.mjs → chunk-EEJLV77L.mjs} +2 -2
- package/dist/cli/{chunk-7DDKLFOY.mjs → chunk-EYZJDHXA.mjs} +3 -3
- package/dist/cli/{chunk-K26YOPDO.js → chunk-GDHLL5EQ.js} +22 -1
- package/dist/cli/{chunk-WTUC5VKB.mjs → chunk-GMRWVXU2.mjs} +2 -2
- package/dist/cli/{chunk-PZN24YQQ.mjs → chunk-H334EFON.mjs} +2 -2
- package/dist/cli/{chunk-RT3HJBIH.mjs → chunk-H6PABDS4.mjs} +10 -10
- package/dist/cli/{chunk-7QLK2GHL.js → chunk-HPZONIDF.js} +5 -5
- package/dist/cli/{chunk-5XT4DZQL.mjs → chunk-IBKWVFWP.mjs} +2 -2
- package/dist/cli/{chunk-45XYW477.js → chunk-ILUZ7IHP.js} +21 -21
- package/dist/cli/{chunk-SHKRL7CW.mjs → chunk-IWZRQ6YW.mjs} +1 -1
- package/dist/cli/{chunk-ACI6CUDX.mjs → chunk-JCE2JNGD.mjs} +78 -45
- package/dist/cli/{chunk-XHPB6RGY.js → chunk-JPN6OBPW.js} +1 -1
- package/dist/cli/{chunk-W6I4N4JN.mjs → chunk-LSONU2E2.mjs} +6 -6
- package/dist/cli/{chunk-VXKWF3AD.js → chunk-MN5HO2PN.js} +9 -9
- package/dist/cli/{chunk-6FEN6VWZ.js → chunk-MQRT5NYP.js} +26 -26
- package/dist/cli/{chunk-52FPW2RD.mjs → chunk-NJRJGXVF.mjs} +2 -2
- package/dist/cli/{chunk-BWAYMJ23.js → chunk-OBATCFZO.js} +91 -48
- package/dist/cli/{chunk-YBIVVAL7.mjs → chunk-OPEJASMJ.mjs} +3 -3
- package/dist/cli/{chunk-GXMNOUHP.js → chunk-QWRSWQ7Z.js} +7 -7
- package/dist/cli/{chunk-GAUNJCXQ.js → chunk-REFT4DMJ.js} +96 -96
- package/dist/cli/{chunk-QYGYVCRI.js → chunk-RFJANXCC.js} +14 -14
- package/dist/cli/{chunk-4OFSAZN6.mjs → chunk-RTLWYERT.mjs} +46 -3
- package/dist/cli/{chunk-CSLLQWAB.mjs → chunk-T6FUNWXX.mjs} +1 -1
- package/dist/cli/{chunk-JA7YBRP4.mjs → chunk-TVR4R2E6.mjs} +1 -1
- package/dist/cli/{chunk-ZLN2B5YA.js → chunk-TZ7APOBM.js} +3 -3
- package/dist/cli/{chunk-JSTKLYYD.js → chunk-V2K34NAO.js} +2 -2
- package/dist/cli/{chunk-WPCF7C6B.js → chunk-V4GGTOCX.js} +3 -3
- package/dist/cli/{chunk-IZYOYXG7.mjs → chunk-VGEBRTHF.mjs} +4 -4
- package/dist/cli/{chunk-OA6U5NVB.mjs → chunk-VQLD5M43.mjs} +5 -5
- package/dist/cli/{chunk-LC4FG34E.js → chunk-WOPWSAGS.js} +53 -53
- package/dist/cli/{chunk-MAFZ64RN.mjs → chunk-WQAHMVBT.mjs} +2 -2
- package/dist/cli/{chunk-IDAE5VDH.js → chunk-WTY2R4R3.js} +5 -5
- package/dist/cli/{chunk-6U3AGJWI.mjs → chunk-XKGNEN4P.mjs} +1 -1
- package/dist/cli/{chunk-7AD565DO.mjs → chunk-YAAJHS6W.mjs} +1 -1
- package/dist/cli/{chunk-CA3SYXCS.js → chunk-ZCNGMQVD.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WTPI6ZON.mjs → csv-LZTQOPP2.mjs} +4 -4
- package/dist/cli/{csv-DZHVIW3G.js → csv-WYJVU5HV.js} +13 -13
- package/dist/cli/{db-NR4PJ6AF.mjs → db-D6XFOQP3.mjs} +6 -6
- package/dist/cli/{db-D7LPPNCC.js → db-UCUXPY7S.js} +27 -27
- package/dist/cli/{describe-NCKAJPUG.mjs → describe-HKL2XK67.mjs} +18 -18
- package/dist/cli/describe-XS4OIASD.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-UQG6LWEN.js → executions-5CF5NM7V.js} +8 -8
- package/dist/cli/{executions-RQVJ4LAB.mjs → executions-AFHYXH73.mjs} +6 -6
- package/dist/cli/{feedback-TCHA67IA.js → feedback-GJAX3JZE.js} +8 -8
- package/dist/cli/{feedback-RD4Y3YQR.mjs → feedback-MLKQ572F.mjs} +4 -4
- package/dist/cli/{git-Z7434B7Y.mjs → git-BMLROZOU.mjs} +5 -5
- package/dist/cli/git-RIXUHRDL.js +25 -0
- package/dist/cli/index.js +145 -149
- package/dist/cli/index.mjs +46 -50
- package/dist/cli/{legacy-noops-23WRA7DH.js → legacy-noops-FHRDF7MC.js} +8 -8
- package/dist/cli/{legacy-noops-LQJU4UIV.mjs → legacy-noops-Y7JSQVLQ.mjs} +5 -5
- package/dist/cli/{monitors-KOWN7M3V.js → monitors-Z6RPIQIH.js} +450 -138
- package/dist/cli/{monitors-Z6VYUZ2W.mjs → monitors-ZEVK3UD7.mjs} +332 -20
- package/dist/cli/{org-UBNRO5XO.mjs → org-PFLVANIN.mjs} +6 -6
- package/dist/cli/{org-2T5K2VP5.js → org-TXJ3RES5.js} +72 -72
- package/dist/cli/{pages-GHPJBVV3.mjs → pages-BKEMQ2J7.mjs} +6 -6
- package/dist/cli/{pages-SRXTU7XO.js → pages-ESKKBK5Y.js} +18 -18
- package/dist/cli/{play-HRQKGTXA.mjs → play-4Z6Z7KVY.mjs} +18 -18
- package/dist/cli/{play-2HMZ57EZ.js → play-AAFOZJKQ.js} +317 -317
- package/dist/cli/{providers-JWJRFRR5.mjs → providers-KYP2UWDV.mjs} +6 -6
- package/dist/cli/{providers-P5O676MZ.js → providers-WEU4UNKY.js} +9 -9
- package/dist/cli/{quickstart-S7NZUQRO.mjs → quickstart-7EUDF4IL.mjs} +4 -4
- package/dist/cli/{quickstart-YCY72TAO.js → quickstart-DXYZCOJY.js} +6 -6
- package/dist/cli/{run-MHLLGF4G.js → run-3YN6P26W.js} +41 -41
- package/dist/cli/{run-QWMRIUIU.mjs → run-MB2R5PQ7.mjs} +23 -23
- package/dist/cli/{search-4BFTQUEP.mjs → search-MIFBESRE.mjs} +8 -8
- package/dist/cli/search-Z7GUKVFE.js +33 -0
- package/dist/cli/{search-output-LIYHDTBP.mjs → search-output-2IR3UA4W.mjs} +4 -4
- package/dist/cli/{search-output-62LBVZHN.js → search-output-NUWL47SR.js} +6 -6
- package/dist/cli/{secrets-KKKHVSOO.js → secrets-6UT6BIDJ.js} +15 -15
- package/dist/cli/{secrets-GW27V77E.mjs → secrets-E6WIYONW.mjs} +6 -6
- package/dist/cli/{sessions-R75LBGIL.mjs → sessions-AP7L6YCL.mjs} +5 -5
- package/dist/cli/{sessions-R3OEINAR.js → sessions-NF2RBXMJ.js} +6 -6
- package/dist/cli/{settings-MQIHAEZN.js → settings-FZWXYP4W.js} +106 -79
- package/dist/cli/{settings-I3AQZSYG.mjs → settings-MMLHJ5E5.mjs} +39 -12
- package/dist/cli/{setup-2YA5MYMS.mjs → setup-WJNN2CZZ.mjs} +10 -10
- package/dist/cli/{setup-X3QRJERP.js → setup-YHXAAJNZ.js} +50 -50
- package/dist/cli/skills-4YYUFNMS.js +37 -0
- package/dist/cli/{skills-7252FOOI.mjs → skills-KXZ5PJU2.mjs} +8 -8
- package/dist/cli/{tools-SKQTSVGE.mjs → tools-K6S7RX7B.mjs} +17 -17
- package/dist/cli/tools-OCYEMMUP.js +57 -0
- package/dist/cli/{update-GNBBSKTB.mjs → update-2SFWEVM6.mjs} +10 -10
- package/dist/cli/update-WQIPUQ4K.js +35 -0
- package/dist/cli/{workflow-OJSAL5FO.mjs → workflow-IR3RCVHZ.mjs} +7 -7
- package/dist/cli/{workflow-QB7YYWPP.js → workflow-SM3Q45X5.js} +17 -17
- package/dist/{client-B3GSaSFn.d.ts → client-BlwD-G4v.d.ts} +1 -1
- package/dist/{client-DEJg0CZn.d.mts → client-DMpsMNH9.d.mts} +1 -1
- package/dist/{client-core-C404E33V.d.mts → client-core-CITtRTbB.d.mts} +77 -11
- package/dist/{client-core-GQmy3N8y.d.ts → client-core-DwBLuEkm.d.ts} +77 -11
- package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
- package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
- package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
- package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
- package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
- package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- 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/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-SEPKNRHV.js +0 -43
- package/dist/cli/describe-HVQBTKFM.js +0 -50
- package/dist/cli/git-TUB2ZUEH.js +0 -25
- package/dist/cli/search-QPUHOEIL.js +0 -33
- package/dist/cli/skills-BPZWMZSL.js +0 -37
- package/dist/cli/tools-F7RVQ3IK.js +0 -57
- package/dist/cli/update-TLSY6LC2.js +0 -35
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IWZRQ6YW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YAAJHS6W.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TVR4R2E6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7TZA6LJI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NJRJGXVF.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RTLWYERT.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-BMCRTI6Z.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-5I2XKXLS.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-2OKEMB5A.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-JCE2JNGD.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-H334EFON.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-IWZRQ6YW.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1053,7 +1053,7 @@ Examples:
|
|
|
1053
1053
|
process.exitCode = await narrowView();
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
1056
|
-
const { describeAnything } = await import("./describe-
|
|
1056
|
+
const { describeAnything } = await import("./describe-HKL2XK67.mjs");
|
|
1057
1057
|
process.exitCode = await describeAnything(
|
|
1058
1058
|
toolId,
|
|
1059
1059
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOBATCFZOjs = require('./chunk-OBATCFZO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTZ7APOBMjs = require('./chunk-TZ7APOBM.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkTZ7APOBMjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkOBATCFZOjs.PlayClient)(
|
|
142
|
+
new (0, _chunkTZ7APOBMjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H334EFON.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YAAJHS6W.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2ZINJVWWjs = require('./chunk-2ZINJVWW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk3D5ZNYYIjs = require('./chunk-3D5ZNYYI.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6AQO5OJ5js = require('./chunk-6AQO5OJ5.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkTZ7APOBMjs = require('./chunk-TZ7APOBM.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk5PXGAA2Mjs = require('./chunk-5PXGAA2M.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkTZ7APOBMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5PXGAA2Mjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunk5PXGAA2Mjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunk5PXGAA2Mjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk5PXGAA2Mjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk2ZINJVWWjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk3D5ZNYYIjs.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk5PXGAA2Mjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunk2ZINJVWWjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk5PXGAA2Mjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunk2ZINJVWWjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunk2ZINJVWWjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunk6AQO5OJ5js.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunk6AQO5OJ5js.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunk2ZINJVWWjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunk2ZINJVWWjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunk6AQO5OJ5js.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5A66OJZD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D2T4W5LR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IWZRQ6YW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YAAJHS6W.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XKGNEN4P.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -467,23 +467,49 @@ function resolveWindowsExecutable(command, env, cwd) {
|
|
|
467
467
|
return void 0;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
+
// src/cli/skills-sync-preferences.ts
|
|
471
|
+
import { existsSync as existsSync2, mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
472
|
+
import { homedir as homedir2 } from "os";
|
|
473
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
474
|
+
function skillsSyncDisabledPath() {
|
|
475
|
+
return join2(
|
|
476
|
+
process.env.HOME?.trim() || homedir2(),
|
|
477
|
+
".local",
|
|
478
|
+
"deepline",
|
|
479
|
+
"sdk-cli",
|
|
480
|
+
"skills-sync-disabled"
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
function isCliSkillsSyncEnabled() {
|
|
484
|
+
return !existsSync2(skillsSyncDisabledPath());
|
|
485
|
+
}
|
|
486
|
+
function setCliSkillsSyncEnabled(enabled) {
|
|
487
|
+
const path = skillsSyncDisabledPath();
|
|
488
|
+
if (enabled) {
|
|
489
|
+
rmSync2(path, { force: true });
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
mkdirSync2(dirname2(path), { recursive: true });
|
|
493
|
+
writeFileSync2(path, "", { flag: "a", mode: 384 });
|
|
494
|
+
}
|
|
495
|
+
|
|
470
496
|
// src/cli/skills-sync.ts
|
|
471
497
|
import { spawn, spawnSync } from "child_process";
|
|
472
498
|
import { createHash, randomUUID as randomUUID2 } from "crypto";
|
|
473
|
-
import { homedir as
|
|
499
|
+
import { homedir as homedir3 } from "os";
|
|
474
500
|
import { gunzipSync } from "zlib";
|
|
475
501
|
import {
|
|
476
502
|
appendFileSync,
|
|
477
|
-
existsSync as
|
|
478
|
-
mkdirSync as
|
|
503
|
+
existsSync as existsSync3,
|
|
504
|
+
mkdirSync as mkdirSync3,
|
|
479
505
|
readdirSync,
|
|
480
506
|
readFileSync as readFileSync2,
|
|
481
507
|
renameSync as renameSync2,
|
|
482
|
-
rmSync as
|
|
508
|
+
rmSync as rmSync3,
|
|
483
509
|
unlinkSync,
|
|
484
|
-
writeFileSync as
|
|
510
|
+
writeFileSync as writeFileSync3
|
|
485
511
|
} from "fs";
|
|
486
|
-
import { dirname as
|
|
512
|
+
import { dirname as dirname3, join as join3 } from "path";
|
|
487
513
|
var CHECK_TIMEOUT_MS2 = 3e3;
|
|
488
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
489
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
@@ -492,10 +518,10 @@ function shouldSkipSkillsSync() {
|
|
|
492
518
|
return true;
|
|
493
519
|
}
|
|
494
520
|
const value = process.env.DEEPLINE_SKIP_SKILLS_SYNC?.trim().toLowerCase();
|
|
495
|
-
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
521
|
+
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
496
522
|
}
|
|
497
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
498
|
-
return
|
|
524
|
+
return join3(sdkCliStateDirPath(baseUrl), "skills-sync-unavailable-version");
|
|
499
525
|
}
|
|
500
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
501
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
@@ -505,21 +531,21 @@ function sortedLeaseAgents(agents) {
|
|
|
505
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
506
532
|
}
|
|
507
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
508
|
-
return
|
|
534
|
+
return join3(
|
|
509
535
|
sdkCliStateDirPath(baseUrl),
|
|
510
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
511
537
|
);
|
|
512
538
|
}
|
|
513
539
|
function readInProgressSkillsSyncLeaseFromDir(dir) {
|
|
514
|
-
const claim = readMarkedSkillsSyncVersion(
|
|
540
|
+
const claim = readMarkedSkillsSyncVersion(join3(dir, "claim"));
|
|
515
541
|
const [version = "", startedAt = ""] = claim.split(" ");
|
|
516
|
-
const pidRaw = readMarkedSkillsSyncVersion(
|
|
542
|
+
const pidRaw = readMarkedSkillsSyncVersion(join3(dir, "pid"));
|
|
517
543
|
return {
|
|
518
544
|
claimToken: version && startedAt ? `${version} ${startedAt}` : "",
|
|
519
545
|
version,
|
|
520
546
|
startedAt: Number(startedAt),
|
|
521
547
|
pid: /^\d+$/.test(pidRaw) ? Number(pidRaw) : null,
|
|
522
|
-
owner: readMarkedSkillsSyncVersion(
|
|
548
|
+
owner: readMarkedSkillsSyncVersion(join3(dir, "owner"))
|
|
523
549
|
};
|
|
524
550
|
}
|
|
525
551
|
function readInProgressSkillsSyncLease(baseUrl, agent) {
|
|
@@ -576,15 +602,15 @@ function claimOneInProgressSkillsSync(baseUrl, remoteVersion, agent, owner) {
|
|
|
576
602
|
const create = () => {
|
|
577
603
|
const claimToken = `${remoteVersion} ${Date.now()}`;
|
|
578
604
|
const staging = `${dir}.staging-${process.pid}-${Date.now()}`;
|
|
579
|
-
|
|
580
|
-
|
|
605
|
+
mkdirSync3(staging);
|
|
606
|
+
writeFileSync3(join3(staging, "claim"), `${claimToken}
|
|
581
607
|
`, "utf-8");
|
|
582
|
-
|
|
608
|
+
writeFileSync3(join3(staging, "owner"), `${owner}
|
|
583
609
|
`, "utf-8");
|
|
584
610
|
try {
|
|
585
611
|
renameSync2(staging, dir);
|
|
586
612
|
} catch (error) {
|
|
587
|
-
|
|
613
|
+
rmSync3(staging, { recursive: true, force: true });
|
|
588
614
|
const code = errorCode(error);
|
|
589
615
|
const err = new Error("lease directory already exists");
|
|
590
616
|
err.code = code === "EEXIST" || code === "ENOTEMPTY" ? "EEXIST" : String(code ?? "");
|
|
@@ -593,7 +619,7 @@ function claimOneInProgressSkillsSync(baseUrl, remoteVersion, agent, owner) {
|
|
|
593
619
|
return { state: "claimed", claimToken };
|
|
594
620
|
};
|
|
595
621
|
try {
|
|
596
|
-
|
|
622
|
+
mkdirSync3(dirname3(dir), { recursive: true });
|
|
597
623
|
} catch (error) {
|
|
598
624
|
return { state: "unavailable", error };
|
|
599
625
|
}
|
|
@@ -609,7 +635,7 @@ function claimOneInProgressSkillsSync(baseUrl, remoteVersion, agent, owner) {
|
|
|
609
635
|
if (!tombstone) {
|
|
610
636
|
return { state: "held" };
|
|
611
637
|
}
|
|
612
|
-
|
|
638
|
+
rmSync3(tombstone, { recursive: true, force: true });
|
|
613
639
|
try {
|
|
614
640
|
return create();
|
|
615
641
|
} catch (error) {
|
|
@@ -680,8 +706,8 @@ function recordOwnPidOnInProgressSkillsSync(baseUrl, leases) {
|
|
|
680
706
|
for (const [agent, lease] of leases) {
|
|
681
707
|
if (!lease.claimToken) continue;
|
|
682
708
|
try {
|
|
683
|
-
|
|
684
|
-
|
|
709
|
+
writeFileSync3(
|
|
710
|
+
join3(inProgressSkillsSyncPath(baseUrl, agent), "pid"),
|
|
685
711
|
`${process.pid}
|
|
686
712
|
`,
|
|
687
713
|
"utf-8"
|
|
@@ -695,7 +721,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
|
|
|
695
721
|
const dir = inProgressSkillsSyncPath(baseUrl, agent);
|
|
696
722
|
if (!claimToken) {
|
|
697
723
|
try {
|
|
698
|
-
|
|
724
|
+
rmSync3(dir, { recursive: true, force: true });
|
|
699
725
|
} catch {
|
|
700
726
|
}
|
|
701
727
|
continue;
|
|
@@ -709,7 +735,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
|
|
|
709
735
|
}
|
|
710
736
|
} catch {
|
|
711
737
|
}
|
|
712
|
-
|
|
738
|
+
rmSync3(tombstone, { recursive: true, force: true });
|
|
713
739
|
}
|
|
714
740
|
}
|
|
715
741
|
function claimTokensOf(leases) {
|
|
@@ -749,7 +775,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
749
775
|
return sortedLeaseAgents(agents).map((agent) => inProgressSkillsSyncPath(baseUrl, agent)).join(", ");
|
|
750
776
|
}
|
|
751
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
752
|
-
return
|
|
778
|
+
return join3(
|
|
753
779
|
sdkCliStateDirPath(baseUrl),
|
|
754
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
755
781
|
);
|
|
@@ -758,7 +784,7 @@ function deferSkillsNotice(baseUrl, agents) {
|
|
|
758
784
|
const path = deferredSkillsNoticePath(baseUrl, agents);
|
|
759
785
|
return (text) => {
|
|
760
786
|
try {
|
|
761
|
-
|
|
787
|
+
mkdirSync3(dirname3(path), { recursive: true });
|
|
762
788
|
appendFileSync(path, `${text.trimEnd()}
|
|
763
789
|
`, "utf-8");
|
|
764
790
|
} catch {
|
|
@@ -767,7 +793,7 @@ function deferSkillsNotice(baseUrl, agents) {
|
|
|
767
793
|
}
|
|
768
794
|
function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
769
795
|
const path = deferredSkillsNoticePath(baseUrl, agents);
|
|
770
|
-
if (!
|
|
796
|
+
if (!existsSync3(path)) return;
|
|
771
797
|
const tombstone = quarantine(path, "consuming");
|
|
772
798
|
if (!tombstone) return;
|
|
773
799
|
let text = "";
|
|
@@ -800,7 +826,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
800
826
|
child.unref();
|
|
801
827
|
}
|
|
802
828
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
803
|
-
return
|
|
829
|
+
return join3(
|
|
804
830
|
sdkCliStateDirPath(baseUrl),
|
|
805
831
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
806
832
|
);
|
|
@@ -810,15 +836,15 @@ function hasMarkedSkillsSyncVersion(path, version) {
|
|
|
810
836
|
}
|
|
811
837
|
function readMarkedSkillsSyncVersion(path) {
|
|
812
838
|
try {
|
|
813
|
-
return
|
|
839
|
+
return existsSync3(path) ? readFileSync2(path, "utf-8").trim() : "";
|
|
814
840
|
} catch {
|
|
815
841
|
return "";
|
|
816
842
|
}
|
|
817
843
|
}
|
|
818
844
|
function writeMarkedSkillsSyncVersion(path, version) {
|
|
819
845
|
try {
|
|
820
|
-
|
|
821
|
-
|
|
846
|
+
mkdirSync3(dirname3(path), { recursive: true });
|
|
847
|
+
writeFileSync3(path, `${version}
|
|
822
848
|
`, "utf-8");
|
|
823
849
|
return true;
|
|
824
850
|
} catch {
|
|
@@ -857,7 +883,7 @@ function hasFailedSkillsSync(baseUrl, remoteVersion, agents) {
|
|
|
857
883
|
}
|
|
858
884
|
}
|
|
859
885
|
function hasFailedAutomaticSkillsSync(baseUrl, agents) {
|
|
860
|
-
return
|
|
886
|
+
return existsSync3(failedSkillsSyncPath(baseUrl, agents));
|
|
861
887
|
}
|
|
862
888
|
function markFailedSkillsSync(baseUrl, remoteVersion, agents) {
|
|
863
889
|
return writeMarkedSkillsSyncVersion(
|
|
@@ -928,7 +954,7 @@ function safeSkillFilePath(value) {
|
|
|
928
954
|
}
|
|
929
955
|
function installedSkillFiles(root, prefix = "") {
|
|
930
956
|
const files = [];
|
|
931
|
-
for (const entry of readdirSync(
|
|
957
|
+
for (const entry of readdirSync(join3(root, prefix), {
|
|
932
958
|
withFileTypes: true
|
|
933
959
|
})) {
|
|
934
960
|
const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
|
|
@@ -1047,12 +1073,12 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
|
|
|
1047
1073
|
clearTimeout(timeout);
|
|
1048
1074
|
controller.abort();
|
|
1049
1075
|
}
|
|
1050
|
-
const home =
|
|
1051
|
-
const claudeConfigDir = process.env.CLAUDE_CONFIG_DIR?.trim() ||
|
|
1076
|
+
const home = homedir3();
|
|
1077
|
+
const claudeConfigDir = process.env.CLAUDE_CONFIG_DIR?.trim() || join3(home, ".claude");
|
|
1052
1078
|
for (const [name, { files }] of published) {
|
|
1053
1079
|
for (const root of [
|
|
1054
|
-
|
|
1055
|
-
|
|
1080
|
+
join3(home, ".agents", "skills", name),
|
|
1081
|
+
join3(claudeConfigDir, "skills", name)
|
|
1056
1082
|
]) {
|
|
1057
1083
|
const installed = installedSkillFiles(root);
|
|
1058
1084
|
if (installed.length !== files.length || installed.some((file, index2) => file !== files[index2])) {
|
|
@@ -1060,7 +1086,7 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
|
|
|
1060
1086
|
}
|
|
1061
1087
|
for (const file of files) {
|
|
1062
1088
|
const publishedContent = expected.get(`${name}/${file}`);
|
|
1063
|
-
if (!publishedContent || !readFileSync2(
|
|
1089
|
+
if (!publishedContent || !readFileSync2(join3(root, file)).equals(publishedContent)) {
|
|
1064
1090
|
throw new Error(`installed content differs for ${name}/${file}`);
|
|
1065
1091
|
}
|
|
1066
1092
|
}
|
|
@@ -1116,7 +1142,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1116
1142
|
};
|
|
1117
1143
|
}
|
|
1118
1144
|
function noInstallerProbePath(baseUrl) {
|
|
1119
|
-
return
|
|
1145
|
+
return join3(
|
|
1120
1146
|
sdkCliStateDirPath(baseUrl),
|
|
1121
1147
|
"skills-sync-no-installer-unknown.json"
|
|
1122
1148
|
);
|
|
@@ -1138,8 +1164,8 @@ function rememberUnavailableInstallerProbes(baseUrl, remoteVersion, probes, prob
|
|
|
1138
1164
|
if (probes.bunx !== "available" && probes.npx !== "available") {
|
|
1139
1165
|
const path = noInstallerProbePath(baseUrl);
|
|
1140
1166
|
try {
|
|
1141
|
-
|
|
1142
|
-
|
|
1167
|
+
mkdirSync3(dirname3(path), { recursive: true });
|
|
1168
|
+
writeFileSync3(
|
|
1143
1169
|
path,
|
|
1144
1170
|
JSON.stringify({
|
|
1145
1171
|
version: remoteVersion,
|
|
@@ -1347,7 +1373,8 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1347
1373
|
`);
|
|
1348
1374
|
}
|
|
1349
1375
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1350
|
-
|
|
1376
|
+
const skip = shouldSkipSkillsSync();
|
|
1377
|
+
if (skip && !options.claim) return;
|
|
1351
1378
|
const usingPluginSkills = hasActivePluginSkills();
|
|
1352
1379
|
if (usingPluginSkills) {
|
|
1353
1380
|
return;
|
|
@@ -1364,6 +1391,10 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1364
1391
|
if (leases && [...leases.values()].some((lease) => lease.owner !== options.claim)) {
|
|
1365
1392
|
return;
|
|
1366
1393
|
}
|
|
1394
|
+
if (skip) {
|
|
1395
|
+
if (leases) releaseInProgressSkillsSync(baseUrl, claimTokensOf(leases));
|
|
1396
|
+
return;
|
|
1397
|
+
}
|
|
1367
1398
|
if (leases) recordOwnPidOnInProgressSkillsSync(baseUrl, leases);
|
|
1368
1399
|
const claimedVersion = leases ? claimedSkillsVersion(leases) : "";
|
|
1369
1400
|
if (options.mode === "detached" && agents.length > 0 && options.update === void 0 && !claimedVersion) {
|
|
@@ -1571,6 +1602,8 @@ export {
|
|
|
1571
1602
|
LEGACY_SKILL_NAMES_TO_REMOVE,
|
|
1572
1603
|
skillsSourceUrl,
|
|
1573
1604
|
resolveShellSpawn,
|
|
1605
|
+
isCliSkillsSyncEnabled,
|
|
1606
|
+
setCliSkillsSyncEnabled,
|
|
1574
1607
|
SkillsStateUnavailableError,
|
|
1575
1608
|
acquireSkillsInstallLease,
|
|
1576
1609
|
skillsInstallLeasePath,
|
|
@@ -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.507",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H6PABDS4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TVR4R2E6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
} from "./chunk-ITJ7NB2D.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NJRJGXVF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-D2T4W5LR.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H334EFON.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IWZRQ6YW.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|