deepline 0.3.539 → 0.3.540
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/{auth-QD7QGD3B.mjs → auth-32TURPHH.mjs} +5 -5
- package/dist/cli/auth-XA3K5LH2.js +43 -0
- package/dist/cli/{billing-KOQAF6WS.js → billing-6433M4BX.js} +105 -94
- package/dist/cli/{billing-FIZXMHBW.mjs → billing-NSH3NOHV.mjs} +21 -10
- package/dist/cli/{chunk-FH3P3E4S.js → chunk-2U4VACUA.js} +2 -2
- package/dist/cli/{chunk-GLKUC5PO.mjs → chunk-37VFUQMU.mjs} +2 -2
- package/dist/cli/chunk-3GVIVIER.js +54 -0
- package/dist/cli/{chunk-55ITVU2V.mjs → chunk-AB6DFHGL.mjs} +2 -2
- package/dist/cli/{chunk-V7DEGIYO.js → chunk-AJVK4XC5.js} +4 -4
- package/dist/cli/{chunk-K5MZHTK7.js → chunk-AOYW62XO.js} +3 -3
- package/dist/cli/{chunk-GEO2EMM7.mjs → chunk-B6UZUQ2O.mjs} +1 -1
- package/dist/cli/{chunk-JHEZQMOM.mjs → chunk-BD3VAPB4.mjs} +1 -1
- package/dist/cli/{chunk-XZBXQCRJ.js → chunk-BGBRA2S6.js} +22 -22
- package/dist/cli/{chunk-EAZS52DL.js → chunk-BNNGM2E5.js} +15 -15
- package/dist/cli/{chunk-6NZBLFL4.mjs → chunk-BZVVSUE2.mjs} +1 -1
- package/dist/cli/{chunk-TZBCJHV6.js → chunk-DV3ESQ4X.js} +1 -1
- package/dist/cli/{chunk-FIRV7BXJ.mjs → chunk-DWE2VE5I.mjs} +1 -1
- package/dist/cli/{chunk-KQTX545E.js → chunk-EXAXDEIF.js} +13 -13
- package/dist/cli/chunk-FANIRW74.mjs +9 -0
- package/dist/cli/{chunk-F43MXIN3.mjs → chunk-FR3AII3W.mjs} +2 -2
- package/dist/cli/chunk-GWHA4DAC.js +9 -0
- package/dist/cli/{chunk-FSQCB5SJ.js → chunk-H6IA6XRE.js} +2 -2
- package/dist/cli/{chunk-K22EKW6L.js → chunk-HKWJD45V.js} +5 -5
- package/dist/cli/{chunk-APKZGUTU.mjs → chunk-HLHDCFKL.mjs} +4 -4
- package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
- package/dist/cli/{chunk-RULRGMMM.mjs → chunk-IYQZVEV4.mjs} +5 -5
- package/dist/cli/{chunk-5RUB53KG.js → chunk-J3TAEPFA.js} +26 -26
- package/dist/cli/{chunk-GNCIMHO2.mjs → chunk-JGFGWWOF.mjs} +10 -10
- package/dist/cli/{chunk-Y66ZMOJI.mjs → chunk-JPU5YLQG.mjs} +1 -1
- package/dist/cli/{chunk-JBCQFG7G.mjs → chunk-KFAJYK2N.mjs} +3 -3
- package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
- package/dist/cli/{chunk-NR5PLMNG.js → chunk-LPMI4CYW.js} +107 -107
- package/dist/cli/{chunk-YMQFQO3K.js → chunk-LXLCQP4A.js} +16 -16
- package/dist/cli/{chunk-KAEVL62Q.js → chunk-M4DB6BBP.js} +44 -44
- package/dist/cli/{chunk-GLEGINSP.mjs → chunk-MH22LQKZ.mjs} +2 -2
- package/dist/cli/{chunk-MI53W4DN.js → chunk-MLDLN6WG.js} +53 -53
- package/dist/cli/{chunk-ISXX5DUD.js → chunk-MVIVF4BW.js} +3 -3
- package/dist/cli/{chunk-3YDI2PTN.js → chunk-N6DMKVKO.js} +10 -10
- package/dist/cli/{chunk-ADV2IB2C.mjs → chunk-PJOMRUFP.mjs} +5 -5
- package/dist/cli/{chunk-6V3LNYK5.mjs → chunk-S3ULSGFH.mjs} +2 -2
- package/dist/cli/{chunk-2XMFT44N.mjs → chunk-SGMDRYAD.mjs} +1 -1
- package/dist/cli/{chunk-MKESK3SW.mjs → chunk-SINNEITW.mjs} +4 -4
- package/dist/cli/{chunk-LE5KN7CZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
- package/dist/cli/{chunk-FTBWFDF3.js → chunk-TNUM4DFA.js} +7 -7
- package/dist/cli/{chunk-E4QHTDPF.mjs → chunk-TZVW5JH3.mjs} +1 -1
- package/dist/cli/{chunk-W32KT6LM.js → chunk-UJYX4VLX.js} +5 -5
- package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
- package/dist/cli/{chunk-LEREPTAE.js → chunk-VAOGM5VS.js} +19 -19
- package/dist/cli/{chunk-6KG4KVTH.mjs → chunk-WCM64BRH.mjs} +5 -5
- package/dist/cli/{chunk-CQJCLHBE.js → chunk-WDHHQEWQ.js} +41 -41
- package/dist/cli/{chunk-5YF35HAV.js → chunk-WHYNYL3M.js} +6 -6
- package/dist/cli/{chunk-Q4HNK7JX.js → chunk-XIIQNSWA.js} +8 -8
- package/dist/cli/{chunk-VK5UTS5B.js → chunk-XL3CEPZA.js} +9 -9
- package/dist/cli/{chunk-G3UFDUYU.mjs → chunk-XYM3SQZN.mjs} +1 -1
- package/dist/cli/{chunk-SDAP5MCO.mjs → chunk-Y6647AIY.mjs} +2 -2
- package/dist/cli/{chunk-N3LPGGWD.mjs → chunk-Z2OYTXLK.mjs} +1 -1
- package/dist/cli/{chunk-DZFVVP3S.mjs → chunk-ZJFU2COM.mjs} +5 -5
- package/dist/cli/{chunk-5QL4GJB2.js → chunk-ZTJQKHLM.js} +2 -2
- package/dist/cli/command-docs.js +3 -2
- package/dist/cli/command-docs.mjs +2 -1
- package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
- package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
- package/dist/cli/{csv-BWWJYV2C.js → csv-FBNS6SM3.js} +13 -13
- package/dist/cli/{csv-G5RQQ74W.mjs → csv-OJCMBODT.mjs} +4 -4
- package/dist/cli/{db-AJZHWB3V.mjs → db-43RQRF64.mjs} +6 -6
- package/dist/cli/{db-5KNDLADE.js → db-XRGJJ2KA.js} +27 -27
- package/dist/cli/{describe-QY5TKWVD.mjs → describe-I42Y3PWR.mjs} +17 -17
- package/dist/cli/describe-LWZCGAXU.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-BCCW76BI.js → executions-LH46O4PG.js} +8 -8
- package/dist/cli/{executions-SJPH3MZT.mjs → executions-QXGVQHQF.mjs} +6 -6
- package/dist/cli/{feedback-S6SZOFGK.mjs → feedback-ELFINGTM.mjs} +6 -6
- package/dist/cli/{feedback-GF65JKK6.js → feedback-ERYIV6MT.js} +14 -14
- package/dist/cli/git-OV2TGYVE.js +25 -0
- package/dist/cli/{git-F5FT5YVB.mjs → git-V2XWB6LN.mjs} +5 -5
- package/dist/cli/index.js +153 -143
- package/dist/cli/index.mjs +53 -43
- package/dist/cli/{legacy-noops-NOA4P5NE.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
- package/dist/cli/{legacy-noops-ECR6FS6U.js → legacy-noops-Y3OKNVWH.js} +9 -9
- package/dist/cli/{monitors-DEWBSURN.js → monitors-DNQXCRJZ.js} +100 -100
- package/dist/cli/{monitors-CTYSAGP4.mjs → monitors-L34NROM3.mjs} +7 -7
- package/dist/cli/{org-ZM2UUMZZ.js → org-JETA62CO.js} +86 -86
- package/dist/cli/{org-EKSKKT7H.mjs → org-L3HTEEXL.mjs} +6 -6
- package/dist/cli/{play-6JQOM6DE.js → play-GTGJRNWI.js} +473 -455
- package/dist/cli/{play-R2BH374J.mjs → play-JHGLSSJP.mjs} +35 -17
- package/dist/cli/{providers-CMIYHEMN.js → providers-7VH7PH2Q.js} +9 -9
- package/dist/cli/{providers-X7WMIWO4.mjs → providers-IQVHZJ27.mjs} +6 -6
- package/dist/cli/{quickstart-6HVPAMSW.js → quickstart-M25JNU3O.js} +6 -6
- package/dist/cli/{quickstart-ZZ7L6VZJ.mjs → quickstart-ZDBC45PM.mjs} +4 -4
- package/dist/cli/{run-OOHYH3GI.js → run-MPZGX3YD.js} +42 -42
- package/dist/cli/{run-FP32RKBU.mjs → run-NEEWZBTX.mjs} +22 -22
- package/dist/cli/search-HUN2YRQE.js +32 -0
- package/dist/cli/{search-BDDNC23Z.mjs → search-YXAFB4QQ.mjs} +7 -7
- package/dist/cli/{search-output-5VZIQQAM.js → search-output-4PH5HSJC.js} +6 -6
- package/dist/cli/{search-output-QXJ6CV5G.mjs → search-output-67BBIXIZ.mjs} +4 -4
- package/dist/cli/{secrets-Z7CQSQGC.mjs → secrets-445FER3C.mjs} +6 -6
- package/dist/cli/{secrets-EN2HQCO3.js → secrets-HLUBDN3H.js} +15 -15
- package/dist/cli/{sessions-I2H37OTJ.mjs → sessions-CCKXJNWT.mjs} +6 -6
- package/dist/cli/sessions-T2RNWC6B.js +22 -0
- package/dist/cli/{settings-IYSC5PPQ.mjs → settings-3XCZGGVF.mjs} +12 -12
- package/dist/cli/{settings-CTRAPFNZ.js → settings-WXJIQS5J.js} +85 -85
- package/dist/cli/{setup-XIN53GEW.js → setup-CKETRFFN.js} +49 -49
- package/dist/cli/{setup-PU3HOVI3.mjs → setup-TOSX6NER.mjs} +9 -9
- package/dist/cli/skills-FXM2RHHO.js +36 -0
- package/dist/cli/{skills-TYBML2ZO.mjs → skills-Q7NLCIJJ.mjs} +7 -7
- package/dist/cli/{tools-ZVNE6M6J.mjs → tools-GY6QMYTZ.mjs} +16 -16
- package/dist/cli/tools-XLVDZTWQ.js +56 -0
- package/dist/cli/{update-54WENBNT.mjs → update-A7JRUN4S.mjs} +9 -9
- package/dist/cli/update-AZINHILP.js +34 -0
- package/dist/cli/{views-7L75EZOJ.js → views-GUWC4SNI.js} +21 -21
- package/dist/cli/{views-EUBB4ONT.mjs → views-JG7FDEJR.mjs} +6 -6
- package/dist/cli/{workflow-EZVYCR6Y.js → workflow-CXNW7ICH.js} +17 -17
- package/dist/cli/{workflow-GUKGFJ72.mjs → workflow-QZCYSQ5G.mjs} +7 -7
- package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
- package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
- package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
- package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
- package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.mts} +14 -0
- package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.ts} +14 -0
- package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
- package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
- package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
- package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.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 -112
- 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 +1 -1
- 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-O5Y2VYXK.js +0 -43
- package/dist/cli/describe-B6CN6CFJ.js +0 -49
- package/dist/cli/git-DX6NB7VF.js +0 -25
- package/dist/cli/search-34C6LFOJ.js +0 -32
- package/dist/cli/sessions-RYQX3NDD.js +0 -22
- package/dist/cli/skills-576CX7DK.js +0 -36
- package/dist/cli/tools-EXMUWA3Z.js +0 -56
- package/dist/cli/update-RAHETNL2.js +0 -34
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B6UZUQ2O.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-Z2XA6YU4.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../billing/plan-links.ts
|
|
2
|
+
var PRICING_PAGE_URL = "https://deepline.com/pricing";
|
|
3
|
+
var PLAN_PICKER_URL = "https://code.deepline.com/dashboard/billing?plan";
|
|
4
|
+
var PRICING_PAGE_NOTE = `See the pricing page for full details: ${PRICING_PAGE_URL}`;
|
|
5
|
+
var PLAN_UPGRADE_NOTE = `Agents: give the user ${PLAN_PICKER_URL} to upgrade the plan.`;
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.PRICING_PAGE_NOTE = PRICING_PAGE_NOTE;
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkVAOGM5VSjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -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 _chunkXIIQNSWAjs = require('./chunk-XIIQNSWA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.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 = _chunkMVIVF4BWjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkXIIQNSWAjs.PlayClient)(
|
|
142
|
+
new (0, _chunkMVIVF4BWjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AB6DFHGL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DWE2VE5I.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-67BBIXIZ.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PRICING_PAGE_NOTE
|
|
3
|
+
} from "./chunk-FANIRW74.mjs";
|
|
1
4
|
import {
|
|
2
5
|
PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
|
|
3
6
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -381,6 +384,7 @@ Output:
|
|
|
381
384
|
Your runtime price, allowance used, paid overage, and reset date.
|
|
382
385
|
Usage is shown in standard sandbox minutes at your current rate and in credits.
|
|
383
386
|
${PLAY_RUNTIME_PRICING_NOTE}
|
|
387
|
+
${PRICING_PAGE_NOTE}
|
|
384
388
|
Cost:
|
|
385
389
|
Free to check.
|
|
386
390
|
[[cli:
|
|
@@ -1353,6 +1357,17 @@ Output:
|
|
|
1353
1357
|
held rateLimit window starts no run and returns the latest run with
|
|
1354
1358
|
rateLimited {latestRunId, nextAllowedAt, message}.
|
|
1355
1359
|
]]
|
|
1360
|
+
Concurrency:
|
|
1361
|
+
A workspace runs as many Plays at once as its plan allows; each run holds
|
|
1362
|
+
one slot while it executes. A run over the limit is not rejected: it waits
|
|
1363
|
+
and starts when another finishes. While it waits, run.activity.summary
|
|
1364
|
+
starts with "Queued:", run.activity.observation.activityId is
|
|
1365
|
+
"run:sandbox-capacity", and warnings names the plan that runs more.
|
|
1366
|
+
[[cli:
|
|
1367
|
+
deepline billing entitlements shows this workspace's plan and limit and
|
|
1368
|
+
every plan's limit; this help prints them too when you are signed in.
|
|
1369
|
+
]]
|
|
1370
|
+
${PRICING_PAGE_NOTE}
|
|
1356
1371
|
Cost:
|
|
1357
1372
|
Spends Deepline credits through the play's tool calls. Validation errors
|
|
1358
1373
|
(missing column, bad input) fail before any spend.
|
|
@@ -1593,6 +1608,17 @@ Output:
|
|
|
1593
1608
|
sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1594
1609
|
With full: true the package is under package, beside the diagnostics.
|
|
1595
1610
|
]]
|
|
1611
|
+
Concurrency:
|
|
1612
|
+
A workspace runs as many Plays at once as its plan allows; each run holds
|
|
1613
|
+
one slot while it executes. A run over the limit is not rejected: it waits
|
|
1614
|
+
and starts when another finishes. While it waits, run.activity.summary
|
|
1615
|
+
starts with "Queued:", run.activity.observation.activityId is
|
|
1616
|
+
"run:sandbox-capacity", and warnings names the plan that runs more.
|
|
1617
|
+
[[cli:
|
|
1618
|
+
deepline billing entitlements shows this workspace's plan and limit and
|
|
1619
|
+
every plan's limit; this help prints them too when you are signed in.
|
|
1620
|
+
]]
|
|
1621
|
+
${PRICING_PAGE_NOTE}
|
|
1596
1622
|
Cost:
|
|
1597
1623
|
Free.
|
|
1598
1624
|
Avoid:
|
|
@@ -1612,6 +1638,16 @@ Output fields:
|
|
|
1612
1638
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1613
1639
|
the last three are terminal.
|
|
1614
1640
|
run.activity the current step while running, null when finished.
|
|
1641
|
+
A queued capacity activity means it is waiting for a
|
|
1642
|
+
workspace concurrency slot, even if run.status says
|
|
1643
|
+
running. target.limit is the observed limit;
|
|
1644
|
+
target.limitSource=admission means it was pinned at
|
|
1645
|
+
launch. Plan changes apply to new launches, not that
|
|
1646
|
+
recorded limit. Scheduling retries automatically:
|
|
1647
|
+
watch the same run instead of resubmitting it.
|
|
1648
|
+
Read billing entitlements and billing plans for
|
|
1649
|
+
current limits and available plans. No queue ETA is
|
|
1650
|
+
guaranteed.
|
|
1615
1651
|
run.retries failure-driven retries since the last resume:
|
|
1616
1652
|
platformRecoveries {preCode, postCode} and
|
|
1617
1653
|
recoveryOutcome (none, recovering, recovered,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JPU5YLQG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SINNEITW.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PJOMRUFP.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DWE2VE5I.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkMVIVF4BWjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkVAOGM5VSjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkVAOGM5VSjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z2OYTXLK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HLHDCFKL.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-AB6DFHGL.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-B6UZUQ2O.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-ZJFU2COM.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-SGMDRYAD.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PJOMRUFP.mjs";
|
|
74
74
|
import {
|
|
75
75
|
errorToJsonPayload,
|
|
76
76
|
printCommandEnvelope,
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
printJsonError,
|
|
80
80
|
renderCommandEnvelopeText,
|
|
81
81
|
shouldEmitJson
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
83
83
|
import {
|
|
84
84
|
readSdkSkillsLocalVersion,
|
|
85
85
|
resolveConfig,
|
|
86
86
|
sdkCliStateDirPath
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-DWE2VE5I.mjs";
|
|
88
88
|
import {
|
|
89
89
|
DeeplineError
|
|
90
90
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -1137,7 +1137,7 @@ Examples:
|
|
|
1137
1137
|
process.exitCode = await narrowView();
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
const { describeAnything } = await import("./describe-
|
|
1140
|
+
const { describeAnything } = await import("./describe-I42Y3PWR.mjs");
|
|
1141
1141
|
process.exitCode = await describeAnything(
|
|
1142
1142
|
toolId,
|
|
1143
1143
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BZVVSUE2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XYM3SQZN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
httpJson
|
|
3
|
+
} from "./chunk-SXVYFOBG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
PRICING_PAGE_NOTE
|
|
6
|
+
} from "./chunk-FANIRW74.mjs";
|
|
7
|
+
import {
|
|
8
|
+
autoDetectBaseUrl,
|
|
9
|
+
resolveApiKeyForBaseUrl
|
|
10
|
+
} from "./chunk-DWE2VE5I.mjs";
|
|
11
|
+
|
|
12
|
+
// src/cli/concurrent-runs-help.ts
|
|
13
|
+
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
14
|
+
"plays run",
|
|
15
|
+
"runs get"
|
|
16
|
+
]);
|
|
17
|
+
function concurrentRunsLine(payload) {
|
|
18
|
+
const runs = payload.concurrent_runs;
|
|
19
|
+
if (!runs) return null;
|
|
20
|
+
const plan = payload.plan?.name ? ` (${payload.plan.name})` : "";
|
|
21
|
+
const override = runs.source === "override" ? ", a workspace override" : "";
|
|
22
|
+
const here = `This workspace${plan} runs up to ${runs.limit.toLocaleString("en-US")} ${runs.limit === 1 ? "Play" : "Plays"} at once${override}.`;
|
|
23
|
+
const plans = runs.plans.map((entry) => `${entry.name} ${entry.limit.toLocaleString("en-US")}`).join(", ");
|
|
24
|
+
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
|
+
}
|
|
26
|
+
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
+
const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
|
|
28
|
+
const apiKey = resolveApiKeyForBaseUrl(baseUrl);
|
|
29
|
+
if (!apiKey) return "";
|
|
30
|
+
try {
|
|
31
|
+
const { status, data } = await httpJson(
|
|
32
|
+
"GET",
|
|
33
|
+
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
|
+
apiKey,
|
|
35
|
+
void 0,
|
|
36
|
+
timeoutMs
|
|
37
|
+
);
|
|
38
|
+
if (status !== 200) return "";
|
|
39
|
+
const line = concurrentRunsLine(data);
|
|
40
|
+
return line ? `
|
|
41
|
+
Your workspace:
|
|
42
|
+
${line}
|
|
43
|
+
${PRICING_PAGE_NOTE}
|
|
44
|
+
` : "";
|
|
45
|
+
} catch {
|
|
46
|
+
return "";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
52
|
+
concurrentRunsLine,
|
|
53
|
+
concurrentRunsHelpStatus
|
|
54
|
+
};
|