deepline 0.3.527 → 0.3.529
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/play-runtime/context.ts +197 -207
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +156 -161
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +56 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +36 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +35 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +26 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +129 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-claim-loop-timing.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +475 -101
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +13 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +30 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +43 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +105 -13
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/result-receipt-policy.ts +10 -1
- package/dist/cli/auth-P7M7SXM5.js +43 -0
- package/dist/cli/{auth-LRMMQFJ4.mjs → auth-V7A6TU4G.mjs} +5 -5
- package/dist/cli/{billing-WZZDXVRJ.mjs → billing-5VBUYPWW.mjs} +6 -6
- package/dist/cli/{billing-M76MMWZB.js → billing-XF6SAA5Y.js} +79 -79
- package/dist/cli/{chunk-HB3YUHEL.js → chunk-2GV54JFN.js} +44 -44
- package/dist/cli/{chunk-ETXQZGQU.js → chunk-4722FTYU.js} +16 -16
- package/dist/cli/{chunk-AXFHQWGA.mjs → chunk-4A4OQMJX.mjs} +1 -1
- package/dist/cli/{chunk-66YLAQ2X.js → chunk-4BKE63Q7.js} +26 -26
- package/dist/cli/{chunk-UKOG6PCB.mjs → chunk-5NZEA2YV.mjs} +1 -1
- package/dist/cli/{chunk-JEIGNX3G.mjs → chunk-6XZIXDLC.mjs} +5 -5
- package/dist/cli/{chunk-RGL2YGJZ.js → chunk-7RTDSHMB.js} +2 -2
- package/dist/cli/{chunk-2A6IRSE6.js → chunk-7SRZTSHU.js} +5 -5
- package/dist/cli/{chunk-7DPWGAOU.js → chunk-7Z3ZXSOX.js} +3 -3
- package/dist/cli/{chunk-JSEISVAZ.js → chunk-AP7DNG6D.js} +4 -4
- package/dist/cli/{chunk-P5ZU5ZHA.mjs → chunk-BOWZ3OOU.mjs} +1 -1
- package/dist/cli/{chunk-YUYDP2EG.js → chunk-BRQDN67G.js} +6 -6
- package/dist/cli/{chunk-VV2AFJ3I.mjs → chunk-C2WTS7WY.mjs} +5 -5
- package/dist/cli/{chunk-GIRMVMXP.mjs → chunk-DKX5CGTG.mjs} +1 -1
- package/dist/cli/{chunk-OXHY3LD3.js → chunk-DPGPXARU.js} +53 -53
- package/dist/cli/{chunk-JSVHBJE2.mjs → chunk-E7CN5GEM.mjs} +2 -2
- package/dist/cli/{chunk-KDFUQRVU.mjs → chunk-ETCGTKLF.mjs} +1 -1
- package/dist/cli/{chunk-UJHS2O5O.mjs → chunk-EW33RCLA.mjs} +3 -3
- package/dist/cli/{chunk-OLSATEDQ.js → chunk-FCNSJHED.js} +6 -6
- package/dist/cli/{chunk-YKPMIJJ2.mjs → chunk-FWC47SCG.mjs} +2 -2
- package/dist/cli/{chunk-VTXBV4AX.mjs → chunk-FXHKNZM2.mjs} +1 -1
- package/dist/cli/{chunk-MMM2WMTF.mjs → chunk-G4SYSUDB.mjs} +5 -5
- package/dist/cli/{chunk-HA2J2OAS.mjs → chunk-GPU4ULMY.mjs} +10 -10
- package/dist/cli/{chunk-3L2DNG5X.js → chunk-H2JAXOPP.js} +11 -11
- package/dist/cli/{chunk-QKY3H3HA.mjs → chunk-HV4UKMBB.mjs} +4 -4
- package/dist/cli/{chunk-QKKT5G4K.mjs → chunk-K55VBSCA.mjs} +3 -3
- package/dist/cli/{chunk-EOL7PXLW.js → chunk-KAI64HV7.js} +7 -7
- package/dist/cli/{chunk-YJ4YVFXC.js → chunk-KSUWW26I.js} +13 -13
- package/dist/cli/{chunk-XI47UAVU.js → chunk-L3J7IAYE.js} +9 -9
- package/dist/cli/{chunk-R6IWWPY7.js → chunk-M47I47FK.js} +14 -14
- package/dist/cli/{chunk-E4TEZE62.mjs → chunk-NDVCVFZW.mjs} +2 -2
- package/dist/cli/{chunk-UAQ7ZWRP.js → chunk-NVH6ULDP.js} +22 -22
- package/dist/cli/{chunk-M45S7JAY.mjs → chunk-NVSMSP2J.mjs} +2 -2
- package/dist/cli/{chunk-SRQQAUXN.js → chunk-OA4FI5ZM.js} +2 -2
- package/dist/cli/{chunk-NVII3RWQ.mjs → chunk-PAAREIKG.mjs} +2 -2
- package/dist/cli/{chunk-5YR6CDJ2.mjs → chunk-PJDYY5JL.mjs} +6 -6
- package/dist/cli/{chunk-LHMHUA5D.js → chunk-PNWBODCB.js} +7 -7
- package/dist/cli/{chunk-C7A44BZ7.js → chunk-QTQWPSAK.js} +3 -3
- package/dist/cli/{chunk-MIL5YDKZ.mjs → chunk-R62Z4INU.mjs} +2 -2
- package/dist/cli/{chunk-YSDPYQBH.js → chunk-RWY2QLJ4.js} +41 -41
- package/dist/cli/{chunk-XYG4IOJK.js → chunk-TEFO5AS2.js} +98 -98
- package/dist/cli/{chunk-ZHY7AY5V.js → chunk-UMCEXTRM.js} +16 -16
- package/dist/cli/{chunk-77VNC2KF.mjs → chunk-XE4PQE2O.mjs} +1 -1
- package/dist/cli/{chunk-OKRBGXDI.js → chunk-XEZSORKG.js} +5 -5
- package/dist/cli/{chunk-3PQDEBO6.js → chunk-XZ6OY3BH.js} +1 -1
- package/dist/cli/{chunk-2L3HVEBM.mjs → chunk-Y4P6XJHU.mjs} +1 -1
- package/dist/cli/{chunk-RMCKTV4R.mjs → chunk-YVJJEMNQ.mjs} +1 -1
- package/dist/cli/{chunk-HQZLTK3P.js → chunk-ZEIN5YJS.js} +2 -2
- package/dist/cli/{chunk-RTPLRMEB.mjs → chunk-ZULLXAJJ.mjs} +5 -5
- package/dist/cli/{chunk-4YN7DZEA.mjs → chunk-ZYMX7KZE.mjs} +2 -2
- package/dist/cli/{csv-FEFNXZF7.mjs → csv-IHLVHG35.mjs} +4 -4
- package/dist/cli/{csv-IRP6VT7Q.js → csv-VEKMGGOE.js} +13 -13
- package/dist/cli/{db-Y5VNPNRD.js → db-NTFFISQG.js} +27 -27
- package/dist/cli/{db-IHECMWZ3.mjs → db-RKLVYARP.mjs} +6 -6
- package/dist/cli/{describe-XCVC2WLL.mjs → describe-62ELB5DZ.mjs} +18 -18
- package/dist/cli/describe-JXOGKT6C.js +50 -0
- package/dist/cli/{executions-3FWZYUJV.mjs → executions-5BMZW4C7.mjs} +6 -6
- package/dist/cli/{executions-QH3KJ6MA.js → executions-X7NMKMXW.js} +8 -8
- package/dist/cli/{feedback-BGHWMOLH.js → feedback-RDN5O4AT.js} +14 -14
- package/dist/cli/{feedback-F3OZXOPM.mjs → feedback-UHHWCIFD.mjs} +6 -6
- package/dist/cli/{git-RWPH3D75.mjs → git-3M33GKOW.mjs} +5 -5
- package/dist/cli/git-7VZGGIGZ.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-5ADSTBJ5.mjs → legacy-noops-7RVRPF5B.mjs} +6 -6
- package/dist/cli/{legacy-noops-G6CYD5LM.js → legacy-noops-ENKN6JU4.js} +9 -9
- package/dist/cli/{monitors-AFNAU3A2.mjs → monitors-FJPDMUQ6.mjs} +7 -7
- package/dist/cli/{monitors-VZCBZO26.js → monitors-YOWDFGIR.js} +100 -100
- package/dist/cli/{org-X4QRYBC4.js → org-4GBLI75H.js} +86 -86
- package/dist/cli/{org-JVLYTU24.mjs → org-H24LOZAC.mjs} +6 -6
- package/dist/cli/{pages-VELKZKBL.mjs → pages-BKM2D6BV.mjs} +6 -6
- package/dist/cli/{pages-YMM4KBW5.js → pages-WWVLYB5K.js} +18 -18
- package/dist/cli/{play-MIY6BYRB.mjs → play-M3CSYH3A.mjs} +18 -18
- package/dist/cli/{play-J7DEBHI7.js → play-TXHKCG6B.js} +317 -317
- package/dist/cli/{providers-2H3W3W7G.mjs → providers-EW5WTMTX.mjs} +6 -6
- package/dist/cli/{providers-TOUB7Y2A.js → providers-XL4SNFHU.js} +9 -9
- package/dist/cli/{quickstart-LHY2LN3P.js → quickstart-AFQ5MCDL.js} +6 -6
- package/dist/cli/{quickstart-GKAS5265.mjs → quickstart-SZSLS553.mjs} +4 -4
- package/dist/cli/{run-QCAVDPE5.js → run-MOFHGYSN.js} +41 -41
- package/dist/cli/{run-KYGNOWYD.mjs → run-TWXFNH6U.mjs} +23 -23
- package/dist/cli/{search-YPGAIFDX.mjs → search-2SW4V4IR.mjs} +8 -8
- package/dist/cli/search-V2AGWRLO.js +33 -0
- package/dist/cli/{search-output-ASELNQ2U.js → search-output-CJGRPJYD.js} +6 -6
- package/dist/cli/{search-output-OOC3VK4T.mjs → search-output-I6DNYXNT.mjs} +4 -4
- package/dist/cli/{secrets-VJ4XYSMZ.mjs → secrets-4XXLR6QO.mjs} +6 -6
- package/dist/cli/{secrets-KX3TQB4R.js → secrets-SD43HSLX.js} +15 -15
- package/dist/cli/{sessions-KUN7H7E5.mjs → sessions-7G32HW5R.mjs} +6 -6
- package/dist/cli/sessions-FIRDFPIZ.js +22 -0
- package/dist/cli/{settings-JKFYZ2IT.mjs → settings-HSYRY2L5.mjs} +13 -13
- package/dist/cli/{settings-5NIF4BU7.js → settings-SYEBDDDJ.js} +86 -86
- package/dist/cli/{setup-MYV3IHPS.js → setup-VTWCVCTK.js} +50 -50
- package/dist/cli/{setup-5AX3TN6G.mjs → setup-XZVBPKZK.mjs} +10 -10
- package/dist/cli/{skills-JLS4CINQ.mjs → skills-OMPEUMRT.mjs} +8 -8
- package/dist/cli/skills-RUY7CION.js +37 -0
- package/dist/cli/tools-KLIW7G6T.js +57 -0
- package/dist/cli/{tools-VBYKD3MJ.mjs → tools-UEDNJI4G.mjs} +17 -17
- package/dist/cli/{update-QWAIVJRI.mjs → update-4YVCUSSI.mjs} +10 -10
- package/dist/cli/update-FDUZRKKU.js +35 -0
- package/dist/cli/{views-TBWGZAVZ.mjs → views-4FP4AJQ2.mjs} +6 -6
- package/dist/cli/{views-ZW56JZB5.js → views-ZCCSKWMP.js} +18 -18
- package/dist/cli/{workflow-X7UQPJMQ.mjs → workflow-A2D5FALP.mjs} +7 -7
- package/dist/cli/{workflow-EKSZST6M.js → workflow-SM4OD4VJ.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +105 -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/package.json +1 -1
- package/dist/cli/auth-C7BBYIQD.js +0 -43
- package/dist/cli/describe-MNJVJHRE.js +0 -50
- package/dist/cli/git-MDOHEW5J.js +0 -25
- package/dist/cli/search-G67CEHR7.js +0 -33
- package/dist/cli/sessions-QILPX4XQ.js +0 -22
- package/dist/cli/skills-NG32XTZI.js +0 -37
- package/dist/cli/tools-OZG3V77R.js +0 -57
- package/dist/cli/update-YL5WVSKU.js +0 -35
|
@@ -44,13 +44,35 @@ export function runWithAbsurdSchedulerQuerySignal<T>(
|
|
|
44
44
|
return absurdSchedulerQuerySignal.run(signal, operation);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/** One `absurd.claim_task` call made by the engine's claim loop. */
|
|
48
|
+
export type AbsurdClaimQueryTiming = {
|
|
49
|
+
/** From the call until the pool handed over a client. */
|
|
50
|
+
poolWaitMs: number;
|
|
51
|
+
/** From then until the claim returned, including any pool retry. */
|
|
52
|
+
queryMs: number;
|
|
53
|
+
totalMs: number;
|
|
54
|
+
taskIds: string[];
|
|
55
|
+
/** `performance.now()` when the claim returned. */
|
|
56
|
+
returnedAt: number;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** Observes the engine's scheduler queries; measurement only. */
|
|
60
|
+
export type AbsurdSchedulerQueryObserver = {
|
|
61
|
+
onClaimTask(timing: AbsurdClaimQueryTiming): void;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
// The vendored engine's claim statement (`Absurd.claimTasks`).
|
|
65
|
+
const ABSURD_CLAIM_TASK_SQL = 'absurd.claim_task(';
|
|
66
|
+
|
|
47
67
|
/**
|
|
48
68
|
* Builds an SDK `Queryable` backed by the hardened runtime scheduler pool.
|
|
49
69
|
* Every query runs on a freshly checked-out pooled client and releases it,
|
|
50
|
-
* inheriting the pool's backpressure/breaker/retry guarantees.
|
|
70
|
+
* inheriting the pool's backpressure/breaker/retry guarantees. An observer
|
|
71
|
+
* is told the timing of each claim query.
|
|
51
72
|
*/
|
|
52
73
|
export function absurdQueryableForRuntimeScheduler(
|
|
53
74
|
poolOptions: RuntimeSchedulerPoolOptions,
|
|
75
|
+
observer?: AbsurdSchedulerQueryObserver,
|
|
54
76
|
): Queryable {
|
|
55
77
|
return {
|
|
56
78
|
query: async <Row = Record<string, unknown>>(
|
|
@@ -58,18 +80,38 @@ export function absurdQueryableForRuntimeScheduler(
|
|
|
58
80
|
params?: unknown[],
|
|
59
81
|
): Promise<QueryResult<Row>> => {
|
|
60
82
|
const signal = absurdSchedulerQuerySignal.getStore();
|
|
61
|
-
|
|
83
|
+
const timed =
|
|
84
|
+
observer !== undefined && sql.includes(ABSURD_CLAIM_TASK_SQL);
|
|
85
|
+
const startedAt = timed ? performance.now() : 0;
|
|
86
|
+
let clientAt: number | undefined;
|
|
87
|
+
const result = await withRuntimeSchedulerClient(
|
|
62
88
|
poolOptions,
|
|
63
89
|
async (client) => {
|
|
64
|
-
|
|
90
|
+
if (timed) clientAt ??= performance.now();
|
|
91
|
+
const queried = await client.query<Row & Record<string, unknown>>(
|
|
65
92
|
sql,
|
|
66
93
|
params,
|
|
67
94
|
);
|
|
68
|
-
return { rows:
|
|
95
|
+
return { rows: queried.rows as Row[] };
|
|
69
96
|
},
|
|
70
97
|
undefined,
|
|
71
98
|
{ signal },
|
|
72
99
|
);
|
|
100
|
+
if (timed) {
|
|
101
|
+
const returnedAt = performance.now();
|
|
102
|
+
const queryStartedAt = clientAt ?? returnedAt;
|
|
103
|
+
observer.onClaimTask({
|
|
104
|
+
poolWaitMs: queryStartedAt - startedAt,
|
|
105
|
+
queryMs: returnedAt - queryStartedAt,
|
|
106
|
+
totalMs: returnedAt - startedAt,
|
|
107
|
+
taskIds: result.rows.flatMap((row) => {
|
|
108
|
+
const taskId = (row as { task_id?: unknown }).task_id;
|
|
109
|
+
return typeof taskId === 'string' ? [taskId] : [];
|
|
110
|
+
}),
|
|
111
|
+
returnedAt,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return result;
|
|
73
115
|
},
|
|
74
116
|
};
|
|
75
117
|
}
|
|
@@ -80,10 +122,11 @@ export function absurdQueryableForRuntimeScheduler(
|
|
|
80
122
|
export function createAbsurdForRuntimeScheduler(
|
|
81
123
|
poolOptions: RuntimeSchedulerPoolOptions,
|
|
82
124
|
options: Omit<AbsurdOptions, 'db'> = {},
|
|
125
|
+
observer?: AbsurdSchedulerQueryObserver,
|
|
83
126
|
): Absurd {
|
|
84
127
|
return new Absurd({
|
|
85
128
|
...options,
|
|
86
|
-
db: absurdQueryableForRuntimeScheduler(poolOptions),
|
|
129
|
+
db: absurdQueryableForRuntimeScheduler(poolOptions, observer),
|
|
87
130
|
});
|
|
88
131
|
}
|
|
89
132
|
|