deepline 0.3.511 → 0.3.512
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/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +23 -1
- package/dist/cli/{artifacts-PLF5ZUS7.js → artifacts-5IGM3EYP.js} +18 -18
- package/dist/cli/{artifacts-G6JHRHY5.mjs → artifacts-YSYWQFQQ.mjs} +6 -6
- package/dist/cli/{auth-2XMJMDWG.mjs → auth-4MVWCUXS.mjs} +5 -5
- package/dist/cli/auth-M3AJBJ3O.js +43 -0
- package/dist/cli/{billing-Z3XFXP3H.js → billing-OYYHWNVS.js} +79 -79
- package/dist/cli/{billing-6C5AI42X.mjs → billing-SZXRENPC.mjs} +6 -6
- package/dist/cli/{chunk-RPPU3XB3.mjs → chunk-2BS6BRGH.mjs} +2 -2
- package/dist/cli/{chunk-QDWNVTTO.mjs → chunk-2R6M62UO.mjs} +2 -2
- package/dist/cli/{chunk-FTT2SBBH.mjs → chunk-32UMZXCZ.mjs} +5 -5
- package/dist/cli/{chunk-OQ4YBPOQ.mjs → chunk-3INAN6EK.mjs} +3 -3
- package/dist/cli/{chunk-VHFTN6VY.js → chunk-4DSRBHN6.js} +44 -44
- package/dist/cli/{chunk-O37BQ2CG.js → chunk-4QR64X2S.js} +10 -10
- package/dist/cli/{chunk-WDBEWOU6.js → chunk-4ZDHGAE6.js} +2 -2
- package/dist/cli/{chunk-KXGH4YUQ.mjs → chunk-5XLU47DG.mjs} +1 -1
- package/dist/cli/{chunk-LKSJXTRP.js → chunk-7U3WY2F3.js} +53 -53
- package/dist/cli/{chunk-HLEZQDEZ.mjs → chunk-AATUAFD2.mjs} +2 -2
- package/dist/cli/{chunk-IYWN7M4I.js → chunk-AVYI522S.js} +5 -5
- package/dist/cli/{chunk-BHV7JKXQ.js → chunk-BP4XEO6Z.js} +1 -1
- package/dist/cli/{chunk-XZ6IZIQJ.mjs → chunk-DJ4FD5DR.mjs} +2 -2
- package/dist/cli/{chunk-ASXOFBF7.mjs → chunk-EQAKPIGI.mjs} +2 -2
- package/dist/cli/{chunk-XXQZYLLL.mjs → chunk-FJPJ6SO3.mjs} +2 -2
- package/dist/cli/{chunk-JHBZBCU4.mjs → chunk-GJMIW4Q6.mjs} +1 -1
- package/dist/cli/{chunk-ZFJ2U76O.mjs → chunk-HA5NSCTH.mjs} +2 -2
- package/dist/cli/{chunk-YX7E2VQM.js → chunk-HCMFRAYT.js} +26 -26
- package/dist/cli/{chunk-ISY7PBIK.mjs → chunk-I6OK54YK.mjs} +5 -5
- package/dist/cli/{chunk-FAGSSIOY.js → chunk-IMC2HQ6V.js} +6 -6
- package/dist/cli/{chunk-VQ74WMKG.mjs → chunk-JDD6OLWN.mjs} +3 -3
- package/dist/cli/{chunk-KK6NZHAJ.mjs → chunk-JH7JISQ2.mjs} +1 -1
- package/dist/cli/{chunk-2Q4H2Y6N.js → chunk-JKLFRDQ6.js} +6 -6
- package/dist/cli/{chunk-XGXXNT4O.js → chunk-JU35QU3Z.js} +7 -7
- package/dist/cli/{chunk-D5VWSR4D.js → chunk-KBM5T6UV.js} +5 -5
- package/dist/cli/{chunk-GGQHOLH6.js → chunk-L7CAOWHY.js} +3 -3
- package/dist/cli/{chunk-PCI4MMH7.mjs → chunk-LYOWQKGN.mjs} +1 -1
- package/dist/cli/{chunk-VEOFISLZ.mjs → chunk-MQ5GBB7V.mjs} +1 -1
- package/dist/cli/{chunk-XSBGWMI6.mjs → chunk-MTSHUN2R.mjs} +1 -1
- package/dist/cli/{chunk-PUFEARWT.js → chunk-O24VWLOY.js} +16 -16
- package/dist/cli/{chunk-KZBKQPSA.js → chunk-OU6AK63V.js} +2 -2
- package/dist/cli/{chunk-S6KEACD3.mjs → chunk-P3RYPSOQ.mjs} +6 -6
- package/dist/cli/{chunk-GD3ES3JU.js → chunk-PJCPFF7J.js} +14 -14
- package/dist/cli/{chunk-2YVRIXVR.js → chunk-Q72Q3ZWB.js} +9 -9
- package/dist/cli/{chunk-PI45LZ5B.js → chunk-RR6G6ZCT.js} +11 -11
- package/dist/cli/{chunk-S5C4CWSS.mjs → chunk-RXZRZEW7.mjs} +5 -5
- package/dist/cli/{chunk-SI4QXATV.mjs → chunk-T3SUWKUT.mjs} +5 -5
- package/dist/cli/{chunk-NVMNMKZW.js → chunk-TKN2TRW5.js} +3 -3
- package/dist/cli/{chunk-JDDKJIZU.mjs → chunk-TNQ5MF6K.mjs} +1 -1
- package/dist/cli/{chunk-LDZYGM7W.js → chunk-V6FQRUPJ.js} +41 -41
- package/dist/cli/{chunk-KUDNPJ43.js → chunk-VGCNLFER.js} +2 -2
- package/dist/cli/{chunk-JYFLIQPE.js → chunk-VZN6D23P.js} +7 -7
- package/dist/cli/{chunk-FV4PASXH.js → chunk-W7DAWILZ.js} +16 -16
- package/dist/cli/{chunk-ZWGBQKW7.js → chunk-WDCOUJQ5.js} +21 -21
- package/dist/cli/{chunk-ZYVR4A4P.mjs → chunk-XKFWY4IK.mjs} +10 -10
- package/dist/cli/{chunk-5WTLXL6O.mjs → chunk-YJN55ZWG.mjs} +1 -1
- package/dist/cli/{chunk-XREZY4FA.mjs → chunk-YNMHIJC5.mjs} +1 -1
- package/dist/cli/{chunk-K4JB2BZP.js → chunk-ZLHIQU2G.js} +96 -96
- package/dist/cli/{chunk-GJWL4KTY.mjs → chunk-ZVYMGTZ7.mjs} +4 -4
- package/dist/cli/{chunk-JIY25SUX.js → chunk-ZZ7SVWKR.js} +4 -4
- package/dist/cli/{csv-CNK6ZF3T.mjs → csv-AY4KT3NZ.mjs} +4 -4
- package/dist/cli/{csv-S44OGG2O.js → csv-YR2E5HNM.js} +13 -13
- package/dist/cli/{db-AVO6QJU6.mjs → db-IMYD3OCM.mjs} +6 -6
- package/dist/cli/{db-WKZ6EXNG.js → db-YKV6564I.js} +27 -27
- package/dist/cli/{describe-2HQRT5MI.mjs → describe-72GI2Q6T.mjs} +18 -18
- package/dist/cli/describe-UFGHQBM7.js +50 -0
- package/dist/cli/{executions-DKHOR7HD.mjs → executions-2YO6KIP3.mjs} +6 -6
- package/dist/cli/{executions-MTAHNARA.js → executions-OSNL5CSU.js} +8 -8
- package/dist/cli/{feedback-K6SJS4LG.mjs → feedback-SYDNAT62.mjs} +5 -5
- package/dist/cli/{feedback-R2UABU3E.js → feedback-WSA7YTKS.js} +10 -10
- package/dist/cli/{git-3EPA7433.mjs → git-WBH7N3EF.mjs} +5 -5
- package/dist/cli/git-YYOW4CYQ.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-3Q2D2F24.js → legacy-noops-BZPLWY5C.js} +9 -9
- package/dist/cli/{legacy-noops-66OPCJJD.mjs → legacy-noops-USZM4ZXF.mjs} +6 -6
- package/dist/cli/{monitors-2PYPRWT4.mjs → monitors-6HOZMLEV.mjs} +7 -7
- package/dist/cli/{monitors-KHH4MZDF.js → monitors-XHXAMMYC.js} +100 -100
- package/dist/cli/{org-X5G36B2Q.js → org-BAAOAZF3.js} +72 -72
- package/dist/cli/{org-WAW3OL7B.mjs → org-LT3DICB4.mjs} +6 -6
- package/dist/cli/{pages-XDPHCHHU.js → pages-7NP4PKLA.js} +18 -18
- package/dist/cli/{pages-KABWXDGW.mjs → pages-MOCSTZZQ.mjs} +6 -6
- package/dist/cli/{play-UE5FKQCO.js → play-CGUL22GL.js} +317 -317
- package/dist/cli/{play-654B2HQU.mjs → play-MGJ7B7RL.mjs} +18 -18
- package/dist/cli/{providers-QT2BZMJ7.js → providers-5LCUHKX2.js} +9 -9
- package/dist/cli/{providers-SKNGX6IT.mjs → providers-AOWBHJ24.mjs} +6 -6
- package/dist/cli/{quickstart-XWDVAQTT.js → quickstart-7YZUT7GO.js} +6 -6
- package/dist/cli/{quickstart-BX7XMJIQ.mjs → quickstart-Z6NA2CCM.mjs} +4 -4
- package/dist/cli/{run-JTU4K4MY.mjs → run-7QGBNUKE.mjs} +23 -23
- package/dist/cli/{run-C6YYD4AK.js → run-M66ILCWL.js} +41 -41
- package/dist/cli/search-OZQH5VMI.js +33 -0
- package/dist/cli/{search-NHV4Y4SX.mjs → search-Z2T3B4V4.mjs} +8 -8
- package/dist/cli/{search-output-WLFFEGCY.js → search-output-6OHPSJGK.js} +6 -6
- package/dist/cli/{search-output-AAOMFK7K.mjs → search-output-MLHVBRIR.mjs} +4 -4
- package/dist/cli/{secrets-H4WTLQJJ.js → secrets-T7MW2DMK.js} +15 -15
- package/dist/cli/{secrets-S66PZSRO.mjs → secrets-VBSILT5H.mjs} +6 -6
- package/dist/cli/{sessions-PY6FJX3O.mjs → sessions-KNITGDLS.mjs} +6 -6
- package/dist/cli/sessions-XKEIBOTP.js +18 -0
- package/dist/cli/{settings-V7BM42KQ.mjs → settings-NBZRRKZS.mjs} +13 -13
- package/dist/cli/{settings-YO4FFPN6.js → settings-OSEBDBKR.js} +86 -86
- package/dist/cli/{setup-IFZYYQ2W.js → setup-7DZPC6FC.js} +50 -50
- package/dist/cli/{setup-VUBM2HMH.mjs → setup-WTEQPZ5I.mjs} +10 -10
- package/dist/cli/{skills-EYWRSQQJ.mjs → skills-JMD2MNJZ.mjs} +8 -8
- package/dist/cli/skills-R6RO6MQF.js +37 -0
- package/dist/cli/{tools-VZOW4MUD.mjs → tools-LK5BM2Z7.mjs} +17 -17
- package/dist/cli/tools-NBBDUNPR.js +57 -0
- package/dist/cli/update-BI2ABPGX.js +35 -0
- package/dist/cli/{update-CQDJJYU2.mjs → update-IVUSIA2E.mjs} +10 -10
- package/dist/cli/{workflow-2VRDIPF3.mjs → workflow-4QP6G54M.mjs} +7 -7
- package/dist/cli/{workflow-XS3JEU6X.js → workflow-GY374FMJ.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -104
- 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/dist/viewer/viewer.js +16 -7
- package/package.json +1 -1
- package/dist/cli/auth-PI2KS2CD.js +0 -43
- package/dist/cli/describe-CCK77NER.js +0 -50
- package/dist/cli/git-7L3PY2A4.js +0 -25
- package/dist/cli/search-RIFW5JCK.js +0 -33
- package/dist/cli/sessions-EFWO62XJ.js +0 -18
- package/dist/cli/skills-LFP53SWQ.js +0 -37
- package/dist/cli/tools-SR2Q7KC5.js +0 -57
- package/dist/cli/update-ADZBZZZS.js +0 -35
|
@@ -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.512',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
|
@@ -1234,6 +1234,24 @@
|
|
|
1234
1234
|
"failureAlert": "convex_action_wrapper",
|
|
1235
1235
|
"domainReportRequired": true
|
|
1236
1236
|
},
|
|
1237
|
+
{
|
|
1238
|
+
"id": "convex.sweep-closed-day-usage-rollups",
|
|
1239
|
+
"name": "Sweep closed-day usage rollups",
|
|
1240
|
+
"scheduler": "convex_cron",
|
|
1241
|
+
"cadence": "12 0 * * *",
|
|
1242
|
+
"timezone": "UTC",
|
|
1243
|
+
"source": "packages/convex/crons.ts",
|
|
1244
|
+
"locator": "sweep closed-day usage rollups",
|
|
1245
|
+
"owner": "billing",
|
|
1246
|
+
"criticality": "operational",
|
|
1247
|
+
"purpose": "Request workspace drains for indexed pending usage from closed UTC days, including late arrivals.",
|
|
1248
|
+
"successDefinition": "Discovery reaches the end of the indexed pending workspaces and issues closed-day wake requests. Each invocation inspects at most 1,000 workspaces.",
|
|
1249
|
+
"failureDefinition": "Discovery or wake dispatch fails, or the bounded pass stops before reaching the end. The next invocation resumes from its saved workspace cursor.",
|
|
1250
|
+
"startGraceMs": 120000,
|
|
1251
|
+
"runTimeoutMs": 420000,
|
|
1252
|
+
"failureAlert": "convex_action_wrapper",
|
|
1253
|
+
"domainReportRequired": true
|
|
1254
|
+
},
|
|
1237
1255
|
{
|
|
1238
1256
|
"id": "convex.cleanup-expired-org-day-usage-shards",
|
|
1239
1257
|
"name": "Cleanup expired org-day usage shards",
|
|
@@ -1414,6 +1432,24 @@
|
|
|
1414
1432
|
"failureAlert": "convex_action_wrapper",
|
|
1415
1433
|
"domainReportRequired": true
|
|
1416
1434
|
},
|
|
1435
|
+
{
|
|
1436
|
+
"id": "convex.publish-shadow-tool-rates",
|
|
1437
|
+
"name": "Publish shadow tool rates",
|
|
1438
|
+
"scheduler": "convex_cron",
|
|
1439
|
+
"cadence": "47 * * * *",
|
|
1440
|
+
"timezone": "UTC",
|
|
1441
|
+
"source": "packages/convex/crons.ts",
|
|
1442
|
+
"locator": "publish shadow tool rates",
|
|
1443
|
+
"owner": "integrations",
|
|
1444
|
+
"criticality": "operational",
|
|
1445
|
+
"purpose": "Apply bounded workspace tool-rate ingress and due changes to the shadow snapshot for parity verification.",
|
|
1446
|
+
"successDefinition": "The leased pass applies all currently due ingress and changes.",
|
|
1447
|
+
"failureDefinition": "A publication batch fails or the bounded pass leaves due work for the next invocation.",
|
|
1448
|
+
"startGraceMs": 120000,
|
|
1449
|
+
"runTimeoutMs": 180000,
|
|
1450
|
+
"failureAlert": "convex_action_wrapper",
|
|
1451
|
+
"domainReportRequired": true
|
|
1452
|
+
},
|
|
1417
1453
|
{
|
|
1418
1454
|
"id": "convex.refresh-prebuilt-play-cost-stats",
|
|
1419
1455
|
"name": "Refresh prebuilt Play cost stats",
|
|
@@ -13,6 +13,7 @@ export const MANUALLY_RUNNABLE_CONVEX_CRON_JOB_IDS = [
|
|
|
13
13
|
'github.credit-purchase-readiness-morning',
|
|
14
14
|
'inngest.play-cron-tick',
|
|
15
15
|
'convex.fold-usage-rollups',
|
|
16
|
+
'convex.sweep-closed-day-usage-rollups',
|
|
16
17
|
'convex.cleanup-expired-org-day-usage-shards',
|
|
17
18
|
'convex.cleanup-expired-mcp-oauth-codes',
|
|
18
19
|
'convex.cleanup-expired-api-key-claims',
|
|
@@ -20,6 +21,7 @@ export const MANUALLY_RUNNABLE_CONVEX_CRON_JOB_IDS = [
|
|
|
20
21
|
'convex.cleanup-expired-analytics-ip2company-cache',
|
|
21
22
|
'convex.cleanup-expired-domain-health-cache',
|
|
22
23
|
'convex.refresh-tool-usage-popularity',
|
|
24
|
+
'convex.publish-shadow-tool-rates',
|
|
23
25
|
'convex.refresh-prebuilt-play-cost-stats',
|
|
24
26
|
'convex.salesforce-oauth-refresh-maintenance',
|
|
25
27
|
'convex.monitor-fleet-convergence-tick',
|
|
@@ -4159,8 +4159,14 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
|
|
|
4159
4159
|
orgId,
|
|
4160
4160
|
semanticKey: input.semanticKey,
|
|
4161
4161
|
invocationId: input.invocationId,
|
|
4162
|
-
runId: this.
|
|
4162
|
+
runId: this.currentReceiptOwnerRunId,
|
|
4163
4163
|
receiptOwnerRunId: this.currentReceiptOwnerRunId,
|
|
4164
|
+
// Launches admitted without run-scoped keys wrote this operation under
|
|
4165
|
+
// the child's composition namespace; recover that row only for the run
|
|
4166
|
+
// that wrote it.
|
|
4167
|
+
...(this.#options.runScopedKeys === true
|
|
4168
|
+
? {}
|
|
4169
|
+
: { legacyOperationRunId: this.currentRunId }),
|
|
4164
4170
|
onLatestPublishSkipped: (event) =>
|
|
4165
4171
|
this.reportSharedReadCachePublishSkipped({
|
|
4166
4172
|
...event,
|
|
@@ -7438,7 +7444,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
|
|
|
7438
7444
|
orgId: this.#options.orgId,
|
|
7439
7445
|
toolId: request.toolId,
|
|
7440
7446
|
resultReceiptKey: request.receiptKey,
|
|
7441
|
-
runId: this.
|
|
7447
|
+
runId: this.currentReceiptOwnerRunId,
|
|
7442
7448
|
logicalCallId: request.logicalCallId,
|
|
7443
7449
|
force: request.force === true,
|
|
7444
7450
|
});
|
|
@@ -15178,7 +15184,7 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
|
|
|
15178
15184
|
orgId: this.#options.orgId,
|
|
15179
15185
|
toolId,
|
|
15180
15186
|
resultReceiptKey,
|
|
15181
|
-
runId: this.
|
|
15187
|
+
runId: this.currentReceiptOwnerRunId,
|
|
15182
15188
|
logicalCallId,
|
|
15183
15189
|
force: toolCachePolicy.force,
|
|
15184
15190
|
canStoreResult: this.durableDirectToolResultsBackedByReceipts,
|
|
@@ -247,6 +247,16 @@ export async function executeWithFreshnessReceipt<T>(input: {
|
|
|
247
247
|
* differs for an inline child. Defaults to `runId` (a root run: identical).
|
|
248
248
|
*/
|
|
249
249
|
receiptOwnerRunId?: string;
|
|
250
|
+
/**
|
|
251
|
+
* The run identity older builds derived this operation key from. An inline
|
|
252
|
+
* child's was its composition namespace, which repeats across parent runs,
|
|
253
|
+
* so a later parent run recovered an earlier run's call. New operations are
|
|
254
|
+
* keyed by `runId`, the executing run. A history row under the legacy key is
|
|
255
|
+
* recovered only when the executing run itself wrote it (an in-flight run
|
|
256
|
+
* retried across this build); another run's row is ignored. Omit for a root
|
|
257
|
+
* run (both keys are identical).
|
|
258
|
+
*/
|
|
259
|
+
legacyOperationRunId?: string;
|
|
250
260
|
/**
|
|
251
261
|
* Reports a shared-cache publish that was skipped or failed. The publish is
|
|
252
262
|
* an optimization, so the run proceeds; the caller makes this observable.
|
|
@@ -284,9 +294,26 @@ export async function executeWithFreshnessReceipt<T>(input: {
|
|
|
284
294
|
const semanticHash = sha256Hex(input.semanticKey);
|
|
285
295
|
const cachePrefix = `ctx:${input.orgId}:freshness:${semanticHash}`;
|
|
286
296
|
const latestCacheKey = latestCacheResultKey(input.orgId, input.semanticKey);
|
|
287
|
-
const
|
|
288
|
-
|
|
289
|
-
|
|
297
|
+
const operationKeyFor = (runId: string) =>
|
|
298
|
+
`ctx:${input.orgId}:freshness:operation:${sha256Hex(
|
|
299
|
+
stableStringify({ runId, invocationId: input.invocationId }),
|
|
300
|
+
)}`;
|
|
301
|
+
const operationKey = operationKeyFor(input.runId);
|
|
302
|
+
const legacyOperationKey =
|
|
303
|
+
input.legacyOperationRunId !== undefined &&
|
|
304
|
+
input.legacyOperationRunId !== input.runId
|
|
305
|
+
? operationKeyFor(input.legacyOperationRunId)
|
|
306
|
+
: null;
|
|
307
|
+
/** A legacy-keyed row counts only when this executing run wrote it. */
|
|
308
|
+
const readLegacyOperationWrittenByThisRun = (key: string) =>
|
|
309
|
+
input.withHydration(async (measure) => {
|
|
310
|
+
const receipt = await input.store.get(key);
|
|
311
|
+
measure?.([receipt]);
|
|
312
|
+
const writer = receipt?.leaseOwnerRunId ?? receipt?.runId ?? null;
|
|
313
|
+
return writer === (input.receiptOwnerRunId ?? input.runId)
|
|
314
|
+
? completedCall(receipt)
|
|
315
|
+
: null;
|
|
316
|
+
});
|
|
290
317
|
const read = (key: string) =>
|
|
291
318
|
input.withHydration(async (measure) => {
|
|
292
319
|
const receipt = await input.store.get(key);
|
|
@@ -456,6 +483,11 @@ export async function executeWithFreshnessReceipt<T>(input: {
|
|
|
456
483
|
]);
|
|
457
484
|
if (operation.status === 'rejected') throw operation.reason;
|
|
458
485
|
if (operation.value) return outcome(operation.value, 'operation_recovery');
|
|
486
|
+
if (legacyOperationKey) {
|
|
487
|
+
const legacy =
|
|
488
|
+
await readLegacyOperationWrittenByThisRun(legacyOperationKey);
|
|
489
|
+
if (legacy) return outcome(legacy, 'operation_recovery');
|
|
490
|
+
}
|
|
459
491
|
if (candidateManifests.status === 'rejected') {
|
|
460
492
|
throw candidateManifests.reason;
|
|
461
493
|
}
|
|
@@ -195,6 +195,7 @@ import {
|
|
|
195
195
|
import type { RuntimeTestFaultName } from './runtime-incident-drills';
|
|
196
196
|
import { COMPLETED_RECEIPT_CACHE_INSERT_LEASE_ID } from './durable-receipt-execution';
|
|
197
197
|
import { vercelProtectionBypassHeader } from './vercel-protection';
|
|
198
|
+
import { isRuntimeGatewayLaunchError } from './runtime-gateway-profile';
|
|
198
199
|
import {
|
|
199
200
|
isRuntimePostgresAdmissionError,
|
|
200
201
|
RuntimePostgresAdmission,
|
|
@@ -1080,6 +1081,9 @@ async function postRuntimeApi<TResponse>(
|
|
|
1080
1081
|
if (context.abortSignal?.aborted) {
|
|
1081
1082
|
throw context.abortSignal.reason ?? error;
|
|
1082
1083
|
}
|
|
1084
|
+
// A pinned gateway credential that cannot be minted is deterministic;
|
|
1085
|
+
// it is not a network cut, so retrying only stalls the caller.
|
|
1086
|
+
if (isRuntimeGatewayLaunchError(error)) throw error;
|
|
1083
1087
|
const message = error instanceof Error ? error.message : String(error);
|
|
1084
1088
|
if (response) {
|
|
1085
1089
|
// A status line arrived and then its body failed or stalled. The
|
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts
CHANGED
|
@@ -7001,6 +7001,28 @@ async function deferAbsurdAttemptForExecutorTokenOutage(input: {
|
|
|
7001
7001
|
);
|
|
7002
7002
|
}
|
|
7003
7003
|
|
|
7004
|
+
/**
|
|
7005
|
+
* The terminal message a customer sees. A worker that cannot sign the gateway
|
|
7006
|
+
* credential names its secret and the pinned deployment; those stay in the
|
|
7007
|
+
* worker log and the customer reads only that the profile is unavailable.
|
|
7008
|
+
*/
|
|
7009
|
+
export function customerSafeSalvageMessage(
|
|
7010
|
+
runId: string,
|
|
7011
|
+
error: unknown,
|
|
7012
|
+
): string {
|
|
7013
|
+
if (
|
|
7014
|
+
isRuntimeGatewayLaunchError(error) &&
|
|
7015
|
+
error.code === 'runtime_gateway_oidc_unavailable'
|
|
7016
|
+
) {
|
|
7017
|
+
console.error('[absurd-runtime.worker] runtime_gateway_oidc_unavailable', {
|
|
7018
|
+
runId,
|
|
7019
|
+
error: error.message,
|
|
7020
|
+
});
|
|
7021
|
+
return 'The requested Runtime gateway profile is unavailable, so this run cannot start. Run without a gateway profile or retry later.';
|
|
7022
|
+
}
|
|
7023
|
+
return runErrorMessage(error);
|
|
7024
|
+
}
|
|
7025
|
+
|
|
7004
7026
|
/**
|
|
7005
7027
|
* Final-attempt terminal salvage. When the LAST engine attempt of a play-run
|
|
7006
7028
|
* task dies with an unexpected error (Daytona/app-runtime/DB throw — NOT a park
|
|
@@ -7052,7 +7074,7 @@ async function salvageAbsurdFinalAttemptTerminal(input: {
|
|
|
7052
7074
|
);
|
|
7053
7075
|
}
|
|
7054
7076
|
if (!input.force && attempt < maxAttempts) return;
|
|
7055
|
-
const message =
|
|
7077
|
+
const message = customerSafeSalvageMessage(input.runId, input.error);
|
|
7056
7078
|
const failedResult: PlayRunnerResult = {
|
|
7057
7079
|
status: 'failed',
|
|
7058
7080
|
error:
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkKBM5T6UVjs = require('./chunk-KBM5T6UV.js');
|
|
4
|
+
require('./chunk-JU35QU3Z.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-RNSHCJME.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-WSGXBROE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
|
|
15
|
+
require('./chunk-ZZ7SVWKR.js');
|
|
16
16
|
require('./chunk-ALJJRZNJ.js');
|
|
17
17
|
require('./chunk-XNYIZMNQ.js');
|
|
18
18
|
require('./chunk-DIAWYWT5.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-BP4XEO6Z.js');
|
|
20
20
|
require('./chunk-OG64RBAC.js');
|
|
21
21
|
require('./chunk-COGTRVWW.js');
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ require('./chunk-COGTRVWW.js');
|
|
|
24
24
|
var _promises = require('fs/promises');
|
|
25
25
|
var ARTIFACTS_FEATURE = "artifacts";
|
|
26
26
|
function print(command, json, data, lines) {
|
|
27
|
-
|
|
27
|
+
_chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
|
|
28
28
|
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
29
29
|
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
30
30
|
` }
|
|
@@ -56,7 +56,7 @@ function artifactLines(artifact) {
|
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
function registerArtifactsCommands(program) {
|
|
59
|
-
const artifacts = program.command("artifacts", { hidden: !
|
|
59
|
+
const artifacts = program.command("artifacts", { hidden: !_chunkL7CAOWHYjs.cliFeatureEnabled.call(void 0, ARTIFACTS_FEATURE) }).description(
|
|
60
60
|
"Show what a Play returns at a fixed URL on artifacts.deepline.com."
|
|
61
61
|
).addHelpText(
|
|
62
62
|
"after",
|
|
@@ -69,7 +69,7 @@ Examples:
|
|
|
69
69
|
);
|
|
70
70
|
artifacts.command("list").description("List this workspace's artifacts.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
71
71
|
async (options) => run(async () => {
|
|
72
|
-
const result = await new (0,
|
|
72
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().listArtifacts({
|
|
73
73
|
cursor: options.cursor,
|
|
74
74
|
limit: options.limit
|
|
75
75
|
});
|
|
@@ -84,7 +84,7 @@ Examples:
|
|
|
84
84
|
);
|
|
85
85
|
artifacts.command("get <id>").description("Show one artifact and what you may do with it.").option("--json", "Emit raw JSON response").action(
|
|
86
86
|
async (id, options) => run(async () => {
|
|
87
|
-
const artifact = await new (0,
|
|
87
|
+
const artifact = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getArtifact(id);
|
|
88
88
|
print("artifacts get", options.json, artifact, [
|
|
89
89
|
...artifactLines(artifact),
|
|
90
90
|
` saved input ${JSON.stringify(artifact.input)}`
|
|
@@ -106,7 +106,7 @@ Examples:
|
|
|
106
106
|
`
|
|
107
107
|
).action(
|
|
108
108
|
async (options) => run(async () => {
|
|
109
|
-
const artifact = await new (0,
|
|
109
|
+
const artifact = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().createArtifact({
|
|
110
110
|
name: options.name,
|
|
111
111
|
play: options.play,
|
|
112
112
|
...options.input !== void 0 ? {
|
|
@@ -146,7 +146,7 @@ Examples:
|
|
|
146
146
|
"Nothing to change. See: deepline artifacts edit --help"
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
|
-
const artifact = await new (0,
|
|
149
|
+
const artifact = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().updateArtifact(id, fields);
|
|
150
150
|
print(
|
|
151
151
|
"artifacts edit",
|
|
152
152
|
options.json,
|
|
@@ -157,7 +157,7 @@ Examples:
|
|
|
157
157
|
);
|
|
158
158
|
artifacts.command("runs <id>").description("List runs of the artifact's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
|
|
159
159
|
async (id, options) => run(async () => {
|
|
160
|
-
const result = await new (0,
|
|
160
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().listArtifactRuns(id, {
|
|
161
161
|
limit: options.limit
|
|
162
162
|
});
|
|
163
163
|
print("artifacts runs", options.json, result, [
|
|
@@ -176,7 +176,7 @@ Examples:
|
|
|
176
176
|
).option("--json", "Emit raw JSON response").action(
|
|
177
177
|
async (id, options) => run(async () => {
|
|
178
178
|
const input = options.input !== void 0 ? await readJsonOption(options.input, "--input") : void 0;
|
|
179
|
-
const started = await new (0,
|
|
179
|
+
const started = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().refreshArtifact(id, input);
|
|
180
180
|
print("artifacts refresh", options.json, started, [
|
|
181
181
|
`Started run ${started.workflowId}.`,
|
|
182
182
|
`Watch it: deepline runs get ${started.workflowId}`
|
|
@@ -188,7 +188,7 @@ Examples:
|
|
|
188
188
|
if (access !== "workspace" && access !== "public") {
|
|
189
189
|
throw new Error("Access is workspace or public.");
|
|
190
190
|
}
|
|
191
|
-
const artifact = await new (0,
|
|
191
|
+
const artifact = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().setArtifactAccess(
|
|
192
192
|
id,
|
|
193
193
|
access
|
|
194
194
|
);
|
|
@@ -202,7 +202,7 @@ Examples:
|
|
|
202
202
|
);
|
|
203
203
|
artifacts.command("delete <id>").description("Delete an artifact. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
|
|
204
204
|
async (id, options) => run(async () => {
|
|
205
|
-
const result = await new (0,
|
|
205
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().deleteArtifact(id);
|
|
206
206
|
print("artifacts delete", options.json, result, [
|
|
207
207
|
`Deleted artifact ${id}.`
|
|
208
208
|
]);
|
|
@@ -213,7 +213,7 @@ Examples:
|
|
|
213
213
|
);
|
|
214
214
|
permissions.command("get", { isDefault: true }).description("Show the workspace's artifact rules and what you may do.").option("--json", "Emit raw JSON response").action(
|
|
215
215
|
async (options) => run(async () => {
|
|
216
|
-
const result = await new (0,
|
|
216
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getArtifactPermissions();
|
|
217
217
|
print("artifacts permissions", options.json, result, [
|
|
218
218
|
...Object.entries(result.rules).map(
|
|
219
219
|
([verb, level]) => `${verb}: ${level}`
|
|
@@ -251,7 +251,7 @@ Examples:
|
|
|
251
251
|
"Pass at least one rule. See: deepline artifacts permissions set --help"
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
|
-
const result = await new (0,
|
|
254
|
+
const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().setArtifactPermissions(rules);
|
|
255
255
|
print(
|
|
256
256
|
"artifacts permissions set",
|
|
257
257
|
options.json,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-HA5NSCTH.mjs";
|
|
4
|
+
import "./chunk-MTSHUN2R.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-N4TR6QRI.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-BMCRTI6Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AATUAFD2.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-MQ5GBB7V.mjs";
|
|
15
|
+
import "./chunk-TNQ5MF6K.mjs";
|
|
16
16
|
import "./chunk-4QF2K7TM.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
18
|
import "./chunk-HBL4PM5Q.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-YJN55ZWG.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|
|
@@ -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-3INAN6EK.mjs";
|
|
18
|
+
import "./chunk-AATUAFD2.mjs";
|
|
19
|
+
import "./chunk-MQ5GBB7V.mjs";
|
|
20
|
+
import "./chunk-TNQ5MF6K.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-YJN55ZWG.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 _chunk7U3WY2F3js = require('./chunk-7U3WY2F3.js');
|
|
18
|
+
require('./chunk-VZN6D23P.js');
|
|
19
|
+
require('./chunk-L7CAOWHY.js');
|
|
20
|
+
require('./chunk-ZZ7SVWKR.js');
|
|
21
|
+
require('./chunk-ALJJRZNJ.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-DIAWYWT5.js');
|
|
24
|
+
require('./chunk-BP4XEO6Z.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 = _chunk7U3WY2F3js.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunk7U3WY2F3js.authStatusLine; exports.clearPendingClaim = _chunk7U3WY2F3js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunk7U3WY2F3js.clearSatisfiedPendingClaim; exports.handleRegister = _chunk7U3WY2F3js.handleRegister; exports.handleStatus = _chunk7U3WY2F3js.handleStatus; exports.handleWait = _chunk7U3WY2F3js.handleWait; exports.httpJson = _chunk7U3WY2F3js.httpJson; exports.readPendingAuthClaim = _chunk7U3WY2F3js.readPendingAuthClaim; exports.readStatusBanner = _chunk7U3WY2F3js.readStatusBanner; exports.registerAuthCommands = _chunk7U3WY2F3js.registerAuthCommands; exports.reportApprovalLinkShown = _chunk7U3WY2F3js.reportApprovalLinkShown; exports.reportSetupCompleted = _chunk7U3WY2F3js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunk7U3WY2F3js.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunk7U3WY2F3js.statusBannerLine;
|