deepline 0.3.448 → 0.3.450
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/play.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -3
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/telemetry.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +2 -13
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +2 -16
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +23 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +52 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +80 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +16 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +34 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +14 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +54 -6
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +10 -6
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/cli/auth-3LOZKBPO.js +40 -0
- package/dist/cli/{auth-HAJKEPAE.mjs → auth-CHYW6BU3.mjs} +4 -4
- package/dist/cli/{billing-ZGQY3GVK.js → billing-NCV2CBLH.js} +73 -73
- package/dist/cli/{billing-CMA2G5Y4.mjs → billing-YADYH5P7.mjs} +4 -4
- package/dist/cli/{chunk-TKOVC3AP.js → chunk-2SASGLVN.js} +6 -6
- package/dist/cli/{chunk-2GVRS7UB.mjs → chunk-2UNTSLTR.mjs} +3 -3
- package/dist/cli/{chunk-TBTIA6U4.js → chunk-2VKDHJU3.js} +81 -81
- package/dist/cli/{chunk-K5M6UG3D.mjs → chunk-3JEMYGIR.mjs} +1 -1
- package/dist/cli/{chunk-5XOPYIT6.mjs → chunk-3SRJO6H4.mjs} +3 -3
- package/dist/cli/{chunk-PGE4JW7C.js → chunk-47GRLLV2.js} +6 -6
- package/dist/cli/{chunk-XM6A4V77.mjs → chunk-4Z356NPN.mjs} +1 -1
- package/dist/cli/{chunk-2BKTT44A.mjs → chunk-5R7YPB5X.mjs} +1 -1
- package/dist/cli/{chunk-TEPZMKN7.js → chunk-6TABNDCB.js} +4 -4
- package/dist/cli/{chunk-LNBSMAUK.js → chunk-7IUG4STX.js} +50 -50
- package/dist/cli/{chunk-YTWQ4G4P.mjs → chunk-AJUNUE32.mjs} +1 -1
- package/dist/cli/{chunk-XXHLFL3J.mjs → chunk-B2V2F3KV.mjs} +1 -1
- package/dist/cli/{chunk-TOLQMV5C.mjs → chunk-B4T7EFBZ.mjs} +4 -4
- package/dist/cli/{chunk-33KZX7WI.mjs → chunk-CA3NM3W4.mjs} +3 -3
- package/dist/cli/{chunk-ZNEU3KF2.js → chunk-CBM27PDJ.js} +8 -8
- package/dist/cli/{chunk-QS5BY6FO.mjs → chunk-EKVOSR3S.mjs} +5 -5
- package/dist/cli/{chunk-HOLESVLX.mjs → chunk-HRRVDDFH.mjs} +8 -8
- package/dist/cli/{chunk-7XUVB46D.js → chunk-IESQOIOE.js} +8 -8
- package/dist/cli/{chunk-DCQP53KU.js → chunk-IGMBTEF7.js} +26 -26
- package/dist/cli/{chunk-CB3Y7THP.js → chunk-IYBC6WON.js} +1 -1
- package/dist/cli/{chunk-DP6CINW2.js → chunk-JWZIZH2C.js} +10 -10
- package/dist/cli/{chunk-6X5G45GR.js → chunk-LTQCEQOZ.js} +20 -20
- package/dist/cli/{chunk-PVG52FJA.mjs → chunk-N42KCXPD.mjs} +2 -2
- package/dist/cli/{chunk-PVNPEQCM.js → chunk-NSIOVSNZ.js} +52 -52
- package/dist/cli/{chunk-WYU4UYJN.js → chunk-OZ5ME7BP.js} +2 -2
- package/dist/cli/{chunk-R76RSTHC.mjs → chunk-QROZFMGC.mjs} +1 -1
- package/dist/cli/{chunk-H54AY3OO.mjs → chunk-UJHJXWM4.mjs} +2 -2
- package/dist/cli/{chunk-DBNTO3T4.js → chunk-UMA7425N.js} +2 -2
- package/dist/cli/{chunk-Z6SRBSI2.js → chunk-VYMLYV2K.js} +16 -16
- package/dist/cli/{chunk-JYZVM2VV.js → chunk-XUD5AOQY.js} +35 -35
- package/dist/cli/{chunk-JETVD7NN.mjs → chunk-ZEVUPOF6.mjs} +2 -2
- package/dist/cli/{chunk-SXPQ4ZSU.mjs → chunk-ZYORWYLP.mjs} +2 -2
- package/dist/cli/{csv-64TF4NDO.mjs → csv-7PXCJKYS.mjs} +3 -3
- package/dist/cli/{csv-FTRQZV3H.js → csv-VQLS5D7H.js} +12 -12
- package/dist/cli/{db-RZUHE4GB.mjs → db-JYLMLQQO.mjs} +4 -4
- package/dist/cli/{db-REW2BPP6.js → db-XDUC3MFP.js} +25 -25
- package/dist/cli/{describe-3X7HQ3JN.js → describe-G6SRQQHS.js} +16 -16
- package/dist/cli/{describe-XU7JL4VM.mjs → describe-LDHY5HTB.mjs} +12 -12
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-Y42LOK2X.js → executions-HPI65XBL.js} +6 -6
- package/dist/cli/{executions-LFDOGILB.mjs → executions-M7MDBFHA.mjs} +4 -4
- package/dist/cli/{feedback-LRF3UIQM.mjs → feedback-6V4DDJVD.mjs} +3 -3
- package/dist/cli/{feedback-LIKR4GUV.js → feedback-Y66JKRPN.js} +7 -7
- package/dist/cli/{git-GGJXLHN2.mjs → git-BTKGTTGF.mjs} +4 -4
- package/dist/cli/git-VVC5BRCG.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-SJMC6NR5.js → legacy-noops-DEVCEE64.js} +7 -7
- package/dist/cli/{legacy-noops-QW3P53AG.mjs → legacy-noops-MUBHYOEG.mjs} +4 -4
- package/dist/cli/{monitors-VRM5AA7T.js → monitors-2DJFA7XX.js} +90 -91
- package/dist/cli/{monitors-Q2UZTDFC.mjs → monitors-SOGDSYPL.mjs} +10 -11
- package/dist/cli/{org-BIUKWUM4.mjs → org-D6ZFFG4D.mjs} +4 -4
- package/dist/cli/{org-F7OCO7BT.js → org-UWMWVV73.js} +66 -66
- package/dist/cli/{play-3WJID2EB.js → play-P423OXCU.js} +283 -283
- package/dist/cli/{play-HK6V5JO5.mjs → play-TIR2S6IA.mjs} +10 -10
- package/dist/cli/{providers-X3KZO4PN.js → providers-6F5F6D4O.js} +7 -7
- package/dist/cli/{providers-RM2PBFPD.mjs → providers-HRDAG3UX.mjs} +4 -4
- package/dist/cli/{quickstart-TKNR4AHF.js → quickstart-SOWZOPAS.js} +5 -5
- package/dist/cli/{quickstart-L7CAMJUL.mjs → quickstart-UMZS7HBY.mjs} +3 -3
- package/dist/cli/{search-XRVV24KN.mjs → search-5FGZVQSP.mjs} +5 -5
- package/dist/cli/search-BDIO4BBH.js +30 -0
- package/dist/cli/{secrets-K3BXJVSB.js → secrets-7E2TOVYP.js} +13 -13
- package/dist/cli/{secrets-W6IACZAX.mjs → secrets-SACNVEWL.mjs} +4 -4
- package/dist/cli/{sessions-CITACQM6.mjs → sessions-5VCX7MYU.mjs} +4 -4
- package/dist/cli/{sessions-WX6DSVSN.js → sessions-FNON33JD.js} +5 -5
- package/dist/cli/{settings-MQTTUMWY.js → settings-6MYQGDQX.js} +75 -75
- package/dist/cli/{settings-W7JDSM35.mjs → settings-EJACNJR4.mjs} +8 -8
- package/dist/cli/{setup-EQ64XDNX.mjs → setup-KJ7IADVC.mjs} +7 -7
- package/dist/cli/{setup-OWHEIGVW.js → setup-QVEIV4R4.js} +42 -42
- package/dist/cli/{skills-5JBRC5OR.mjs → skills-SUV3DJEU.mjs} +5 -5
- package/dist/cli/skills-YPH2KNH6.js +29 -0
- package/dist/cli/{tools-DIXBDNAX.mjs → tools-H4ZL5QDZ.mjs} +12 -12
- package/dist/cli/tools-X23MQMNE.js +44 -0
- package/dist/cli/{update-EYIS2XVV.mjs → update-5UGF4334.mjs} +7 -7
- package/dist/cli/update-GZOPNTGJ.js +31 -0
- package/dist/cli/{workflow-YKFU3E2C.mjs → workflow-RABLQNGO.mjs} +6 -6
- package/dist/cli/{workflow-OEKRLGWT.js → workflow-THIBJ3VE.js} +16 -16
- package/dist/{client-CBitBZpr.d.ts → client-CPRaigLC.d.ts} +1 -0
- package/dist/{client-CTUbBRgg.d.mts → client-DstDI5TV.d.mts} +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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/package.json +1 -1
- package/dist/cli/auth-HUJ3DIQI.js +0 -40
- package/dist/cli/git-BH7ZZPCT.js +0 -24
- package/dist/cli/search-65KJJGHQ.js +0 -30
- package/dist/cli/skills-5AXKZGMJ.js +0 -29
- package/dist/cli/tools-EXCJ2QMK.js +0 -44
- package/dist/cli/update-KSIVBEIH.js +0 -31
|
@@ -137,6 +137,7 @@ import {
|
|
|
137
137
|
isCtxFetchHttpFailureDiagnostic,
|
|
138
138
|
parseCtxFetchHttpFailureDiagnostic,
|
|
139
139
|
readProvenanceTag,
|
|
140
|
+
tagLogEntry,
|
|
140
141
|
type CtxFetchHttpFailureDiagnostic,
|
|
141
142
|
} from '../log-provenance';
|
|
142
143
|
import {
|
|
@@ -473,7 +474,10 @@ export type PostgresSchedulerAttemptExecutor = (
|
|
|
473
474
|
|
|
474
475
|
type PostgresSchedulerCompletionLogMetadata = 'attach' | 'omit';
|
|
475
476
|
|
|
476
|
-
type PostgresSchedulerTerminalLogOutbox =
|
|
477
|
+
type PostgresSchedulerTerminalLogOutbox =
|
|
478
|
+
| 'omit'
|
|
479
|
+
| 'ctx_log_tail'
|
|
480
|
+
| 'failure_reason';
|
|
477
481
|
|
|
478
482
|
export type PostgresSchedulerSandboxCrashDiagnosticRequest = {
|
|
479
483
|
schemaVersion: 1;
|
|
@@ -506,7 +510,12 @@ type PostgresSchedulerClaimExecutionOptions = Pick<
|
|
|
506
510
|
* Detached runners push their complete result into Postgres before a worker
|
|
507
511
|
* wakes to finalize it. Put their authored log tail in the terminal outbox
|
|
508
512
|
* so a worker can exit immediately without losing that tail to a detached
|
|
509
|
-
* HTTP projection.
|
|
513
|
+
* HTTP projection. `failure_reason` is for a failure no runner delivered: a
|
|
514
|
+
* failed run gets one error line stating why, so a run that failed before
|
|
515
|
+
* Play code started has a reason in its logs. Never use it for a runner's own
|
|
516
|
+
* terminal. An empty `logs` there proves nothing, because the accept trigger
|
|
517
|
+
* moves a pushed tail out of the result, and the CLI shows the last log line
|
|
518
|
+
* as the customer's recent logs.
|
|
510
519
|
*/
|
|
511
520
|
terminalLogOutbox?: PostgresSchedulerTerminalLogOutbox;
|
|
512
521
|
/** Internal provider-read coordinates which must survive terminal-worker
|
|
@@ -15120,6 +15129,36 @@ function sanitizeTerminalLogBody(line: string): string {
|
|
|
15120
15129
|
return sanitizeLedgerLogLine(body, !runtimeDiagnostic);
|
|
15121
15130
|
}
|
|
15122
15131
|
|
|
15132
|
+
/**
|
|
15133
|
+
* One error line stating why a run failed. `message` must be the public failure
|
|
15134
|
+
* text. The line ID keeps it out of the envelope's position space, where a
|
|
15135
|
+
* pushed runner tail may already own position 0: a different line there would
|
|
15136
|
+
* abort the terminal write and strand the run.
|
|
15137
|
+
*/
|
|
15138
|
+
function terminalFailureReasonLogProjection(input: {
|
|
15139
|
+
attempt: number;
|
|
15140
|
+
message: string;
|
|
15141
|
+
}): {
|
|
15142
|
+
lines: string[];
|
|
15143
|
+
lineContexts: Array<PlayLogContext | null>;
|
|
15144
|
+
lineMetadata: Array<PlayLogMetadata | null>;
|
|
15145
|
+
lineIds: Array<string | null>;
|
|
15146
|
+
} {
|
|
15147
|
+
const occurredAt = Date.now();
|
|
15148
|
+
return {
|
|
15149
|
+
lines: [
|
|
15150
|
+
tagLogEntry(
|
|
15151
|
+
'diagnostic',
|
|
15152
|
+
'error',
|
|
15153
|
+
`[${new Date(occurredAt).toISOString()}] [runtime.failure] ${input.message}`,
|
|
15154
|
+
),
|
|
15155
|
+
],
|
|
15156
|
+
lineContexts: [null],
|
|
15157
|
+
lineMetadata: [{ level: 'error', occurredAt }],
|
|
15158
|
+
lineIds: [`runtime-failure:${input.attempt}`],
|
|
15159
|
+
};
|
|
15160
|
+
}
|
|
15161
|
+
|
|
15123
15162
|
function terminalLogProjectionForOutbox(
|
|
15124
15163
|
runnerResult: unknown,
|
|
15125
15164
|
mode: PostgresSchedulerTerminalLogOutbox | undefined,
|
|
@@ -15512,10 +15551,19 @@ export async function executePostgresSchedulerClaim(
|
|
|
15512
15551
|
checkpoint: null,
|
|
15513
15552
|
tableNamespace: null,
|
|
15514
15553
|
};
|
|
15515
|
-
const
|
|
15516
|
-
|
|
15517
|
-
|
|
15518
|
-
|
|
15554
|
+
const publicFailure = terminalFailureResult.errors?.[0]?.message;
|
|
15555
|
+
const terminalLogProjection: ReturnType<
|
|
15556
|
+
typeof terminalLogProjectionForOutbox
|
|
15557
|
+
> =
|
|
15558
|
+
options.terminalLogOutbox === 'failure_reason'
|
|
15559
|
+
? terminalFailureReasonLogProjection({
|
|
15560
|
+
attempt: claim.attempt,
|
|
15561
|
+
message: publicFailure?.trim() ? publicFailure : message,
|
|
15562
|
+
})
|
|
15563
|
+
: terminalLogProjectionForOutbox(
|
|
15564
|
+
terminalFailureResult,
|
|
15565
|
+
options.terminalLogOutbox,
|
|
15566
|
+
);
|
|
15519
15567
|
const failed = await failPostgresSchedulerAttempt(
|
|
15520
15568
|
client,
|
|
15521
15569
|
{
|
|
@@ -98,7 +98,7 @@ type ProductNotificationRuleBase = Omit<
|
|
|
98
98
|
>;
|
|
99
99
|
|
|
100
100
|
type ProductNotificationRuleDefinition = {
|
|
101
|
-
default?: { ruleKey: string; groupKey: string };
|
|
101
|
+
default?: { ruleKey: string; groupKey: string; enabled?: boolean };
|
|
102
102
|
eligible?: (payload: ProductNotificationFacts) => boolean;
|
|
103
103
|
conditionSubject?: 'workspace';
|
|
104
104
|
rearm?: {
|
|
@@ -984,6 +984,7 @@ const PRODUCT_NOTIFICATION_TYPE_REGISTRY = [
|
|
|
984
984
|
default: {
|
|
985
985
|
ruleKey: 'default.automated_play_failed',
|
|
986
986
|
groupKey: 'default',
|
|
987
|
+
enabled: false,
|
|
987
988
|
},
|
|
988
989
|
create: (input, base) => {
|
|
989
990
|
const settings = input.playFailure ?? DEFAULT_PLAY_FAILURE_SETTINGS;
|
|
@@ -1174,11 +1175,14 @@ export const PRODUCT_NOTIFICATION_DEFAULT_RULES =
|
|
|
1174
1175
|
?.default;
|
|
1175
1176
|
return defaultRule
|
|
1176
1177
|
? [
|
|
1177
|
-
|
|
1178
|
-
...
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1178
|
+
{
|
|
1179
|
+
...createProductNotificationRule({
|
|
1180
|
+
...defaultRule,
|
|
1181
|
+
notificationType:
|
|
1182
|
+
registration.id as ConfigurableProductNotificationType,
|
|
1183
|
+
}),
|
|
1184
|
+
enabled: defaultRule.enabled ?? true,
|
|
1185
|
+
},
|
|
1182
1186
|
]
|
|
1183
1187
|
: [];
|
|
1184
1188
|
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunk7IUG4STXjs = require('./chunk-7IUG4STX.js');
|
|
17
|
+
require('./chunk-47GRLLV2.js');
|
|
18
|
+
require('./chunk-6TABNDCB.js');
|
|
19
|
+
require('./chunk-ALJJRZNJ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-DIAWYWT5.js');
|
|
22
|
+
require('./chunk-IYBC6WON.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunk7IUG4STXjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunk7IUG4STXjs.authStatusLine; exports.clearPendingClaim = _chunk7IUG4STXjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunk7IUG4STXjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunk7IUG4STXjs.handleRegister; exports.handleStatus = _chunk7IUG4STXjs.handleStatus; exports.handleWait = _chunk7IUG4STXjs.handleWait; exports.httpJson = _chunk7IUG4STXjs.httpJson; exports.readPendingAuthClaim = _chunk7IUG4STXjs.readPendingAuthClaim; exports.readStatusBanner = _chunk7IUG4STXjs.readStatusBanner; exports.registerAuthCommands = _chunk7IUG4STXjs.registerAuthCommands; exports.reportSetupCompleted = _chunk7IUG4STXjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunk7IUG4STXjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunk7IUG4STXjs.statusBannerLine;
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
reportSetupCompleted,
|
|
14
14
|
resolvePendingAuthClaimForResume,
|
|
15
15
|
statusBannerLine
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-N42KCXPD.mjs";
|
|
17
|
+
import "./chunk-4Z356NPN.mjs";
|
|
18
|
+
import "./chunk-5R7YPB5X.mjs";
|
|
19
19
|
import "./chunk-4QF2K7TM.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-HBL4PM5Q.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-AJUNUE32.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|