@kky42/pievo-server 2.4.14 → 4.1.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 +66 -0
- package/.output/public/assets/{actionUi-5PtES4q0.js → actionUi-BZrLpgHT.js} +1 -1
- package/.output/public/assets/app-x1CeeY7N.css +2 -0
- package/.output/public/assets/index-D0FIKiiW.js +10 -0
- package/.output/public/assets/loops._loopId-DTkIz4C0.js +2 -0
- package/.output/public/assets/loops._loopId_.runs._runId-CsV2Ih4Z.js +3 -0
- package/.output/public/assets/preload-helper-BSxGu4d0.js +3 -0
- package/.output/public/assets/{routes-Dm_3J2aV.js → routes-BIOJZsig.js} +1 -1
- package/.output/public/assets/routes-m4Z90DTR.js +1 -0
- package/.output/server/_chunks/ssr-renderer.mjs +1 -1
- package/.output/server/_libs/{drizzle-orm+postgres.mjs → drizzle-orm.mjs} +93 -2218
- package/.output/server/_ssr/{MachinesModal-BaEtzycr.mjs → MachinesModal-CLBZxZkq.mjs} +47 -47
- package/.output/server/_ssr/MarkdownView-D1J7ImYF.mjs +70 -0
- package/.output/server/_ssr/{actionUi-5HOCZnom.mjs → actionUi-DE-Pb2tv.mjs} +1 -2
- package/.output/server/_ssr/artifactFiles-B0NPRDOR.mjs +52 -0
- package/.output/server/_ssr/{artifactKind-DwDr8IYc.mjs → artifactKind-a2oxT2wQ.mjs} +4 -10
- package/.output/server/_ssr/{boot-C472kLwY.mjs → boot-DmpKtb0A.mjs} +2659 -890
- package/.output/server/_ssr/lifecycleUi-DEjM8Etm.mjs +106 -0
- package/.output/server/_ssr/{loopApi-DT751TJA.mjs → loopApi-DK1lQPrx.mjs} +53 -69
- package/.output/server/_ssr/{loopProjection-qaD2I48a.mjs → loopProjection-DdFivf7-.mjs} +6 -24
- package/.output/server/_ssr/{loops._loopId-CXgw2Rz1.mjs → loops._loopId-DVCvGSEc.mjs} +36 -116
- package/.output/server/_ssr/{loops._loopId_.runs._runId-SASSqOfy.mjs → loops._loopId_.runs._runId-BXbTfLlC.mjs} +35 -39
- package/.output/server/_ssr/{loops._loopId_.runs._runId-Dk94Z0Jq.mjs → loops._loopId_.runs._runId-Dr6E-FA5.mjs} +3 -8
- package/.output/server/_ssr/{machineFns-BSrIgn3f.mjs → machineFns-DLRHgDdS.mjs} +13 -50
- package/.output/server/_ssr/networkAccess-CIlK3ION.mjs +30 -0
- package/.output/server/_ssr/router-BhHsTGqu.mjs +355 -0
- package/.output/server/_ssr/routes-CCallyCT.mjs +12 -0
- package/.output/server/_ssr/{routes-Cr-9yDEH.mjs → routes-CL2Kef-Q.mjs} +91 -50
- package/.output/server/_ssr/{routes-DRBS4Zi4.mjs → routes-ngpX7h8D.mjs} +2 -4
- package/.output/server/_ssr/ssr.mjs +25 -34
- package/.output/server/_ssr/start-B5_9Z5W-.mjs +35 -0
- package/.output/server/{_tanstack-start-manifest_v-DxLIQ0cc.mjs → _tanstack-start-manifest_v-BPiJ4yWT.mjs} +9 -15
- package/.output/server/drizzle/0000_baseline.sql +6 -97
- package/.output/server/drizzle/0001_loop_files.sql +9 -0
- package/.output/server/drizzle/meta/_journal.json +3 -17
- package/.output/server/index.mjs +50 -50
- package/drizzle/0000_baseline.sql +6 -97
- package/drizzle/0001_loop_files.sql +9 -0
- package/drizzle/meta/_journal.json +3 -17
- package/package.json +4 -8
- package/scripts/pievo-server.mjs +49 -47
- package/scripts/server-cli-lib.mjs +21 -12
- package/scripts/server-network.mjs +139 -0
- package/.output/public/assets/SignIn-CIFwnZtF.js +0 -1
- package/.output/public/assets/app-DvHMhs7S.css +0 -2
- package/.output/public/assets/index-CRX2pu0W.js +0 -10
- package/.output/public/assets/loops._loopId-BsuV-Rmf.js +0 -67
- package/.output/public/assets/loops._loopId_.runs._runId-DpK_fzmZ.js +0 -3
- package/.output/public/assets/preload-helper-sAZOZb3G.js +0 -5
- package/.output/public/assets/routes-DxF_s3cD.js +0 -1
- package/.output/server/_libs/@aws-crypto/crc32+[...].mjs +0 -419
- package/.output/server/_libs/@aws-sdk/checksums+[...].mjs +0 -10732
- package/.output/server/_libs/@aws-sdk/client-s3+[...].mjs +0 -9475
- package/.output/server/_libs/@aws-sdk/credential-provider-http+[...].mjs +0 -137
- package/.output/server/_libs/@aws-sdk/credential-provider-ini+[...].mjs +0 -440
- package/.output/server/_libs/@aws-sdk/credential-provider-process+[...].mjs +0 -62
- package/.output/server/_libs/@aws-sdk/credential-provider-sso+[...].mjs +0 -818
- package/.output/server/_libs/@aws-sdk/credential-provider-web-identity+[...].mjs +0 -59
- package/.output/server/_libs/@smithy/credential-provider-imds+[...].mjs +0 -342
- package/.output/server/_libs/aws-crypto__crc32c.mjs +0 -314
- package/.output/server/_libs/aws-sdk__nested-clients.mjs +0 -2671
- package/.output/server/_ssr/SignIn-sHQaBQJC.mjs +0 -53
- package/.output/server/_ssr/artifactFiles-DO43wwXA.mjs +0 -60
- package/.output/server/_ssr/artifacts-Cd7Qx3Qp.mjs +0 -2
- package/.output/server/_ssr/auth-0AamrwHo.mjs +0 -38355
- package/.output/server/_ssr/auth-client-lSMb_Idt.mjs +0 -1070
- package/.output/server/_ssr/bun-sqlite-dialect-BW9W1_Ps-DLIXocA0.mjs +0 -162
- package/.output/server/_ssr/core-RrmWoKne.mjs +0 -5
- package/.output/server/_ssr/d1-sqlite-dialect-BLC8LXE6-BoFMIPr_.mjs +0 -112
- package/.output/server/_ssr/db-BzvMQ2kx.mjs +0 -2
- package/.output/server/_ssr/dist-ClzqkwxD.mjs +0 -342
- package/.output/server/_ssr/factory-ixUjZqJn.mjs +0 -6903
- package/.output/server/_ssr/kysely-adapter-DkZbmKgV.mjs +0 -2
- package/.output/server/_ssr/kysely-migration-tables-JkVUjPF_-bPAX9LR_.mjs +0 -19
- package/.output/server/_ssr/logger-DDjsYB2X.mjs +0 -2
- package/.output/server/_ssr/loopTags-CXx5UdGf.mjs +0 -3356
- package/.output/server/_ssr/node-sqlite-dialect-BbUqnnYv.mjs +0 -162
- package/.output/server/_ssr/router-BlLlhfJe.mjs +0 -543
- package/.output/server/_ssr/routes-DTBltabU.mjs +0 -27
- package/.output/server/_ssr/start-4ifArtKx.mjs +0 -4
- package/.output/server/_ssr/store-vDZ9INSa.mjs +0 -2
- package/.output/server/_ssr/tokens-BHiCElYD.mjs +0 -2
- package/.output/server/drizzle/0001_add_pi_agent.sql +0 -9
- package/.output/server/drizzle/0002_remove_teams.sql +0 -15
- package/.output/server/drizzle/0003_add_loop_tags.sql +0 -5
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
- package/drizzle/0001_add_pi_agent.sql +0 -9
- package/drizzle/0002_remove_teams.sql +0 -15
- package/drizzle/0003_add_loop_tags.sql +0 -5
- package/scripts/prestart.mjs +0 -66
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { h as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
-
import { C as signIn, a as PievoLogo, n as GITHUB_URL, r as GitHubIcon } from "./auth-client-lSMb_Idt.mjs";
|
|
3
|
-
import { u as btnPrimary } from "./actionUi-5HOCZnom.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/SignIn-sHQaBQJC.js
|
|
5
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
6
|
-
/**
|
|
7
|
-
* Sign-in CTA — shown by the auth gate when a GitHub OAuth app is configured and
|
|
8
|
-
* the visitor has no session. `callbackURL` returns the user to where they were
|
|
9
|
-
* (the dashboard by default, or the deep-linked loop/run page) after the OAuth
|
|
10
|
-
* round-trip, so a logged-out deep link lands back on the page it was for.
|
|
11
|
-
*
|
|
12
|
-
* This stays intentionally focused on authentication; signed-out product prose
|
|
13
|
-
* belongs to the surrounding route.
|
|
14
|
-
*/
|
|
15
|
-
function SignIn({ callbackURL = "/" }) {
|
|
16
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("main", {
|
|
17
|
-
className: "mx-auto max-w-[1180px] px-8 pb-24",
|
|
18
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
19
|
-
className: "mx-auto mt-32 max-w-sm rounded-card p-6 text-center",
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PievoLogo, { size: 52 }),
|
|
22
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
23
|
-
className: "mt-4 text-2xl font-semibold tracking-tight text-display",
|
|
24
|
-
children: "Pievo"
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
27
|
-
className: "mt-2 text-sm text-secondary",
|
|
28
|
-
children: "Sign in to manage your scheduled agent loops."
|
|
29
|
-
}),
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
31
|
-
className: `${btnPrimary} mt-6`,
|
|
32
|
-
onClick: () => void signIn.social({
|
|
33
|
-
provider: "github",
|
|
34
|
-
callbackURL
|
|
35
|
-
}),
|
|
36
|
-
children: "Continue with GitHub"
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
39
|
-
className: "mt-5 flex items-center justify-center text-caption text-secondary",
|
|
40
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
41
|
-
href: GITHUB_URL,
|
|
42
|
-
target: "_blank",
|
|
43
|
-
rel: "noreferrer",
|
|
44
|
-
className: "inline-flex items-center gap-1.5 transition-colors hover:text-display",
|
|
45
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(GitHubIcon, { className: "size-4" }), " Open source"]
|
|
46
|
-
})
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { SignIn as t };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { St as listArtifacts, bn as safeRelPath, q as getArtifactFile } from "./loopTags-CXx5UdGf.mjs";
|
|
2
|
-
import { s as getArtifactSync } from "./boot-C472kLwY.mjs";
|
|
3
|
-
import { n as toArtifactSummary } from "./loopProjection-qaD2I48a.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/artifactFiles-DO43wwXA.js
|
|
5
|
-
/**
|
|
6
|
-
* Server-side reads over a loop's current exact artifacts. Pure helpers
|
|
7
|
-
* (no request/session context) so they're shared by the lazy server fns
|
|
8
|
-
* (`getArtifacts` / `getArtifact` in loopApi) AND the download route, and are
|
|
9
|
-
* directly unit-testable against an injected blob store — authorization is the
|
|
10
|
-
* caller's loop (the server fn via `ownedLoop`, the route via `canAccessLoop`).
|
|
11
|
-
*
|
|
12
|
-
* The bytes live in the gateway's BlobStore (local by default, R2 when configured);
|
|
13
|
-
* here we only read them — never write — so the feature is strictly read-only and
|
|
14
|
-
* the server's zero-exec invariant holds (it decodes text, never interprets it).
|
|
15
|
-
*/
|
|
16
|
-
async function listLoopArtifacts(loopId) {
|
|
17
|
-
return (await listArtifacts(loopId)).map(toArtifactSummary);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* One file's content for inline display: decoded text for a text file, or a
|
|
21
|
-
* binary/oversize marker (the UI then offers the download route). Returns an
|
|
22
|
-
* error marker for an unknown/tombstoned path or a blob whose bytes aren't
|
|
23
|
-
* stored yet (a pending upload) — never throws.
|
|
24
|
-
*/
|
|
25
|
-
async function readLoopArtifact(loopId, rawPath) {
|
|
26
|
-
const rel = safeRelPath(rawPath);
|
|
27
|
-
if (!rel) return { error: "invalid path" };
|
|
28
|
-
const row = await getArtifactFile(loopId, rel);
|
|
29
|
-
if (!row || row.deleted) return { error: "file not found" };
|
|
30
|
-
if (row.binary || row.oversize) return {
|
|
31
|
-
binary: true,
|
|
32
|
-
size: row.size ?? null,
|
|
33
|
-
oversize: row.oversize
|
|
34
|
-
};
|
|
35
|
-
if (!row.hash) return { error: "file not synced yet" };
|
|
36
|
-
const bytes = await (await getArtifactSync()).readBlob(row.hash);
|
|
37
|
-
if (!bytes) return { error: "file not found" };
|
|
38
|
-
return { text: bytes.toString("utf8") };
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Resolve a loop-relative path to its stored bytes for the download route.
|
|
42
|
-
* Path-safe (rejects absolute/`..`/escaping → 400). Oversize/tombstoned/absent
|
|
43
|
-
* → 404 (no bytes to serve). The bytes stream straight from the BlobStore.
|
|
44
|
-
*/
|
|
45
|
-
async function readLoopArtifactBytes(loopId, rawPath) {
|
|
46
|
-
const rel = safeRelPath(rawPath);
|
|
47
|
-
if (!rel) return { status: 400 };
|
|
48
|
-
const row = await getArtifactFile(loopId, rel);
|
|
49
|
-
if (!row || row.deleted || !row.hash) return { status: 404 };
|
|
50
|
-
const bytes = await (await getArtifactSync()).readBlob(row.hash);
|
|
51
|
-
if (!bytes) return { status: 404 };
|
|
52
|
-
return {
|
|
53
|
-
status: 200,
|
|
54
|
-
bytes,
|
|
55
|
-
binary: row.binary,
|
|
56
|
-
filename: rel.split("/").pop() || "file"
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { listLoopArtifacts, readLoopArtifact, readLoopArtifactBytes };
|