sparkecoder 0.1.93 → 0.1.95
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/agent/index.d.ts +3 -3
- package/dist/db/index.d.ts +2 -2
- package/dist/{index-Bn0Zox8f.d.ts → index-C7Kkn5vq.d.ts} +12 -12
- package/dist/index.d.ts +5 -5
- package/dist/{schema-EmpbnQeQ.d.ts → schema-D7BJyHLl.d.ts} +3 -3
- package/dist/{search-BRnGaIl-.d.ts → search-CVVfuBPZ.d.ts} +4 -4
- package/dist/tools/index.d.ts +3 -3
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/web/.next/routes-manifest.json +16 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/web/next.config.ts +50 -0
- /package/web/.next/standalone/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_ssgManifest.js +0 -0
- /package/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_buildManifest.js +0 -0
- /package/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{-ax3tJNqBGukss29jpu41 → l9xM7mBxJ_uNaRmV2eECi}/_ssgManifest.js +0 -0
|
@@ -1,12 +1,62 @@
|
|
|
1
1
|
import type { NextConfig } from "next";
|
|
2
2
|
import createMDX from "@next/mdx";
|
|
3
3
|
|
|
4
|
+
// Origins allowed to iframe `/embed/:id` pages. Comma-separated list.
|
|
5
|
+
//
|
|
6
|
+
// The personal-agents dashboard's TaskDrawer iframes `${webUrl}/embed/${sparkTaskId}`
|
|
7
|
+
// to show the live SparkECoder session inside the dashboard. By default both
|
|
8
|
+
// Next.js and Cloudflare Tunnel emit `X-Frame-Options: SAMEORIGIN`, which
|
|
9
|
+
// blocks that. We explicitly allow the dashboard origins (and localhost
|
|
10
|
+
// during dev) on `/embed/:path*` only — every other route stays
|
|
11
|
+
// frame-locked.
|
|
12
|
+
//
|
|
13
|
+
// Override at runtime with EMBED_FRAME_ANCESTORS, e.g.:
|
|
14
|
+
// EMBED_FRAME_ANCESTORS="https://personal-agents.studyfetchcms.com,http://localhost:3000"
|
|
15
|
+
const DEFAULT_EMBED_FRAME_ANCESTORS = [
|
|
16
|
+
"https://personal-agents.studyfetchcms.com",
|
|
17
|
+
"http://localhost:3000",
|
|
18
|
+
"http://localhost:3001",
|
|
19
|
+
"https://sparkecoder.com",
|
|
20
|
+
"https://sparkecode.com",
|
|
21
|
+
];
|
|
22
|
+
const embedFrameAncestors = (
|
|
23
|
+
process.env.EMBED_FRAME_ANCESTORS?.split(",")
|
|
24
|
+
.map((s) => s.trim())
|
|
25
|
+
.filter(Boolean) ?? DEFAULT_EMBED_FRAME_ANCESTORS
|
|
26
|
+
).join(" ");
|
|
27
|
+
|
|
4
28
|
const nextConfig: NextConfig = {
|
|
5
29
|
// Output standalone build for npm package distribution
|
|
6
30
|
// This creates a self-contained build that doesn't need source files
|
|
7
31
|
output: "standalone",
|
|
8
32
|
// Configure `pageExtensions` to include markdown and MDX files
|
|
9
33
|
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
|
|
34
|
+
async headers() {
|
|
35
|
+
return [
|
|
36
|
+
{
|
|
37
|
+
// Only the embed route opts out of the default frame-deny posture.
|
|
38
|
+
source: "/embed/:path*",
|
|
39
|
+
headers: [
|
|
40
|
+
{
|
|
41
|
+
// CSP frame-ancestors is the modern way to allow specific
|
|
42
|
+
// embedders. `'self'` keeps same-origin embedding working
|
|
43
|
+
// (the live preview opens the same URL in a new tab).
|
|
44
|
+
key: "Content-Security-Policy",
|
|
45
|
+
value: `frame-ancestors 'self' ${embedFrameAncestors}`,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
// Modern browsers honour CSP over XFO when both are present,
|
|
49
|
+
// but we override XFO too for older clients. There's no
|
|
50
|
+
// standard "allow these origins" XFO value, so we just remove
|
|
51
|
+
// it by setting a no-op string browsers ignore. (DENY would
|
|
52
|
+
// re-block; SAMEORIGIN is what we're getting today.)
|
|
53
|
+
key: "X-Frame-Options",
|
|
54
|
+
value: "ALLOWALL",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
},
|
|
10
60
|
};
|
|
11
61
|
|
|
12
62
|
const withMDX = createMDX({
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|