@jami-studio/core 0.92.30 → 0.92.32
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/corpus/README.md +1 -1
- package/corpus/core/CHANGELOG.md +20 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/production-agent.ts +7360 -7302
- package/corpus/core/src/deploy/build.ts +4193 -4127
- package/corpus/core/src/file-upload/types.ts +9 -0
- package/corpus/templates/analytics/changelog/2026-07-11-tracking-and-session-replay-ingest-endpoints-are-reachable-f.md +6 -0
- package/corpus/templates/analytics/package.json +9 -0
- package/corpus/templates/clips/actions/create-recording.ts +16 -1
- package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +60 -14
- package/corpus/templates/clips/app/routes/record.tsx +35 -9
- package/corpus/templates/clips/changelog/2026-07-11-uploads-now-stream-straight-to-s3-compatible-storage-r2-s3-m.md +6 -0
- package/corpus/templates/clips/server/lib/s3-upload-provider.ts +256 -0
- package/corpus/templates/clips/server/lib/streaming-upload-mode.ts +9 -3
- package/corpus/templates/clips/server/lib/upload-chunk-limits.ts +19 -0
- package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/chunk.post.ts +15 -4
- package/corpus/templates/clips/server/routes/api/uploads/[recordingId]/reset-chunks.post.ts +49 -1
- package/dist/agent/production-agent.d.ts +15 -1
- package/dist/agent/production-agent.d.ts.map +1 -1
- package/dist/agent/production-agent.js +61 -15
- package/dist/agent/production-agent.js.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/deploy/build.d.ts +21 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +736 -676
- package/dist/deploy/build.js.map +1 -1
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/file-upload/types.d.ts +9 -0
- package/dist/file-upload/types.d.ts.map +1 -1
- package/dist/file-upload/types.js.map +1 -1
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +2 -2
- package/package.json +1 -1
package/dist/collab/routes.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export declare const getCollabState: import("h3").EventHandlerWithFetch<import("
|
|
|
26
26
|
* Body: { update: string (base64), requestSource?: string }
|
|
27
27
|
*/
|
|
28
28
|
export declare const postCollabUpdate: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
29
|
-
error: string;
|
|
30
29
|
ok?: undefined;
|
|
30
|
+
error: string;
|
|
31
31
|
} | {
|
|
32
32
|
error?: undefined;
|
|
33
33
|
ok: boolean;
|
package/dist/deploy/build.d.ts
CHANGED
|
@@ -47,8 +47,28 @@ export interface GenerateWorkerEntryOptions {
|
|
|
47
47
|
* unified workspace deployments. Must stay dependency-free beyond core's
|
|
48
48
|
* lean `global-scope` subpath so nothing registry-touching evaluates before
|
|
49
49
|
* the scope id is set (ESM evaluates imports depth-first in order).
|
|
50
|
+
*
|
|
51
|
+
* `envDefaults` bakes the per-app workspace env (workspace-apps manifest,
|
|
52
|
+
* app id, base path, audience, route-access lists) into the module as
|
|
53
|
+
* `process.env` DEFAULTS. Cloudflare workerd has no filesystem and no
|
|
54
|
+
* ambient build env, so without this the runtime falls back as if the app
|
|
55
|
+
* were standalone — `loadWorkspaceAppsManifest()` returns null and agent
|
|
56
|
+
* discovery targets the builtin hosted prod URLs instead of the sibling
|
|
57
|
+
* apps mounted on this origin (ask_app/call-agent "internal error"). The
|
|
58
|
+
* Netlify preset already bakes the same keys in its generated function
|
|
59
|
+
* entry (`setBasePathEnv`); this is the Cloudflare-preset equivalent.
|
|
60
|
+
* Defaults never override real runtime env: the worker's per-request
|
|
61
|
+
* bindings copy assigns binding keys on top, and baked keys only apply
|
|
62
|
+
* when the key is absent.
|
|
63
|
+
*/
|
|
64
|
+
export declare function generateScopeInitSource(appScopeId: string, envDefaults?: Record<string, string>): string;
|
|
65
|
+
/**
|
|
66
|
+
* Snapshot the per-app workspace env keys that must survive into the edge
|
|
67
|
+
* runtime. Called at build time (workspace-deploy sets these in the child
|
|
68
|
+
* build env); the result is baked into `_scope-init.js` as process.env
|
|
69
|
+
* defaults for runtimes with no filesystem/ambient env (workerd).
|
|
50
70
|
*/
|
|
51
|
-
export declare function
|
|
71
|
+
export declare function workspaceEnvDefaultsFromBuildEnv(env?: NodeJS.ProcessEnv): Record<string, string>;
|
|
52
72
|
/**
|
|
53
73
|
* Derive the workspace app id from a mounted app base path ("/assets" →
|
|
54
74
|
* "assets"). Returns null for unmounted (root) builds.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/deploy/build.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;GAYG;AAmCH,OAAO,EAML,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,6BAA6B,UAiBzC,CAAC;AAEF,eAAO,MAAM,mCAAmC,UAiB/C,CAAC;AACF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAuIjE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,UAUnC,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAaxB;AAoCD,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAC9D,MAAM,EACN,MAAM,CAmSP,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACzC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/deploy/build.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;GAYG;AAmCH,OAAO,EAML,KAAK,eAA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