@kky42/pievo-server 4.1.0 → 5.0.0
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/{MarkdownView-BuFKr9Jg.js → MarkdownView-T28pBEgh.js} +1 -1
- package/.output/public/assets/{actionUi-BZrLpgHT.js → actionUi-CY207nNM.js} +1 -1
- package/.output/public/assets/app-Cye1TgwS.css +2 -0
- package/.output/public/assets/{index-D0FIKiiW.js → index-BxXrF3gW.js} +3 -3
- package/.output/public/assets/loops._loopId-DuSEcu38.js +2 -0
- package/.output/public/assets/loops._loopId_.runs._runId-vjQaPXEe.js +3 -0
- package/.output/public/assets/{preload-helper-BSxGu4d0.js → preload-helper-B7p1iHUP.js} +2 -2
- package/.output/public/assets/routes-BUMEAWuS.js +1 -0
- package/.output/public/assets/{routes-BIOJZsig.js → routes-BrqOpUEi.js} +1 -1
- package/.output/server/_ssr/{MachinesModal-CLBZxZkq.mjs → MachinesModal-CB8rpDG2.mjs} +60 -29
- package/.output/server/_ssr/{MarkdownView-D1J7ImYF.mjs → MarkdownView-BOe75tli.mjs} +3 -6
- package/.output/server/_ssr/{actionUi-DE-Pb2tv.mjs → actionUi-CPYgZIr7.mjs} +57 -61
- package/.output/server/_ssr/artifactFiles-DLfSRhrV.mjs +67 -0
- package/.output/server/_ssr/{artifactKind-a2oxT2wQ.mjs → artifactKind-C0oXLA23.mjs} +2 -7
- package/.output/server/_ssr/{boot-DmpKtb0A.mjs → boot-jtVCf_pN.mjs} +239 -289
- package/.output/server/_ssr/{lifecycleUi-DEjM8Etm.mjs → lifecycleUi-Bd7_sthp.mjs} +8 -15
- package/.output/server/_ssr/{loopApi-DK1lQPrx.mjs → loopApi-0nR35Kh2.mjs} +12 -18
- package/.output/server/_ssr/{loopProjection-DdFivf7-.mjs → loopProjection-ZNfSmA5e.mjs} +3 -2
- package/.output/server/_ssr/{loops._loopId-DVCvGSEc.mjs → loops._loopId-CcJ3rxCU.mjs} +18 -89
- package/.output/server/_ssr/loops._loopId_.runs._runId-DFlrV3dJ.mjs +11 -0
- package/.output/server/_ssr/{loops._loopId_.runs._runId-BXbTfLlC.mjs → loops._loopId_.runs._runId-XkGF7HKo.mjs} +28 -19
- package/.output/server/_ssr/{machineFns-DLRHgDdS.mjs → machineFns-D-97a_hz.mjs} +6 -20
- package/.output/server/_ssr/{router-BhHsTGqu.mjs → router-CZ9CFWS2.mjs} +22 -31
- package/.output/server/_ssr/{routes-CCallyCT.mjs → routes-BBmuVs6n.mjs} +2 -2
- package/.output/server/_ssr/{routes-ngpX7h8D.mjs → routes-JxTh5mbj.mjs} +2 -2
- package/.output/server/_ssr/{routes-CL2Kef-Q.mjs → routes-fHRtSpkH.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +22 -22
- package/.output/server/{_tanstack-start-manifest_v-BPiJ4yWT.mjs → _tanstack-start-manifest_v-C9JsxlwC.mjs} +8 -8
- package/.output/server/drizzle/0002_run_attention.sql +1 -0
- package/.output/server/drizzle/0003_run_status_ok.sql +13 -0
- package/.output/server/drizzle/meta/_journal.json +14 -0
- package/.output/server/index.mjs +49 -49
- package/drizzle/0002_run_attention.sql +1 -0
- package/drizzle/0003_run_status_ok.sql +13 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +1 -1
- package/.output/public/assets/app-x1CeeY7N.css +0 -2
- package/.output/public/assets/loops._loopId-DTkIz4C0.js +0 -2
- package/.output/public/assets/loops._loopId_.runs._runId-CsV2Ih4Z.js +0 -3
- package/.output/public/assets/routes-m4Z90DTR.js +0 -1
- package/.output/server/_ssr/artifactFiles-B0NPRDOR.mjs +0 -52
- package/.output/server/_ssr/loops._loopId_.runs._runId-Dr6E-FA5.mjs +0 -16
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { D as listArtifacts, b as getArtifactFile, c as getLoopFiles } from "./boot-DmpKtb0A.mjs";
|
|
2
|
-
import { n as toArtifactSummary } from "./loopProjection-DdFivf7-.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/artifactFiles-B0NPRDOR.js
|
|
4
|
-
/**
|
|
5
|
-
* Server-side reads over a loop's current files (MEMORY.md + artifacts). Pure helpers
|
|
6
|
-
* (no request/session context) so they're shared by the lazy server fns
|
|
7
|
-
* (`getArtifacts` / `getArtifact` in loopApi) AND the download route, and are
|
|
8
|
-
* directly unit-testable against an injected blob store.
|
|
9
|
-
*
|
|
10
|
-
* The bytes live in the gateway's local BlobStore; here we only read them — never write — so the feature is strictly read-only and
|
|
11
|
-
* the server's zero-exec invariant holds (it decodes text, never interprets it).
|
|
12
|
-
*/
|
|
13
|
-
async function listLoopArtifacts(loopId) {
|
|
14
|
-
return (await listArtifacts(loopId)).map(toArtifactSummary);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* One file's content for inline display: decoded text for a text file, or a
|
|
18
|
-
* binary/oversize marker (the UI then offers the download route). Returns an
|
|
19
|
-
* error marker for an unknown/tombstoned name or a row whose blob bytes are
|
|
20
|
-
* absent — never throws.
|
|
21
|
-
*/
|
|
22
|
-
async function readLoopArtifact(loopId, rawPath) {
|
|
23
|
-
const row = await getArtifactFile(loopId, rawPath);
|
|
24
|
-
if (!row || row.deleted) return { error: "file not found" };
|
|
25
|
-
if (row.binary || row.oversize) return {
|
|
26
|
-
binary: true,
|
|
27
|
-
size: row.size ?? null,
|
|
28
|
-
oversize: row.oversize
|
|
29
|
-
};
|
|
30
|
-
if (!row.hash) return { error: "file has no stored version" };
|
|
31
|
-
const bytes = await (await getLoopFiles()).readBlob(row.hash);
|
|
32
|
-
if (!bytes) return { error: "file not found" };
|
|
33
|
-
return { text: bytes.toString("utf8") };
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resolve a loop file name to its stored bytes for the download route. Names are
|
|
37
|
-
* matched exactly against stored rows; tombstoned/absent → 404. The bytes stream straight from the BlobStore.
|
|
38
|
-
*/
|
|
39
|
-
async function readLoopArtifactBytes(loopId, rawPath) {
|
|
40
|
-
const row = await getArtifactFile(loopId, rawPath);
|
|
41
|
-
if (!row || row.deleted || !row.hash) return { status: 404 };
|
|
42
|
-
const bytes = await (await getLoopFiles()).readBlob(row.hash);
|
|
43
|
-
if (!bytes) return { status: 404 };
|
|
44
|
-
return {
|
|
45
|
-
status: 200,
|
|
46
|
-
bytes,
|
|
47
|
-
binary: row.binary,
|
|
48
|
-
filename: rawPath
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { listLoopArtifacts, readLoopArtifact, readLoopArtifactBytes };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { c as createFileRoute, s as lazyRouteComponent } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/loops._loopId_.runs._runId-Dr6E-FA5.js
|
|
3
|
-
var $$splitComponentImporter = () => import("./loops._loopId_.runs._runId-BXbTfLlC.mjs");
|
|
4
|
-
/**
|
|
5
|
-
* Run detail PAGE — `/loops/$loopId/runs/$runId`. A standalone page (the trailing
|
|
6
|
-
* `_` on the `$loopId` segment opts it out of the loop page's component so the run
|
|
7
|
-
* gets its own full surface, deep-linkable + browser-back friendly) rather than a
|
|
8
|
-
* modal or an inline panel. It resolves the run from the loop's detail payload
|
|
9
|
-
* (reusing getLoopDetail) and the existing loop-file diff.
|
|
10
|
-
*/
|
|
11
|
-
var Route = createFileRoute("/loops/$loopId_/runs/$runId")({
|
|
12
|
-
ssr: false,
|
|
13
|
-
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Route as t };
|