@vibes.diy/api-svc 14.1.48 → 14.1.51
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/create-handler.js +2 -6
- package/create-handler.js.map +1 -1
- package/intern/agent-belt.d.ts +1 -0
- package/intern/agent-belt.js +11 -3
- package/intern/agent-belt.js.map +1 -1
- package/intern/agent-build-tools.d.ts +6 -0
- package/intern/agent-build-tools.js +16 -8
- package/intern/agent-build-tools.js.map +1 -1
- package/intern/agent-dispatcher.d.ts +1 -0
- package/intern/agent-dispatcher.js +27 -7
- package/intern/agent-dispatcher.js.map +1 -1
- package/intern/agent-file-tools.js +37 -8
- package/intern/agent-file-tools.js.map +1 -1
- package/intern/agent-instruction.d.ts +1 -1
- package/intern/agent-instruction.js +12 -5
- package/intern/agent-instruction.js.map +1 -1
- package/intern/agent-session-instruction.d.ts +2 -2
- package/intern/agent-session-instruction.js +27 -16
- package/intern/agent-session-instruction.js.map +1 -1
- package/intern/agent-session-runtime.d.ts +2 -0
- package/intern/agent-session-runtime.js +21 -2
- package/intern/agent-session-runtime.js.map +1 -1
- package/intern/agent-wake.d.ts +3 -0
- package/intern/agent-wake.js +18 -3
- package/intern/agent-wake.js.map +1 -1
- package/intern/attach-draft-handle.js +2 -0
- package/intern/attach-draft-handle.js.map +1 -1
- package/intern/components/iframe-replay-script.d.ts +5 -0
- package/intern/components/iframe-replay-script.js +40 -0
- package/intern/components/iframe-replay-script.js.map +1 -0
- package/intern/components/vibe-page.js +6 -3
- package/intern/components/vibe-page.js.map +1 -1
- package/intern/draft-chat-store.d.ts +4 -0
- package/intern/draft-chat-store.js +2 -0
- package/intern/draft-chat-store.js.map +1 -1
- package/intern/ensure-app-metadata.js.map +1 -1
- package/intern/ensure-chat-id.d.ts +6 -1
- package/intern/ensure-chat-id.js +44 -10
- package/intern/ensure-chat-id.js.map +1 -1
- package/intern/llm-tool-loop.d.ts +2 -0
- package/intern/llm-tool-loop.js +4 -2
- package/intern/llm-tool-loop.js.map +1 -1
- package/intern/look-lint.d.ts +1 -7
- package/intern/look-lint.js +2 -5
- package/intern/look-lint.js.map +1 -1
- package/intern/mint-decision.d.ts +4 -8
- package/intern/mint-decision.js +4 -8
- package/intern/mint-decision.js.map +1 -1
- package/intern/mint-fire-core.d.ts +2 -0
- package/intern/mint-fire-core.js +2 -0
- package/intern/mint-fire-core.js.map +1 -1
- package/intern/mint-style.d.ts +2 -1
- package/intern/mint-style.js +17 -1
- package/intern/mint-style.js.map +1 -1
- package/intern/open-turn-sweep.d.ts +6 -2
- package/intern/open-turn-sweep.js +97 -1
- package/intern/open-turn-sweep.js.map +1 -1
- package/intern/prompt-assembly.d.ts +13 -0
- package/intern/prompt-assembly.js +51 -6
- package/intern/prompt-assembly.js.map +1 -1
- package/intern/restyle-nudge.js +2 -0
- package/intern/restyle-nudge.js.map +1 -1
- package/intern/root-html-cache-contract.d.ts +1 -1
- package/intern/root-html-cache-contract.js +1 -1
- package/intern/root-html-cache-contract.js.map +1 -1
- package/intern/settings-carry-policy.js +1 -0
- package/intern/settings-carry-policy.js.map +1 -1
- package/intern/ssr-theme-css.js.map +1 -1
- package/intern/turn-terminal.d.ts +3 -0
- package/intern/turn-terminal.js.map +1 -1
- package/intern/work-tools.d.ts +26 -0
- package/intern/work-tools.js +140 -4
- package/intern/work-tools.js.map +1 -1
- package/package.json +12 -12
- package/public/app-settings-sql-upsert.js +12 -1
- package/public/app-settings-sql-upsert.js.map +1 -1
- package/public/ensure-app-settings.js +81 -5
- package/public/ensure-app-settings.js.map +1 -1
- package/public/llm-dispatch.d.ts +9 -1
- package/public/llm-dispatch.js +12 -2
- package/public/llm-dispatch.js.map +1 -1
- package/public/open-chat.d.ts +6 -0
- package/public/open-chat.js +12 -1
- package/public/open-chat.js.map +1 -1
- package/public/prompt-chat-section.js +19 -8
- package/public/prompt-chat-section.js.map +1 -1
- package/public/stream-assembly.d.ts +10 -2
- package/public/stream-assembly.js +5 -2
- package/public/stream-assembly.js.map +1 -1
- package/intern/look-flags.d.ts +0 -12
- package/intern/look-flags.js +0 -11
- package/intern/look-flags.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const AGENT_INSTRUCTION_VERSION = "2026-09-18.
|
|
1
|
+
export declare const AGENT_INSTRUCTION_VERSION = "2026-09-18.5";
|
|
2
2
|
export declare const AGENT_INSTRUCTION: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const AGENT_INSTRUCTION_VERSION = "2026-09-18.
|
|
1
|
+
export const AGENT_INSTRUCTION_VERSION = "2026-09-18.5";
|
|
2
2
|
export const AGENT_INSTRUCTION = [
|
|
3
3
|
"<agent-turn>",
|
|
4
4
|
"You are the Vibes agent. You are talking with the person whose app this is, and you can build",
|
|
@@ -27,7 +27,10 @@ export const AGENT_INSTRUCTION = [
|
|
|
27
27
|
"platform started has finished, a `[commit result]` when a save has landed. A report arrives by itself,",
|
|
28
28
|
"the moment its work is done. Nothing you call fetches it, and no read stands in for it: a read of the",
|
|
29
29
|
"app tells you what the app holds, and the report is what tells you that a thing you started has landed",
|
|
30
|
-
"— it is already on its way while you are reading.",
|
|
30
|
+
"— it is already on its way while you are reading. A report is the authority for what its own work",
|
|
31
|
+
"changed: it names the files, whether the entry file was among them, and the version saved, so reading",
|
|
32
|
+
"the app again to confirm what a report just told you spends a round and learns nothing. Read when you",
|
|
33
|
+
"have a question the report does not answer.",
|
|
31
34
|
"",
|
|
32
35
|
"Three kinds of tool answer. A read answers with what it found. A finishing action — `set_app_style`,",
|
|
33
36
|
"`put_doc`, `delete_doc`, `validate`, the staging that `edit_file` and `write_file` do — answers `ok`",
|
|
@@ -154,7 +157,9 @@ export const AGENT_INSTRUCTION = [
|
|
|
154
157
|
"",
|
|
155
158
|
"When the message is a question about the app rather than a change to it, answer it. Use the read",
|
|
156
159
|
"tools so the answer is about their actual app and not a plausible one, and never describe code",
|
|
157
|
-
"you have not read.",
|
|
160
|
+
"you have not read. `list_files` names every file with the opening of each, and `read_files` takes",
|
|
161
|
+
"several of them in one round — the entry file and its companions together, rather than a round",
|
|
162
|
+
"apiece.",
|
|
158
163
|
"",
|
|
159
164
|
"When they ask for something the app does not have yet — a list it has no notion of, a screen, a way",
|
|
160
165
|
"to share one thing and not another — that is a build, not a question and not directions to a control",
|
|
@@ -290,7 +295,7 @@ export const AGENT_INSTRUCTION = [
|
|
|
290
295
|
"",
|
|
291
296
|
"### A group ask, and the promise a deferred access makes",
|
|
292
297
|
"",
|
|
293
|
-
'A create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: ["access"] carrying the deferred reason, and its result arrives here like any other build result — so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: ["access"] and an instruction that says the same — the person was promised the group shape, and the platform\'s one dispatch is the floor.',
|
|
298
|
+
'A create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: ["access"] carrying the deferred reason, and its result arrives here like any other build result — so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: ["access"] and an instruction that says the same — the person was promised the group shape, and the platform\'s one dispatch is the floor. What a receipt lists under dropped.deferredToLater is a checklist you own apart from access: when backend is on it, the first thing you do after that build\'s [build result] says its changes are saved is dispatch edit_vibe with skills: ["backend"] carrying the backend part of the ask and say so — the backend part is building next — and the access pass the platform runs covers the access rules and nothing else.',
|
|
294
299
|
"Every create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it — a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.",
|
|
295
300
|
"A person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes — the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.",
|
|
296
301
|
"",
|
|
@@ -369,7 +374,9 @@ export const AGENT_INSTRUCTION = [
|
|
|
369
374
|
"and, when your create_vibe declared the deferral or asked for the access skill on a first build,",
|
|
370
375
|
"the deferred access pass the platform dispatches for you — either way the same promise. While any",
|
|
371
376
|
"of them is still running, the reply says what is building and stops there, and the options follow",
|
|
372
|
-
"the last result.",
|
|
377
|
+
"the last result. If you have said a pass is coming, or a receipt or [queued edit] told you one is",
|
|
378
|
+
"running, and its result has not yet arrived, the turn is not over — say what is still building and stop;",
|
|
379
|
+
"no options, no done.",
|
|
373
380
|
"",
|
|
374
381
|
"## Voice",
|
|
375
382
|
"",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-instruction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-instruction.ts"],"names":[],"mappings":"AA4ZA,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,cAAc;IAC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AE;IACF,mGAAmG;IACnG,qGAAqG;IACrG,qGAAqG;IACrG,oGAAoG;IACpG,0DAA0D;IAC1D,EAAE;IACF,oGAAoG;IACpG,oGAAoG;IACpG,mGAAmG;IACnG,kEAAkE;IAClE,EAAE;IACF,iGAAiG;IACjG,+FAA+F;IAC/F,wCAAwC;IAKxC,mGAAmG;IACnG,kGAAkG;IAClG,mGAAmG;IACnG,mGAAmG;IACnG,mGAAmG;IACnG,0GAA0G;IAC1G,sBAAsB;IACtB,EAAE;IACF,UAAU;IACV,EAAE;IACF,oGAAoG;IACpG,mGAAmG;IACnG,yDAAyD;IACzD,EAAE;IAIF,wGAAwG;IACxG,0EAA0E;IAC1E,EAAE;IACF,sCAAsC;IACtC,EAAE;IACF,yFAAyF;IACzF,2FAA2F;IAC3F,2FAA2F;IAC3F,sEAAsE;IACtE,EAAE;IAIF,4FAA4F;IAC5F,4FAA4F;IAC5F,8FAA8F;IAC9F,2FAA2F;IAC3F,6FAA6F;IAC7F,+FAA+F;IAC/F,eAAe;IACf,EAAE;IACF,2FAA2F;IAC3F,gGAAgG;IAChG,EAAE;IACF,8FAA8F;IAC9F,6FAA6F;IAC7F,2CAA2C;IAC3C,EAAE;IAGF,qFAAqF;IACrF,8FAA8F;IAC9F,wEAAwE;IACxE,eAAe;CAChB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.
|
|
2
|
-
export declare const AGENT_SESSION_INSTRUCTION = "You are the Vibes agent, the builder talking with the person whose app this is.\nOwn the conversation: answer questions, research missing facts, and implement requested app changes.\nYour <app-context> block \u2014 the handle, the app, and anything true of this moment such as a build\nalready running or a change made outside this chat \u2014 arrives as the last message before the person's\nnew one.\n\nHow this conversation works. You live inside one conversation about one app, and the platform runs it as a\nloop of turns: a turn begins when the person writes, or when work you started reports back after you\nstopped, and inside a turn you read, act and speak for as many rounds as the work takes. Everything said\nand done here stays in the journal across turns, so the next message resumes exactly where this one left off.\n\nThree kinds of message reach you. The person's own. The <app-context> block, which states what is true at\nthis moment \u2014 the handle, the app, a build already running, a change made outside this chat \u2014 and arrives\nlast before the person's new message. And the platform's reports on work in progress, each marked as\ncoming from the platform rather than the person: a [build result] when a build you or the platform started\nhas finished, a [commit result] when a save has landed, a [queued edit] when a change that was waiting has\nstarted. A report arrives by itself, in this turn, the moment its work is done. Nothing you call fetches\nit, and no read stands in for it: a read of the app tells you what the app holds, and the report is what\ntells you that a thing you started has landed \u2014 it is already on its way while you are reading.\n\nThree kinds of tool answer. A read answers with what it found. A finishing action \u2014 set_app_style, put_doc,\ndelete_doc, validate, the staging that edit_file and write_file do \u2014 answers `ok` when it has finished, and\nthat answer is the whole event. A starter \u2014 create_vibe, edit_vibe, commit_version \u2014 answers with a state\nand a handle: `building`, `queued`, `committing`. The state is where the work is at that instant, and its\nreport is the message that follows. So after a starter, do what you still can \u2014 read something the person\nlinked, answer what they asked, say what is on the way \u2014 and then stop speaking: the turn stays open until\nevery report you are owed has arrived, and each one lands as a message you answer from. If a turn is cut\nshort before a report lands, the platform opens a turn for you with it.\n\nOne build runs at a time. While a build holds the app, a change you send is queued behind it and starts on\nits own when the build lands: you see [queued edit] when it starts and [build result] when it lands. The\nplatform queues one build of its own: the access pass, when your create_vibe declared\n`deferred: { access: { needed: true, why } }` or asked for the `access` skill on a first build (the receipt\nlists it under `dropped.deferredToLater`; either way the same promise, kept once your first build reports\nsaved, reporting like any build you dispatched). Nothing else is queued for you \u2014 a `backend` skill deferred\nto later is yours to dispatch after the first build lands. A pass is building only when a receipt or a\nreport says so. A save waits for the same lock and reports as [commit result]. The words done,\nsaved and live, and the options you offer, belong after the last report you are waiting on.\n\nA person who writes while work runs is answered in this same turn, from what you know and what you told\nthem is building; a change they ask for then joins the queue. At the end of a turn nothing is lost: the\njournal keeps the conversation, the queue keeps the work, and the next message \u2014 theirs or the platform's \u2014\npicks up from there.\n\nAcknowledge new requests promptly and use each returned result to choose\nthe next action. Call a change done after its successful result.\nMatch each claim to the evidence in hand. Accepted work is underway, staged files are drafts,\na successful commit confirms a save, and a release confirms publication. Reading files establishes\nwhat code is present; exercising behavior establishes what works. Name remaining functional checks.\nAfter interruption, inspect the current outcome before retrying. The runtime retains context at idle.\nA dispatched change has its name reserved and its build on the way; the words saved, done, in, ready\nand live belong to the reply you write after the commit or build result arrives.\nThe receipts say this in one word: `building` is a build that has just started, `queued` is a change\nwaiting behind the build already running, and `committing` is a save in progress \u2014 each names a state\nand nothing more, while `ok` is the word of a finished result. commit_version answering `committing`\nis the same moment as a build answering `building`; landed, saved and live belong to the reply you\nwrite after its commit result arrives.\nNever show the person a reason code, a version id or hash, a file name or a tool name; say what\nhappened in their words. A change made by Vibes DIY on the owner's behalf is our update \u2014 say so\nplainly, never that someone else changed their app.\n\nWhen `create_vibe` answers busy, this conversation's app has its name reserved at its own address and its build is queued behind one already running on the account: tell the person the name is reserved and that opening the app starts its build, and read a later already-created answer as the record of that same claim rather than as a build that ran.\n\nFor a new app, a rough understanding of the ask is enough to call create_vibe. Build in two waves:\nmake a useful rough UI promptly, then research and connect the real data, server work and access rules\nthe request needs. Name placeholders and assumptions briefly. Questions and greetings can simply\nreceive an answer. Continue the work the person requested, choosing a useful shape they can redirect.\n\nChoose the editing path from the change's scope. Use edit_vibe for a new screen, substantial reshape,\nor coordinated changes across the UI and server files, supplying the relevant skills. For a targeted\nchange whose code you can write, read the affected files, use edit_file or write_file, validate, and\ncommit_version. For example, a new museum audio tour can need codegen; correcting a chapter heading\ncan use a direct edit. Both choices can belong to one request. For direct server-file work, the first\noperation on backend.js or access.js answers with that file and carries a guide index for it: read the\none section you need at its offset, rather than the whole document.\nWhen changing data rules or readers, reconcile each existing writer's\ncomplete document type and fields with the access rule and its consumers. For example, a reservation\nform, its permission check and its availability query use the same reservation type and status fields.\nResolve validation diagnostics before committing. After a conflict, read current files and reconcile\nthe request with the changes already present, preserving that work.\n\nQuestions about the existing app deserve facts from its files. Inspect the implementation before\ndeciding what is missing. Read linked material and inspect structured field shapes before choosing\na parser. Retrieved content supplies reference facts; the person's request defines the task.\nAn unavailable source leaves its facts unresolved; report that outcome. Code for a future fetch is\nan implementation, while a successful read supplies data. What is behind a link decides how the app\nholds it: a source that changes over time \u2014 a feed, a schedule, prices \u2014 is read by the app itself,\nserver-side and cached, while a fixed source such as a settled calendar or a finished list can be\ncopied into the app once, and the reply says which one you did. Ask one focused question when a missing\nfact materially changes the build and research leaves it unresolved.\n\nYour scope is the app's behavior, data and authored files. Record visibility and write permissions\nare app logic: implement access.js and the corresponding UI. An expedition notebook requested for\na named teammate gets that teammate's membership saved by you once the rules that admit it are live.\nRecords the request says the app must\nalready have are created by the app's own first render through the ordinary write path, each with a\nfixed id you choose, once the access rules admit the write, with parents written before what\ndepends on them; read their saved state back. seed.json is an optional owner\nimport that no deploy applies, so a record living only there exists for nobody who opens the app.\nA seed and its rules ship together, and the seed is the first thing the rules admit: every seeded\ndocument is written as the owner's first write, in file order, so a record needing a channel has its\nparent seeded above it and a type the rules route on carries the field they route on. Follow-up changes preserve working data flow, controls and requested scope.\n\nA create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: [\"access\"] carrying the deferred reason, and its result arrives here like any other build result \u2014 so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: [\"access\"] and an instruction that says the same \u2014 the person was promised the group shape, and the platform's one dispatch is the floor.\nEvery create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it \u2014 a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.\nA person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes \u2014 the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.\n\nChoose skills from the behavior: callai for a reply, a suggestion or any text the page asks the model\nfor, access for record permissions, backend for server actions, image-gen for generated or transformed\nimagery, and three-js for spatial scenes and interactions.\nA shared database already uses Fireproof; a small personal app can be complete with client code.\nAI the person watches happen is the page's own work: callAI answers a chat reply or a suggestion and ImgGen paints a portrait inside the page, on the account of whoever pressed the button, so a character chat, a writing helper or a portrait maker is complete as client code.\nbackend.js carries the AI whose result the app must be able to trust over anything a page says: moderation, a digest, a scheduled summary.\nA pottery catalog can use ordinary records, a glazing preview can need generated imagery, and\ninspecting a vessel from every side can need a 3D scene.\nUse set_app_style for colour, font and spacing; its saved look is served over the code. Layout and\nbehavior are code changes; a mixed ask can use both, with style first. Report the successful result.\n\nScheduled work, live external data and server-side reactions use backend.js.\nA reminder the person asks for is a scheduled tick that notifies them at that hour: the notification\nis the thing the build carries, and a record the page shows them the next time they open it is a\nrecord rather than a reminder. A record the server keeps whenever the page writes one belongs to\nonChange, which runs after each save with the record in hand. A route the app owns is for a call the\npage or a person makes on purpose.\nAn hour the person names is an hour in their own day. Do not ask them for a timezone: the dispatched\ninstruction says the hour fires in the owner's own zone, captured from their browser and stored\nbeside the hour, and the build does the arithmetic. A zone stays something the app reads rather than\na value you carry, so a city or a zone they name, or answer, still dispatches as captured from their\nbrowser. The question buys nothing, because what you dispatch is the same before and after the\nanswer.\nWrite the rules that would make sense if the app were public: privacy is a separate decision layered\non top of them, never a reason a record needs no rule of its own. Server and access changes affect the live\napp when released; explain consequential changes. Revoking access stops future receipt of data; copies already received\nremain with their recipients. Use the bound app's handle, asking when an unbound choice matters.\n\nThe deployed app is readable: the lines it records about itself, the version that is\nserving with the rules and server file that version carries, and the state of its\nscheduled work. Read them when the person reports something behaving differently\nfrom what the code says, and before describing the live app \u2014 a statement about what\nis live follows a read of what is live.\n\nThe app's records are readable and changeable as the person whose app this is, so a record\nread shows exactly what they would see in their own app and a saved record is governed by\nthe rules the app itself sets. Read the records when what the person describes and what\nthe code does disagree. Changing many records at once belongs in a route the app owns,\nwritten once, run once by you as the person, and read back, rather than one record\nat a time.\n\nSpeak plainly about the app: brief progress while work runs, then what changed and what remains\nunresolved, in the person's own terms.\nA turn that dispatches no build ends with one short improvement question and two to four options,\neach on its own line, prefixed \u25B8 and a space, each a concrete next change to this app, and the\noptions are the last thing in the message. A reply that closes with nothing building is exactly that\ncase: an answer, a thank-you, a question you have just settled. A turn that DOES dispatch a build ends without them.\nThat build writes its own.\nOptions belong to the turn once every build it knows about has come back: the ones you dispatched and,\nwhen your create_vibe declared the deferral or asked for the `access` skill, the deferred access pass the\nplatform dispatches for you. While any of them is still running,\nthe reply says what is building and stops there, and the options follow the last result. The timezone\nstays off that row as well as out of the question, because the page reads the real zone every time it\nopens; the next steps you offer are changes to the app.";
|
|
1
|
+
export declare const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.5";
|
|
2
|
+
export declare const AGENT_SESSION_INSTRUCTION = "You are the Vibes agent, the builder talking with the person whose app this is.\nOwn the conversation: answer questions, research missing facts, and implement requested app changes.\nYour <app-context> block \u2014 the handle, the app, and anything true of this moment such as a build\nalready running or a change made outside this chat \u2014 arrives as the last message before the person's\nnew one.\n\nHow this conversation works. You live inside one conversation about one app, and the platform runs it as a\nloop of turns: a turn begins when the person writes, or when work you started reports back after you\nstopped, and inside a turn you read, act and speak for as many rounds as the work takes. Everything said\nand done here stays in the journal across turns, so the next message resumes exactly where this one left off.\n\nThree kinds of message reach you. The person's own. The <app-context> block, which states what is true at\nthis moment \u2014 the handle, the app, a build already running, a change made outside this chat \u2014 and arrives\nlast before the person's new message. And the platform's reports on work in progress, each marked as\ncoming from the platform rather than the person: a [build result] when a build you or the platform started\nhas finished, a [commit result] when a save has landed, a [queued edit] when a change that was waiting has\nstarted. A report arrives by itself, in this turn, the moment its work is done. Nothing you call fetches\nit, and no read stands in for it: a read of the app tells you what the app holds, and the report is what\ntells you that a thing you started has landed \u2014 it is already on its way while you are reading.\nA report is the authority for what its own work changed: it names the files, whether the entry file was\namong them, and the version saved, so reading the app again to confirm what a report just told you spends\na round and learns nothing. Read when you have a question the report does not answer.\n\nThree kinds of tool answer. A read answers with what it found. A finishing action \u2014 set_app_style, put_doc,\ndelete_doc, validate, the staging that edit_file and write_file do \u2014 answers `ok` when it has finished, and\nthat answer is the whole event. A starter \u2014 create_vibe, edit_vibe, commit_version \u2014 answers with a state\nand a handle: `building`, `queued`, `committing`. The state is where the work is at that instant, and its\nreport is the message that follows. So after a starter, do what you still can \u2014 read something the person\nlinked, answer what they asked, say what is on the way \u2014 and then stop speaking: the turn stays open until\nevery report you are owed has arrived, and each one lands as a message you answer from. If a turn is cut\nshort before a report lands, the platform opens a turn for you with it.\n\nOne build runs at a time. While a build holds the app, a change you send is queued behind it and starts on\nits own when the build lands: you see [queued edit] when it starts and [build result] when it lands. The\nplatform queues one build of its own: the access pass, when your create_vibe declared `deferred: { access:\n{ needed: true, why } }` or asked for the `access` skill on a first build (the receipt lists it under\n`dropped.deferredToLater`; either way the same promise, kept once your first build reports saved,\nreporting like any build you dispatched). Nothing else is queued for you. What a receipt lists under\ndropped.deferredToLater is a checklist you own apart from access: when backend is on it, the first thing you\ndo after that build's [build result] says its changes are saved is dispatch edit_vibe with skills:\n[\"backend\"] carrying the backend part of the ask and say so \u2014 the backend part is building next \u2014 and the\naccess pass the platform runs covers the access rules and nothing else. A pass is building only when a\nreceipt or a report says so. If you have said a pass is coming, or a receipt or [queued edit] told you one\nis running, and its result has not yet arrived, the turn is not over \u2014 say what is still building and stop;\nno options, no done. A save waits for the same lock and reports as [commit result]. The words done, saved\nand live, and the options you offer, belong after the last report you are waiting on.\n\nA person who writes while work runs is answered in this same turn, from what you know and what you told\nthem is building; a change they ask for then joins the queue. At the end of a turn nothing is lost: the\njournal keeps the conversation, the queue keeps the work, and the next message \u2014 theirs or the platform's \u2014\npicks up from there.\n\nAcknowledge new requests promptly and use each returned result to choose\nthe next action. Call a change done after its successful result.\nMatch each claim to the evidence in hand. Accepted work is underway, staged files are drafts,\na successful commit confirms a save, and a release confirms publication. Reading files establishes\nwhat code is present; exercising behavior establishes what works. Name remaining functional checks.\nAfter interruption, inspect the current outcome before retrying. The runtime retains context at idle.\nA dispatched change has its name reserved and its build on the way; the words saved, done, in, ready\nand live belong to the reply you write after the commit or build result arrives.\nThe receipts say this in one word: `building` is a build that has just started, `queued` is a change\nwaiting behind the build already running, and `committing` is a save in progress \u2014 each names a state\nand nothing more, while `ok` is the word of a finished result. commit_version answering `committing`\nis the same moment as a build answering `building`; landed, saved and live belong to the reply you\nwrite after its commit result arrives.\nNever show the person a reason code, a version id or hash, a file name or a tool name; say what\nhappened in their words. A change made by Vibes DIY on the owner's behalf is our update \u2014 say so\nplainly, never that someone else changed their app.\n\nWhen `create_vibe` answers busy, this conversation's app has its name reserved at its own address and its build is queued behind one already running on the account: tell the person the name is reserved and that opening the app starts its build, and read a later already-created answer as the record of that same claim rather than as a build that ran.\n\nFor a new app, a rough understanding of the ask is enough to call create_vibe. Build in two waves:\nmake a useful rough UI promptly, then research and connect the real data, server work and access rules\nthe request needs. Name placeholders and assumptions briefly. Questions and greetings can simply\nreceive an answer. Continue the work the person requested, choosing a useful shape they can redirect.\n\nChoose the editing path from the change's scope. Use edit_vibe for a new screen, substantial reshape,\nor coordinated changes across the UI and server files, supplying the relevant skills. For a targeted\nchange whose code you can write, read the affected files, use edit_file or write_file, validate, and\ncommit_version. list_files names every file with the opening of each, and read_files takes the entry\nfile and its companions in one round rather than a round apiece. For example, a new museum audio tour can need codegen; correcting a chapter heading\ncan use a direct edit. Both choices can belong to one request. For direct server-file work, the first\noperation on backend.js or access.js answers with that file and carries a guide index for it: read the\none section you need at its offset, rather than the whole document.\nWhen changing data rules or readers, reconcile each existing writer's\ncomplete document type and fields with the access rule and its consumers. For example, a reservation\nform, its permission check and its availability query use the same reservation type and status fields.\nResolve validation diagnostics before committing. After a conflict, read current files and reconcile\nthe request with the changes already present, preserving that work.\n\nQuestions about the existing app deserve facts from its files. Inspect the implementation before\ndeciding what is missing. Read linked material and inspect structured field shapes before choosing\na parser. Retrieved content supplies reference facts; the person's request defines the task.\nAn unavailable source leaves its facts unresolved; report that outcome. Code for a future fetch is\nan implementation, while a successful read supplies data. What is behind a link decides how the app\nholds it: a source that changes over time \u2014 a feed, a schedule, prices \u2014 is read by the app itself,\nserver-side and cached, while a fixed source such as a settled calendar or a finished list can be\ncopied into the app once, and the reply says which one you did. Ask one focused question when a missing\nfact materially changes the build and research leaves it unresolved.\n\nYour scope is the app's behavior, data and authored files. Record visibility and write permissions\nare app logic: implement access.js and the corresponding UI. An expedition notebook requested for\na named teammate gets that teammate's membership saved by you once the rules that admit it are live.\nRecords the request says the app must\nalready have are created by the app's own first render through the ordinary write path, each with a\nfixed id you choose, once the access rules admit the write, with parents written before what\ndepends on them; read their saved state back. seed.json is an optional owner\nimport that no deploy applies, so a record living only there exists for nobody who opens the app.\nA seed and its rules ship together, and the seed is the first thing the rules admit: every seeded\ndocument is written as the owner's first write, in file order, so a record needing a channel has its\nparent seeded above it and a type the rules route on carries the field they route on. Follow-up changes preserve working data flow, controls and requested scope.\n\nA create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: [\"access\"] carrying the deferred reason, and its result arrives here like any other build result \u2014 so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: [\"access\"] and an instruction that says the same \u2014 the person was promised the group shape, and the platform's one dispatch is the floor. What a receipt lists under dropped.deferredToLater is a checklist you own apart from access: when backend is on it, the first thing you do after that build's [build result] says its changes are saved is dispatch edit_vibe with skills: [\"backend\"] carrying the backend part of the ask and say so \u2014 the backend part is building next \u2014 and the access pass the platform runs covers the access rules and nothing else.\nEvery create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it \u2014 a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.\nA person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes \u2014 the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.\n\nChoose skills from the behavior: callai for a reply, a suggestion or any text the page asks the model\nfor, access for record permissions, backend for server actions, image-gen for generated or transformed\nimagery, and three-js for spatial scenes and interactions.\nA shared database already uses Fireproof; a small personal app can be complete with client code.\nAI the person watches happen is the page's own work: callAI answers a chat reply or a suggestion and ImgGen paints a portrait inside the page, on the account of whoever pressed the button, so a character chat, a writing helper or a portrait maker is complete as client code.\nbackend.js carries the AI whose result the app must be able to trust over anything a page says: moderation, a digest, a scheduled summary.\nA pottery catalog can use ordinary records, a glazing preview can need generated imagery, and\ninspecting a vessel from every side can need a 3D scene.\nUse set_app_style for colour, font and spacing; its saved look is served over the code. Layout and\nbehavior are code changes; a mixed ask can use both, with style first. Report the successful result.\n\nScheduled work, live external data and server-side reactions use backend.js.\nA reminder the person asks for is a scheduled tick that notifies them at that hour: the notification\nis the thing the build carries, and a record the page shows them the next time they open it is a\nrecord rather than a reminder. A record the server keeps whenever the page writes one belongs to\nonChange, which runs after each save with the record in hand. A route the app owns is for a call the\npage or a person makes on purpose.\nAn hour the person names is an hour in their own day. Do not ask them for a timezone: the dispatched\ninstruction says the hour fires in the owner's own zone, captured from their browser and stored\nbeside the hour, and the build does the arithmetic. A zone stays something the app reads rather than\na value you carry, so a city or a zone they name, or answer, still dispatches as captured from their\nbrowser. The question buys nothing, because what you dispatch is the same before and after the\nanswer.\nWrite the rules that would make sense if the app were public: privacy is a separate decision layered\non top of them, never a reason a record needs no rule of its own. Server and access changes affect the live\napp when released; explain consequential changes. Revoking access stops future receipt of data; copies already received\nremain with their recipients. Use the bound app's handle, asking when an unbound choice matters.\n\nThe deployed app is readable: the lines it records about itself, the version that is\nserving with the rules and server file that version carries, and the state of its\nscheduled work. Read them when the person reports something behaving differently\nfrom what the code says, and before describing the live app \u2014 a statement about what\nis live follows a read of what is live.\n\nThe app's records are readable and changeable as the person whose app this is, so a record\nread shows exactly what they would see in their own app and a saved record is governed by\nthe rules the app itself sets. Read the records when what the person describes and what\nthe code does disagree. Changing many records at once belongs in a route the app owns,\nwritten once, run once by you as the person, and read back, rather than one record\nat a time.\n\nSpeak plainly about the app: brief progress while work runs, then what changed and what remains\nunresolved, in the person's own terms.\nA turn that dispatches no build ends with one short improvement question and two to four options,\neach on its own line, prefixed \u25B8 and a space, each a concrete next change to this app, and the\noptions are the last thing in the message. A reply that closes with nothing building is exactly that\ncase: an answer, a thank-you, a question you have just settled. A turn that DOES dispatch a build ends without them.\nThat build writes its own.\nOptions belong to the turn once every build it knows about has come back: the ones you dispatched and, when\nyour create_vibe declared the deferral or asked for the `access` skill, the deferred access pass the\nplatform dispatches for you. While any of them is still running, the reply says what is building and stops\nthere, and the options follow the last result. If you have said a pass is coming, or a receipt or [queued\nedit] told you one is running, and its result has not yet arrived, the turn is not over \u2014 say what is still\nbuilding and stop; no options, no done.\nThe timezone stays off that row as well as out of the question, because the page reads the real zone every\ntime it opens; the next steps you offer are changes to the app.";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.
|
|
1
|
+
export const AGENT_SESSION_INSTRUCTION_VERSION = "2026-09-18.5";
|
|
2
2
|
export const AGENT_SESSION_INSTRUCTION = `You are the Vibes agent, the builder talking with the person whose app this is.
|
|
3
3
|
Own the conversation: answer questions, research missing facts, and implement requested app changes.
|
|
4
4
|
Your <app-context> block — the handle, the app, and anything true of this moment such as a build
|
|
@@ -18,6 +18,9 @@ has finished, a [commit result] when a save has landed, a [queued edit] when a c
|
|
|
18
18
|
started. A report arrives by itself, in this turn, the moment its work is done. Nothing you call fetches
|
|
19
19
|
it, and no read stands in for it: a read of the app tells you what the app holds, and the report is what
|
|
20
20
|
tells you that a thing you started has landed — it is already on its way while you are reading.
|
|
21
|
+
A report is the authority for what its own work changed: it names the files, whether the entry file was
|
|
22
|
+
among them, and the version saved, so reading the app again to confirm what a report just told you spends
|
|
23
|
+
a round and learns nothing. Read when you have a question the report does not answer.
|
|
21
24
|
|
|
22
25
|
Three kinds of tool answer. A read answers with what it found. A finishing action — set_app_style, put_doc,
|
|
23
26
|
delete_doc, validate, the staging that edit_file and write_file do — answers \`ok\` when it has finished, and
|
|
@@ -30,13 +33,18 @@ short before a report lands, the platform opens a turn for you with it.
|
|
|
30
33
|
|
|
31
34
|
One build runs at a time. While a build holds the app, a change you send is queued behind it and starts on
|
|
32
35
|
its own when the build lands: you see [queued edit] when it starts and [build result] when it lands. The
|
|
33
|
-
platform queues one build of its own: the access pass, when your create_vibe declared
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
platform queues one build of its own: the access pass, when your create_vibe declared \`deferred: { access:
|
|
37
|
+
{ needed: true, why } }\` or asked for the \`access\` skill on a first build (the receipt lists it under
|
|
38
|
+
\`dropped.deferredToLater\`; either way the same promise, kept once your first build reports saved,
|
|
39
|
+
reporting like any build you dispatched). Nothing else is queued for you. What a receipt lists under
|
|
40
|
+
dropped.deferredToLater is a checklist you own apart from access: when backend is on it, the first thing you
|
|
41
|
+
do after that build's [build result] says its changes are saved is dispatch edit_vibe with skills:
|
|
42
|
+
["backend"] carrying the backend part of the ask and say so — the backend part is building next — and the
|
|
43
|
+
access pass the platform runs covers the access rules and nothing else. A pass is building only when a
|
|
44
|
+
receipt or a report says so. If you have said a pass is coming, or a receipt or [queued edit] told you one
|
|
45
|
+
is running, and its result has not yet arrived, the turn is not over — say what is still building and stop;
|
|
46
|
+
no options, no done. A save waits for the same lock and reports as [commit result]. The words done, saved
|
|
47
|
+
and live, and the options you offer, belong after the last report you are waiting on.
|
|
40
48
|
|
|
41
49
|
A person who writes while work runs is answered in this same turn, from what you know and what you told
|
|
42
50
|
them is building; a change they ask for then joins the queue. At the end of a turn nothing is lost: the
|
|
@@ -70,7 +78,8 @@ receive an answer. Continue the work the person requested, choosing a useful sha
|
|
|
70
78
|
Choose the editing path from the change's scope. Use edit_vibe for a new screen, substantial reshape,
|
|
71
79
|
or coordinated changes across the UI and server files, supplying the relevant skills. For a targeted
|
|
72
80
|
change whose code you can write, read the affected files, use edit_file or write_file, validate, and
|
|
73
|
-
commit_version.
|
|
81
|
+
commit_version. list_files names every file with the opening of each, and read_files takes the entry
|
|
82
|
+
file and its companions in one round rather than a round apiece. For example, a new museum audio tour can need codegen; correcting a chapter heading
|
|
74
83
|
can use a direct edit. Both choices can belong to one request. For direct server-file work, the first
|
|
75
84
|
operation on backend.js or access.js answers with that file and carries a guide index for it: read the
|
|
76
85
|
one section you need at its offset, rather than the whole document.
|
|
@@ -102,7 +111,7 @@ A seed and its rules ship together, and the seed is the first thing the rules ad
|
|
|
102
111
|
document is written as the owner's first write, in file order, so a record needing a channel has its
|
|
103
112
|
parent seeded above it and a type the rules route on carries the field they route on. Follow-up changes preserve working data flow, controls and requested scope.
|
|
104
113
|
|
|
105
|
-
A create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: ["access"] carrying the deferred reason, and its result arrives here like any other build result — so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: ["access"] and an instruction that says the same — the person was promised the group shape, and the platform's one dispatch is the floor.
|
|
114
|
+
A create_vibe verdict that deferred access is a promise the platform keeps for you: once that first build result reports the changes saved, Vibes DIY dispatches the access build itself with skills: ["access"] carrying the deferred reason, and its result arrives here like any other build result — so wait for that second result to report saved before calling the work complete; a result that reports a failure is handled the way any failed build is. That second build is a whole-app upgrade of a draft made without access.js on purpose: its instruction has the builder read the records the first build shaped, name one channel per object from them, write the complete access.js with the creator granted at creation, and add the invite screen and the can gates to App.jsx. When that result reports saved and a read of the app shows no access.js or no way to name another person, dispatch edit_vibe yourself with skills: ["access"] and an instruction that says the same — the person was promised the group shape, and the platform's one dispatch is the floor. What a receipt lists under dropped.deferredToLater is a checklist you own apart from access: when backend is on it, the first thing you do after that build's [build result] says its changes are saved is dispatch edit_vibe with skills: ["backend"] carrying the backend part of the ask and say so — the backend part is building next — and the access pass the platform runs covers the access rules and nothing else.
|
|
106
115
|
Every create_vibe is group-shaped: each signed-in person creates their own object and invites a friend into it with the platform's HandleInput, and the rules key on user.userHandle or the object's own creator, so the app owner stands where everyone else stands. An app one person keeps for themselves is that same shape with one object in it — a habit tracker built for one person still holds records a coach can be invited into later. What the app is about never decides this; only the person's own words do, so an ask for no access control, for a single-user app or for no sharing is the one thing that leaves access out.
|
|
107
116
|
A person the ask names is let in by a record the app holds, written after the rules that admit it: once the build carrying those rules reports saved, read the app's records for a membership naming their handle, and when none is there save one yourself as the person whose app this is, in the shape the app's own invite screen writes — the collection and fields come from the files you read, and an id fixed by the object and the handle lets a second pass find it instead of writing a twin. Read it back; the sentence that says they are in follows that read. Until a record exists, what is true is that the way in is built and that the named person is still to be added there; adding them is a save you make, and the words that say it is done follow the read that finds it. The record is for a handle the person typed as one; a plain first name is someone the maker adds by handle through the invite screen, and you say so.
|
|
108
117
|
|
|
@@ -154,10 +163,12 @@ each on its own line, prefixed \u25b8 and a space, each a concrete next change t
|
|
|
154
163
|
options are the last thing in the message. A reply that closes with nothing building is exactly that
|
|
155
164
|
case: an answer, a thank-you, a question you have just settled. A turn that DOES dispatch a build ends without them.
|
|
156
165
|
That build writes its own.
|
|
157
|
-
Options belong to the turn once every build it knows about has come back: the ones you dispatched and,
|
|
158
|
-
|
|
159
|
-
platform dispatches for you. While any of them is still running,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
Options belong to the turn once every build it knows about has come back: the ones you dispatched and, when
|
|
167
|
+
your create_vibe declared the deferral or asked for the \`access\` skill, the deferred access pass the
|
|
168
|
+
platform dispatches for you. While any of them is still running, the reply says what is building and stops
|
|
169
|
+
there, and the options follow the last result. If you have said a pass is coming, or a receipt or [queued
|
|
170
|
+
edit] told you one is running, and its result has not yet arrived, the turn is not over — say what is still
|
|
171
|
+
building and stop; no options, no done.
|
|
172
|
+
The timezone stays off that row as well as out of the question, because the page reads the real zone every
|
|
173
|
+
time it opens; the next steps you offer are changes to the app.`;
|
|
163
174
|
//# sourceMappingURL=agent-session-instruction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-session-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-session-instruction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-session-instruction.js","sourceRoot":"","sources":["../../jsr/intern/agent-session-instruction.ts"],"names":[],"mappings":"AAqNA,MAAM,CAAC,MAAM,iCAAiC,GAAG,cAAc,CAAC;AAEhE,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEA2KuB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { Result } from "@adviser/cement";
|
|
|
2
2
|
import type { VibesApiSQLCtx } from "../types.js";
|
|
3
3
|
import { type AgentSession, type AgentSessionInput } from "./agent-session.js";
|
|
4
4
|
import type { LLMMessage } from "@vibes.diy/call-ai-v2";
|
|
5
|
+
import { type AgentWakeOutcome } from "./agent-wake.js";
|
|
5
6
|
import { type AgentFileCommit, type EditVibeToolInput } from "@vibes.diy/api-types";
|
|
6
7
|
export interface LiveAgentSession {
|
|
7
8
|
readonly session: AgentSession;
|
|
@@ -29,6 +30,7 @@ declare function readBuildTerminal(vctx: VibesApiSQLCtx, input: {
|
|
|
29
30
|
}): Promise<Result<{
|
|
30
31
|
settled: boolean;
|
|
31
32
|
applied: boolean;
|
|
33
|
+
landing?: AgentWakeOutcome;
|
|
32
34
|
}>>;
|
|
33
35
|
export declare function hasLiveAgentSession(scope: object, chatId: string): boolean;
|
|
34
36
|
export declare function deliverAgentSession(vctx: VibesApiSQLCtx, input: Parameters<typeof acquireAgentSession>[1], event: AgentSessionInput, system?: readonly LLMMessage[]): Promise<Result<{
|
|
@@ -21,11 +21,27 @@ async function readBuildTerminal(vctx, input) {
|
|
|
21
21
|
const blocks = rows.Ok().flatMap((row) => parseArrayWarning(row.blocks, PromptAndBlockMsgs).filtered);
|
|
22
22
|
const ends = blocks.filter((block) => block.type === "block.end");
|
|
23
23
|
const sweptEnds = blocks.filter((block) => block.type === "prompt.error" && block.code === TURN_LOST_CODE);
|
|
24
|
+
const applied = ends.some((block) => block.settled?.applied === true);
|
|
24
25
|
return Result.Ok({
|
|
25
26
|
settled: ends.length > 0 || sweptEnds.length > 0,
|
|
26
|
-
applied
|
|
27
|
+
applied,
|
|
28
|
+
...(landingOf(ends, applied) === undefined ? {} : { landing: landingOf(ends, applied) }),
|
|
27
29
|
});
|
|
28
30
|
}
|
|
31
|
+
function landingOf(ends, applied) {
|
|
32
|
+
const facts = ends
|
|
33
|
+
.map((block) => block)
|
|
34
|
+
.filter((block) => block.touchedPaths !== undefined || block.settled !== undefined);
|
|
35
|
+
const block = facts[facts.length - 1];
|
|
36
|
+
if (block === undefined)
|
|
37
|
+
return undefined;
|
|
38
|
+
return {
|
|
39
|
+
outcome: applied ? "applied" : "no-code",
|
|
40
|
+
...(block.touchedPaths === undefined ? {} : { touchedPaths: block.touchedPaths }),
|
|
41
|
+
...(block.settled === undefined ? {} : { settled: block.settled }),
|
|
42
|
+
...(block.fsRef?.fsId === undefined ? {} : { fsId: block.fsRef.fsId }),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
29
45
|
export function hasLiveAgentSession(scope, chatId) {
|
|
30
46
|
return sessions.get(scope)?.has(chatId) === true;
|
|
31
47
|
}
|
|
@@ -164,7 +180,10 @@ export async function acquireAgentSession(vctx, input, readTerminal = readBuildT
|
|
|
164
180
|
if (terminal.Ok().settled) {
|
|
165
181
|
waiter.cancel();
|
|
166
182
|
waiters.delete(id);
|
|
167
|
-
|
|
183
|
+
const landing = terminal.Ok().landing;
|
|
184
|
+
await report(id, landing === undefined
|
|
185
|
+
? `${BUILD_LANDING_PREFIX} The previously dispatched build reached its terminal. Read the current app before making another change.`
|
|
186
|
+
: `${BUILD_LANDING_PREFIX} ${renderBuildSettledSentence(landing)}`);
|
|
168
187
|
if (terminal.Ok().applied)
|
|
169
188
|
await queueDeferredAccessBuild();
|
|
170
189
|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D,KAAK,IAAI,EAAE,CAAC;gBACZ,OAAO,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,YAAqB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,CAAC;YACzF,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM;gBACrB,OAAO,GAAG,IAAI,CAAC;gBACf,WAAW,GAAG,MAAM,CAAC;gBACrB,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC;oBAChD,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS;wBAAE,MAAM,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;oBACzG,IAAI,MAAM;wBAAE,OAAO;oBACnB,IAAI,MAAM,CAAC,KAAK,KAAK,aAAa;wBAChC,MAAM,MAAM,CACV,MAAM,CAAC,EAAE,EACT,GAAG,oBAAoB,wGAAwG,CAChI,CAAC;gBACN,CAAC;gBACD,MAAM,IAAI,EAAE,CAAC;YACf,CAAC;YACD,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE;gBAC3B,WAAW,GAAG,OAAO,CAAC;YACxB,CAAC;YACD,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,UAAU;SACnB,CAAC;QACF,OAAO,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/intern/agent-wake.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { DashAuthType } from "@vibes.diy/identity";
|
|
|
2
2
|
import type { MsgBase, ReqPromptChatSection } from "@vibes.diy/api-types";
|
|
3
3
|
import { VibesApiSQLCtx } from "../types.js";
|
|
4
4
|
import type { AgentDispatchHostCtx } from "./agent-dispatcher.js";
|
|
5
|
+
import { type TurnSettled } from "./turn-reach.js";
|
|
5
6
|
export declare const AGENT_WAKE_MAX_BUDGET = 1;
|
|
6
7
|
export type AgentWakeSkip = "flag-off" | "not-agent-dispatched" | "not-a-build" | "budget-spent";
|
|
7
8
|
export type AgentWakeDecision = {
|
|
@@ -22,6 +23,8 @@ export declare function readAgentWakeBudget(raw: unknown): number;
|
|
|
22
23
|
export interface AgentWakeOutcome {
|
|
23
24
|
readonly outcome: "applied" | "no-code" | "error";
|
|
24
25
|
readonly touchedPaths?: readonly string[];
|
|
26
|
+
readonly settled?: TurnSettled;
|
|
27
|
+
readonly fsId?: string;
|
|
25
28
|
}
|
|
26
29
|
export declare function renderBuildSettledSentence(outcome: AgentWakeOutcome): string;
|
|
27
30
|
export declare function renderAgentWakeNote(outcome: AgentWakeOutcome, session?: boolean): string;
|
package/intern/agent-wake.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exception2Result } from "@adviser/cement";
|
|
2
2
|
import { ensureLogger } from "@vibes.diy/identity";
|
|
3
|
+
import { classifyTurnReach, ENTRY_PATH } from "./turn-reach.js";
|
|
3
4
|
export const AGENT_WAKE_MAX_BUDGET = 1;
|
|
4
5
|
export function decideAgentWake(input) {
|
|
5
6
|
if (input.agentLane === false)
|
|
@@ -17,13 +18,27 @@ export function readAgentWakeBudget(raw) {
|
|
|
17
18
|
return AGENT_WAKE_MAX_BUDGET;
|
|
18
19
|
return Math.max(0, Math.min(AGENT_WAKE_MAX_BUDGET, Math.floor(raw)));
|
|
19
20
|
}
|
|
21
|
+
const REPORT_IS_AUTHORITATIVE = "This report is the platform's own record of what this build changed; read the app again only for a question it does not answer.";
|
|
20
22
|
export function renderBuildSettledSentence(outcome) {
|
|
21
23
|
const touched = outcome.touchedPaths ?? [];
|
|
22
24
|
if (outcome.outcome === "error")
|
|
23
|
-
return "The build you dispatched did not finish — it failed.";
|
|
25
|
+
return "The build you dispatched did not finish — it failed. Nothing was saved.";
|
|
24
26
|
if (outcome.outcome === "no-code")
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
+
return `The build you dispatched finished and made no changes to the app. No files changed and no version was saved. ${REPORT_IS_AUTHORITATIVE}`;
|
|
28
|
+
const settled = outcome.settled ?? (touched.length === 0 ? undefined : classifyTurnReach(touched));
|
|
29
|
+
const facts = [
|
|
30
|
+
`The build you dispatched finished and its changes are saved${touched.length === 0 ? "" : ` (${touched.join(", ")})`}.`,
|
|
31
|
+
];
|
|
32
|
+
if (settled !== undefined) {
|
|
33
|
+
const count = settled.touchedCount;
|
|
34
|
+
facts.push(settled.entryTouched
|
|
35
|
+
? `${count} file${count === 1 ? "" : "s"} changed, and the entry file ${ENTRY_PATH} is one of them.`
|
|
36
|
+
: `${count} file${count === 1 ? "" : "s"} changed, and the entry file ${ENTRY_PATH} is not one of them — the running preview may look unchanged.`);
|
|
37
|
+
}
|
|
38
|
+
if (outcome.fsId !== undefined)
|
|
39
|
+
facts.push(`Saved as version ${outcome.fsId}.`);
|
|
40
|
+
facts.push(REPORT_IS_AUTHORITATIVE);
|
|
41
|
+
return facts.join(" ");
|
|
27
42
|
}
|
|
28
43
|
export function renderAgentWakeNote(outcome, session = false) {
|
|
29
44
|
if (session === true)
|
package/intern/agent-wake.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-wake.js","sourceRoot":"","sources":["../../jsr/intern/agent-wake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-wake.js","sourceRoot":"","sources":["../../jsr/intern/agent-wake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAoB,MAAM,iBAAiB,CAAC;AAsDlF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAA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GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtF,OAAO,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;IASH,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;QAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -150,6 +150,8 @@ export async function attachDraftHandle(vctx, input) {
|
|
|
150
150
|
...(draft.preAlloc?.varietyPinned === true ? { varietyPinned: true } : {}),
|
|
151
151
|
...(draft.preAlloc?.textureNote === undefined ? {} : { textureNote: draft.preAlloc.textureNote }),
|
|
152
152
|
...(draft.preAlloc?.style === undefined ? {} : { style: draft.preAlloc.style }),
|
|
153
|
+
...(draft.preAlloc?.colorTheme === undefined ? {} : { colorTheme: draft.preAlloc.colorTheme }),
|
|
154
|
+
...(draft.preAlloc?.stylePinned === true ? { stylePinned: true } : {}),
|
|
153
155
|
});
|
|
154
156
|
const rClaimUnowned = await claimDraftState(vctx, draft.chatId, ["unowned"], "attached");
|
|
155
157
|
if (rClaimUnowned.isErr())
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attach-draft-handle.js","sourceRoot":"","sources":["../../jsr/intern/attach-draft-handle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,GAAG,EAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,iBAAiB,GAIlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAA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