deepline 0.3.503 → 0.3.504
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/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-22OCKCYS.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-5CHBIJIM.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-33JUK73X.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-IIP46RVC.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-7P2QVMBP.js} +7 -7
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-26RSSTCF.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-GJ2DA35C.js} +30 -4
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-IGNQKOWT.mjs} +10 -10
- package/dist/cli/{chunk-FVDTERO2.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-JPR2546F.js} +16 -16
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-KCKAFTPY.js} +6 -6
- package/dist/cli/{chunk-2626LTU3.js → chunk-KGUGNEKL.js} +96 -96
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-OX2D6BG4.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-UFYJTRSF.mjs} +28 -2
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-UJMBG5JU.js} +4 -4
- package/dist/cli/{chunk-AARF4SOW.js → chunk-USTJEEND.js} +9 -9
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-HS63YBT5.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-Y7VEHKID.mjs} +6 -6
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-YOQ2NNDO.mjs} +1 -1
- package/dist/cli/{chunk-WS274KID.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-PX7EQEIG.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-J3IJS4OG.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-VEDDYW4P.mjs} +17 -17
- package/dist/cli/{executions-RO3TJUXL.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-FFKK24RY.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +143 -141
- package/dist/cli/index.mjs +43 -41
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-42PIGLBF.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-GQMCA3MN.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-5V54VTUR.mjs → play-3D7HH273.mjs} +23 -217
- package/dist/cli/{play-FST6ZAHW.js → play-RCGMND6X.js} +323 -517
- package/dist/cli/{providers-HBUUPN7J.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-JHI5MTHD.mjs → run-F3TLDGUO.mjs} +22 -22
- package/dist/cli/{run-FGOKCG4J.js → run-F6ZXTASZ.js} +40 -40
- package/dist/cli/{search-EWIZBIY2.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-MQTSTLN5.mjs} +4 -4
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-R5XDNILW.js} +6 -6
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-BSGE5EET.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-47LARBRU.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-BNFZFXO6.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-PUT6STVG.mjs} +16 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- package/dist/plays/bundle-play-file.mjs +4 -4
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
|
|
|
205
205
|
// getters keep their established compatibility behavior.
|
|
206
206
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
207
207
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
208
|
-
version: '0.3.
|
|
208
|
+
version: '0.3.504',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NextResponse } from 'next/server';
|
|
2
|
+
import { isExplicitConvexOCC } from '@deepline/convex-client/occ-retry';
|
|
2
3
|
|
|
3
4
|
export const MONITOR_ERROR_FALLBACK_NEXT_ACTION =
|
|
4
5
|
"Do not retry blindly. Read the deepline-monitors skill's 'Recover from errors by code' section, inspect the returned message and relevant state, then diagnose this failure.";
|
|
@@ -110,6 +111,35 @@ export function monitorUpstreamFailureResponse(
|
|
|
110
111
|
return null;
|
|
111
112
|
}
|
|
112
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Convex gave up retrying a write conflict, so the mutation that lost did not
|
|
116
|
+
* commit (a provider call earlier in the same request may have happened, so the
|
|
117
|
+
* customer-facing text promises only that a rerun resumes it). This is the same "try again" answer the backfill-in-progress codes
|
|
118
|
+
* give, and it is a 503, not a 409: the monitors CLI maps 503 to exit 5 ("retry
|
|
119
|
+
* the same command as-is") and 409 to exit 7 ("change the request"), and
|
|
120
|
+
* nothing about the request is wrong. Every other error keeps its mapping.
|
|
121
|
+
*/
|
|
122
|
+
export const MONITOR_WRITE_CONFLICT_RETRYABLE_CODE =
|
|
123
|
+
'monitor_write_conflict_retryable';
|
|
124
|
+
|
|
125
|
+
export function monitorWriteConflictResponse(
|
|
126
|
+
error: unknown,
|
|
127
|
+
): NextResponse | null {
|
|
128
|
+
if (!isExplicitConvexOCC(error)) return null;
|
|
129
|
+
return monitorErrorResponse(
|
|
130
|
+
{
|
|
131
|
+
error: {
|
|
132
|
+
code: MONITOR_WRITE_CONFLICT_RETRYABLE_CODE,
|
|
133
|
+
message:
|
|
134
|
+
"Another change to this workspace's monitors was committing at the same moment, so Deepline could not finish this request.",
|
|
135
|
+
retryable: true,
|
|
136
|
+
retry_after_seconds: 1,
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
{ status: 503, headers: { 'retry-after': '1' } },
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
113
143
|
/**
|
|
114
144
|
* Server-owned recovery guidance for every agent-facing monitor error.
|
|
115
145
|
* Known codes get an exact next step. Unknown failures deliberately point at
|
|
@@ -141,6 +171,11 @@ export function monitorErrorNextAction(payload: MonitorErrorPayload): string {
|
|
|
141
171
|
if (code === 'monitor_control_plane_unavailable') {
|
|
142
172
|
return 'Wait briefly, then rerun the same monitor read. No monitor state was changed.';
|
|
143
173
|
}
|
|
174
|
+
if (code === MONITOR_WRITE_CONFLICT_RETRYABLE_CODE) {
|
|
175
|
+
return typeof retryAfterSeconds === 'number'
|
|
176
|
+
? `Wait ${retryAfterSeconds} second${retryAfterSeconds === 1 ? '' : 's'}, then rerun the same command. An operation already in progress is resumed, not repeated.`
|
|
177
|
+
: 'Wait briefly, then rerun the same command. An operation already in progress is resumed, not repeated.';
|
|
178
|
+
}
|
|
144
179
|
if (code === 'monitor_job_control_plane_unavailable') {
|
|
145
180
|
return 'Wait briefly, then retry the same request once, reusing its Idempotency-Key if it sent one. Deepline could not confirm whether it was applied.';
|
|
146
181
|
}
|
|
@@ -139,7 +139,7 @@ export function validateProviderMonitorBatchIdempotencyKey(
|
|
|
139
139
|
const idempotencyKey = value.trim();
|
|
140
140
|
if (!IDEMPOTENCY_KEY.test(idempotencyKey)) {
|
|
141
141
|
throw new Error(
|
|
142
|
-
`idempotencyKey must be 1-${PROVIDER_MONITOR_BATCH_IDEMPOTENCY_KEY_MAX_LENGTH} characters of letters, numbers, dot, underscore, or hyphen.`,
|
|
142
|
+
`idempotencyKey must be 1-${PROVIDER_MONITOR_BATCH_IDEMPOTENCY_KEY_MAX_LENGTH} characters of letters, numbers, dot, underscore, or hyphen (received ${idempotencyKey.length} characters).`,
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
145
|
return idempotencyKey;
|
|
@@ -12,6 +12,19 @@ export function canonicalProviderMonitorKey(key: string) {
|
|
|
12
12
|
return key === ANALYTICS_MONITOR_KEY ? ANALYTICS_INTERNAL_MONITOR_KEY : key;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* The key a monitor's stored rows (findings, bindings) carry, given the key
|
|
17
|
+
* and tool it is shown under. Only a Deepline Analytics monitor is aliased.
|
|
18
|
+
*/
|
|
19
|
+
export function storedProviderMonitorKey(monitor: {
|
|
20
|
+
key: string;
|
|
21
|
+
tool: string;
|
|
22
|
+
}) {
|
|
23
|
+
return canonicalProviderMonitorTool(monitor.tool) === ANALYTICS_INTERNAL_TOOL
|
|
24
|
+
? canonicalProviderMonitorKey(monitor.key)
|
|
25
|
+
: monitor.key;
|
|
26
|
+
}
|
|
27
|
+
|
|
15
28
|
export function publicProviderMonitorKey(key: string) {
|
|
16
29
|
return key === ANALYTICS_INTERNAL_MONITOR_KEY ? ANALYTICS_MONITOR_KEY : key;
|
|
17
30
|
}
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
reportSetupCompleted,
|
|
15
15
|
resolvePendingAuthClaimForResume,
|
|
16
16
|
statusBannerLine
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-HUX5DZO6.mjs";
|
|
18
|
+
import "./chunk-3MLFFWDM.mjs";
|
|
19
|
+
import "./chunk-Y6XKCEPK.mjs";
|
|
20
|
+
import "./chunk-YOQ2NNDO.mjs";
|
|
21
21
|
import "./chunk-4QF2K7TM.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-HBL4PM5Q.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-7F4OEHQK.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
export {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkFISP4LCKjs = require('./chunk-FISP4LCK.js');
|
|
18
|
+
require('./chunk-QKKU2FH4.js');
|
|
19
|
+
require('./chunk-WBIDPDKJ.js');
|
|
20
|
+
require('./chunk-UJMBG5JU.js');
|
|
21
|
+
require('./chunk-ALJJRZNJ.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-DIAWYWT5.js');
|
|
24
|
+
require('./chunk-6JNBMTCZ.js');
|
|
25
|
+
require('./chunk-OG64RBAC.js');
|
|
26
|
+
require('./chunk-COGTRVWW.js');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkFISP4LCKjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkFISP4LCKjs.authStatusLine; exports.clearPendingClaim = _chunkFISP4LCKjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkFISP4LCKjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkFISP4LCKjs.handleRegister; exports.handleStatus = _chunkFISP4LCKjs.handleStatus; exports.handleWait = _chunkFISP4LCKjs.handleWait; exports.httpJson = _chunkFISP4LCKjs.httpJson; exports.readPendingAuthClaim = _chunkFISP4LCKjs.readPendingAuthClaim; exports.readStatusBanner = _chunkFISP4LCKjs.readStatusBanner; exports.registerAuthCommands = _chunkFISP4LCKjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkFISP4LCKjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkFISP4LCKjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkFISP4LCKjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkFISP4LCKjs.statusBannerLine;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PLAY_SANDBOX_SIZE_INPUTS
|
|
3
|
-
} from "./chunk-7I4B6V2S.mjs";
|
|
4
1
|
import {
|
|
5
2
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2ABRDH3B.mjs";
|
|
7
4
|
import {
|
|
8
5
|
iterateCursorPages,
|
|
9
6
|
requireBillingIdempotencyKey
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OX2D6BG4.mjs";
|
|
11
8
|
import "./chunk-L2VKAASU.mjs";
|
|
12
9
|
import "./chunk-N4TR6QRI.mjs";
|
|
13
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
14
11
|
import "./chunk-BMCRTI6Z.mjs";
|
|
12
|
+
import {
|
|
13
|
+
PLAY_RUNTIME_PRICING_NOTE
|
|
14
|
+
} from "./chunk-UFYJTRSF.mjs";
|
|
15
|
+
import "./chunk-5LUF4LAR.mjs";
|
|
16
|
+
import {
|
|
17
|
+
PLAY_SANDBOX_SIZE_INPUTS
|
|
18
|
+
} from "./chunk-7I4B6V2S.mjs";
|
|
15
19
|
import {
|
|
16
20
|
createTimestampedName,
|
|
17
21
|
getAuthedHttpClient,
|
|
18
22
|
openInBrowser,
|
|
19
23
|
printCommandEnvelope,
|
|
20
24
|
shouldEmitJson
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-3MLFFWDM.mjs";
|
|
26
|
+
import "./chunk-Y6XKCEPK.mjs";
|
|
27
|
+
import "./chunk-YOQ2NNDO.mjs";
|
|
24
28
|
import {
|
|
25
29
|
AuthError,
|
|
26
30
|
ConfigError
|
|
@@ -29,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
29
33
|
import {
|
|
30
34
|
DeeplineError
|
|
31
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
32
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7F4OEHQK.mjs";
|
|
33
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
34
38
|
import "./chunk-KRD6H754.mjs";
|
|
35
39
|
|
|
@@ -1258,11 +1262,13 @@ async function handleIncludedCompute(options) {
|
|
|
1258
1262
|
title: "billing compute",
|
|
1259
1263
|
lines: payload.status === "on" ? [
|
|
1260
1264
|
`Included compute: on, ${formatComputeMinutes(payload.included_minutes)} standard-equivalent per month, then ${Math.round((payload.credits_per_minute ?? 0) * 60)} credits/standard hour`,
|
|
1261
|
-
`Used: ${formatComputeMinutes(payload.included_minutes_used)} standard-equivalent included, ${formatComputeMinutes(payload.minutes_used)} elapsed since ${payload.period_start_at.slice(0, 10)}
|
|
1265
|
+
`Used: ${formatComputeMinutes(payload.included_minutes_used)} standard-equivalent included, ${formatComputeMinutes(payload.minutes_used)} elapsed since ${payload.period_start_at.slice(0, 10)}`,
|
|
1266
|
+
PLAY_RUNTIME_PRICING_NOTE
|
|
1262
1267
|
] : payload.status === "off" ? [
|
|
1263
1268
|
"Included compute: off; Play compute is billed at provider cost.",
|
|
1264
1269
|
`Used: ${formatComputeMinutes(payload.minutes_used)} since ${payload.period_start_at.slice(0, 10)}`,
|
|
1265
|
-
`Turning it on gives ${plan}. Run deepline billing compute --enable; it cannot be turned off again
|
|
1270
|
+
`Turning it on gives ${plan}. Run deepline billing compute --enable; it cannot be turned off again.`,
|
|
1271
|
+
PLAY_RUNTIME_PRICING_NOTE
|
|
1266
1272
|
] : [
|
|
1267
1273
|
"Included compute is not available for this workspace yet."
|
|
1268
1274
|
]
|
|
@@ -1584,6 +1590,7 @@ Examples:
|
|
|
1584
1590
|
deepline billing balance
|
|
1585
1591
|
deepline billing usage --limit 20
|
|
1586
1592
|
deepline billing plans
|
|
1593
|
+
deepline billing compute
|
|
1587
1594
|
deepline billing subscription status
|
|
1588
1595
|
|
|
1589
1596
|
# Price a tool before execution; look up its exact charge afterward
|
|
@@ -1833,7 +1840,7 @@ Examples:
|
|
|
1833
1840
|
"Show workspace benefits, remaining people search profiles, and effective rate limits."
|
|
1834
1841
|
).option("--json", "Emit JSON output").action(handleEntitlements);
|
|
1835
1842
|
billing.command("compute").description(
|
|
1836
|
-
"Show Play
|
|
1843
|
+
"Show Play runtime pricing, included compute, and minutes used."
|
|
1837
1844
|
).option(
|
|
1838
1845
|
"--enable",
|
|
1839
1846
|
"Turn on included compute for this workspace (cannot be undone)"
|