@kky42/pievo-server 2.2.0 → 2.4.1
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/.output/nitro.json +1 -1
- package/.output/public/assets/MachinesModal-CEddj7la.js +1 -0
- package/.output/public/assets/SignIn-BdkKWOSs.js +1 -0
- package/.output/public/assets/actionUi-BYBeYy7U.js +1 -0
- package/.output/public/assets/app-BAgHQVvr.css +2 -0
- package/.output/public/assets/index-BZLqD3JI.js +12 -0
- package/.output/public/assets/invite._token-BCLgmTO7.js +1 -0
- package/.output/public/assets/invite._token-ZnVQqqq4.js +1 -0
- package/.output/public/assets/lifecycleUi-C7dwHtbw.js +1 -0
- package/.output/public/assets/loops._loopId-X8PSlgdB.js +67 -0
- package/.output/public/assets/loops._loopId_.runs._runId-CA0-q1y5.js +3 -0
- package/.output/public/assets/preload-helper-CUIO87nJ.js +5 -0
- package/.output/public/assets/routes-BjKcDy6D.js +1 -0
- package/.output/public/assets/routes-bfMcArTT.js +1 -0
- package/.output/public/assets/t._teamId-B75J8h0x.js +1 -0
- package/.output/public/assets/t._teamId-D7WVPMDr.js +1 -0
- package/.output/public/assets/ui-DGOT8AoZ.js +1 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +4130 -4130
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/drizzle-orm+postgres.mjs +28 -1
- package/.output/server/_ssr/DashboardView-D_hKsCsv.mjs +1098 -0
- package/.output/server/_ssr/{notifyFns-DXMbgYu2.mjs → MachinesModal-DZ_9ErAU.mjs} +57 -35
- package/.output/server/_ssr/{SignIn-C4fSJl_j.mjs → SignIn-DjSrg0nO.mjs} +10 -24
- package/.output/server/_ssr/SocialLinks-BTjsnVOm.mjs +1051 -0
- package/.output/server/_ssr/{actionUi-BKF6xI3d.mjs → actionUi-D15R8L7R.mjs} +3 -3
- package/.output/server/_ssr/{artifactFiles-C8PQKN6V.mjs → artifactFiles-CV3OXxRD.mjs} +7 -8
- package/.output/server/_ssr/{artifactKind-BW0isV8L.mjs → artifactKind-ByzVa7fg.mjs} +27 -2
- package/.output/server/_ssr/artifacts-BhQvaGjF.mjs +2 -0
- package/.output/server/_ssr/{auth-Sie6sQHF.mjs → auth-CPCDf6Wr.mjs} +16 -19
- package/.output/server/_ssr/{boot-akwC2sQg.mjs → boot-BbWxaF-z.mjs} +1359 -3843
- package/.output/server/_ssr/boot-COHf8Gv3.mjs +2 -0
- package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-CLY8cORt.mjs → bun-sqlite-dialect-BW9W1_Ps-8MIh9jN1.mjs} +2 -2
- package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-CRsXQNRe.mjs → d1-sqlite-dialect-BLC8LXE6-CcMQ01_d.mjs} +2 -2
- package/.output/server/_ssr/db-dw61xIt1.mjs +2 -0
- package/.output/server/_ssr/{dist-Cc_x6bBb.mjs → dist-AxCsRawm.mjs} +2 -2
- package/.output/server/_ssr/{factory-CDwHL_zY.mjs → factory-S7MaMVC2.mjs} +2 -2
- package/.output/server/_ssr/{invite._token-BlbVjz-o.mjs → invite._token-B1UgMbNQ.mjs} +3 -3
- package/.output/server/_ssr/{invite._token-BE_QUAVb.mjs → invite._token-BliJIGk4.mjs} +4 -5
- package/.output/server/_ssr/{invite._token-C7GjrJxr.mjs → invite._token-D296YVGd.mjs} +7 -7
- package/.output/server/_ssr/{kysely-adapter-zflsyYBA.mjs → kysely-adapter-DUdpqcCJ.mjs} +1 -1
- package/.output/server/_ssr/{lifecycleUi-Djb44Aj3.mjs → lifecycleUi-Dad3hvhm.mjs} +12 -11
- package/.output/server/_ssr/logger-DdUWuMdh.mjs +2 -0
- package/.output/server/_ssr/loopApi-Dy8ztANM.mjs +389 -0
- package/.output/server/_ssr/loopProjection-BZ1_IYCr.mjs +110 -0
- package/.output/server/_ssr/loops._loopId-CKsAnxMl.mjs +1255 -0
- package/.output/server/_ssr/{loops._loopId_.runs._runId-rBHW41dx.mjs → loops._loopId_.runs._runId-DG405pQs.mjs} +29 -74
- package/.output/server/_ssr/{loops._loopId_.runs._runId-Dk1QY49p.mjs → loops._loopId_.runs._runId-a_SyY8rX.mjs} +4 -5
- package/.output/server/_ssr/{machineFns-CoqLRLRh.mjs → machineFns-BSaE7K88.mjs} +3 -5
- package/.output/server/_ssr/{node-sqlite-dialect-dmrazfbM.mjs → node-sqlite-dialect-rWwVyt2J.mjs} +2 -2
- package/.output/server/_ssr/router-lMkobh5r.mjs +618 -0
- package/.output/server/_ssr/{routes-DebVUmCS.mjs → routes-CRHc9cLG.mjs} +6 -10
- package/.output/server/_ssr/{routes-Bx0bRxt9.mjs → routes-DNCZrs8z.mjs} +3 -3
- package/.output/server/_ssr/{routes-dQCBLTxY.mjs → routes-ufPbrGHs.mjs} +6 -6
- package/.output/server/_ssr/runDiff-CrZzjokj.mjs +2 -0
- package/.output/server/_ssr/ssr.mjs +65 -97
- package/.output/server/_ssr/store-CirPHuib.mjs +2 -0
- package/.output/server/_ssr/{t._teamId-BqOUF-0J.mjs → t._teamId-BoBoYEHL.mjs} +7 -7
- package/.output/server/_ssr/{t._teamId-D9nCEa2h.mjs → t._teamId-DcWOYjPf.mjs} +4 -4
- package/.output/server/_ssr/{t._teamId-BzWy4Ft2.mjs → t._teamId-QD2nN0wn.mjs} +7 -11
- package/.output/server/_ssr/{teamFns-BcnGMC-g.mjs → teamFns-BsmconJ1.mjs} +4 -4
- package/.output/server/_ssr/{teamFns-bm82twd5.mjs → teamFns-DcoVuWyH.mjs} +2 -2
- package/.output/server/_ssr/tokens-XngoyCU8.mjs +2 -0
- package/.output/server/_ssr/{ui-B6mE5-5v.mjs → ui-DmFKW2H_.mjs} +33 -47
- package/.output/server/{_tanstack-start-manifest_v-COr27bxK.mjs → _tanstack-start-manifest_v-Xd5bMpJe.mjs} +25 -33
- package/.output/server/drizzle/{0000_round_marauders.sql → 0000_baseline.sql} +102 -44
- package/.output/server/drizzle/meta/_journal.json +3 -115
- package/.output/server/index.mjs +82 -131
- package/drizzle/{0000_round_marauders.sql → 0000_baseline.sql} +102 -44
- package/drizzle/meta/_journal.json +3 -115
- package/package.json +2 -10
- package/scripts/pievo-server.mjs +3 -1
- package/scripts/server-cli-lib.mjs +23 -16
- package/.output/public/assets/CodeField-dOzyFQNH.js +0 -34
- package/.output/public/assets/LoopView-BTXoqfzM.js +0 -59
- package/.output/public/assets/Modal-Ba36NAkv.js +0 -1
- package/.output/public/assets/SignIn-Cc1zxGnA.js +0 -1
- package/.output/public/assets/actionUi-DDDfD0WX.js +0 -1
- package/.output/public/assets/app-D1cij_NJ.css +0 -2
- package/.output/public/assets/artifactView-Cd5wWPil.js +0 -66
- package/.output/public/assets/index-BGM1XGY0.js +0 -12
- package/.output/public/assets/invite._token-C3t4JfAY.js +0 -1
- package/.output/public/assets/invite._token-CUCNcN89.js +0 -1
- package/.output/public/assets/jsx-runtime-BseJUIpC.js +0 -1
- package/.output/public/assets/lifecycleUi-CMFw5Nlj.js +0 -1
- package/.output/public/assets/loopApi-CT1mMhlb.js +0 -3
- package/.output/public/assets/loops._loopId-CrSSvSVl.js +0 -4
- package/.output/public/assets/loops._loopId_.runs._runId-B5Qacloe.js +0 -3
- package/.output/public/assets/notifyFns-CYiZT7CK.js +0 -1
- package/.output/public/assets/preload-helper-DFkkpP6W.js +0 -3
- package/.output/public/assets/routes-B6Kg4mFC.js +0 -1
- package/.output/public/assets/routes-DsdcURfk.js +0 -1
- package/.output/public/assets/t._teamId-C9uEyAh_.js +0 -1
- package/.output/public/assets/t._teamId-Cmm4xdKj.js +0 -1
- package/.output/public/assets/ui-Gb1413-F.js +0 -1
- package/.output/public/assets/useRouter-DsjH8G0p.js +0 -1
- package/.output/server/_libs/@codemirror/autocomplete+[...].mjs +0 -19713
- package/.output/server/_libs/@codemirror/lang-css+[...].mjs +0 -2636
- package/.output/server/_libs/@codemirror/lang-html+[...].mjs +0 -2247
- package/.output/server/_libs/@codemirror/lang-json+[...].mjs +0 -79
- package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +0 -1736
- package/.output/server/_libs/@uiw/codemirror-extensions-basic-setup+[...].mjs +0 -76
- package/.output/server/_libs/babel__runtime.mjs +0 -30
- package/.output/server/_libs/clsx.mjs +0 -16
- package/.output/server/_libs/codemirror__commands.mjs +0 -1725
- package/.output/server/_libs/codemirror__lint.mjs +0 -565
- package/.output/server/_libs/codemirror__search.mjs +0 -1138
- package/.output/server/_libs/codemirror__theme-one-dark.mjs +0 -161
- package/.output/server/_libs/d3-array.mjs +0 -231
- package/.output/server/_libs/d3-color.mjs +0 -330
- package/.output/server/_libs/d3-format.mjs +0 -252
- package/.output/server/_libs/d3-interpolate.mjs +0 -163
- package/.output/server/_libs/d3-path.mjs +0 -77
- package/.output/server/_libs/d3-scale+[...].mjs +0 -1907
- package/.output/server/_libs/d3-shape.mjs +0 -818
- package/.output/server/_libs/decimal.js-light.mjs +0 -884
- package/.output/server/_libs/dom-serializer+[...].mjs +0 -708
- package/.output/server/_libs/domhandler.mjs +0 -461
- package/.output/server/_libs/domutils.mjs +0 -868
- package/.output/server/_libs/es-toolkit.mjs +0 -1737
- package/.output/server/_libs/eventemitter3.mjs +0 -236
- package/.output/server/_libs/html-dom-parser+htmlparser2.mjs +0 -1560
- package/.output/server/_libs/html-react-parser+[...].mjs +0 -1360
- package/.output/server/_libs/react-is.mjs +0 -48
- package/.output/server/_libs/react-redux+[...].mjs +0 -205
- package/.output/server/_libs/recharts+victory-vendor.mjs +0 -17303
- package/.output/server/_libs/uiw__codemirror-themes.mjs +0 -32
- package/.output/server/_libs/uiw__react-codemirror.mjs +0 -354
- package/.output/server/_ssr/CodeField-B7oOmmwH.mjs +0 -143
- package/.output/server/_ssr/DashboardView-0yoKh8Em.mjs +0 -2733
- package/.output/server/_ssr/LoopPlaybook-uq_sFfgU.mjs +0 -2105
- package/.output/server/_ssr/LoopView-BlOY-jfJ.mjs +0 -1300
- package/.output/server/_ssr/Modal-Bc_5TYGr.mjs +0 -49
- package/.output/server/_ssr/adapters-RReIIwAx.mjs +0 -134
- package/.output/server/_ssr/artifactView-iuPsp5aa.mjs +0 -304
- package/.output/server/_ssr/artifacts-B_F6vSih.mjs +0 -2
- package/.output/server/_ssr/boot-pVS0wjd0.mjs +0 -2
- package/.output/server/_ssr/db-Bdm9PFZF.mjs +0 -2
- package/.output/server/_ssr/logger-tfiliKTi.mjs +0 -2
- package/.output/server/_ssr/loopApi-8_KgBapr.mjs +0 -109
- package/.output/server/_ssr/loopApi-JzmqWENY.mjs +0 -564
- package/.output/server/_ssr/loops._loopId-D-aCCtrX.mjs +0 -1477
- package/.output/server/_ssr/loops._loopId-DZ-FjscA.mjs +0 -30
- package/.output/server/_ssr/notifyFns-CH7-bcmd.mjs +0 -118
- package/.output/server/_ssr/router-BFPzSTFx.mjs +0 -679
- package/.output/server/_ssr/runDiff-qA1C8R_L.mjs +0 -2
- package/.output/server/_ssr/store-DWUdkIq2.mjs +0 -2
- package/.output/server/_ssr/tokens-DG8z1GIg.mjs +0 -2
- package/.output/server/drizzle/0001_naive_silver_fox.sql +0 -25
- package/.output/server/drizzle/0002_funny_sage.sql +0 -12
- package/.output/server/drizzle/0003_optimal_slapstick.sql +0 -102
- package/.output/server/drizzle/0004_remove_grok_agent.sql +0 -5
- package/.output/server/drizzle/0005_heavy_gauntlet.sql +0 -8
- package/.output/server/drizzle/0006_tranquil_sharon_carter.sql +0 -1
- package/.output/server/drizzle/0007_faulty_starbolt.sql +0 -30
- package/.output/server/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
- package/.output/server/drizzle/0009_ordinary_electro.sql +0 -1
- package/.output/server/drizzle/0010_workable_rage.sql +0 -14
- package/.output/server/drizzle/0011_steep_marvel_zombies.sql +0 -3
- package/.output/server/drizzle/0012_blocked_run_status.sql +0 -12
- package/.output/server/drizzle/0013_drop_run_outcome.sql +0 -2
- package/.output/server/drizzle/0014_luxuriant_scrambler.sql +0 -5
- package/.output/server/drizzle/0015_run_history_foundation.sql +0 -43
- package/.output/server/drizzle/0016_plural_machine_runs.sql +0 -4
- package/.output/server/drizzle/meta/0000_snapshot.json +0 -1333
- package/.output/server/drizzle/meta/0001_snapshot.json +0 -1498
- package/.output/server/drizzle/meta/0002_snapshot.json +0 -1576
- package/.output/server/drizzle/meta/0003_snapshot.json +0 -1666
- package/.output/server/drizzle/meta/0005_snapshot.json +0 -1666
- package/.output/server/drizzle/meta/0006_snapshot.json +0 -1672
- package/.output/server/drizzle/meta/0007_snapshot.json +0 -1787
- package/.output/server/drizzle/meta/0009_snapshot.json +0 -1793
- package/.output/server/drizzle/meta/0010_snapshot.json +0 -1891
- package/.output/server/drizzle/meta/0011_snapshot.json +0 -1872
- package/drizzle/0001_naive_silver_fox.sql +0 -25
- package/drizzle/0002_funny_sage.sql +0 -12
- package/drizzle/0003_optimal_slapstick.sql +0 -102
- package/drizzle/0004_remove_grok_agent.sql +0 -5
- package/drizzle/0005_heavy_gauntlet.sql +0 -8
- package/drizzle/0006_tranquil_sharon_carter.sql +0 -1
- package/drizzle/0007_faulty_starbolt.sql +0 -30
- package/drizzle/0008_durable_lifecycle_evidence.sql +0 -15
- package/drizzle/0009_ordinary_electro.sql +0 -1
- package/drizzle/0010_workable_rage.sql +0 -14
- package/drizzle/0011_steep_marvel_zombies.sql +0 -3
- package/drizzle/0012_blocked_run_status.sql +0 -12
- package/drizzle/0013_drop_run_outcome.sql +0 -2
- package/drizzle/0014_luxuriant_scrambler.sql +0 -5
- package/drizzle/0015_run_history_foundation.sql +0 -43
- package/drizzle/0016_plural_machine_runs.sql +0 -4
- package/drizzle/meta/0000_snapshot.json +0 -1333
- package/drizzle/meta/0001_snapshot.json +0 -1498
- package/drizzle/meta/0002_snapshot.json +0 -1576
- package/drizzle/meta/0003_snapshot.json +0 -1666
- package/drizzle/meta/0005_snapshot.json +0 -1666
- package/drizzle/meta/0006_snapshot.json +0 -1672
- package/drizzle/meta/0007_snapshot.json +0 -1787
- package/drizzle/meta/0009_snapshot.json +0 -1793
- package/drizzle/meta/0010_snapshot.json +0 -1891
- package/drizzle/meta/0011_snapshot.json +0 -1872
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { o as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import { g as
|
|
3
|
-
import {
|
|
2
|
+
import { g as require_react, h as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
+
import { T as sectionHeadCls, _ as fnum, a as btn, g as fmt, h as dur, i as StatusPill, n as Loading, o as btnDanger, r as Pill, v as humanBytes, w as runPulseStyle } from "./ui-DmFKW2H_.mjs";
|
|
4
|
+
import { r as LoadErrorCard } from "./actionUi-D15R8L7R.mjs";
|
|
4
5
|
import { u as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { t as Route } from "./loops._loopId_.runs._runId-Dk1QY49p.mjs";
|
|
10
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/loops._loopId_.runs._runId-rBHW41dx.js
|
|
6
|
+
import { D as useSession, E as stopRun, h as getRunDiff, m as getLoopDetail, v as loadOlderRuns } from "./SocialLinks-BTjsnVOm.mjs";
|
|
7
|
+
import { t as SignIn } from "./SignIn-DjSrg0nO.mjs";
|
|
8
|
+
import { t as Route } from "./loops._loopId_.runs._runId-a_SyY8rX.mjs";
|
|
9
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/loops._loopId_.runs._runId-DG405pQs.js
|
|
11
10
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
12
11
|
var import_jsx_runtime = require_jsx_runtime();
|
|
13
12
|
/**
|
|
@@ -258,12 +257,12 @@ function visibleTokenUsage(usage) {
|
|
|
258
257
|
if (!usage || usage.inputTokens === void 0 && usage.outputTokens === void 0) return null;
|
|
259
258
|
return (usage.inputTokens ?? 0) + (usage.outputTokens ?? 0);
|
|
260
259
|
}
|
|
261
|
-
/** Per-run artifact diff vs the previous run
|
|
260
|
+
/** Per-run artifact diff vs the previous run, rendered as a colored diff
|
|
262
261
|
* view. Lazy by runId; degrades to a calm fallback for runs with no snapshot. */
|
|
263
262
|
function Changes({ run }) {
|
|
264
263
|
const [data, setData] = (0, import_react.useState)(null);
|
|
265
264
|
(0, import_react.useEffect)(() => {
|
|
266
|
-
if (run.
|
|
265
|
+
if (run.phase === "pending" || run.phase === "running") return;
|
|
267
266
|
let alive = true;
|
|
268
267
|
getRunDiff({ data: { runId: run.id } }).then((d) => alive && setData(d)).catch(() => alive && setData({
|
|
269
268
|
hasSnapshot: false,
|
|
@@ -272,12 +271,8 @@ function Changes({ run }) {
|
|
|
272
271
|
return () => {
|
|
273
272
|
alive = false;
|
|
274
273
|
};
|
|
275
|
-
}, [
|
|
276
|
-
|
|
277
|
-
run.queued,
|
|
278
|
-
run.running
|
|
279
|
-
]);
|
|
280
|
-
if (run.queued || run.running) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
274
|
+
}, [run.id, run.phase]);
|
|
275
|
+
if (run.phase === "pending" || run.phase === "running") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
281
276
|
label: "Changes",
|
|
282
277
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
283
278
|
className: "text-body text-disabled",
|
|
@@ -349,7 +344,7 @@ function SessionId({ id }) {
|
|
|
349
344
|
var MAX_OLDER_PAGES = 64;
|
|
350
345
|
/**
|
|
351
346
|
* Run detail PAGE body — its own route (`/loops/$loopId/runs/$runId`). Resolves
|
|
352
|
-
* the run by id from the loop's detail payload (reusing
|
|
347
|
+
* the run by id from the loop's detail payload (reusing getLoopDetail, no new
|
|
353
348
|
* backend); a run older than that latest window is located by paging backward
|
|
354
349
|
* with the existing `loadOlderRuns` cursor fn. Self-polls while it's in flight.
|
|
355
350
|
*
|
|
@@ -366,7 +361,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
366
361
|
const [err, setErr] = (0, import_react.useState)(null);
|
|
367
362
|
const load = (0, import_react.useCallback)(async () => {
|
|
368
363
|
try {
|
|
369
|
-
setDetail(await
|
|
364
|
+
setDetail(await getLoopDetail({ data: loopId }));
|
|
370
365
|
setErr(null);
|
|
371
366
|
} catch (e) {
|
|
372
367
|
setErr(String(e));
|
|
@@ -374,7 +369,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
374
369
|
}, [loopId]);
|
|
375
370
|
const poll = (0, import_react.useCallback)(async () => {
|
|
376
371
|
try {
|
|
377
|
-
setDetail(await
|
|
372
|
+
setDetail(await getLoopDetail({ data: loopId }));
|
|
378
373
|
} catch {}
|
|
379
374
|
}, [loopId]);
|
|
380
375
|
(0, import_react.useEffect)(() => {
|
|
@@ -424,7 +419,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
424
419
|
loopId,
|
|
425
420
|
runId
|
|
426
421
|
]);
|
|
427
|
-
const running = !!(run
|
|
422
|
+
const running = !!run && (run.phase === "pending" || run.phase === "running" || !!run.reconciliation);
|
|
428
423
|
(0, import_react.useEffect)(() => {
|
|
429
424
|
if (!running) return;
|
|
430
425
|
const t = setInterval(() => void poll(), 3e3);
|
|
@@ -458,8 +453,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
458
453
|
children: "← Back to the loop"
|
|
459
454
|
})]
|
|
460
455
|
});
|
|
461
|
-
const
|
|
462
|
-
const roleChip = run.role || null;
|
|
456
|
+
const loopName = detail.summary.name;
|
|
463
457
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
464
458
|
className: "rounded-card border border-hairline bg-surface px-6 pb-5 pt-[22px] shadow-card",
|
|
465
459
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -470,7 +464,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
470
464
|
className: "flex flex-wrap items-center gap-3",
|
|
471
465
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", {
|
|
472
466
|
className: "text-[26px] font-medium leading-tight tracking-tight text-display",
|
|
473
|
-
children: ["Run · ",
|
|
467
|
+
children: ["Run · ", loopName]
|
|
474
468
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusPill, {
|
|
475
469
|
run,
|
|
476
470
|
colorText: true
|
|
@@ -486,7 +480,6 @@ function RunDetailView({ loopId, runId }) {
|
|
|
486
480
|
className: "text-wire",
|
|
487
481
|
children: "·"
|
|
488
482
|
}),
|
|
489
|
-
roleChip && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, { children: roleChip }),
|
|
490
483
|
run.durationMs != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pill, {
|
|
491
484
|
tone: "ink",
|
|
492
485
|
children: dur(run.durationMs)
|
|
@@ -505,12 +498,12 @@ function RunDetailView({ loopId, runId }) {
|
|
|
505
498
|
params: { loopId },
|
|
506
499
|
className: btn,
|
|
507
500
|
children: "View the whole loop →"
|
|
508
|
-
}), (run.
|
|
501
|
+
}), (run.phase === "pending" || run.phase === "running") && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
509
502
|
type: "button",
|
|
510
503
|
onClick: onStop,
|
|
511
504
|
className: btnDanger,
|
|
512
|
-
disabled:
|
|
513
|
-
title: run.running && detail.machine.daemonProtocol !==
|
|
505
|
+
disabled: run.phase === "running" && detail.machine.daemonProtocol !== 4,
|
|
506
|
+
title: run.phase === "running" && detail.machine.daemonProtocol !== 4 ? "Daemon upgrade required to stop a running process. Run `npm install -g @kky42/pievo@latest`, then `pievo daemon restart`." : void 0,
|
|
514
507
|
children: "Stop run"
|
|
515
508
|
})]
|
|
516
509
|
})]
|
|
@@ -519,13 +512,19 @@ function RunDetailView({ loopId, runId }) {
|
|
|
519
512
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
520
513
|
className: "flex min-w-0 flex-col gap-6",
|
|
521
514
|
children: [
|
|
522
|
-
run.
|
|
515
|
+
run.phase === "pending" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
523
516
|
label: "Activity",
|
|
524
517
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
525
518
|
className: "text-body text-secondary",
|
|
526
519
|
children: "Queued; it starts when this loop is free and the machine polls."
|
|
527
520
|
})
|
|
528
|
-
}) : run.running ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RunningState, { run }) :
|
|
521
|
+
}) : run.phase === "running" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RunningState, { run }) : run.reconciliation ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
522
|
+
label: "Recovery",
|
|
523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
524
|
+
className: "text-body text-secondary",
|
|
525
|
+
children: run.reconciliation === "blocking" ? detail.machine.presence === "online" ? "The machine is online and checking an interrupted run. Queued work starts automatically after recovery." : "Waiting for the machine to reconnect and check an interrupted run. Queued work starts automatically; no action is required." : "This interrupted run no longer blocks queued work. Pievo will still accept its saved report if it arrives."
|
|
526
|
+
})
|
|
527
|
+
}) : null,
|
|
529
528
|
run.reportIncident && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
530
529
|
label: "Terminal report rejected",
|
|
531
530
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -576,43 +575,6 @@ function RunDetailView({ loopId, runId }) {
|
|
|
576
575
|
})
|
|
577
576
|
}),
|
|
578
577
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Changes, { run }),
|
|
579
|
-
run.control && run.control.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
580
|
-
label: "Control actions",
|
|
581
|
-
count: run.control.length,
|
|
582
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", {
|
|
583
|
-
className: "space-y-1.5",
|
|
584
|
-
children: run.control.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
|
|
585
|
-
className: "flex flex-wrap items-baseline gap-x-2 gap-y-0.5 font-mono text-label",
|
|
586
|
-
children: [
|
|
587
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
588
|
-
className: "text-display",
|
|
589
|
-
children: c.command
|
|
590
|
-
}),
|
|
591
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
592
|
-
className: "min-w-0 break-all text-secondary",
|
|
593
|
-
children: JSON.stringify(c.args)
|
|
594
|
-
}),
|
|
595
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
596
|
-
"aria-hidden": true,
|
|
597
|
-
className: "text-wire",
|
|
598
|
-
children: "→"
|
|
599
|
-
}),
|
|
600
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
601
|
-
className: "text-primary",
|
|
602
|
-
children: c.result
|
|
603
|
-
}),
|
|
604
|
-
c.detail && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
605
|
-
className: "text-disabled",
|
|
606
|
-
children: [
|
|
607
|
-
"(",
|
|
608
|
-
c.detail,
|
|
609
|
-
")"
|
|
610
|
-
]
|
|
611
|
-
})
|
|
612
|
-
]
|
|
613
|
-
}, i))
|
|
614
|
-
})
|
|
615
|
-
}),
|
|
616
578
|
run.finalText && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Card, {
|
|
617
579
|
label: "Final output",
|
|
618
580
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -647,13 +609,6 @@ function RunDetailView({ loopId, runId }) {
|
|
|
647
609
|
children: [fnum(tokenUsage), " tokens"]
|
|
648
610
|
})
|
|
649
611
|
}),
|
|
650
|
-
run.metrics != null && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
|
|
651
|
-
k: "Run metrics",
|
|
652
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
653
|
-
className: "block break-all font-mono text-label text-secondary",
|
|
654
|
-
children: JSON.stringify(run.metrics)
|
|
655
|
-
})
|
|
656
|
-
}),
|
|
657
612
|
run.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Field, {
|
|
658
613
|
k: "Error",
|
|
659
614
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -677,7 +632,7 @@ function RunDetailView({ loopId, runId }) {
|
|
|
677
632
|
* `_` on the `$loopId` segment opts it out of the loop page's component so the run
|
|
678
633
|
* gets its own full surface, deep-linkable + browser-back friendly) rather than a
|
|
679
634
|
* modal or an inline panel. It resolves the run from the loop's detail payload
|
|
680
|
-
* (reusing
|
|
635
|
+
* (reusing getLoopDetail) and the existing artifact diff.
|
|
681
636
|
*
|
|
682
637
|
* Auth-gated like the dashboard (`/`) so a logged-out/expired DEEP LINK shows the
|
|
683
638
|
* sign-in CTA instead of a raw `loop not found` error from the blocked fetch.
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { c as createFileRoute, s as lazyRouteComponent } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var $$splitComponentImporter = () => import("./loops._loopId_.runs._runId-rBHW41dx.mjs");
|
|
2
|
+
import { d as getAuthState, i as authClient } from "./SocialLinks-BTjsnVOm.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/loops._loopId_.runs._runId-a_SyY8rX.js
|
|
4
|
+
var $$splitComponentImporter = () => import("./loops._loopId_.runs._runId-DG405pQs.mjs");
|
|
6
5
|
/**
|
|
7
6
|
* Run detail PAGE — `/loops/$loopId/runs/$runId`. A standalone page (the trailing
|
|
8
7
|
* `_` on the `$loopId` segment opts it out of the loop page's component so the run
|
|
9
8
|
* gets its own full surface, deep-linkable + browser-back friendly) rather than a
|
|
10
9
|
* modal or an inline panel. It resolves the run from the loop's detail payload
|
|
11
|
-
* (reusing
|
|
10
|
+
* (reusing getLoopDetail) and the existing artifact diff.
|
|
12
11
|
*
|
|
13
12
|
* Auth-gated like the dashboard (`/`) so a logged-out/expired DEEP LINK shows the
|
|
14
13
|
* sign-in CTA instead of a raw `loop not found` error from the blocked fetch.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ensureServer, At as rememberConnectKey, O as deleteMachine$1, S as createMachine$1, St as mintDeviceToken, W as getMachine, bt as machineIdFromToken, dt as listMachinesForTeam, qt as updateMachine, u as MIN_DAEMON_VERSION, ut as listMachines$1, w as daemonNeedsUpdate, yt as loopsForMachine, zt as sha256 } from "./boot-BbWxaF-z.mjs";
|
|
2
|
+
import { requestScope } from "./auth-CPCDf6Wr.mjs";
|
|
2
3
|
import { n as createServerFn } from "./ssr.mjs";
|
|
3
|
-
import { requestScope } from "./auth-Sie6sQHF.mjs";
|
|
4
4
|
import { t as createServerRpc } from "./createServerRpc-BD8Xn_0_.mjs";
|
|
5
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/machineFns-BSaE7K88.js
|
|
6
6
|
/**
|
|
7
7
|
* Whether a machine is visible/actionable in the request scope. Mirrors
|
|
8
8
|
* listMachines: open mode sees everything; otherwise the requester must own the
|
|
@@ -27,8 +27,6 @@ function machineInScope(m, scope, teamMachineIds) {
|
|
|
27
27
|
function tokenVisibleTo(m, scope) {
|
|
28
28
|
return !scope.enforce || m.userId === scope.userId;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/machineFns-CoqLRLRh.js
|
|
32
30
|
/**
|
|
33
31
|
* Latest published @kky42/pievo version — a cached, fail-silent lookup of the
|
|
34
32
|
* npm dist-tag `latest`, so the web can tell a user their daemon is outdated and
|
package/.output/server/_ssr/{node-sqlite-dialect-dmrazfbM.mjs → node-sqlite-dialect-rWwVyt2J.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as DefaultQueryCompiler, o as CompiledQuery, s as sql$1 } from "./auth-
|
|
1
|
+
import { n as DefaultQueryCompiler, o as CompiledQuery, s as sql$1 } from "./auth-CPCDf6Wr.mjs";
|
|
2
2
|
import { n as DEFAULT_MIGRATION_TABLE, t as DEFAULT_MIGRATION_LOCK_TABLE } from "./kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/node-sqlite-dialect-
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/node-sqlite-dialect-rWwVyt2J.js
|
|
4
4
|
var NodeSqliteAdapter = class {
|
|
5
5
|
get supportsCreateIfNotExists() {
|
|
6
6
|
return true;
|