@replohq/canopy-sdk 0.7.0 → 0.7.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/_vendor/schemas/agentTools/customIntegrations/loaders/product.mjs +1 -1
- package/_vendor/schemas/objectType.mjs +1 -1
- package/_vendor/schemas/registry.d.ts +42 -0
- package/_vendor/schemas/sandboxFiles.d.ts +1 -0
- package/{chunk-ZBNFOPGP.mjs → chunk-YANWFPD5.mjs} +14 -2
- package/next/config.js +4 -0
- package/next/config.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { priceSchema, metafieldSchema, imageSchema, selectedOptionSchema, mediaSchema, productOptionSchema, productSchema } from '../../../../../chunk-
|
|
1
|
+
import { priceSchema, metafieldSchema, imageSchema, selectedOptionSchema, mediaSchema, productOptionSchema, productSchema } from '../../../../../chunk-YANWFPD5.mjs';
|
|
2
2
|
import { sellingPlanGroupSchema } from '../../../../../chunk-4TZVNC3W.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { assetSchema, collectionSchema, customerIoBroadcastSchema, customerIoCampaignSchema, customerIoSegmentSchema, externalVideoSchema, getObjectTypeDefinition, imageSchema, integrationSchema, intelligemsExperienceSchema, levantaAffiliateLinkSchema, levantaProductSchema, looxReviewSchema, mediaImageSchema, mediaSchema, metafieldSchema, okendoReviewSchema, optionValueSchema, optionValueSwatchSchema, opusClipSchema, opusCollectionSchema, opusProjectSchema, pageSchema, planSchema, previewImageSchema, priceSchema, productOptionSchema, productSchema, registryItemSchema, segmentSourceSchema, selectedOptionSchema, transformReploProductToCanonical, variantSchema, videoSchema, videoSourceSchema, vwoCampaignSchema } from '../../chunk-
|
|
1
|
+
export { assetSchema, collectionSchema, customerIoBroadcastSchema, customerIoCampaignSchema, customerIoSegmentSchema, externalVideoSchema, getObjectTypeDefinition, imageSchema, integrationSchema, intelligemsExperienceSchema, levantaAffiliateLinkSchema, levantaProductSchema, looxReviewSchema, mediaImageSchema, mediaSchema, metafieldSchema, okendoReviewSchema, optionValueSchema, optionValueSwatchSchema, opusClipSchema, opusCollectionSchema, opusProjectSchema, pageSchema, planSchema, previewImageSchema, priceSchema, productOptionSchema, productSchema, registryItemSchema, segmentSourceSchema, selectedOptionSchema, transformReploProductToCanonical, variantSchema, videoSchema, videoSourceSchema, vwoCampaignSchema } from '../../chunk-YANWFPD5.mjs';
|
|
2
2
|
import '../../chunk-4TZVNC3W.mjs';
|
|
@@ -37,6 +37,13 @@ export declare const siteRegistryItemMetadataSchema: z.ZodObject<{
|
|
|
37
37
|
brandName: z.ZodOptional<z.ZodString>;
|
|
38
38
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
39
39
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
41
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
42
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
route: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
url: z.ZodString;
|
|
46
|
+
}, z.core.$strict>>>;
|
|
40
47
|
}, z.core.$strict>;
|
|
41
48
|
export declare const pageRegistryItemMetadataSchema: z.ZodObject<{
|
|
42
49
|
brandName: z.ZodOptional<z.ZodString>;
|
|
@@ -81,6 +88,13 @@ export declare const genericRegistryItemMetadataSchema: z.ZodUnion<readonly [z.Z
|
|
|
81
88
|
brandName: z.ZodOptional<z.ZodString>;
|
|
82
89
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
83
90
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
91
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
92
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
93
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
+
route: z.ZodString;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
url: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>>;
|
|
84
98
|
}, z.core.$strict>, z.ZodObject<{
|
|
85
99
|
brandName: z.ZodOptional<z.ZodString>;
|
|
86
100
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
@@ -133,6 +147,13 @@ export declare const registryItemMetadataSchema: z.ZodObject<{
|
|
|
133
147
|
brandName: z.ZodOptional<z.ZodString>;
|
|
134
148
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
135
149
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
150
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
151
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
152
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
+
route: z.ZodString;
|
|
154
|
+
name: z.ZodString;
|
|
155
|
+
url: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>>;
|
|
136
157
|
}, z.core.$strict>, z.ZodObject<{
|
|
137
158
|
brandName: z.ZodOptional<z.ZodString>;
|
|
138
159
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
@@ -199,6 +220,13 @@ export declare const registryListItemsResultSchema: z.ZodObject<{
|
|
|
199
220
|
brandName: z.ZodOptional<z.ZodString>;
|
|
200
221
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
201
222
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
223
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
224
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
225
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
|
+
route: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
url: z.ZodString;
|
|
229
|
+
}, z.core.$strict>>>;
|
|
202
230
|
}, z.core.$strict>, z.ZodObject<{
|
|
203
231
|
brandName: z.ZodOptional<z.ZodString>;
|
|
204
232
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
@@ -272,6 +300,13 @@ export declare const registryItemDetailSchema: z.ZodObject<{
|
|
|
272
300
|
brandName: z.ZodOptional<z.ZodString>;
|
|
273
301
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
274
302
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
303
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
304
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
305
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
306
|
+
route: z.ZodString;
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
url: z.ZodString;
|
|
309
|
+
}, z.core.$strict>>>;
|
|
275
310
|
}, z.core.$strict>, z.ZodObject<{
|
|
276
311
|
brandName: z.ZodOptional<z.ZodString>;
|
|
277
312
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
@@ -339,6 +374,13 @@ export declare const registryItemPreviewResultSchema: z.ZodObject<{
|
|
|
339
374
|
brandName: z.ZodOptional<z.ZodString>;
|
|
340
375
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
341
376
|
logoUrl: z.ZodOptional<z.ZodString>;
|
|
377
|
+
artifactRepo: z.ZodOptional<z.ZodString>;
|
|
378
|
+
liveUrl: z.ZodOptional<z.ZodString>;
|
|
379
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
380
|
+
route: z.ZodString;
|
|
381
|
+
name: z.ZodString;
|
|
382
|
+
url: z.ZodString;
|
|
383
|
+
}, z.core.$strict>>>;
|
|
342
384
|
}, z.core.$strict>, z.ZodObject<{
|
|
343
385
|
brandName: z.ZodOptional<z.ZodString>;
|
|
344
386
|
brandDomain: z.ZodOptional<z.ZodString>;
|
|
@@ -4,6 +4,7 @@ export declare const sandboxFileSchema: z.ZodObject<{
|
|
|
4
4
|
filepath: z.ZodString;
|
|
5
5
|
route: z.ZodString;
|
|
6
6
|
modifiedAt: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
export declare const workspaceSkillSourceSchema: z.ZodEnum<{
|
|
9
10
|
builtin: "builtin";
|
|
@@ -17,7 +17,16 @@ var visualDisplayMetadataSchema = z.object({
|
|
|
17
17
|
brandDomain: z.string().optional(),
|
|
18
18
|
logoUrl: z.string().url().optional()
|
|
19
19
|
}).strict();
|
|
20
|
-
var
|
|
20
|
+
var siteTemplatePageSchema = z.object({
|
|
21
|
+
route: z.string(),
|
|
22
|
+
name: z.string(),
|
|
23
|
+
url: z.string().url()
|
|
24
|
+
}).strict();
|
|
25
|
+
var siteRegistryItemMetadataSchema = visualDisplayMetadataSchema.extend({
|
|
26
|
+
artifactRepo: z.string().optional(),
|
|
27
|
+
liveUrl: z.string().url().optional(),
|
|
28
|
+
pages: z.array(siteTemplatePageSchema).optional()
|
|
29
|
+
}).describe("SiteRegistryItemMetadata");
|
|
21
30
|
var pageRegistryItemMetadataSchema = visualDisplayMetadataSchema.describe("PageRegistryItemMetadata");
|
|
22
31
|
var sectionRegistryItemMetadataSchema = visualDisplayMetadataSchema.describe("SectionRegistryItemMetadata");
|
|
23
32
|
var brandingRegistryItemMetadataSchema = z.object({
|
|
@@ -180,7 +189,10 @@ z.object({
|
|
|
180
189
|
appName: z.string(),
|
|
181
190
|
filepath: z.string(),
|
|
182
191
|
route: z.string(),
|
|
183
|
-
modifiedAt: z.number().optional()
|
|
192
|
+
modifiedAt: z.number().optional(),
|
|
193
|
+
// Birth-time (epoch ms) from `stat`, falling back to mtime when the
|
|
194
|
+
// filesystem reports 0/unsupported. Used to sort the pages dashboard.
|
|
195
|
+
createdAt: z.number().optional()
|
|
184
196
|
}).describe("SandboxFile");
|
|
185
197
|
var workspaceSkillSourceSchema = z.enum(["builtin", "project"]).describe("WorkspaceSkillSource");
|
|
186
198
|
z.object({
|
package/next/config.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import os from "os";
|
|
2
2
|
const PLATFORM_DEV_ORIGINS = [
|
|
3
|
+
"localhost:*",
|
|
4
|
+
"*.localhost:*",
|
|
5
|
+
"*.lvh.me:*",
|
|
3
6
|
"*.daytonaproxy01.net",
|
|
4
7
|
"*.preview.reploapi.com",
|
|
5
8
|
"*.preview-staging.reploapi.com"
|
|
6
9
|
];
|
|
7
10
|
const PLATFORM_SERVER_ACTION_ORIGINS = [
|
|
11
|
+
"localhost:*",
|
|
8
12
|
"*.localhost:*",
|
|
9
13
|
"*.lvh.me:*",
|
|
10
14
|
"*.cloudflare-agent-coordinator.replo.workers.dev",
|
package/next/config.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../next/config.ts"],
|
|
4
|
-
"sourcesContent": ["import os from \"os\";\nimport type { NextConfig } from \"next\";\n\n// Origins browsers load sandbox previews from \u2014 PREVIEW_HOSTNAME in the\n// coordinator's wrangler.jsonc plus Daytona's native preview domain. Next 16\n// hard-blocks cross-origin dev requests (HMR WebSocket, Server Actions) from\n// origins missing here
|
|
5
|
-
"mappings": "AAAA,OAAO,QAAQ;
|
|
4
|
+
"sourcesContent": ["import os from \"os\";\nimport type { NextConfig } from \"next\";\n\n// Origins browsers load sandbox previews from \u2014 PREVIEW_HOSTNAME in the\n// coordinator's wrangler.jsonc plus Daytona's native preview domain. Next 16\n// hard-blocks cross-origin dev requests (HMR WebSocket, Server Actions) from\n// origins missing here.\nconst PLATFORM_DEV_ORIGINS = [\n \"localhost:*\",\n \"*.localhost:*\",\n \"*.lvh.me:*\",\n \"*.daytonaproxy01.net\",\n \"*.preview.reploapi.com\",\n \"*.preview-staging.reploapi.com\",\n];\n\nconst PLATFORM_SERVER_ACTION_ORIGINS = [\n \"localhost:*\",\n \"*.localhost:*\",\n \"*.lvh.me:*\",\n \"*.cloudflare-agent-coordinator.replo.workers.dev\",\n \"*.preview.reploapi.com\",\n \"*.preview-staging.reploapi.com\",\n];\n\nconst dedupe = (origins: string[]): string[] => Array.from(new Set(origins));\n\n// The canonical Next.js runtime contract shared by every agent-built site.\n// Sites re-export `default` from here through a one-line `next.config.ts` shim,\n// so the platform wiring (sandbox dist dirs, Turbopack root, preview origins,\n// Cloudflare image loader) lives in exactly one place instead of being copied\n// into each template.\n//\n// `overrides` is a per-site customization surface, but it must not be able to\n// silently amputate platform wiring. A plain `...overrides` spread is a shallow\n// merge: a site that sets any nested key (e.g. `experimental.typedRoutes`)\n// would replace the whole `experimental`/`images` block and drop platform\n// defaults like the build-worker OOM guard or the Cloudflare image loader. So\n// load-bearing keys are re-asserted after the spread and the nested blocks are\n// deep-merged: a site can add keys, but platform invariants always win and\n// platform origin lists are preserved (site entries are appended, not swapped).\nexport function siteConfig(overrides: NextConfig = {}): NextConfig {\n const {\n turbopack: overrideTurbopack,\n images: overrideImages,\n experimental: overrideExperimental,\n allowedDevOrigins: overrideDevOrigins,\n ...restOverrides\n } = overrides;\n\n const { serverActions: overrideServerActions, ...restOverrideExperimental } =\n overrideExperimental ?? {};\n\n return {\n // Site-overridable defaults.\n reactStrictMode: true,\n devIndicators: false,\n ...restOverrides,\n\n // Platform invariants \u2014 re-asserted after the spread so a site override\n // can never break sandbox builds, publish, or the dev server.\n output: \"standalone\",\n distDir: process.env.BUILD_ENV === \"build\" ? \".next\" : \".next-dev\",\n // NOTE (Cole, 2026-04-30, REPL-26637): The publish tool patches\n // required-server-files.json to clear this value before OpenNext bundles,\n // since \"/\" makes esbuild emit absolute-path requires that break in Workers.\n outputFileTracingRoot: \"/\",\n // NOTE (Yuxin, 2026-05-22): turbopack.root is \"/workspace/dev\" \u2014 the\n // smallest path containing only what the user app actually imports. Using\n // \"/\" \u2014 the prior value \u2014 made Turbopack's filesystem watcher walk the\n // whole filesystem, exhausting fs.inotify.max_user_watches and surfacing as\n // misleading \"Module not found\" errors. outputFileTracingRoot stays at \"/\"\n // because publish needs absolute-path tracing into /scaffold (patched out\n // before OpenNext bundles \u2014 see comment on outputFileTracingRoot).\n turbopack: {\n ...overrideTurbopack,\n root: \"/workspace/dev\",\n },\n allowedDevOrigins: dedupe([\n ...(overrideDevOrigins ?? []),\n ...PLATFORM_DEV_ORIGINS,\n ]),\n images: {\n ...overrideImages,\n loader: \"custom\",\n loaderFile: \"./image-loader.ts\",\n remotePatterns: overrideImages?.remotePatterns ?? [\n {\n protocol: \"https\",\n hostname: \"**\",\n },\n ],\n },\n experimental: {\n ...restOverrideExperimental,\n // NOTE (Cole, 2026-06-18, REPL-28180): Next sizes its build worker pool\n // off os.cpus().length = host cores (~64) inside a cgroup-limited sandbox,\n // not the 2 the container actually has \u2014 a worker swarm that OOMs the\n // 4 GiB box. availableParallelism() is cgroup-aware. Gated to prod build.\n cpus:\n process.env.BUILD_ENV === \"build\"\n ? os.availableParallelism()\n : undefined,\n serverActions: {\n ...overrideServerActions,\n allowedOrigins: dedupe([\n ...(overrideServerActions?.allowedOrigins ?? []),\n ...PLATFORM_SERVER_ACTION_ORIGINS,\n ]),\n },\n },\n };\n}\n\nconst nextConfig: NextConfig = siteConfig();\n\nexport default nextConfig;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,QAAQ;AAOf,MAAM,uBAAuB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,iCAAiC;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,SAAS,CAAC,YAAgC,MAAM,KAAK,IAAI,IAAI,OAAO,CAAC;AAgBpE,SAAS,WAAW,YAAwB,CAAC,GAAe;AACjE,QAAM;AAAA,IACJ,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB,GAAG;AAAA,EACL,IAAI;AAEJ,QAAM,EAAE,eAAe,uBAAuB,GAAG,yBAAyB,IACxE,wBAAwB,CAAC;AAE3B,SAAO;AAAA;AAAA,IAEL,iBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,GAAG;AAAA;AAAA;AAAA,IAIH,QAAQ;AAAA,IACR,SAAS,QAAQ,IAAI,cAAc,UAAU,UAAU;AAAA;AAAA;AAAA;AAAA,IAIvD,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQvB,WAAW;AAAA,MACT,GAAG;AAAA,MACH,MAAM;AAAA,IACR;AAAA,IACA,mBAAmB,OAAO;AAAA,MACxB,GAAI,sBAAsB,CAAC;AAAA,MAC3B,GAAG;AAAA,IACL,CAAC;AAAA,IACD,QAAQ;AAAA,MACN,GAAG;AAAA,MACH,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,gBAAgB,gBAAgB,kBAAkB;AAAA,QAChD;AAAA,UACE,UAAU;AAAA,UACV,UAAU;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,MAKH,MACE,QAAQ,IAAI,cAAc,UACtB,GAAG,qBAAqB,IACxB;AAAA,MACN,eAAe;AAAA,QACb,GAAG;AAAA,QACH,gBAAgB,OAAO;AAAA,UACrB,GAAI,uBAAuB,kBAAkB,CAAC;AAAA,UAC9C,GAAG;AAAA,QACL,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;AAEA,MAAM,aAAyB,WAAW;AAE1C,IAAO,iBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED