deepline 0.3.507 → 0.3.509
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/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-admission-codes.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +3 -1
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
- package/dist/cli/{auth-BNP3M27C.mjs → auth-6IR2QH4N.mjs} +5 -5
- package/dist/cli/auth-SUTQ4SZQ.js +43 -0
- package/dist/cli/{billing-7HIVX4YJ.js → billing-SYBK3ZYU.js} +82 -82
- package/dist/cli/{billing-JKJ2AEZ6.mjs → billing-WEWHH6ST.mjs} +7 -7
- package/dist/cli/{chunk-D2T4W5LR.mjs → chunk-25MAOMVS.mjs} +2 -2
- package/dist/cli/{chunk-LSONU2E2.mjs → chunk-2U7Z4LFG.mjs} +6 -6
- package/dist/cli/{chunk-E7YIIEZU.js → chunk-2ZJRCAHG.js} +11 -11
- package/dist/cli/{chunk-YAAJHS6W.mjs → chunk-3CZHC24N.mjs} +1 -1
- package/dist/cli/{chunk-E5HGDYU3.js → chunk-4DVANPBN.js} +41 -41
- package/dist/cli/{chunk-IBKWVFWP.mjs → chunk-54YPOG5W.mjs} +2 -2
- package/dist/cli/{chunk-56SRWY5F.js → chunk-5Y3I5LEQ.js} +16 -16
- package/dist/cli/{chunk-H334EFON.mjs → chunk-6KBVQ76G.mjs} +2 -2
- package/dist/cli/{chunk-OBATCFZO.js → chunk-6TBRWRJ2.js} +7 -7
- package/dist/cli/{chunk-6AQO5OJ5.js → chunk-726UDAV2.js} +7 -7
- package/dist/cli/{chunk-5PXGAA2M.js → chunk-7KALZEDZ.js} +4 -4
- package/dist/cli/{chunk-ILUZ7IHP.js → chunk-7NMPGX3W.js} +21 -21
- package/dist/cli/{chunk-HPZONIDF.js → chunk-AD45WJHN.js} +5 -5
- package/dist/cli/{chunk-JPN6OBPW.js → chunk-AO63MXT6.js} +1 -1
- package/dist/cli/{chunk-QWRSWQ7Z.js → chunk-CMSPA5VX.js} +6 -6
- package/dist/cli/{chunk-REFT4DMJ.js → chunk-DGOSW42X.js} +96 -96
- package/dist/cli/{chunk-TVR4R2E6.mjs → chunk-E3HWUGDT.mjs} +1 -1
- package/dist/cli/{chunk-GMRWVXU2.mjs → chunk-EEEWADSR.mjs} +2 -2
- package/dist/cli/{chunk-WQAHMVBT.mjs → chunk-FNLGMMJJ.mjs} +2 -2
- package/dist/cli/{chunk-NJRJGXVF.mjs → chunk-FQCIYGQY.mjs} +2 -2
- package/dist/cli/{chunk-RFJANXCC.js → chunk-GTAU4C44.js} +14 -14
- package/dist/cli/{chunk-TZ7APOBM.js → chunk-HMAETS53.js} +3 -3
- package/dist/cli/{chunk-T6FUNWXX.mjs → chunk-IZW7IOD6.mjs} +1 -1
- package/dist/cli/{chunk-GDHLL5EQ.js → chunk-J5P4PDRT.js} +3 -0
- package/dist/cli/{chunk-76R5I7HR.js → chunk-JZJNA57M.js} +6 -6
- package/dist/cli/{chunk-RTLWYERT.mjs → chunk-K2RCVD7S.mjs} +1 -1
- package/dist/cli/{chunk-2ZINJVWW.js → chunk-O527H5GY.js} +16 -16
- package/dist/cli/{chunk-EYZJDHXA.mjs → chunk-OOD5LGUS.mjs} +3 -3
- package/dist/cli/{chunk-V4GGTOCX.js → chunk-Q5UO2ENN.js} +3 -3
- package/dist/cli/{chunk-V2K34NAO.js → chunk-Q7G6WORO.js} +2 -2
- package/dist/cli/{chunk-IWZRQ6YW.mjs → chunk-R2KNJMOY.mjs} +1 -1
- package/dist/cli/{chunk-WTY2R4R3.js → chunk-RA2NKHV5.js} +5 -5
- package/dist/cli/{chunk-XKGNEN4P.mjs → chunk-RSKAPLST.mjs} +1 -1
- package/dist/cli/{chunk-OPEJASMJ.mjs → chunk-S7JEF2MR.mjs} +2 -2
- package/dist/cli/{chunk-5I2XKXLS.mjs → chunk-SEQIB5WJ.mjs} +5 -5
- package/dist/cli/{chunk-VGEBRTHF.mjs → chunk-T67NAGSD.mjs} +4 -4
- package/dist/cli/{chunk-5A66OJZD.mjs → chunk-UART6FGK.mjs} +1 -1
- package/dist/cli/{chunk-H6PABDS4.mjs → chunk-VH522HUP.mjs} +10 -10
- package/dist/cli/{chunk-MN5HO2PN.js → chunk-VTVZ7EUA.js} +9 -9
- package/dist/cli/{chunk-AXYLMDU3.js → chunk-VZ773N7G.js} +8 -8
- package/dist/cli/{chunk-VQLD5M43.mjs → chunk-WJ6H2W3O.mjs} +5 -5
- package/dist/cli/{chunk-MQRT5NYP.js → chunk-WPBTWRKG.js} +26 -26
- package/dist/cli/{chunk-EEJLV77L.mjs → chunk-WUKNKFB3.mjs} +2 -2
- package/dist/cli/{chunk-2OKEMB5A.mjs → chunk-XEQH65DT.mjs} +1 -1
- package/dist/cli/{chunk-JCE2JNGD.mjs → chunk-XIBNY6H6.mjs} +5 -5
- package/dist/cli/{chunk-WOPWSAGS.js → chunk-XPKBYMJH.js} +53 -53
- package/dist/cli/{chunk-7TZA6LJI.mjs → chunk-Y4M5HPQV.mjs} +5 -5
- package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-YJM3NOME.mjs} +3 -0
- package/dist/cli/{chunk-3D5ZNYYI.js → chunk-Z2LVZDO5.js} +44 -44
- package/dist/cli/{chunk-ZCNGMQVD.js → chunk-ZXGMWXZW.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-LZTQOPP2.mjs → csv-4LAJ2ZKG.mjs} +4 -4
- package/dist/cli/{csv-WYJVU5HV.js → csv-5KNONIAX.js} +13 -13
- package/dist/cli/{db-UCUXPY7S.js → db-5PEXOSN3.js} +27 -27
- package/dist/cli/{db-D6XFOQP3.mjs → db-BEVCJI66.mjs} +6 -6
- package/dist/cli/{describe-HKL2XK67.mjs → describe-TDJIUSD6.mjs} +18 -18
- package/dist/cli/describe-ZB6G6DOV.js +50 -0
- package/dist/cli/{executions-5CF5NM7V.js → executions-36GV3A27.js} +8 -8
- package/dist/cli/{executions-AFHYXH73.mjs → executions-KXCPU6YC.mjs} +6 -6
- package/dist/cli/{feedback-MLKQ572F.mjs → feedback-GEUUT4S7.mjs} +4 -4
- package/dist/cli/{feedback-GJAX3JZE.js → feedback-SPQABV33.js} +8 -8
- package/dist/cli/{git-BMLROZOU.mjs → git-AE36X2R6.mjs} +5 -5
- package/dist/cli/git-UX7L6R32.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-Y7JSQVLQ.mjs → legacy-noops-LUEDAK7J.mjs} +5 -5
- package/dist/cli/{legacy-noops-FHRDF7MC.js → legacy-noops-TKPHN7WT.js} +8 -8
- package/dist/cli/{monitors-Z6RPIQIH.js → monitors-B2EAIGZI.js} +100 -100
- package/dist/cli/{monitors-ZEVK3UD7.mjs → monitors-JHJZ5XG7.mjs} +7 -7
- package/dist/cli/{org-PFLVANIN.mjs → org-GUICCEBZ.mjs} +6 -6
- package/dist/cli/{org-TXJ3RES5.js → org-PYCPXEAU.js} +72 -72
- package/dist/cli/{pages-ESKKBK5Y.js → pages-CV4TQNFY.js} +18 -18
- package/dist/cli/{pages-BKEMQ2J7.mjs → pages-Y2XI36HY.mjs} +6 -6
- package/dist/cli/{play-AAFOZJKQ.js → play-MTVK66JK.js} +468 -429
- package/dist/cli/{play-4Z6Z7KVY.mjs → play-VWCQNGZZ.mjs} +93 -54
- package/dist/cli/{providers-WEU4UNKY.js → providers-N72BUCXZ.js} +9 -9
- package/dist/cli/{providers-KYP2UWDV.mjs → providers-ZOZTST3A.mjs} +6 -6
- package/dist/cli/{quickstart-7EUDF4IL.mjs → quickstart-DXIC3NHS.mjs} +4 -4
- package/dist/cli/{quickstart-DXYZCOJY.js → quickstart-FK53VZB3.js} +6 -6
- package/dist/cli/{run-MB2R5PQ7.mjs → run-IL2KI33N.mjs} +23 -23
- package/dist/cli/{run-3YN6P26W.js → run-NNAYDCEN.js} +41 -41
- package/dist/cli/{search-MIFBESRE.mjs → search-7IPVMQCO.mjs} +8 -8
- package/dist/cli/search-OZHP5ZE2.js +33 -0
- package/dist/cli/{search-output-NUWL47SR.js → search-output-YHTWLSDE.js} +6 -6
- package/dist/cli/{search-output-2IR3UA4W.mjs → search-output-ZY2GE35S.mjs} +4 -4
- package/dist/cli/{secrets-E6WIYONW.mjs → secrets-BGUMHDZ7.mjs} +6 -6
- package/dist/cli/{secrets-6UT6BIDJ.js → secrets-ZML76SH2.js} +15 -15
- package/dist/cli/{sessions-AP7L6YCL.mjs → sessions-F5XO6HZJ.mjs} +5 -5
- package/dist/cli/{sessions-NF2RBXMJ.js → sessions-WDINUUZ3.js} +6 -6
- package/dist/cli/{settings-MMLHJ5E5.mjs → settings-73SMIICV.mjs} +12 -12
- package/dist/cli/{settings-FZWXYP4W.js → settings-TOX2P5M5.js} +82 -82
- package/dist/cli/{setup-YHXAAJNZ.js → setup-DNFHFQ7N.js} +50 -50
- package/dist/cli/{setup-WJNN2CZZ.mjs → setup-FDJZYBMS.mjs} +10 -10
- package/dist/cli/{skills-KXZ5PJU2.mjs → skills-6HJ2IAY6.mjs} +8 -8
- package/dist/cli/skills-NE7WN5PP.js +37 -0
- package/dist/cli/{tools-K6S7RX7B.mjs → tools-4FJIIE4R.mjs} +17 -17
- package/dist/cli/tools-ETX4MNNO.js +57 -0
- package/dist/cli/update-N2DMPSUH.js +35 -0
- package/dist/cli/{update-2SFWEVM6.mjs → update-UMRPPILV.mjs} +10 -10
- package/dist/cli/{workflow-IR3RCVHZ.mjs → workflow-LSFOG5VU.mjs} +7 -7
- package/dist/cli/{workflow-SM3Q45X5.js → workflow-SK3BUHB4.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +103 -102
- 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-6PJ4G5PC.js +0 -43
- package/dist/cli/describe-XS4OIASD.js +0 -50
- package/dist/cli/git-RIXUHRDL.js +0 -25
- package/dist/cli/search-Z7GUKVFE.js +0 -33
- package/dist/cli/skills-4YYUFNMS.js +0 -37
- package/dist/cli/tools-OCYEMMUP.js +0 -57
- package/dist/cli/update-WQIPUQ4K.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.509',
|
|
209
209
|
updateSummary: {
|
|
210
210
|
introducedIn: '0.3.90',
|
|
211
211
|
summary:
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
"./org-monitor-limits.js": "./org-monitor-limits.ts",
|
|
66
66
|
"./provider-callback-verification": "./provider-callback-verification.ts",
|
|
67
67
|
"./provider-callback-verification.js": "./provider-callback-verification.ts",
|
|
68
|
+
"./provider-monitor-admission-codes": "./provider-monitor-admission-codes.ts",
|
|
69
|
+
"./provider-monitor-admission-codes.js": "./provider-monitor-admission-codes.ts",
|
|
68
70
|
"./provider-monitor-batch-operation": "./provider-monitor-batch-operation.ts",
|
|
69
71
|
"./provider-monitor-batch-operation.js": "./provider-monitor-batch-operation.ts",
|
|
70
72
|
"./provider-monitor-control-plane-capability": "./provider-monitor-control-plane-capability.ts",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Failure codes shared by the Convex admission mutations that raise them and
|
|
2
|
+
// the monitor flows that decide what to do about them. Convex imports this
|
|
3
|
+
// file, so it holds constants only.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* A create's admission already names a different provider resource than the
|
|
7
|
+
* one now reported for it. One admission belongs to one create, and so to one
|
|
8
|
+
* resource: this is an identity conflict, never a transient failure.
|
|
9
|
+
*/
|
|
10
|
+
export const PROVIDER_MONITOR_ADMISSION_RADAR_CONFLICT_CODE =
|
|
11
|
+
'provider_monitor_admission_radar_conflict';
|
|
@@ -542,6 +542,8 @@ export const PROVIDER_MONITOR_BATCH_CHANGE_BUCKETS: Readonly<
|
|
|
542
542
|
fleet_converged_inactive: 'removed',
|
|
543
543
|
provider_batch_created_then_stopped: 'removed',
|
|
544
544
|
provider_batch_created_then_deleted: 'removed',
|
|
545
|
+
// A start's radar deleted, never adopted, after a newer stop (KAR-198).
|
|
546
|
+
provider_batch_created_then_discarded: 'removed',
|
|
545
547
|
pending_create_intent_satisfied: 'removed',
|
|
546
548
|
};
|
|
547
549
|
|
|
@@ -1630,6 +1630,24 @@
|
|
|
1630
1630
|
"failureAlert": "convex_action_wrapper",
|
|
1631
1631
|
"domainReportRequired": true
|
|
1632
1632
|
},
|
|
1633
|
+
{
|
|
1634
|
+
"id": "convex.advance-charge-reservation-admin-projection-floors",
|
|
1635
|
+
"name": "Advance charge-admin projection floors",
|
|
1636
|
+
"scheduler": "convex_cron",
|
|
1637
|
+
"cadence": "every 300 seconds",
|
|
1638
|
+
"timezone": "UTC",
|
|
1639
|
+
"source": "packages/convex/crons.ts",
|
|
1640
|
+
"locator": "advance charge-admin projection floors",
|
|
1641
|
+
"owner": "billing",
|
|
1642
|
+
"criticality": "maintenance",
|
|
1643
|
+
"purpose": "Move each charge-admin projection shard's receipt floor up past deleted receipts so ready-receipt reads stay bounded.",
|
|
1644
|
+
"successDefinition": "Every shard's floor reaches its oldest receipt or now minus the skew allowance, or the remainder is left for the next pass; an unchanged floor is a valid no-op.",
|
|
1645
|
+
"failureDefinition": "A shard's probe fails at the minimum span, so its ready reads keep crossing deleted receipts.",
|
|
1646
|
+
"startGraceMs": 600000,
|
|
1647
|
+
"runTimeoutMs": 1800000,
|
|
1648
|
+
"failureAlert": "convex_action_wrapper",
|
|
1649
|
+
"domainReportRequired": true
|
|
1650
|
+
},
|
|
1633
1651
|
{
|
|
1634
1652
|
"id": "convex.cleanup-expired-notification-audit-records",
|
|
1635
1653
|
"name": "Cleanup expired notification audit records",
|
|
@@ -34,6 +34,7 @@ export const MANUALLY_RUNNABLE_CONVEX_CRON_JOB_IDS = [
|
|
|
34
34
|
'convex.cleanup-expired-notification-audit-records',
|
|
35
35
|
'convex.fail-stale-play-deployments',
|
|
36
36
|
'convex.monitor-findings-roll',
|
|
37
|
+
'convex.advance-charge-reservation-admin-projection-floors',
|
|
37
38
|
] as const;
|
|
38
39
|
|
|
39
40
|
export type ManuallyRunnableConvexCronJobId =
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTopLevelPipelineSubsteps,
|
|
3
|
+
truncateStaticPipelineForRuntimeContract,
|
|
3
4
|
type PlaySheetContract,
|
|
4
5
|
type PlayStaticPipeline,
|
|
5
6
|
type PlayStaticSubstep,
|
|
@@ -33,8 +34,24 @@ type DatasetSessionContract = {
|
|
|
33
34
|
tableNamespace: string;
|
|
34
35
|
sheetContract: PlaySheetContract | null;
|
|
35
36
|
error?: string;
|
|
37
|
+
/** Where the author wrote the ctx.dataset(...) call, for error messages. */
|
|
38
|
+
location?: string;
|
|
36
39
|
};
|
|
37
40
|
|
|
41
|
+
function datasetLocation(substep: PlayStaticSubstep): string | undefined {
|
|
42
|
+
const range = substep.sourceRange;
|
|
43
|
+
if (!range?.startLine) return undefined;
|
|
44
|
+
// The file name, not the author's absolute local path.
|
|
45
|
+
const fileName = range.sourcePath?.split(/[\\/]/).pop();
|
|
46
|
+
return fileName
|
|
47
|
+
? `${fileName} line ${range.startLine}`
|
|
48
|
+
: `line ${range.startLine}`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function at(location: string | undefined): string {
|
|
52
|
+
return location ? ` (${location})` : '';
|
|
53
|
+
}
|
|
54
|
+
|
|
38
55
|
function currentExecutionScopeSubsteps(
|
|
39
56
|
substeps: readonly PlayStaticSubstep[],
|
|
40
57
|
): PlayStaticSubstep[] {
|
|
@@ -73,9 +90,10 @@ function datasetSessionContracts(
|
|
|
73
90
|
getTopLevelPipelineSubsteps(pipeline),
|
|
74
91
|
).flatMap<DatasetSessionContract>((substep): DatasetSessionContract[] => {
|
|
75
92
|
if (substep.type !== 'dataset') return [];
|
|
93
|
+
const location = datasetLocation(substep);
|
|
76
94
|
const rawNamespace = (substep.tableNamespace ?? substep.field ?? '').trim();
|
|
77
95
|
if (!rawNamespace) {
|
|
78
|
-
return [{ tableNamespace: '', sheetContract: null }];
|
|
96
|
+
return [{ tableNamespace: '', sheetContract: null, location }];
|
|
79
97
|
}
|
|
80
98
|
let tableNamespace: string;
|
|
81
99
|
try {
|
|
@@ -86,13 +104,14 @@ function datasetSessionContracts(
|
|
|
86
104
|
tableNamespace: rawNamespace,
|
|
87
105
|
sheetContract: null,
|
|
88
106
|
error: error instanceof Error ? error.message : String(error),
|
|
107
|
+
location,
|
|
89
108
|
},
|
|
90
109
|
];
|
|
91
110
|
}
|
|
92
111
|
const sheetContract =
|
|
93
112
|
substep.sheetContract ??
|
|
94
113
|
(normalizedRootNamespace === tableNamespace ? rootContract : null);
|
|
95
|
-
return [{ tableNamespace, sheetContract }];
|
|
114
|
+
return [{ tableNamespace, sheetContract, location }];
|
|
96
115
|
});
|
|
97
116
|
}
|
|
98
117
|
|
|
@@ -110,20 +129,26 @@ export function inspectRuntimeSheetDbSessionPlan(
|
|
|
110
129
|
continue;
|
|
111
130
|
}
|
|
112
131
|
if (!dataset.tableNamespace) {
|
|
113
|
-
errors.push(
|
|
132
|
+
errors.push(
|
|
133
|
+
`A ctx.dataset(...) call${at(dataset.location)} has no key Deepline can read before the run, so it cannot create that dataset's table. ` +
|
|
134
|
+
'Pass a string literal or a const string as the first argument, for example ctx.dataset("companies", rows).',
|
|
135
|
+
);
|
|
114
136
|
continue;
|
|
115
137
|
}
|
|
116
138
|
datasetNamespaces.push(dataset.tableNamespace);
|
|
117
139
|
if (seen.has(dataset.tableNamespace)) {
|
|
118
140
|
errors.push(
|
|
119
|
-
`Dataset "${dataset.tableNamespace}" is declared more than once in the same play execution scope
|
|
141
|
+
`Dataset "${dataset.tableNamespace}"${at(dataset.location)} is declared more than once in the same play execution scope. ` +
|
|
142
|
+
'Give each ctx.dataset(...) call in a play its own key.',
|
|
120
143
|
);
|
|
121
144
|
continue;
|
|
122
145
|
}
|
|
123
146
|
seen.add(dataset.tableNamespace);
|
|
124
147
|
if (!dataset.sheetContract) {
|
|
125
148
|
errors.push(
|
|
126
|
-
`Dataset "${dataset.tableNamespace}"
|
|
149
|
+
`Dataset "${dataset.tableNamespace}"${at(dataset.location)} has no columns Deepline can read before the run, so it cannot create the dataset's table. ` +
|
|
150
|
+
`Chain the calls in one expression: ctx.dataset("${dataset.tableNamespace}", rows).withColumn("column", resolver).run(...). ` +
|
|
151
|
+
'A const holding ctx.dataset(...) also works when exactly one .withColumn(...).run(...) chain uses it and nothing else does.',
|
|
127
152
|
);
|
|
128
153
|
continue;
|
|
129
154
|
}
|
|
@@ -138,7 +163,8 @@ export function inspectRuntimeSheetDbSessionPlan(
|
|
|
138
163
|
}
|
|
139
164
|
if (contractNamespace !== dataset.tableNamespace) {
|
|
140
165
|
errors.push(
|
|
141
|
-
`Dataset "${dataset.tableNamespace}" has
|
|
166
|
+
`Dataset "${dataset.tableNamespace}"${at(dataset.location)} has columns compiled for dataset "${contractNamespace}". ` +
|
|
167
|
+
'This is a Deepline compiler bug; run `deepline plays check` with the current CLI and report it if it persists.',
|
|
142
168
|
);
|
|
143
169
|
continue;
|
|
144
170
|
}
|
|
@@ -152,6 +178,21 @@ export function inspectRuntimeSheetDbSessionPlan(
|
|
|
152
178
|
};
|
|
153
179
|
}
|
|
154
180
|
|
|
181
|
+
/**
|
|
182
|
+
* The one Runtime Sheet admission predicate shared by `plays check` and
|
|
183
|
+
* `plays run`. A source run admits exactly the runtime-contract projection of
|
|
184
|
+
* its compiled static pipeline, so check must judge that same projection: a
|
|
185
|
+
* non-empty result makes check report `valid: false` and makes run reject the
|
|
186
|
+
* Play before creating a run, with identical messages.
|
|
187
|
+
*/
|
|
188
|
+
export function runtimeSheetContractAdmissionErrors(
|
|
189
|
+
pipeline: PlayStaticPipeline | null | undefined,
|
|
190
|
+
): string[] {
|
|
191
|
+
return inspectRuntimeSheetDbSessionPlan(
|
|
192
|
+
truncateStaticPipelineForRuntimeContract(pipeline) ?? null,
|
|
193
|
+
).errors;
|
|
194
|
+
}
|
|
195
|
+
|
|
155
196
|
export function planRuntimeSheetDbSessionRequirements(
|
|
156
197
|
pipeline: PlayStaticPipeline | null,
|
|
157
198
|
): RuntimeDbSessionRequirement[] {
|
|
@@ -428,6 +428,9 @@ function formatPublicToolErrorPayload(input: {
|
|
|
428
428
|
'error',
|
|
429
429
|
'message',
|
|
430
430
|
'code',
|
|
431
|
+
// Before the long fields, so the 1,500-character cut below keeps whose
|
|
432
|
+
// key ran out of provider credits.
|
|
433
|
+
'credential_owner',
|
|
431
434
|
'failure_origin',
|
|
432
435
|
'error_category',
|
|
433
436
|
'failure_description',
|
|
@@ -439,7 +442,6 @@ function formatPublicToolErrorPayload(input: {
|
|
|
439
442
|
'request_id',
|
|
440
443
|
'requestId',
|
|
441
444
|
'credential_source',
|
|
442
|
-
'credential_owner',
|
|
443
445
|
]) {
|
|
444
446
|
const value = input.parsed[key];
|
|
445
447
|
if (typeof value === 'string' && value.trim()) {
|
|
@@ -221,6 +221,7 @@ export const PLAY_AUTHORING_CONTRACT_ISSUE_CODES = [
|
|
|
221
221
|
'play_authoring_hitl_retry_loop_unsafe',
|
|
222
222
|
'play_authoring_binding_invalid',
|
|
223
223
|
'play_runtime_size_preview_only',
|
|
224
|
+
'play_runtime_sheet_contract_incomplete',
|
|
224
225
|
'play_authoring_input_schema_unresolved',
|
|
225
226
|
'tool_response_raw_access',
|
|
226
227
|
'check_error',
|
|
@@ -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-OOD5LGUS.mjs";
|
|
18
|
+
import "./chunk-6KBVQ76G.mjs";
|
|
19
|
+
import "./chunk-R2KNJMOY.mjs";
|
|
20
|
+
import "./chunk-3CZHC24N.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-RSKAPLST.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 _chunkXPKBYMJHjs = require('./chunk-XPKBYMJH.js');
|
|
18
|
+
require('./chunk-726UDAV2.js');
|
|
19
|
+
require('./chunk-HMAETS53.js');
|
|
20
|
+
require('./chunk-7KALZEDZ.js');
|
|
21
|
+
require('./chunk-ALJJRZNJ.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-DIAWYWT5.js');
|
|
24
|
+
require('./chunk-AO63MXT6.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 = _chunkXPKBYMJHjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkXPKBYMJHjs.authStatusLine; exports.clearPendingClaim = _chunkXPKBYMJHjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkXPKBYMJHjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkXPKBYMJHjs.handleRegister; exports.handleStatus = _chunkXPKBYMJHjs.handleStatus; exports.handleWait = _chunkXPKBYMJHjs.handleWait; exports.httpJson = _chunkXPKBYMJHjs.httpJson; exports.readPendingAuthClaim = _chunkXPKBYMJHjs.readPendingAuthClaim; exports.readStatusBanner = _chunkXPKBYMJHjs.readStatusBanner; exports.registerAuthCommands = _chunkXPKBYMJHjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkXPKBYMJHjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkXPKBYMJHjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkXPKBYMJHjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkXPKBYMJHjs.statusBannerLine;
|