deepline 0.3.301 → 0.3.303
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/sdk/src/runs/watch-polling.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/live-state-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +2 -4
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +16 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +6 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -98
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +2 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +82 -0
- package/dist/bundling-sources/shared_libs/plays/tool-response-contract.ts +25 -0
- package/dist/cli/{auth-DCN4DA2T.mjs → auth-337SVWQD.mjs} +4 -4
- package/dist/cli/auth-4ME3NANJ.js +31 -0
- package/dist/cli/{billing-OGWOCZOZ.js → billing-CVQURTWQ.js} +71 -71
- package/dist/cli/{billing-VLZNKJ4N.mjs → billing-SVGYQSJI.mjs} +5 -5
- package/dist/cli/{chunk-V7J7U63X.js → chunk-4D5YQETI.js} +6 -6
- package/dist/cli/{chunk-OILZKWKC.mjs → chunk-4LRG6AJZ.mjs} +2 -2
- package/dist/cli/{chunk-JCS5TPNY.mjs → chunk-4NIQA6S7.mjs} +1 -1
- package/dist/cli/{chunk-AKWMFS7H.js → chunk-5NEXN4MZ.js} +2 -2
- package/dist/cli/{chunk-PXJAS6X2.mjs → chunk-BVJSAJKV.mjs} +1 -1
- package/dist/cli/{chunk-SBUIMF2B.mjs → chunk-DH6LEJWD.mjs} +3 -3
- package/dist/cli/{chunk-YFRWD6LM.js → chunk-EAIGGEV5.js} +6 -6
- package/dist/cli/{chunk-6JIXIMC5.js → chunk-GQUI3NYN.js} +57 -57
- package/dist/cli/{chunk-FAQGAPKK.js → chunk-HIXYNASX.js} +4 -4
- package/dist/cli/{chunk-GILGPI67.mjs → chunk-IVT2CZPM.mjs} +10 -3
- package/dist/cli/{chunk-QDFEF4PI.js → chunk-JGEFX6FQ.js} +6 -6
- package/dist/cli/{chunk-AXHRD6ME.mjs → chunk-JWUOPLAR.mjs} +1 -1
- package/dist/cli/{chunk-57J4GHJG.mjs → chunk-LGGR7CGZ.mjs} +4 -4
- package/dist/cli/{chunk-YBYPHZ4I.mjs → chunk-MTICVDNY.mjs} +1 -1
- package/dist/cli/{chunk-M6KBDWGI.js → chunk-NFWFUCGM.js} +19 -12
- package/dist/cli/{chunk-TAPI3QLV.js → chunk-OOQ4IRP4.js} +1 -1
- package/dist/cli/{chunk-7JA3CLD2.js → chunk-P2KELOST.js} +48 -48
- package/dist/cli/{chunk-SHQNCP2G.mjs → chunk-PUKK7SZX.mjs} +1 -1
- package/dist/cli/{chunk-ZNC3KU5O.js → chunk-RY6WID7C.js} +26 -26
- package/dist/cli/{chunk-GONRLVV3.js → chunk-W7INSYJS.js} +9 -9
- package/dist/cli/{chunk-7VBN7TU5.js → chunk-WJGRIDWQ.js} +15 -15
- package/dist/cli/{chunk-RQKAKIVL.mjs → chunk-XKW6HTWO.mjs} +1 -1
- package/dist/cli/{chunk-D7WKHLLF.mjs → chunk-XXQYOQWO.mjs} +2 -2
- package/dist/cli/{chunk-6S2UJUVD.mjs → chunk-YZLPXH7G.mjs} +2 -2
- package/dist/cli/{client-F7LPXBQS.mjs → client-AMSHGQFH.mjs} +4 -4
- package/dist/cli/client-WN33QCMV.js +20 -0
- package/dist/cli/{csv-DTGOY553.js → csv-B2OKPMNX.js} +12 -12
- package/dist/cli/{csv-PFAL3PLE.mjs → csv-F4RPWI4E.mjs} +3 -3
- package/dist/cli/{db-B7JTWZQB.js → db-AJYYK5HH.js} +21 -21
- package/dist/cli/{db-24PTJ6J5.mjs → db-QP4WNVSS.mjs} +5 -5
- package/dist/cli/{executions-3CPX35CQ.js → executions-4LHEJCCY.js} +7 -7
- package/dist/cli/{executions-53BGMOYB.mjs → executions-NY7HYAEH.mjs} +5 -5
- package/dist/cli/{feedback-4JPCFN6F.js → feedback-CXXJJARR.js} +6 -6
- package/dist/cli/{feedback-GA6FF4UP.mjs → feedback-SJYHLVYY.mjs} +3 -3
- package/dist/cli/{git-VXB6ZLJ3.mjs → git-DUODO3NL.mjs} +4 -4
- package/dist/cli/git-K7YPSXLC.js +23 -0
- package/dist/cli/index.d.mts +1 -6
- package/dist/cli/index.d.ts +1 -6
- package/dist/cli/index.js +100 -87
- package/dist/cli/index.mjs +54 -41
- package/dist/cli/{legacy-noops-ANYHW7ER.js → legacy-noops-3UYJVVNW.js} +7 -7
- package/dist/cli/{legacy-noops-7J5WN4M6.mjs → legacy-noops-IUDXZFYO.mjs} +4 -4
- package/dist/cli/{monitors-EAV6KHOK.js → monitors-IEEVACOD.js} +86 -86
- package/dist/cli/{monitors-DXETJ5NX.mjs → monitors-PDWE6BGA.mjs} +5 -5
- package/dist/cli/{org-3IVIYYVM.js → org-NUFEZRY7.js} +61 -61
- package/dist/cli/{org-B57DDLLC.mjs → org-VSPO2YF3.mjs} +5 -5
- package/dist/cli/{play-FXABI2NH.mjs → play-KMHPJVWH.mjs} +21 -19
- package/dist/cli/{play-LNYRYGOT.js → play-MXYK2BRE.js} +229 -227
- package/dist/cli/{providers-LMZBXPLP.mjs → providers-7ENB4EYV.mjs} +5 -5
- package/dist/cli/{providers-SWHCMHUN.js → providers-YE5YRIML.js} +8 -8
- package/dist/cli/{proxy-env-M4ZHXHRL.mjs → proxy-env-NWUIGWS3.mjs} +34 -17
- package/dist/cli/{proxy-env-EBANZHPV.js → proxy-env-ZV2WZFAT.js} +37 -20
- package/dist/cli/{quickstart-PHGLWVGA.mjs → quickstart-GFOOHX2U.mjs} +3 -3
- package/dist/cli/{quickstart-YYKEMF5A.js → quickstart-KXCU2MZ2.js} +5 -5
- package/dist/cli/{search-PHSXMXSV.mjs → search-KESXCJDL.mjs} +6 -6
- package/dist/cli/search-R426JJQW.js +18 -0
- package/dist/cli/{secrets-CWWMAPBB.js → secrets-BRB5SIXG.js} +14 -14
- package/dist/cli/{secrets-ZRVJ6GWI.mjs → secrets-HDR522GC.mjs} +5 -5
- package/dist/cli/{sessions-3HSV7W2M.js → sessions-IK3OSQC6.js} +5 -5
- package/dist/cli/{sessions-IXMB2B5R.mjs → sessions-VOOSWVLS.mjs} +4 -4
- package/dist/cli/{settings-XEM64DRR.mjs → settings-BZKDIHTX.mjs} +8 -8
- package/dist/cli/{settings-PGYWTWJ7.js → settings-OPGEFGXL.js} +75 -75
- package/dist/cli/{setup-MCXGMDIV.mjs → setup-RVPS7AJJ.mjs} +6 -6
- package/dist/cli/{setup-EOTIXFLU.js → setup-TP2VWSCU.js} +41 -41
- package/dist/cli/{skills-4HXO76M7.mjs → skills-7BDD2F4V.mjs} +4 -4
- package/dist/cli/skills-TK2CIWVS.js +28 -0
- package/dist/cli/{tools-FMOJUYVW.js → tools-46ILS57M.js} +51 -51
- package/dist/cli/{tools-P3OULQFZ.mjs → tools-XLGGDBM3.mjs} +6 -6
- package/dist/cli/{update-2QXPDAIV.mjs → update-2JEM7WUF.mjs} +6 -6
- package/dist/cli/update-3JOCQWNF.js +28 -0
- package/dist/cli/{workflow-VAJ3GV2W.mjs → workflow-SSTGMXOQ.mjs} +6 -6
- package/dist/cli/{workflow-P2YQPB7Y.js → workflow-ZKGPY7T4.js} +16 -16
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +74 -74
- package/dist/plays/bundle-play-file.mjs +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/package.json +1 -1
- package/dist/cli/auth-G2CKLPSX.js +0 -31
- package/dist/cli/client-WTE3IK53.js +0 -20
- package/dist/cli/git-YTJCZVEL.js +0 -23
- package/dist/cli/search-CEBKSGXX.js +0 -18
- package/dist/cli/skills-3IXQN3KZ.js +0 -28
- package/dist/cli/update-H6I7437Q.js +0 -28
- /package/dist/cli/{chunk-GVUJJJ5G.mjs → chunk-6IKARAYD.mjs} +0 -0
- /package/dist/cli/{chunk-6A3TJUWC.js → chunk-S6R3OX7B.js} +0 -0
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts
CHANGED
|
@@ -1032,6 +1032,88 @@ export async function setRuntimeEventDeferredProjection(
|
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
|
+
export type RuntimeEventProjectionModes = {
|
|
1036
|
+
runtimeScope: string;
|
|
1037
|
+
deferred: boolean | null;
|
|
1038
|
+
independent: boolean | null;
|
|
1039
|
+
unavailableReason:
|
|
1040
|
+
| 'projection_mode_readers_missing'
|
|
1041
|
+
| 'deferred_projection_reader_missing'
|
|
1042
|
+
| 'independent_projection_reader_missing'
|
|
1043
|
+
| null;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
/** Read installed operator modes without scanning or changing the outbox. */
|
|
1047
|
+
export async function readRuntimeEventProjectionModes(
|
|
1048
|
+
client: PostgresSchedulerQueryClient,
|
|
1049
|
+
runtimeScope: string,
|
|
1050
|
+
): Promise<RuntimeEventProjectionModes> {
|
|
1051
|
+
const scope = requiredScope(runtimeScope);
|
|
1052
|
+
const schema = quoteIdent(scope);
|
|
1053
|
+
const installed = await client.query<{
|
|
1054
|
+
deferred_installed: boolean;
|
|
1055
|
+
independent_installed: boolean;
|
|
1056
|
+
}>(
|
|
1057
|
+
`SELECT to_regprocedure($1) IS NOT NULL AS deferred_installed,
|
|
1058
|
+
to_regprocedure($2) IS NOT NULL AS independent_installed`,
|
|
1059
|
+
[
|
|
1060
|
+
`${schema}.defer_runtime_event_projection()`,
|
|
1061
|
+
`${schema}.independent_runtime_event_projection()`,
|
|
1062
|
+
],
|
|
1063
|
+
);
|
|
1064
|
+
const readers = installed.rows[0];
|
|
1065
|
+
if (
|
|
1066
|
+
!readers ||
|
|
1067
|
+
typeof readers.deferred_installed !== 'boolean' ||
|
|
1068
|
+
typeof readers.independent_installed !== 'boolean'
|
|
1069
|
+
) {
|
|
1070
|
+
throw new Error('Runtime projection mode lookup returned no reader state.');
|
|
1071
|
+
}
|
|
1072
|
+
const unavailableReason = readers.deferred_installed
|
|
1073
|
+
? readers.independent_installed
|
|
1074
|
+
? null
|
|
1075
|
+
: 'independent_projection_reader_missing'
|
|
1076
|
+
: readers.independent_installed
|
|
1077
|
+
? 'deferred_projection_reader_missing'
|
|
1078
|
+
: 'projection_mode_readers_missing';
|
|
1079
|
+
if (!readers.deferred_installed && !readers.independent_installed) {
|
|
1080
|
+
return {
|
|
1081
|
+
runtimeScope: scope,
|
|
1082
|
+
deferred: null,
|
|
1083
|
+
independent: null,
|
|
1084
|
+
unavailableReason,
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
// An absent function cannot appear in the SQL, even in an unselected CASE.
|
|
1088
|
+
const deferredExpression = readers.deferred_installed
|
|
1089
|
+
? `${schema}.defer_runtime_event_projection()`
|
|
1090
|
+
: 'NULL::boolean';
|
|
1091
|
+
const independentExpression = readers.independent_installed
|
|
1092
|
+
? `${schema}.independent_runtime_event_projection()`
|
|
1093
|
+
: 'NULL::boolean';
|
|
1094
|
+
const result = await client.query<{
|
|
1095
|
+
deferred: boolean | null;
|
|
1096
|
+
independent: boolean | null;
|
|
1097
|
+
}>(
|
|
1098
|
+
`SELECT ${deferredExpression} AS deferred,
|
|
1099
|
+
${independentExpression} AS independent`,
|
|
1100
|
+
);
|
|
1101
|
+
const modes = result.rows[0];
|
|
1102
|
+
if (
|
|
1103
|
+
!modes ||
|
|
1104
|
+
(readers.deferred_installed && typeof modes.deferred !== 'boolean') ||
|
|
1105
|
+
(readers.independent_installed && typeof modes.independent !== 'boolean')
|
|
1106
|
+
) {
|
|
1107
|
+
throw new Error('Runtime projection mode lookup returned invalid values.');
|
|
1108
|
+
}
|
|
1109
|
+
return {
|
|
1110
|
+
runtimeScope: scope,
|
|
1111
|
+
deferred: modes.deferred,
|
|
1112
|
+
independent: modes.independent,
|
|
1113
|
+
unavailableReason,
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1035
1117
|
/** Operator state uses the same durable pending set as the outbox projector. */
|
|
1036
1118
|
export async function inspectRuntimeEventProjection(
|
|
1037
1119
|
client: PostgresSchedulerQueryClient,
|
|
@@ -23,6 +23,31 @@ export type ToolResponseContract =
|
|
|
23
23
|
|
|
24
24
|
export type ToolResponseView = 'data' | 'rawV2';
|
|
25
25
|
|
|
26
|
+
/** Authoring guidance shared by provider descriptions and the public CLI. */
|
|
27
|
+
export const TOOL_RESPONSE_AUTHORING_GUIDANCE = {
|
|
28
|
+
prefer: [
|
|
29
|
+
'Use toolExecutionResult.extractedLists.<name>.get() only for declared extracted lists listed below.',
|
|
30
|
+
'Use toolExecutionResult.extractedValues.<name>.get() only for declared extracted values listed below. Values may be scalars or normalized objects such as EmailStatus; inspect each entry details.strategy and details.valueType.',
|
|
31
|
+
'Use toolExecutionResult.toolResponse.rawV2 for provider/tool-specific scalar fields, fields in outputSchema that are not declared extracted values, and debugging. Inspect the observed response envelope before selecting nested fields. For declared row/list outputs, use extractedLists.<name>.get().',
|
|
32
|
+
'toolResponse.rawV2 is the complete parsed and scrubbed provider response, including JSON:API included resources, cursors, links, and totals. It is not the original HTTP bytes or headers.',
|
|
33
|
+
],
|
|
34
|
+
rawMeaning:
|
|
35
|
+
'Complete parsed and scrubbed provider response for provider/tool-specific scalar fields and debugging. Inspect its envelope before selecting nested fields. Declared row/list outputs should use extractedLists.<name>.get().',
|
|
36
|
+
invalidGetterHint:
|
|
37
|
+
'If TypeScript says an extractedValues/extractedLists property does not exist, that field is not a declared Deepline getter; inspect toolResponse.rawV2 for provider/tool-specific scalar fields, and use extractedLists.<name>.get() for declared row/list outputs.',
|
|
38
|
+
responseShape: {
|
|
39
|
+
canonicalResponse: 'toolResponse.rawV2',
|
|
40
|
+
nesting:
|
|
41
|
+
'rawV2 preserves the provider/tool adapter envelope. The payload may be at rawV2, rawV2.data, or rawV2.data.data; there is no universal unwrap depth. view: "data" does not flatten rawV2. Prefer declared getters; otherwise inspect the retained response from the same execution surface and assert the exact field path before bulk execution.',
|
|
42
|
+
outputSchema:
|
|
43
|
+
'outputSchema describes the declared normalized tool output, not an observed rawV2 envelope. Do not derive a rawV2 field path from it.',
|
|
44
|
+
extractorPaths:
|
|
45
|
+
'details.rawToolOutputPaths records compatibility extractor provenance, not copyable rawV2 paths. Use the getter expression; do not mechanically replace raw with rawV2.',
|
|
46
|
+
missingFields:
|
|
47
|
+
'An absent expected field is an extraction contract mismatch, not proof of a provider miss or invalid email. Keep legitimate no-result responses distinct from unexpected shapes.',
|
|
48
|
+
},
|
|
49
|
+
} as const;
|
|
50
|
+
|
|
26
51
|
export function isToolResponseContract(
|
|
27
52
|
value: unknown,
|
|
28
53
|
): value is ToolResponseContract {
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
registerAuthCommands,
|
|
10
10
|
reportSetupCompleted,
|
|
11
11
|
resolvePendingAuthClaimForResume
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4LRG6AJZ.mjs";
|
|
13
|
+
import "./chunk-XKW6HTWO.mjs";
|
|
14
|
+
import "./chunk-JWUOPLAR.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-MTICVDNY.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkP2KELOSTjs = require('./chunk-P2KELOST.js');
|
|
13
|
+
require('./chunk-EAIGGEV5.js');
|
|
14
|
+
require('./chunk-HIXYNASX.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-OOQ4IRP4.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkP2KELOSTjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkP2KELOSTjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkP2KELOSTjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkP2KELOSTjs.handleRegister; exports.handleStatus = _chunkP2KELOSTjs.handleStatus; exports.handleWait = _chunkP2KELOSTjs.handleWait; exports.readPendingAuthClaim = _chunkP2KELOSTjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkP2KELOSTjs.registerAuthCommands; exports.reportSetupCompleted = _chunkP2KELOSTjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkP2KELOSTjs.resolvePendingAuthClaimForResume;
|