deepline 0.3.534 → 0.3.535
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 +22 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +658 -25
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
- package/dist/cli/auth-VDCU3T6A.js +43 -0
- package/dist/cli/{auth-MHQYIMVX.mjs → auth-ZCTMB5RA.mjs} +5 -5
- package/dist/cli/{billing-YQLNP4S5.js → billing-GVFKZQH3.js} +82 -82
- package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OU2ZHL72.mjs} +7 -7
- package/dist/cli/{chunk-MQX363YF.js → chunk-243O3FH5.js} +5 -5
- package/dist/cli/{chunk-MYSKWJMA.js → chunk-2D6SWQTK.js} +13 -13
- package/dist/cli/{chunk-NDFNBJGL.js → chunk-4NLRWKZB.js} +26 -26
- package/dist/cli/{chunk-5LZ5VSOK.mjs → chunk-4QELPWUW.mjs} +2 -2
- package/dist/cli/{chunk-GTXSUPCJ.js → chunk-5EKNDNFQ.js} +2 -2
- package/dist/cli/{chunk-V7SCRUFQ.js → chunk-6LHX33VN.js} +6 -6
- package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-6TYRRNXY.mjs} +2 -2
- package/dist/cli/{chunk-AK622KIG.mjs → chunk-7CWSAEYS.mjs} +1 -1
- package/dist/cli/{chunk-DZS4JC7I.js → chunk-7PXP2FQK.js} +2 -2
- package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-7R5DAANG.mjs} +1 -1
- package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-AUEUAPVS.mjs} +1 -1
- package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-BF65LB7X.mjs} +3 -3
- package/dist/cli/{chunk-B2AS3R5W.js → chunk-CIDATNTY.js} +16 -16
- package/dist/cli/{chunk-UWNVFAFN.js → chunk-D4MHCCIR.js} +4 -4
- package/dist/cli/{chunk-GVGQ6NZW.js → chunk-DAPKLYST.js} +41 -41
- package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-DFJODFMC.mjs} +5 -5
- package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DWPY6ZID.mjs} +1 -1
- package/dist/cli/{chunk-KSA2XE4T.js → chunk-DYIWDUY4.js} +104 -104
- package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-E3CLOVG5.mjs} +17 -5
- package/dist/cli/{chunk-DGKTHWWH.js → chunk-FGN75ZN6.js} +23 -7
- package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-FZKPPB5P.mjs} +17 -1
- package/dist/cli/{chunk-2P3NVX65.mjs → chunk-G2DLG32W.mjs} +10 -10
- package/dist/cli/{chunk-O53LHONF.mjs → chunk-H6SWS5CG.mjs} +2 -2
- package/dist/cli/{chunk-XBK6WCVA.js → chunk-HWPOXCCK.js} +3 -3
- package/dist/cli/{chunk-HCD36BP6.js → chunk-HYBZWSSH.js} +44 -44
- package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-J75DANZY.mjs} +2 -2
- package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-JQQG4QL4.mjs} +3 -3
- package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-JWWYLGUT.mjs} +2 -2
- package/dist/cli/{chunk-IX45S5VC.js → chunk-K3IPGMGP.js} +11 -11
- package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-K53NKWZO.mjs} +5 -5
- package/dist/cli/{chunk-WR4WETRU.mjs → chunk-K76AEBFY.mjs} +4 -4
- package/dist/cli/{chunk-HPJAE6PP.js → chunk-KA6ZERJL.js} +6 -6
- package/dist/cli/{chunk-MQORQ7WL.js → chunk-KOZBZPRM.js} +53 -53
- package/dist/cli/{chunk-EGTUOYYG.js → chunk-KWGXHPHL.js} +7 -7
- package/dist/cli/{chunk-WDNRPZED.mjs → chunk-LVISZFYO.mjs} +2 -2
- package/dist/cli/{chunk-TVINIDHB.js → chunk-OM732MGV.js} +9 -9
- package/dist/cli/{chunk-JBBJDFUJ.js → chunk-PHLNYBAA.js} +5 -5
- package/dist/cli/{chunk-RH3YRMUY.js → chunk-PI5R65OQ.js} +1 -1
- package/dist/cli/{chunk-NNAE7E23.mjs → chunk-QYBAHYP4.mjs} +6 -6
- package/dist/cli/{chunk-TQH3533L.mjs → chunk-R2KKEHJN.mjs} +5 -5
- package/dist/cli/{chunk-6CEUQYMB.js → chunk-RFQWSH6I.js} +3 -3
- package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-RKY4LBX3.mjs} +1 -1
- package/dist/cli/{chunk-D3J2Y2BP.js → chunk-T7RBM2WX.js} +14 -14
- package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-TCVCFZP6.mjs} +1 -1
- package/dist/cli/{chunk-LGRZCHKC.js → chunk-UUQ2OXMH.js} +16 -16
- package/dist/cli/{chunk-E7TP25I2.mjs → chunk-W5YJYU4G.mjs} +1 -1
- package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-W6T23EUC.mjs} +1 -1
- package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-WAIBM6KX.mjs} +5 -5
- package/dist/cli/{chunk-VE7ZPLN2.js → chunk-WNNA4L6Z.js} +22 -22
- package/dist/cli/{chunk-SUWTLXCV.js → chunk-XSOTEVOB.js} +17 -5
- package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YFZLZNTH.mjs} +2 -2
- package/dist/cli/{chunk-A6HNT4EE.js → chunk-ZUVE63Y7.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U3M2G76R.js → csv-CD55KEIO.js} +13 -13
- package/dist/cli/{csv-4ID4E5W3.mjs → csv-CLPVMIRF.mjs} +4 -4
- package/dist/cli/{db-LHX5BBCZ.mjs → db-AU4SMWUN.mjs} +6 -6
- package/dist/cli/{db-IHAQIKEQ.js → db-MQKLDAEO.js} +27 -27
- package/dist/cli/describe-5BFNHT5V.js +50 -0
- package/dist/cli/{describe-CI4MREFF.mjs → describe-AWJUXE2U.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-CJ5LV23G.js → executions-77GOLWRM.js} +8 -8
- package/dist/cli/{executions-UJ6JZUL5.mjs → executions-TFIJPUX7.mjs} +6 -6
- package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-2WRSZ5WL.mjs} +6 -6
- package/dist/cli/{feedback-TGUBVGRP.js → feedback-OV5YAL3A.js} +14 -14
- package/dist/cli/git-HGMX52XU.js +25 -0
- package/dist/cli/{git-3DOTQHJO.mjs → git-VNS4ATLZ.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-C732QDCY.mjs} +6 -6
- package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-HDOB5C6F.js} +9 -9
- package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-2LYEFXOU.mjs} +7 -7
- package/dist/cli/{monitors-XECKLAXA.js → monitors-5IUMHH3E.js} +100 -100
- package/dist/cli/{org-DOBAIYWG.js → org-ADW2EVAC.js} +86 -86
- package/dist/cli/{org-ZAAIEZKB.mjs → org-G4YGZPHS.mjs} +6 -6
- package/dist/cli/{pages-FUOSF6BE.mjs → pages-KXKWSCEV.mjs} +6 -6
- package/dist/cli/{pages-TLC2N6L7.js → pages-VTJGAI2D.js} +18 -18
- package/dist/cli/{play-KLYRMQPF.mjs → play-7GQ56C2D.mjs} +69 -22
- package/dist/cli/{play-E74VN6B7.js → play-EHSOSSHT.js} +367 -320
- package/dist/cli/{providers-APZ6SOSK.js → providers-PWCF6OOO.js} +9 -9
- package/dist/cli/{providers-XTQXV5LB.mjs → providers-WL3YTCSV.mjs} +6 -6
- package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-323XOPGI.mjs} +4 -4
- package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-ZKI5MURA.js} +6 -6
- package/dist/cli/{run-3YLIJJ57.js → run-XZPWA6JS.js} +41 -41
- package/dist/cli/{run-TZPBBSPX.mjs → run-ZCNZU3K2.mjs} +23 -23
- package/dist/cli/{search-VLHE2CMZ.mjs → search-CVLVSFMJ.mjs} +8 -8
- package/dist/cli/search-J6EY7DQN.js +33 -0
- package/dist/cli/{search-output-73BYB7UE.mjs → search-output-6PY6RN2R.mjs} +4 -4
- package/dist/cli/{search-output-GCT7PQIT.js → search-output-7HRSSRBS.js} +6 -6
- package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-6S2ZWDIM.mjs} +6 -6
- package/dist/cli/{secrets-J6CEKXKQ.js → secrets-IYD5VKY4.js} +15 -15
- package/dist/cli/sessions-7HPIVSQ4.js +22 -0
- package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-GVEX5TUJ.mjs} +6 -6
- package/dist/cli/{settings-72K5YCIS.mjs → settings-BN5MJZ3C.mjs} +13 -13
- package/dist/cli/{settings-WRV5XEZC.js → settings-CANK4HJQ.js} +86 -86
- package/dist/cli/{setup-KQFY6WT4.mjs → setup-JNMSCCU4.mjs} +10 -10
- package/dist/cli/{setup-QVXWT2EQ.js → setup-YSGKGLSJ.js} +50 -50
- package/dist/cli/{skills-C3K3E473.mjs → skills-QCQN2UM2.mjs} +8 -8
- package/dist/cli/skills-WDGSSKJZ.js +37 -0
- package/dist/cli/{tools-4A2OH6MB.mjs → tools-CDPOID7V.mjs} +17 -17
- package/dist/cli/tools-URNVXSTZ.js +57 -0
- package/dist/cli/{update-BS6USKPR.mjs → update-D3ZERUQ3.mjs} +10 -10
- package/dist/cli/update-Q6JW32IA.js +35 -0
- package/dist/cli/{views-4NZGAXHL.js → views-4NV2KQKA.js} +18 -18
- package/dist/cli/{views-WB6GFTRX.mjs → views-RDZRWQBQ.mjs} +6 -6
- package/dist/cli/{workflow-2D4WX55R.mjs → workflow-2CG3TVCG.mjs} +7 -7
- package/dist/cli/{workflow-L2QTQZYV.js → workflow-RABJCAZC.js} +17 -17
- package/dist/{client-DoUVSkqC.d.mts → client-DhSvMO3A.d.mts} +1 -1
- package/dist/{client-core-CPlwsC1Q.d.mts → client-core-CVG1Et-4.d.mts} +9 -1
- package/dist/{client-core-C7KkUIE_.d.ts → client-core-CdWH6Sii.d.ts} +9 -1
- package/dist/{client-DQm56zMs.d.ts → client-oGNJMQFd.d.ts} +1 -1
- package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
- package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
- package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
- package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
- package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
- package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +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 +118 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +52 -0
- 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-UP2RGPI6.js +0 -43
- package/dist/cli/describe-IVTSD7ST.js +0 -50
- package/dist/cli/git-R3W25XIF.js +0 -25
- package/dist/cli/search-NB5CBALV.js +0 -33
- package/dist/cli/sessions-SFCZSB77.js +0 -22
- package/dist/cli/skills-WIJEHVLA.js +0 -37
- package/dist/cli/tools-VMMERMLO.js +0 -57
- package/dist/cli/update-54WZQDTS.js +0 -35
|
@@ -616,25 +616,27 @@ Examples:
|
|
|
616
616
|
"tools workspace-connections": {
|
|
617
617
|
core: `
|
|
618
618
|
Purpose:
|
|
619
|
-
List shared OAuth connections in
|
|
619
|
+
List managed shared OAuth connections in a workspace with Integration connections enabled.
|
|
620
620
|
Output:
|
|
621
621
|
[[cli:Use --json for records with provider, status, label, and connection version.]]
|
|
622
622
|
Cost:
|
|
623
623
|
Does not spend Deepline credits.
|
|
624
624
|
`,
|
|
625
|
-
rolloutFeature: "
|
|
625
|
+
rolloutFeature: "integration-connections"
|
|
626
626
|
},
|
|
627
627
|
"tools workspace-connection": {
|
|
628
628
|
core: `
|
|
629
629
|
Purpose:
|
|
630
|
-
Manage
|
|
630
|
+
Manage shared Google Calendar access as a workspace owner or admin.
|
|
631
|
+
In Production, use deepline tools connect hubspot --link to manage shared HubSpot.
|
|
632
|
+
Enrolled Preview workspaces can manage a dedicated shared HubSpot connection here.
|
|
631
633
|
Input:
|
|
632
634
|
Pass the provider and connect, reconnect, replace, or disconnect.
|
|
633
635
|
Complete OAuth consent in the browser.
|
|
634
636
|
Cost:
|
|
635
637
|
Does not spend Deepline credits.
|
|
636
638
|
`,
|
|
637
|
-
rolloutFeature: "
|
|
639
|
+
rolloutFeature: "integration-connections"
|
|
638
640
|
},
|
|
639
641
|
"tools availability-calendars": {
|
|
640
642
|
core: `
|
|
@@ -646,7 +648,7 @@ Output:
|
|
|
646
648
|
Cost:
|
|
647
649
|
Does not spend Deepline credits.
|
|
648
650
|
`,
|
|
649
|
-
rolloutFeature: "
|
|
651
|
+
rolloutFeature: "integration-connections"
|
|
650
652
|
},
|
|
651
653
|
"tools connect": {
|
|
652
654
|
core: `
|
|
@@ -1011,6 +1013,16 @@ Authoring rules:
|
|
|
1011
1013
|
{ description }) runs a
|
|
1012
1014
|
prebuilt as one stage. Independent calls run together with Promise.all;
|
|
1013
1015
|
a call that needs another's result waits for it.
|
|
1016
|
+
Retries: a call whose provider keeps failing (an outage, a 5xx other than
|
|
1017
|
+
a 504 timeout, a 429 past its pacing, a refusal for credits outside a
|
|
1018
|
+
map) is retried on a durable timer under
|
|
1019
|
+
Deepline's retry policy, and the Play sees the error only after those
|
|
1020
|
+
retries end. Set the call's own policy with deepline.tools.execute({ ...,
|
|
1021
|
+
retry: { maximumAttempts, initialIntervalMs, backoffCoefficient,
|
|
1022
|
+
maximumIntervalMs, nonRetryable } }); maximumAttempts counts the first
|
|
1023
|
+
attempt. A waterfall leg that falls back sets retry: { maximumAttempts: 1 }
|
|
1024
|
+
so its catch runs at once. Until durable retries are the default for new
|
|
1025
|
+
Plays, a call opts in by setting retry; retry: {} takes the defaults.
|
|
1014
1026
|
Failures: catch only ProviderTransientError, and only when another
|
|
1015
1027
|
provider can answer the same question. Keep the last provider outside
|
|
1016
1028
|
the catch so an exhausted waterfall fails loudly. Never branch on an
|
|
@@ -31,7 +31,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkD4MHCCIRjs = require('./chunk-D4MHCCIR.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -674,7 +674,7 @@ var ToolCalls = class {
|
|
|
674
674
|
idempotencyKey,
|
|
675
675
|
onResponse: (response2) => {
|
|
676
676
|
lastResponse = null;
|
|
677
|
-
atomicToolsSupported = response2.headers.get(
|
|
677
|
+
atomicToolsSupported = response2.headers.get(_chunkD4MHCCIRjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
678
678
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
679
679
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
680
680
|
try {
|
|
@@ -1060,8 +1060,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1062
1062
|
return {
|
|
1063
|
-
[
|
|
1064
|
-
...receivers ? { [
|
|
1063
|
+
[_chunkD4MHCCIRjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1064
|
+
...receivers ? { [_chunkD4MHCCIRjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1065
1065
|
};
|
|
1066
1066
|
}
|
|
1067
1067
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1132,7 +1132,7 @@ var PlayClient = class {
|
|
|
1132
1132
|
return _chunk2KHUFWTKjs.startPlayRun.call(void 0,
|
|
1133
1133
|
this.http,
|
|
1134
1134
|
resolved.request,
|
|
1135
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1135
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkD4MHCCIRjs.SDK_API_MAJOR) } : headers,
|
|
1136
1136
|
options
|
|
1137
1137
|
);
|
|
1138
1138
|
}
|
|
@@ -3229,7 +3229,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3229
3229
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3230
3230
|
);
|
|
3231
3231
|
}
|
|
3232
|
-
return { [
|
|
3232
|
+
return { [_chunkD4MHCCIRjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3233
3233
|
}
|
|
3234
3234
|
function sleep(ms) {
|
|
3235
3235
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4154,7 +4154,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4154
4154
|
);
|
|
4155
4155
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4156
4156
|
...runtimeHeaders,
|
|
4157
|
-
"X-Deepline-API-Major": String(
|
|
4157
|
+
"X-Deepline-API-Major": String(_chunkD4MHCCIRjs.SDK_API_MAJOR)
|
|
4158
4158
|
} : runtimeHeaders;
|
|
4159
4159
|
const http = this.http;
|
|
4160
4160
|
let submitted = false;
|
|
@@ -5509,6 +5509,22 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5509
5509
|
`/api/v2/plays/${encodeURIComponent(playName)}/settings`
|
|
5510
5510
|
);
|
|
5511
5511
|
}
|
|
5512
|
+
/** Register an editing attempt so the author's open working canvas can show a rejected save. */
|
|
5513
|
+
async beginWorkingPlaySave(playName) {
|
|
5514
|
+
return this.http.post(
|
|
5515
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5516
|
+
{ action: "begin" },
|
|
5517
|
+
void 0,
|
|
5518
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
5519
|
+
);
|
|
5520
|
+
}
|
|
5521
|
+
/** Report a save outcome for that specific editing attempt. */
|
|
5522
|
+
async finishWorkingPlaySave(playName, attemptId, action) {
|
|
5523
|
+
return this.http.post(
|
|
5524
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5525
|
+
{ action, attemptId }
|
|
5526
|
+
);
|
|
5527
|
+
}
|
|
5512
5528
|
/** Retry-safe field patch; omitted fields retain their current value. */
|
|
5513
5529
|
async updatePlaySettings(playName, patch) {
|
|
5514
5530
|
return this.http.patch(
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RKY4LBX3.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-QNHHZ63P.mjs";
|
|
@@ -5509,6 +5509,22 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5509
5509
|
`/api/v2/plays/${encodeURIComponent(playName)}/settings`
|
|
5510
5510
|
);
|
|
5511
5511
|
}
|
|
5512
|
+
/** Register an editing attempt so the author's open working canvas can show a rejected save. */
|
|
5513
|
+
async beginWorkingPlaySave(playName) {
|
|
5514
|
+
return this.http.post(
|
|
5515
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5516
|
+
{ action: "begin" },
|
|
5517
|
+
void 0,
|
|
5518
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
5519
|
+
);
|
|
5520
|
+
}
|
|
5521
|
+
/** Report a save outcome for that specific editing attempt. */
|
|
5522
|
+
async finishWorkingPlaySave(playName, attemptId, action) {
|
|
5523
|
+
return this.http.post(
|
|
5524
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5525
|
+
{ action, attemptId }
|
|
5526
|
+
);
|
|
5527
|
+
}
|
|
5512
5528
|
/** Retry-safe field patch; omitted fields retain their current value. */
|
|
5513
5529
|
async updatePlaySettings(playName, patch) {
|
|
5514
5530
|
return this.http.patch(
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TCVCFZP6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K53NKWZO.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-LVISZFYO.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-FZKPPB5P.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-R2KKEHJN.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-DWPY6ZID.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-DFJODFMC.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-JWWYLGUT.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-W5YJYU4G.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1121,7 +1121,7 @@ Examples:
|
|
|
1121
1121
|
process.exitCode = await narrowView();
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
|
-
const { describeAnything } = await import("./describe-
|
|
1124
|
+
const { describeAnything } = await import("./describe-AWJUXE2U.mjs");
|
|
1125
1125
|
process.exitCode = await describeAnything(
|
|
1126
1126
|
toolId,
|
|
1127
1127
|
{
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JWWYLGUT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W5YJYU4G.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkD4MHCCIRjs = require('./chunk-D4MHCCIR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkD4MHCCIRjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkD4MHCCIRjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkRFQWSH6Ijs = require('./chunk-RFQWSH6I.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT7RBM2WXjs = require('./chunk-T7RBM2WX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkD3J2Y2BPjs = require('./chunk-D3J2Y2BP.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkD4MHCCIRjs = require('./chunk-D4MHCCIR.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkPI5R65OQjs = require('./chunk-PI5R65OQ.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkD4MHCCIRjs.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkD4MHCCIRjs.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkD4MHCCIRjs.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkD4MHCCIRjs.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkD4MHCCIRjs.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkD4MHCCIRjs.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunkPI5R65OQjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkD4MHCCIRjs.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkD4MHCCIRjs.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkD4MHCCIRjs.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkD4MHCCIRjs.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkD4MHCCIRjs.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkHWPOXCCKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkHWPOXCCKjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkD4MHCCIRjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunkHWPOXCCKjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkHWPOXCCKjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunkHWPOXCCKjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunkHWPOXCCKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
833
833
|
}
|
|
834
834
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
835
835
|
return _path.join.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
837
837
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
838
838
|
);
|
|
839
839
|
}
|
|
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
862
862
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
863
863
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
864
864
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
865
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
865
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHWPOXCCKjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
866
866
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
867
867
|
notice(
|
|
868
868
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
950
950
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
951
951
|
}
|
|
952
952
|
function isDefaultAgentSet(agents) {
|
|
953
|
-
return agents.length ===
|
|
953
|
+
return agents.length === _chunkHWPOXCCKjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHWPOXCCKjs.DEFAULT_SKILL_AGENTS[index]);
|
|
954
954
|
}
|
|
955
955
|
function safeSkillFilePath(value) {
|
|
956
956
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1107
1107
|
method: "POST",
|
|
1108
1108
|
headers: { "Content-Type": "application/json" },
|
|
1109
1109
|
body: JSON.stringify({
|
|
1110
|
-
sdk_cli: { version:
|
|
1110
|
+
sdk_cli: { version: _chunkD4MHCCIRjs.SDK_VERSION },
|
|
1111
1111
|
skills: {
|
|
1112
1112
|
version: localVersion,
|
|
1113
|
-
capability:
|
|
1113
|
+
capability: _chunkPI5R65OQjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1114
1114
|
}
|
|
1115
1115
|
}),
|
|
1116
1116
|
signal: controller.signal
|
|
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
function noInstallerProbePath(baseUrl) {
|
|
1151
1151
|
return _path.join.call(void 0,
|
|
1152
|
-
|
|
1152
|
+
_chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1153
1153
|
"skills-sync-no-installer-unknown.json"
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1228
1228
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1229
1229
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1230
1230
|
}
|
|
1231
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1231
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHWPOXCCKjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1232
1232
|
const commands = [];
|
|
1233
1233
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1234
1234
|
if (probes.bunx === "available") {
|
|
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
function writeSdkSkillsStatusLine(line) {
|
|
1373
|
-
const progress =
|
|
1373
|
+
const progress = _chunkRFQWSH6Ijs.getActiveCliProgress.call(void 0, );
|
|
1374
1374
|
if (progress) {
|
|
1375
1375
|
progress.writeLine(line);
|
|
1376
1376
|
return;
|
|
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1381
1381
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1382
1382
|
const skip = shouldSkipSkillsSync();
|
|
1383
1383
|
if (skip && !options.claim) return;
|
|
1384
|
-
const usingPluginSkills =
|
|
1384
|
+
const usingPluginSkills = _chunkHWPOXCCKjs.hasActivePluginSkills.call(void 0, );
|
|
1385
1385
|
if (usingPluginSkills) {
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
|
-
const agents =
|
|
1388
|
+
const agents = _chunkHWPOXCCKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1389
1389
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1390
1390
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1391
1391
|
}
|
|
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
1424
|
try {
|
|
1425
|
-
const localVersion =
|
|
1425
|
+
const localVersion = _chunkHWPOXCCKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1426
1426
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1427
1427
|
needsUpdate: options.update.needs_update,
|
|
1428
1428
|
remoteVersion: options.update.remote.version
|
|
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1544
1544
|
update.remoteVersion,
|
|
1545
1545
|
agents
|
|
1546
1546
|
);
|
|
1547
|
-
void
|
|
1547
|
+
void _chunkT7RBM2WXjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1548
1548
|
baseUrl,
|
|
1549
1549
|
remoteSkillsVersion: update.remoteVersion,
|
|
1550
1550
|
agents,
|
|
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1575
1575
|
notice(
|
|
1576
1576
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1577
1577
|
);
|
|
1578
|
-
void
|
|
1578
|
+
void _chunkT7RBM2WXjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1579
1579
|
baseUrl,
|
|
1580
1580
|
remoteSkillsVersion: update.remoteVersion,
|
|
1581
1581
|
agents,
|
|
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
runLegacySkillsCleanup(agents);
|
|
1591
|
-
if (!
|
|
1591
|
+
if (!_chunkHWPOXCCKjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1592
1592
|
notice(
|
|
1593
1593
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1594
1594
|
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DWPY6ZID.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DFJODFMC.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W6T23EUC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JWWYLGUT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RKY4LBX3.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W5YJYU4G.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RKY4LBX3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|