vibes-diy 14.3.430 → 14.3.431
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/cli/cmd-evento.d.ts +458 -458
- package/cli/cmds/run/backend-worker/run-backend-entry.js +22 -12
- package/cli/cmds/run/bundle-inputs.json +3 -0
- package/cli/cmds/run/run-bundle.js +2227 -1798
- package/package.json +8 -8
|
@@ -37452,6 +37452,22 @@ var resTermsAck = lazyType(
|
|
|
37452
37452
|
})
|
|
37453
37453
|
);
|
|
37454
37454
|
|
|
37455
|
+
// ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/types/app-secret-rules.ts
|
|
37456
|
+
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
|
|
37457
|
+
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
|
|
37458
|
+
init_performance2();
|
|
37459
|
+
var SECRET_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]{0,63}$/;
|
|
37460
|
+
var SECRET_KEY_MAX = 64;
|
|
37461
|
+
var SECRET_VALUE_MAX = 8192;
|
|
37462
|
+
var SECRET_COUNT_MAX = 32;
|
|
37463
|
+
var SECRET_REFUSAL = {
|
|
37464
|
+
key: `Key names use letters, numbers and _, like MY_API_KEY, and start with a letter or _ (up to ${SECRET_KEY_MAX} characters).`,
|
|
37465
|
+
size: `A secret holds up to ${SECRET_VALUE_MAX} bytes.`,
|
|
37466
|
+
cap: `A vibe holds up to ${SECRET_COUNT_MAX} secrets. Remove one you no longer use to make room for this one.`,
|
|
37467
|
+
owner: "owner-only:secret-op",
|
|
37468
|
+
exclusive: "secret-op-not-exclusive"
|
|
37469
|
+
};
|
|
37470
|
+
|
|
37455
37471
|
// ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/types/invite-flow.ts
|
|
37456
37472
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
|
|
37457
37473
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
|
|
@@ -133820,7 +133836,7 @@ init_esm();
|
|
|
133820
133836
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
|
|
133821
133837
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
|
|
133822
133838
|
init_performance2();
|
|
133823
|
-
var AGENT_SESSION_INSTRUCTION_VERSION = "2026-11-
|
|
133839
|
+
var AGENT_SESSION_INSTRUCTION_VERSION = "2026-11-23.2";
|
|
133824
133840
|
var BROWSER_APP_ASK_LINE = 'When the ask names a desktop program, a phone app or software to install (an iPhone, iPad or Android app, or a mobile app, is a phone app), the app is made as one that opens from its own link, and those words say so in a clause: "Making your <app> as an app that opens in your browser", or for a phone app "Making your <app> as an app that opens on your phone from its own link".';
|
|
133825
133841
|
var FIRST_BUILD_SAYS_WHAT_IS_MADE = `On a first build, the words before create_vibe say what will be made in the person's terms, and a control they mention is one the brief asks for. ${BROWSER_APP_ASK_LINE}`;
|
|
133826
133842
|
var REPLY_FOLD = `A reply that runs past about three short sentences, as one often does after tool calls or a build, opens with a summary of one or two plain sentences that stands on its own: what happened, and the one link or question that matters most. Then comes a line holding only ${AGENT_FOLD_MARKER}, then the full reply, shaped by every rule here. The summary is what a phone receives as a text message, and the web page shows the full reply under a More button, so the summary carries that link or question itself. A reply of three short sentences or fewer is its own summary and goes out whole, just as it is. Words written before a tool call go out as their own text the moment the call starts, so keep them to one short sentence of what you are about to do; the result comes in the reply after.`;
|
|
@@ -134423,9 +134439,6 @@ __name(stampEveryKnownWriter, "stampEveryKnownWriter");
|
|
|
134423
134439
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
|
|
134424
134440
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
|
|
134425
134441
|
init_performance2();
|
|
134426
|
-
var SECRET_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]{0,63}$/;
|
|
134427
|
-
var SECRET_VALUE_MAX = 8192;
|
|
134428
|
-
var SECRET_COUNT_MAX = 32;
|
|
134429
134442
|
var SECRET_LAST4_MIN = 8;
|
|
134430
134443
|
function secretMeta(e2) {
|
|
134431
134444
|
return {
|
|
@@ -134503,7 +134516,7 @@ async function applySecretOp({
|
|
|
134503
134516
|
setBy
|
|
134504
134517
|
}) {
|
|
134505
134518
|
if (OTHER_OP_FIELDS.some((f3) => f3 in req)) {
|
|
134506
|
-
return [buildEnsureEntryResult(settings),
|
|
134519
|
+
return [buildEnsureEntryResult(settings), SECRET_REFUSAL.exclusive];
|
|
134507
134520
|
}
|
|
134508
134521
|
if (isReqEnsureAppSettingsSecretRemove(req)) {
|
|
134509
134522
|
const key2 = req.secretRemove.key;
|
|
@@ -134511,17 +134524,14 @@ async function applySecretOp({
|
|
|
134511
134524
|
}
|
|
134512
134525
|
const { key, value: value2 } = req.secretSet;
|
|
134513
134526
|
if (!SECRET_KEY_RE.test(key)) {
|
|
134514
|
-
return [
|
|
134515
|
-
buildEnsureEntryResult(settings),
|
|
134516
|
-
`secret key must match [A-Za-z_][A-Za-z0-9_]* (max 64 chars), got ${JSON.stringify(key)}`
|
|
134517
|
-
];
|
|
134527
|
+
return [buildEnsureEntryResult(settings), SECRET_REFUSAL.key];
|
|
134518
134528
|
}
|
|
134519
134529
|
if (value2.length > SECRET_VALUE_MAX) {
|
|
134520
|
-
return [buildEnsureEntryResult(settings),
|
|
134530
|
+
return [buildEnsureEntryResult(settings), SECRET_REFUSAL.size];
|
|
134521
134531
|
}
|
|
134522
134532
|
const existingKeys = new Set(settings.filter((e2) => isActiveSecret(e2)).map((e2) => e2.key));
|
|
134523
134533
|
if (!existingKeys.has(key) && existingKeys.size >= SECRET_COUNT_MAX) {
|
|
134524
|
-
return [buildEnsureEntryResult(settings),
|
|
134534
|
+
return [buildEnsureEntryResult(settings), SECRET_REFUSAL.cap];
|
|
134525
134535
|
}
|
|
134526
134536
|
return await sqlUpsert({
|
|
134527
134537
|
vctx,
|
|
@@ -134932,7 +134942,7 @@ async function ensureAppSettings(vctx, req, userId, opts) {
|
|
|
134932
134942
|
ledger: record2?.AppSlugBindings.ledger ?? req.appSlug,
|
|
134933
134943
|
ownerHandle: req.ownerHandle,
|
|
134934
134944
|
tenant: record2?.UserSlugBindings.tenant ?? req.ownerHandle,
|
|
134935
|
-
error:
|
|
134945
|
+
error: SECRET_REFUSAL.owner,
|
|
134936
134946
|
settings: buildEnsureEntryResult([]),
|
|
134937
134947
|
updated: now2,
|
|
134938
134948
|
created: now2
|
|
@@ -337,6 +337,7 @@
|
|
|
337
337
|
"vibes.diy/api/types/app-clip.ts",
|
|
338
338
|
"vibes.diy/api/types/app-documents.ts",
|
|
339
339
|
"vibes.diy/api/types/app-name.ts",
|
|
340
|
+
"vibes.diy/api/types/app-secret-rules.ts",
|
|
340
341
|
"vibes.diy/api/types/app-speech.ts",
|
|
341
342
|
"vibes.diy/api/types/app.ts",
|
|
342
343
|
"vibes.diy/api/types/asset-extensions.ts",
|
|
@@ -2174,6 +2175,7 @@
|
|
|
2174
2175
|
"vibes.diy/api/svc/intern/agent-notifications.ts",
|
|
2175
2176
|
"vibes.diy/api/svc/intern/agent-own-vibe-tools.ts",
|
|
2176
2177
|
"vibes.diy/api/svc/intern/agent-pane-app.ts",
|
|
2178
|
+
"vibes.diy/api/svc/intern/agent-picture-file-tool.ts",
|
|
2177
2179
|
"vibes.diy/api/svc/intern/agent-picture-links.ts",
|
|
2178
2180
|
"vibes.diy/api/svc/intern/agent-reaction-classifier.ts",
|
|
2179
2181
|
"vibes.diy/api/svc/intern/agent-read-tools.ts",
|
|
@@ -2773,6 +2775,7 @@
|
|
|
2773
2775
|
"vibes.diy/api/types/app-clip.ts",
|
|
2774
2776
|
"vibes.diy/api/types/app-documents.ts",
|
|
2775
2777
|
"vibes.diy/api/types/app-name.ts",
|
|
2778
|
+
"vibes.diy/api/types/app-secret-rules.ts",
|
|
2776
2779
|
"vibes.diy/api/types/app-speech.ts",
|
|
2777
2780
|
"vibes.diy/api/types/app.ts",
|
|
2778
2781
|
"vibes.diy/api/types/asset-extensions.ts",
|