vibes-diy 14.3.472 → 14.3.473
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.
|
@@ -177926,6 +177926,7 @@ async function createAppContext(params) {
|
|
|
177926
177926
|
postQueue: params.postQueue,
|
|
177927
177927
|
...params.waitUntil === void 0 ? {} : { waitUntil: params.waitUntil }
|
|
177928
177928
|
}),
|
|
177929
|
+
releaseAccessFnRuntime: params.releaseAccessFnRuntime,
|
|
177929
177930
|
accessFnSourceCache: params.accessFnSourceCache,
|
|
177930
177931
|
backendSourceCache: params.backendSourceCache,
|
|
177931
177932
|
kycExemptUserIds: params.kycExemptUserIds,
|
|
@@ -178388,13 +178389,35 @@ function netHashFn({
|
|
|
178388
178389
|
});
|
|
178389
178390
|
}
|
|
178390
178391
|
__name(netHashFn, "netHashFn");
|
|
178392
|
+
var QUICKJS_IDLE_RELEASE_MS = 2e3;
|
|
178393
|
+
async function newReleasableQuickJSModule() {
|
|
178394
|
+
const m = await Promise.resolve().then(() => (init_workerd(), workerd_exports));
|
|
178395
|
+
const variant2 = m.newVariant(m.RELEASE_SYNC, {
|
|
178396
|
+
wasmModule: m.releaseSyncWasmModule
|
|
178397
|
+
});
|
|
178398
|
+
return m.newQuickJSWASMModuleFromVariant(variant2);
|
|
178399
|
+
}
|
|
178400
|
+
__name(newReleasableQuickJSModule, "newReleasableQuickJSModule");
|
|
178401
|
+
function scheduleIdleRelease(ref3) {
|
|
178402
|
+
if (ref3.idleTimer !== void 0) clearTimeout(ref3.idleTimer);
|
|
178403
|
+
ref3.idleTimer = setTimeout(() => {
|
|
178404
|
+
ref3.idleTimer = void 0;
|
|
178405
|
+
ref3.module = null;
|
|
178406
|
+
}, ref3.idleReleaseMs ?? QUICKJS_IDLE_RELEASE_MS);
|
|
178407
|
+
}
|
|
178408
|
+
__name(scheduleIdleRelease, "scheduleIdleRelease");
|
|
178391
178409
|
async function localInvokeAccessFn(cachedModuleRef, params) {
|
|
178392
178410
|
if (!params.source) {
|
|
178393
178411
|
return { forbidden: "access function source not provided" };
|
|
178394
178412
|
}
|
|
178395
|
-
const QuickJS = cachedModuleRef.module ?? await Promise.resolve().then(() => (init_workerd(), workerd_exports)).then((m) => m.getQuickJSWASMModule());
|
|
178413
|
+
const QuickJS = cachedModuleRef.module ?? (cachedModuleRef.releasable === true ? await newReleasableQuickJSModule() : await Promise.resolve().then(() => (init_workerd(), workerd_exports)).then((m) => m.getQuickJSWASMModule()));
|
|
178396
178414
|
cachedModuleRef.module = QuickJS;
|
|
178397
|
-
return invokeAccessFnInQuickJS(QuickJS, params);
|
|
178415
|
+
if (cachedModuleRef.releasable !== true) return invokeAccessFnInQuickJS(QuickJS, params);
|
|
178416
|
+
try {
|
|
178417
|
+
return invokeAccessFnInQuickJS(QuickJS, params);
|
|
178418
|
+
} finally {
|
|
178419
|
+
scheduleIdleRelease(cachedModuleRef);
|
|
178420
|
+
}
|
|
178398
178421
|
}
|
|
178399
178422
|
__name(localInvokeAccessFn, "localInvokeAccessFn");
|
|
178400
178423
|
async function cfServeAppCtx(request, env3, ctx, callbackOverrides) {
|
|
@@ -113213,6 +113213,7 @@ async function createAppContext(params) {
|
|
|
113213
113213
|
postQueue: params.postQueue,
|
|
113214
113214
|
...params.waitUntil === void 0 ? {} : { waitUntil: params.waitUntil }
|
|
113215
113215
|
}),
|
|
113216
|
+
releaseAccessFnRuntime: params.releaseAccessFnRuntime,
|
|
113216
113217
|
accessFnSourceCache: params.accessFnSourceCache,
|
|
113217
113218
|
backendSourceCache: params.backendSourceCache,
|
|
113218
113219
|
kycExemptUserIds: params.kycExemptUserIds,
|
|
@@ -113643,13 +113644,35 @@ var R2ToS3Api = class {
|
|
|
113643
113644
|
|
|
113644
113645
|
// ../vibes.diy/api/svc/cf-serve-app-ctx.ts
|
|
113645
113646
|
init_client_attribution();
|
|
113647
|
+
var QUICKJS_IDLE_RELEASE_MS = 2e3;
|
|
113648
|
+
async function newReleasableQuickJSModule() {
|
|
113649
|
+
const m = await import("@cf-wasm/quickjs");
|
|
113650
|
+
const variant = m.newVariant(m.RELEASE_SYNC, {
|
|
113651
|
+
wasmModule: m.releaseSyncWasmModule
|
|
113652
|
+
});
|
|
113653
|
+
return m.newQuickJSWASMModuleFromVariant(variant);
|
|
113654
|
+
}
|
|
113655
|
+
__name(newReleasableQuickJSModule, "newReleasableQuickJSModule");
|
|
113656
|
+
function scheduleIdleRelease(ref) {
|
|
113657
|
+
if (ref.idleTimer !== void 0) clearTimeout(ref.idleTimer);
|
|
113658
|
+
ref.idleTimer = setTimeout(() => {
|
|
113659
|
+
ref.idleTimer = void 0;
|
|
113660
|
+
ref.module = null;
|
|
113661
|
+
}, ref.idleReleaseMs ?? QUICKJS_IDLE_RELEASE_MS);
|
|
113662
|
+
}
|
|
113663
|
+
__name(scheduleIdleRelease, "scheduleIdleRelease");
|
|
113646
113664
|
async function localInvokeAccessFn(cachedModuleRef, params) {
|
|
113647
113665
|
if (!params.source) {
|
|
113648
113666
|
return { forbidden: "access function source not provided" };
|
|
113649
113667
|
}
|
|
113650
|
-
const QuickJS = cachedModuleRef.module ?? await import("@cf-wasm/quickjs").then((m) => m.getQuickJSWASMModule());
|
|
113668
|
+
const QuickJS = cachedModuleRef.module ?? (cachedModuleRef.releasable === true ? await newReleasableQuickJSModule() : await import("@cf-wasm/quickjs").then((m) => m.getQuickJSWASMModule()));
|
|
113651
113669
|
cachedModuleRef.module = QuickJS;
|
|
113652
|
-
return invokeAccessFnInQuickJS(QuickJS, params);
|
|
113670
|
+
if (cachedModuleRef.releasable !== true) return invokeAccessFnInQuickJS(QuickJS, params);
|
|
113671
|
+
try {
|
|
113672
|
+
return invokeAccessFnInQuickJS(QuickJS, params);
|
|
113673
|
+
} finally {
|
|
113674
|
+
scheduleIdleRelease(cachedModuleRef);
|
|
113675
|
+
}
|
|
113653
113676
|
}
|
|
113654
113677
|
__name(localInvokeAccessFn, "localInvokeAccessFn");
|
|
113655
113678
|
|
|
@@ -116785,6 +116808,14 @@ var BACKFILL_DOC_CHUNK = 200;
|
|
|
116785
116808
|
async function backfillAccessFnOutputs(vctx, opts) {
|
|
116786
116809
|
const invokeAccessFn = vctx.invokeAccessFn;
|
|
116787
116810
|
if (invokeAccessFn === void 0) return;
|
|
116811
|
+
try {
|
|
116812
|
+
await backfillAccessFnOutputsWith(vctx, invokeAccessFn, opts);
|
|
116813
|
+
} finally {
|
|
116814
|
+
vctx.releaseAccessFnRuntime?.();
|
|
116815
|
+
}
|
|
116816
|
+
}
|
|
116817
|
+
__name(backfillAccessFnOutputs, "backfillAccessFnOutputs");
|
|
116818
|
+
async function backfillAccessFnOutputsWith(vctx, invokeAccessFn, opts) {
|
|
116788
116819
|
const { ownerHandle, appSlug, cid: appCid, exportNames, oldCids } = opts;
|
|
116789
116820
|
const tDocs = vctx.sql.tables.appDocuments;
|
|
116790
116821
|
const tOutputs = vctx.sql.tables.accessFnOutputs;
|
|
@@ -117156,7 +117187,7 @@ async function backfillAccessFnOutputs(vctx, opts) {
|
|
|
117156
117187
|
}
|
|
117157
117188
|
}
|
|
117158
117189
|
}
|
|
117159
|
-
__name(
|
|
117190
|
+
__name(backfillAccessFnOutputsWith, "backfillAccessFnOutputsWith");
|
|
117160
117191
|
|
|
117161
117192
|
// ../vibes.diy/api/svc/intern/access-verdict-docs.ts
|
|
117162
117193
|
init_platform_db_registry();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibes-diy",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.473",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"description": "Command-line tool for vibes.diy — vibes give agents superpowers: generate, edit, pull, push, and publish AI-built apps. Login is free and easy.",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@neondatabase/serverless": "~1.2.2",
|
|
53
53
|
"@noble/hashes": "~2.4.0",
|
|
54
54
|
"@shadcn/lint": "~0.2.5",
|
|
55
|
-
"@vibes.diy/api-impl": "14.3.
|
|
56
|
-
"@vibes.diy/api-types": "14.3.
|
|
57
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
58
|
-
"@vibes.diy/cmd-harness": "14.3.
|
|
59
|
-
"@vibes.diy/cmd-tools": "14.3.
|
|
60
|
-
"@vibes.diy/identity": "14.3.
|
|
61
|
-
"@vibes.diy/prompts": "14.3.
|
|
55
|
+
"@vibes.diy/api-impl": "14.3.473",
|
|
56
|
+
"@vibes.diy/api-types": "14.3.473",
|
|
57
|
+
"@vibes.diy/call-ai-v2": "14.3.473",
|
|
58
|
+
"@vibes.diy/cmd-harness": "14.3.473",
|
|
59
|
+
"@vibes.diy/cmd-tools": "14.3.473",
|
|
60
|
+
"@vibes.diy/identity": "14.3.473",
|
|
61
|
+
"@vibes.diy/prompts": "14.3.473",
|
|
62
62
|
"acorn": "~8.19.0",
|
|
63
63
|
"acorn-jsx": "~5.3.2",
|
|
64
64
|
"arktype": "~2.2.10",
|