@tangle-network/agent-app 0.57.3 → 0.57.8

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.
Files changed (43) hide show
  1. package/dist/{DesignCanvasEditor-JSEDIQWF.js → DesignCanvasEditor-HB7HTZUT.js} +3 -3
  2. package/dist/agent-profiles/d1.d.ts +12 -1
  3. package/dist/agent-profiles/d1.js +20 -7
  4. package/dist/agent-profiles/d1.js.map +1 -1
  5. package/dist/agent-profiles/index.d.ts +12 -9
  6. package/dist/agent-profiles/index.js +1 -1
  7. package/dist/assistant/index.js +1 -1
  8. package/dist/chat-routes/index.js +4 -4
  9. package/dist/{chunk-HNVWTWU5.js → chunk-6KZ4ZTLG.js} +2 -2
  10. package/dist/{chunk-APZ4W7HJ.js → chunk-6ZFXAW6J.js} +51 -9
  11. package/dist/chunk-6ZFXAW6J.js.map +1 -0
  12. package/dist/{chunk-2BD7VZKN.js → chunk-GDATBYU4.js} +2 -2
  13. package/dist/{chunk-J5EBGZTD.js → chunk-KELJZHID.js} +2 -2
  14. package/dist/{chunk-M63EUBSH.js → chunk-OP6Y4DWQ.js} +5 -5
  15. package/dist/{chunk-M63EUBSH.js.map → chunk-OP6Y4DWQ.js.map} +1 -1
  16. package/dist/{chunk-TZ4PEQOH.js → chunk-RWMGUVW7.js} +3 -3
  17. package/dist/chunk-RWMGUVW7.js.map +1 -0
  18. package/dist/{chunk-IVE3T73T.js → chunk-WQLC6IOD.js} +4 -4
  19. package/dist/{chunk-GPRTXOBI.js → chunk-YPP6OJGC.js} +2 -2
  20. package/dist/{chunk-GDB3YCNS.js → chunk-ZBZA7KSL.js} +28 -28
  21. package/dist/chunk-ZBZA7KSL.js.map +1 -0
  22. package/dist/design-canvas-react/index.js +3 -3
  23. package/dist/design-canvas-react/lazy.js +1 -1
  24. package/dist/preset-cloudflare/index.js +2 -2
  25. package/dist/sandbox/index.js +4 -4
  26. package/dist/stories/chat/fixtures.d.ts +20 -0
  27. package/dist/theme/brand.generated.d.ts +28 -28
  28. package/dist/theme/index.js +1 -1
  29. package/dist/theme/tokens.css +150 -110
  30. package/dist/tools/index.js +4 -4
  31. package/dist/web-react/index.d.ts +14 -2
  32. package/dist/web-react/index.js +1 -1
  33. package/dist/work-product/index.js +2 -2
  34. package/package.json +4 -4
  35. package/dist/chunk-APZ4W7HJ.js.map +0 -1
  36. package/dist/chunk-GDB3YCNS.js.map +0 -1
  37. package/dist/chunk-TZ4PEQOH.js.map +0 -1
  38. /package/dist/{DesignCanvasEditor-JSEDIQWF.js.map → DesignCanvasEditor-HB7HTZUT.js.map} +0 -0
  39. /package/dist/{chunk-HNVWTWU5.js.map → chunk-6KZ4ZTLG.js.map} +0 -0
  40. /package/dist/{chunk-2BD7VZKN.js.map → chunk-GDATBYU4.js.map} +0 -0
  41. /package/dist/{chunk-J5EBGZTD.js.map → chunk-KELJZHID.js.map} +0 -0
  42. /package/dist/{chunk-IVE3T73T.js.map → chunk-WQLC6IOD.js.map} +0 -0
  43. /package/dist/{chunk-GPRTXOBI.js.map → chunk-YPP6OJGC.js.map} +0 -0
@@ -157,7 +157,7 @@ async function promoteRevision(input) {
157
157
  input.store.getActiveRevision(input.workspaceId, input.profileId)
158
158
  ]);
159
159
  if (!revision || revision.parentId !== (head?.id ?? null)) throw new ProfileConflictError("Profile parent changed");
160
- if (revision.authorityDigest !== head?.authorityDigest && (!input.verifyConsent || !await input.verifyConsent(revision))) {
160
+ if (revision.authorityDigest !== head?.authorityDigest && (input.actorRole !== "owner" || !input.verifyConsent || !await input.verifyConsent(revision))) {
161
161
  throw new ProfileAccessError("Authority changes require owner consent");
162
162
  }
163
163
  if (!await input.store.promoteRevision(input.workspaceId, input.profileId, revision.id, head?.id ?? null)) {
@@ -394,7 +394,7 @@ function profileTools(context) {
394
394
  if (!current || current.id !== expectedRevisionId) throw new ProfileConflictError("The profile changed; read it again");
395
395
  const next = profileTextChange(current, changes);
396
396
  const revision = await proposeRevision({
397
- store: context.store,
397
+ store: context.storeForTurn?.(turn) ?? context.store,
398
398
  workspaceId: turn.workspaceId,
399
399
  profileId: turn.profileId,
400
400
  expectedRevisionId,
@@ -439,4 +439,4 @@ export {
439
439
  profileTextChange,
440
440
  profileTools
441
441
  };
442
- //# sourceMappingURL=chunk-TZ4PEQOH.js.map
442
+ //# sourceMappingURL=chunk-RWMGUVW7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/agent-profiles/index.ts"],"sourcesContent":["/** Chat-owned profile revisions and member/channel bindings. Execution stays in the substrate. */\nimport {\n canonicalAgentProfileDigest,\n diffAgentProfiles,\n snapshotAgentProfile,\n sha256Utf8,\n type AgentProfile,\n type AgentProfileDiff,\n} from '@tangle-network/agent-interface'\nimport { z } from 'zod'\nimport type { McpToolDefinition } from '../tools'\n\nexport type ProfileAuthorKind = 'person' | 'agent' | 'optimizer'\nexport type ProfileRevisionState = 'active' | 'candidate' | 'pending-consent'\n\n/** The decision table used by every write path; products may narrow access, never widen it. */\nexport const PROFILE_CHANGE_POLICY = {\n textEdit: { admission: 'automatic', conversation: 'same', destructive: false },\n sameAuthoritySwitch: { admission: 'automatic', conversation: 'same', destructive: false },\n differentAuthoritySwitch: { admission: 'prepare-then-flip', conversation: 'same', destructive: false },\n authorityEdit: { admission: 'editor-consent', conversation: 'same', destructive: false },\n optimizerRevision: { admission: 'eval-promotion', conversation: 'same', destructive: false },\n destructiveAction: { admission: 'reaper-only', conversation: 'none', destructive: true },\n} as const\n\nexport interface ProfileRevision {\n id: string\n workspaceId: string\n profileId: string\n parentId: string | null\n profile: AgentProfile\n knowledgeText: string\n author: { kind: ProfileAuthorKind; id: string }\n reason: string\n /** `null` means an older stored revision did not record the knowledge delta. */\n knowledgeTextChanged?: boolean | null\n diff: AgentProfileDiff[]\n authorityDigest: string\n /** ADC hash of the public profile plan, without per-turn product attachments. */\n planDigest: string\n state: ProfileRevisionState\n createdAt: number\n}\n\nexport interface ProfileBindingKey {\n workspaceId: string\n memberId: string\n /** `chat`, or a product-scoped phone line and sender key. */\n channel: string\n}\n\nexport interface ProfileBinding extends ProfileBindingKey {\n profileId: string\n pinnedRevisionId: string | null\n authorityDigest: string\n planDigest: string\n version: number\n}\n\nexport interface ProfileTurnPin {\n workspaceId: string\n memberId: string\n channel: string\n messageId: string\n inputHash: string\n profileId: string\n revisionId: string\n authorityDigest: string\n /** Effective ADC plan selected by the executor, including allowed turn attachments. */\n planDigest: string\n}\n\n/** Remove events name only adds they observed; a concurrent add survives. */\nexport interface ProfileKnowledgeEvent {\n id: string\n workspaceId: string\n profileId: string\n documentId: string\n kind: 'add' | 'remove'\n content: string | null\n observedAddIds: string[]\n createdAt: number\n}\n\nexport interface ProfileKnowledgeDocument {\n documentId: string\n content: string\n addEventId: string\n}\n\nexport interface ProfileSwitchReceipt {\n key: ProfileBindingKey\n messageId: string\n inputHash: string\n /** Visible conversation that should render this switch marker on reload. */\n conversationId?: string | null\n createdAt?: number\n profileId: string | null\n revisionId: string | null\n /** A rollback binds the previous immutable revision, not the current head. */\n pinnedRevisionId: string | null\n authorityDigest: string | null\n planDigest: string | null\n outcome: 'switched' | 'refused'\n message: string\n /** Workspace resource collisions retain the original and place the profile copy beside it. */\n conflicts: string[]\n}\n\nexport interface ProfileRevisionStore {\n getActiveRevision(workspaceId: string, profileId: string): Promise<ProfileRevision | null>\n getRevision(workspaceId: string, profileId: string, revisionId: string): Promise<ProfileRevision | null>\n /** Append the immutable row and optionally an activation event in one guarded transaction. */\n appendRevision(revision: ProfileRevision, expectedActiveId: string | null, activate: boolean): Promise<boolean>\n /** Promotion appends an activation event; the historical revision remains immutable. */\n promoteRevision(workspaceId: string, profileId: string, revisionId: string, expectedActiveId: string | null): Promise<boolean>\n getBinding(key: ProfileBindingKey): Promise<ProfileBinding | null>\n getSwitchReceipt(key: ProfileBindingKey, messageId: string, inputHash: string): Promise<ProfileSwitchReceipt | null>\n /** Receipt and binding event append atomically; a refusal leaves the binding untouched. */\n recordSwitch(receipt: ProfileSwitchReceipt, expectedVersion: number): Promise<ProfileSwitchReceipt>\n /** Persist one immutable pin under a message id; retries must return the same pin. */\n pinTurn(pin: ProfileTurnPin, expectedBindingVersion: number): Promise<ProfileTurnPin>\n getTurnPin(key: ProfileBindingKey, messageId: string, inputHash: string): Promise<ProfileTurnPin | null>\n listKnowledgeEvents(workspaceId: string, profileId: string): Promise<ProfileKnowledgeEvent[]>\n appendKnowledgeEvent(event: ProfileKnowledgeEvent): Promise<void>\n}\n\nexport class ProfileConflictError extends Error {\n constructor(message: string) {\n super(message)\n this.name = 'ProfileConflictError'\n }\n}\n\nexport class ProfileAccessError extends Error {\n constructor(message: string) {\n super(message)\n this.name = 'ProfileAccessError'\n }\n}\n\n/** Keep the existing diff column readable while adding the separate knowledge text axis. */\nexport function parseProfileRevisionDiff(value: string): {\n diff: AgentProfileDiff[]; knowledgeTextChanged: boolean | null\n} {\n const parsed: unknown = JSON.parse(value)\n if (Array.isArray(parsed)) return { diff: parsed as AgentProfileDiff[], knowledgeTextChanged: null }\n if (!parsed || typeof parsed !== 'object' || !('profile' in parsed) ||\n !Array.isArray(parsed.profile) || !('knowledgeTextChanged' in parsed) ||\n (parsed.knowledgeTextChanged !== null && typeof parsed.knowledgeTextChanged !== 'boolean')) {\n throw new TypeError('Stored profile revision diff is invalid')\n }\n return { diff: parsed.profile as AgentProfileDiff[],\n knowledgeTextChanged: parsed.knowledgeTextChanged }\n}\n\nexport function serializeProfileRevisionDiff(revision: Pick<ProfileRevision, 'diff' | 'knowledgeTextChanged'>): string {\n return JSON.stringify({ profile: revision.diff, knowledgeTextChanged: revision.knowledgeTextChanged ?? null })\n}\n\n/** Remove exactly the declared text axes. Unknown future fields remain authority. */\nexport function profileAuthority(profile: AgentProfile): AgentProfile {\n const { name: _name, description: _description, prompt, ...authority } = profile\n const { systemPrompt: _systemPrompt, instructions: _instructions, ...promptAuthority } = prompt ?? {}\n return { ...authority, ...(Object.keys(promptAuthority).length ? { prompt: promptAuthority } : {}) }\n}\n\nexport function profileAuthorityDigest(profile: AgentProfile): string {\n return canonicalAgentProfileDigest(profileAuthority(snapshotAgentProfile(profile)))\n}\n\nexport function projectKnowledgeDocuments(events: readonly ProfileKnowledgeEvent[]): ProfileKnowledgeDocument[] {\n const removed = new Set(events.filter(event => event.kind === 'remove').flatMap(event => event.observedAddIds))\n const visible = events.filter(event => event.kind === 'add' && !removed.has(event.id))\n const latest = new Map<string, ProfileKnowledgeEvent>()\n for (const event of visible) {\n const prior = latest.get(event.documentId)\n if (!prior || event.createdAt > prior.createdAt ||\n (event.createdAt === prior.createdAt && event.id > prior.id)) latest.set(event.documentId, event)\n }\n return [...latest.values()].sort((a, b) => a.documentId.localeCompare(b.documentId))\n .map(event => ({ documentId: event.documentId, content: event.content!, addEventId: event.id }))\n}\n\nexport async function addProfileKnowledgeDocument(input: {\n store: ProfileRevisionStore\n workspaceId: string\n profileId: string\n documentId: string\n content: string\n actorRole: 'owner' | 'manager' | 'member' | 'viewer'\n id?: string\n now?: number\n}): Promise<ProfileKnowledgeEvent> {\n if (input.actorRole !== 'owner' && input.actorRole !== 'manager') {\n throw new ProfileAccessError('Profile management is required')\n }\n if (!input.documentId || !input.content) throw new TypeError('A knowledge document needs an id and content')\n const event: ProfileKnowledgeEvent = { id: input.id ?? crypto.randomUUID(),\n workspaceId: input.workspaceId, profileId: input.profileId, documentId: input.documentId,\n kind: 'add', content: input.content, observedAddIds: [], createdAt: input.now ?? Date.now() }\n await input.store.appendKnowledgeEvent(event)\n return event\n}\n\nexport async function removeProfileKnowledgeDocument(input: {\n store: ProfileRevisionStore\n workspaceId: string\n profileId: string\n documentId: string\n actorRole: 'owner' | 'manager' | 'member' | 'viewer'\n id?: string\n now?: number\n}): Promise<ProfileKnowledgeEvent> {\n if (input.actorRole !== 'owner' && input.actorRole !== 'manager') {\n throw new ProfileAccessError('Profile management is required')\n }\n const events = await input.store.listKnowledgeEvents(input.workspaceId, input.profileId)\n const removed = new Set(events.filter(event => event.kind === 'remove').flatMap(event => event.observedAddIds))\n const observedAddIds = events.filter(event => event.kind === 'add' &&\n event.documentId === input.documentId && !removed.has(event.id)).map(event => event.id)\n const event: ProfileKnowledgeEvent = { id: input.id ?? crypto.randomUUID(),\n workspaceId: input.workspaceId, profileId: input.profileId, documentId: input.documentId,\n kind: 'remove', content: null, observedAddIds, createdAt: input.now ?? Date.now() }\n await input.store.appendKnowledgeEvent(event)\n return event\n}\n\n/** The per-turn text overlay is validated without admitting tools, model, MCP or resources. */\nexport function bindProfileText(consentedBaseline: AgentProfile, selected: AgentProfile): AgentProfile {\n if (profileAuthorityDigest(consentedBaseline) !== profileAuthorityDigest(selected)) {\n throw new ProfileAccessError('Profile authority differs; prepare its managed plan before the next turn')\n }\n const result: AgentProfile = { ...consentedBaseline, name: selected.name, description: selected.description }\n const prompt = { ...consentedBaseline.prompt, systemPrompt: selected.prompt?.systemPrompt,\n instructions: selected.prompt?.instructions }\n if (Object.values(prompt).some(value => value !== undefined)) result.prompt = prompt\n else delete result.prompt\n return snapshotAgentProfile(result)\n}\n\nexport interface ProposeRevisionInput {\n store: ProfileRevisionStore\n workspaceId: string\n profileId: string\n expectedRevisionId: string | null\n profile: AgentProfile\n knowledgeText: string\n /** The exact ADC `hashWorkspacePlan` for this authored snapshot. */\n planDigest: string\n author: ProfileRevision['author']\n /** Trusted role from the authenticated session, never model arguments. */\n actorRole: 'owner' | 'manager' | 'member' | 'viewer'\n reason: string\n id?: string\n now?: number\n}\n\n/** All authors use one immutable write path. Optimizer and authority edits cannot self-activate. */\nexport async function proposeRevision(input: ProposeRevisionInput): Promise<ProfileRevision> {\n if (input.author.kind !== 'optimizer' && input.actorRole !== 'owner' && input.actorRole !== 'manager') {\n throw new ProfileAccessError('Only an owner or manager can change a profile')\n }\n if (!input.workspaceId || !input.profileId || !input.author.id || !input.reason.trim() ||\n !/^sha256:[a-f0-9]{64}$/.test(input.planDigest)) {\n throw new TypeError('A profile revision needs workspace, profile, author, reason and plan digest')\n }\n const previous = await input.store.getActiveRevision(input.workspaceId, input.profileId)\n if ((previous?.id ?? null) !== input.expectedRevisionId) {\n throw new ProfileConflictError('The profile changed; read its latest revision before saving')\n }\n const profile = snapshotAgentProfile(input.profile)\n const diff = previous ? diffAgentProfiles(previous.profile, profile) : []\n const authorityDigest = profileAuthorityDigest(profile)\n const authorityChanged = !!previous && previous.authorityDigest !== authorityDigest\n const admission = input.author.kind === 'optimizer'\n ? PROFILE_CHANGE_POLICY.optimizerRevision.admission\n : authorityChanged\n ? PROFILE_CHANGE_POLICY.authorityEdit.admission\n : PROFILE_CHANGE_POLICY.textEdit.admission\n const state: ProfileRevisionState = admission === 'eval-promotion' ? 'candidate'\n : admission === 'editor-consent' ? 'pending-consent' : 'active'\n const revision: ProfileRevision = {\n id: input.id ?? crypto.randomUUID(), workspaceId: input.workspaceId, profileId: input.profileId,\n parentId: previous?.id ?? null, profile, knowledgeText: input.knowledgeText,\n author: input.author, reason: input.reason.trim(), diff,\n knowledgeTextChanged: previous ? previous.knowledgeText !== input.knowledgeText : input.knowledgeText.length > 0,\n authorityDigest,\n planDigest: input.planDigest, state, createdAt: input.now ?? Date.now(),\n }\n if (!await input.store.appendRevision(revision, input.expectedRevisionId, state === 'active')) {\n throw new ProfileConflictError('The profile changed while saving')\n }\n return revision\n}\n\nexport async function promoteRevision(input: {\n store: ProfileRevisionStore\n workspaceId: string\n profileId: string\n revisionId: string\n actorRole: 'owner' | 'manager' | 'member' | 'viewer'\n /** Verified by the product's consent route; required when authority changes. */\n verifyConsent?: (revision: ProfileRevision) => Promise<boolean>\n}): Promise<ProfileRevision> {\n if (input.actorRole !== 'owner' && input.actorRole !== 'manager') {\n throw new ProfileAccessError('Only an owner or manager can promote a profile')\n }\n const [revision, head] = await Promise.all([\n input.store.getRevision(input.workspaceId, input.profileId, input.revisionId),\n input.store.getActiveRevision(input.workspaceId, input.profileId),\n ])\n if (!revision || revision.parentId !== (head?.id ?? null)) throw new ProfileConflictError('Profile parent changed')\n if (revision.authorityDigest !== head?.authorityDigest &&\n (input.actorRole !== 'owner' || !input.verifyConsent || !await input.verifyConsent(revision))) {\n throw new ProfileAccessError('Authority changes require owner consent')\n }\n if (!await input.store.promoteRevision(input.workspaceId, input.profileId, revision.id, head?.id ?? null)) {\n throw new ProfileConflictError('The profile changed while promoting')\n }\n return revision\n}\n\nexport function parseProfileSwitch(text: string): { name: string } | { invalid: true } | null {\n const trimmed = text.trim()\n if (!/^switch\\s+to\\b/i.test(trimmed)) return null\n const match = /^switch[ \\t]+to[ \\t]+([^\\r\\n]+)$/i.exec(trimmed)\n return match?.[1]?.trim() ? { name: match[1].trim() } : { invalid: true }\n}\n\nexport function normalizeProfileName(name: string): string {\n return name.trim().replace(/\\s+/g, ' ').toLowerCase()\n}\n\nexport interface SwitchableProfile {\n id: string\n name: string\n status: 'active' | 'draft' | 'paused'\n}\n\nexport interface SwitchProfileInput {\n store: ProfileRevisionStore\n key: ProfileBindingKey\n messageId: string\n content: string\n conversationId?: string\n choice: { name: string } | { profileId: string }\n profiles: readonly SwitchableProfile[]\n /** Product's role/phone allowlist decision for the authenticated member. */\n canSelect: (profileId: string) => Promise<boolean>\n /** Stage a complete managed plan for the same conversation; never mutate live workspace files. */\n prepareAuthority: (revision: ProfileRevision, key: ProfileBindingKey) => Promise<{\n planDigest: string; healthy: true; conflicts: string[]\n }>\n}\n\n/** The picker and deterministic text command converge here. Models cannot call it. */\nexport async function switchProfile(input: SwitchProfileInput): Promise<ProfileSwitchReceipt> {\n const inputHash = sha256Utf8(input.content)\n const previousReceipt = await input.store.getSwitchReceipt(input.key, input.messageId, inputHash)\n if (previousReceipt) return previousReceipt\n const binding = await input.store.getBinding(input.key)\n const choice = input.choice\n const matches = 'name' in choice\n ? input.profiles.filter(profile => normalizeProfileName(profile.name) === normalizeProfileName(choice.name))\n : input.profiles.filter(profile => profile.id === choice.profileId)\n const target = matches.length === 1 ? matches[0] : undefined\n let revision: ProfileRevision | null = null\n if (target?.status === 'active' && await input.canSelect(target.id)) {\n revision = await input.store.getActiveRevision(input.key.workspaceId, target.id)\n if (revision && 'name' in choice &&\n normalizeProfileName(revision.profile.name ?? '') !== normalizeProfileName(choice.name)) {\n revision = null\n }\n }\n let outcome: ProfileSwitchReceipt['outcome'] = 'refused'\n let message = matches.length > 1 ? 'That profile name is ambiguous.'\n : target?.status !== 'active' && target ? `${target.name} is not active.`\n : 'That profile is not available for this member.'\n let planDigest: string | null = null\n let conflicts: string[] = []\n if (revision && target) {\n const admission = binding?.authorityDigest === revision.authorityDigest\n ? PROFILE_CHANGE_POLICY.sameAuthoritySwitch.admission\n : PROFILE_CHANGE_POLICY.differentAuthoritySwitch.admission\n if (admission === 'prepare-then-flip' || binding?.planDigest !== revision.planDigest) {\n try {\n const prepared = await input.prepareAuthority(revision, input.key)\n if (!prepared.healthy || prepared.planDigest !== revision.planDigest) {\n throw new ProfileConflictError('The managed plan was not prepared for this revision')\n }\n planDigest = prepared.planDigest\n conflicts = prepared.conflicts\n } catch {\n revision = null\n message = `Could not prepare ${target.name}; your current agent is unchanged.`\n }\n } else {\n planDigest = binding.planDigest\n }\n if (revision && planDigest) {\n outcome = 'switched'\n message = `Now talking to ${target.name}`\n }\n }\n return input.store.recordSwitch({ key: input.key, messageId: input.messageId, inputHash,\n conversationId: input.conversationId,\n profileId: revision?.profileId ?? null, revisionId: revision?.id ?? null,\n pinnedRevisionId: null, authorityDigest: revision?.authorityDigest ?? null,\n planDigest, outcome, message, conflicts }, binding?.version ?? 0)\n}\n\n/** Call before dispatching a chat message; a recognized command is never sent to the model. */\nexport async function handleProfileSwitchText(\n input: Omit<SwitchProfileInput, 'choice'>,\n): Promise<ProfileSwitchReceipt | null> {\n const parsed = parseProfileSwitch(input.content)\n if (!parsed) return null\n if ('name' in parsed) return switchProfile({ ...input, choice: parsed })\n const inputHash = sha256Utf8(input.content)\n const previous = await input.store.getSwitchReceipt(input.key, input.messageId, inputHash)\n if (previous) return previous\n const binding = await input.store.getBinding(input.key)\n return input.store.recordSwitch({ key: input.key, messageId: input.messageId, inputHash,\n conversationId: input.conversationId,\n profileId: null, revisionId: null, pinnedRevisionId: null, outcome: 'refused',\n authorityDigest: null, planDigest: null, conflicts: [],\n message: 'Send only “Switch to [agent name]” to change agents.' },\n binding?.version ?? 0)\n}\n\n/** One-step rollback moves this member/channel to its previous immutable revision. */\nexport async function rollbackProfileBinding(input: {\n store: ProfileRevisionStore\n key: ProfileBindingKey\n messageId: string\n conversationId?: string\n actorRole: 'owner' | 'manager' | 'member' | 'viewer'\n canSelect: (profileId: string) => Promise<boolean>\n prepareAuthority: SwitchProfileInput['prepareAuthority']\n}): Promise<ProfileSwitchReceipt> {\n if (input.actorRole !== 'owner' && input.actorRole !== 'manager') {\n throw new ProfileAccessError('Only an owner or manager can roll back a profile')\n }\n const inputHash = sha256Utf8(`rollback:${input.messageId}`)\n const prior = await input.store.getSwitchReceipt(input.key, input.messageId, inputHash)\n if (prior) return prior\n const binding = await input.store.getBinding(input.key)\n if (!binding || !await input.canSelect(binding.profileId)) throw new ProfileAccessError('Profile is unavailable')\n const current = binding.pinnedRevisionId\n ? await input.store.getRevision(input.key.workspaceId, binding.profileId, binding.pinnedRevisionId)\n : await input.store.getActiveRevision(input.key.workspaceId, binding.profileId)\n if (!current?.parentId) throw new ProfileConflictError('The bound profile has no previous revision')\n const parent = await input.store.getRevision(input.key.workspaceId, binding.profileId, current.parentId)\n if (!parent) throw new ProfileConflictError('The previous revision is unavailable')\n let planDigest = binding.planDigest\n let conflicts: string[] = []\n if (binding.authorityDigest !== parent.authorityDigest || binding.planDigest !== parent.planDigest) {\n try {\n const prepared = await input.prepareAuthority(parent, input.key)\n if (!prepared.healthy || prepared.planDigest !== parent.planDigest) {\n throw new ProfileConflictError('The prior managed plan was not prepared')\n }\n planDigest = prepared.planDigest\n conflicts = prepared.conflicts\n } catch {\n return input.store.recordSwitch({ key: input.key, messageId: input.messageId, inputHash,\n conversationId: input.conversationId,\n profileId: null, revisionId: null, pinnedRevisionId: null, outcome: 'refused',\n authorityDigest: null, planDigest: null, conflicts: [],\n message: 'Could not prepare the previous profile; your current agent is unchanged.' },\n binding.version)\n }\n }\n return input.store.recordSwitch({ key: input.key, messageId: input.messageId, inputHash,\n conversationId: input.conversationId,\n profileId: parent.profileId, revisionId: parent.id, pinnedRevisionId: parent.id,\n authorityDigest: parent.authorityDigest, planDigest, outcome: 'switched', conflicts,\n message: `Now talking to ${parent.profile.name ?? 'this profile'}` }, binding.version)\n}\n\nexport async function admitProfileTurn(input: {\n store: ProfileRevisionStore\n key: ProfileBindingKey\n messageId: string\n content: string\n /** Effective ADC plan digest selected by the executor for this revision and turn. */\n observedManagedPlanDigest: string\n /** Required if trusted per-turn attachments change the public profile plan. */\n verifyEffectivePlan?: (revision: ProfileRevision, effectivePlanDigest: string,\n key: ProfileBindingKey) => Promise<boolean>\n}): Promise<ProfileTurnPin> {\n const inputHash = sha256Utf8(input.content)\n const prior = await input.store.getTurnPin(input.key, input.messageId, inputHash)\n if (prior) return prior\n const binding = await input.store.getBinding(input.key)\n if (!binding) throw new ProfileAccessError('Choose a profile before sending a message')\n const revision = binding.pinnedRevisionId\n ? await input.store.getRevision(input.key.workspaceId, binding.profileId, binding.pinnedRevisionId)\n : await input.store.getActiveRevision(input.key.workspaceId, binding.profileId)\n if (!revision) throw new ProfileConflictError('The bound profile revision is unavailable')\n if (revision.authorityDigest !== binding.authorityDigest ||\n !/^sha256:[a-f0-9]{64}$/.test(input.observedManagedPlanDigest)) {\n throw new ProfileAccessError('The selected managed plan is not active for this turn')\n }\n const planMatches = revision.planDigest === input.observedManagedPlanDigest ||\n (input.verifyEffectivePlan !== undefined &&\n await input.verifyEffectivePlan(revision, input.observedManagedPlanDigest, input.key))\n if (!planMatches) {\n throw new ProfileAccessError('The selected managed plan is not active for this turn')\n }\n return input.store.pinTurn({ ...input.key, messageId: input.messageId, inputHash,\n profileId: revision.profileId, revisionId: revision.id,\n authorityDigest: revision.authorityDigest, planDigest: input.observedManagedPlanDigest }, binding.version)\n}\n\nconst textChangeSchema = z.object({\n name: z.string().trim().min(1).max(160).optional(),\n description: z.string().max(2000).nullable().optional(),\n systemPrompt: z.string().max(32000).nullable().optional(),\n instructions: z.array(z.string().max(32000)).max(40).optional(),\n knowledgeText: z.string().max(32000).optional(),\n}).strict().refine(changes => Object.keys(changes).length > 0)\nconst updateToolSchema = z.object({ expectedRevisionId: z.string().min(1), changes: textChangeSchema }).strict()\n\nexport function profileTextChange(revision: ProfileRevision, changes: z.infer<typeof textChangeSchema>): {\n profile: AgentProfile; knowledgeText: string\n} {\n const profile = structuredClone(revision.profile)\n if (changes.name !== undefined) profile.name = changes.name\n if (changes.description !== undefined) profile.description = changes.description ?? undefined\n if (changes.systemPrompt !== undefined || changes.instructions !== undefined) {\n profile.prompt = { ...profile.prompt,\n ...(changes.systemPrompt !== undefined ? { systemPrompt: changes.systemPrompt ?? undefined } : {}),\n ...(changes.instructions !== undefined ? { instructions: changes.instructions } : {}) }\n }\n return { profile: snapshotAgentProfile(profile), knowledgeText: changes.knowledgeText ?? revision.knowledgeText }\n}\n\nexport interface ProfileToolTurn {\n workspaceId: string; profileId: string; revisionId: string\n memberId: string; role: 'owner' | 'manager' | 'member' | 'viewer'\n}\n\nexport interface ProfileToolContext<TTurn extends ProfileToolTurn = ProfileToolTurn> {\n /** Resolve the running turn from the trusted server session; never from tool arguments. */\n activeTurn(): Promise<TTurn>\n /** Product computes the plan with ADC, returning `hashWorkspacePlan(plan)`. */\n planDigest(profile: AgentProfile, knowledgeText: string): Promise<string>\n store: ProfileRevisionStore\n /** Return a store whose revision append atomically rechecks product turn authority. */\n storeForTurn?(turn: TTurn): ProfileRevisionStore\n}\n\n/** Shared self-edit tools; only the authenticated active turn can name the profile. */\nexport function profileTools<TTurn extends ProfileToolTurn>(\n context: ProfileToolContext<TTurn>): McpToolDefinition<Record<string, never>>[] {\n return [{\n name: 'profile.read',\n description: 'Read the active agent profile text and revision. Saved text applies on the next message.',\n inputSchema: z.toJSONSchema(z.object({}).strict(), { io: 'input' }) as Record<string, unknown>,\n async run(args) {\n z.object({}).strict().parse(args)\n const turn = await context.activeTurn()\n if (turn.role !== 'owner' && turn.role !== 'manager') throw new ProfileAccessError('Profile management is required')\n const revision = await context.store.getActiveRevision(turn.workspaceId, turn.profileId)\n if (!revision) throw new ProfileConflictError('Profile revision is unavailable')\n return { profileId: turn.profileId, revisionId: revision.id, currentTurnRevisionId: turn.revisionId,\n name: revision.profile.name, description: revision.profile.description ?? null,\n systemPrompt: revision.profile.prompt?.systemPrompt ?? null,\n instructions: revision.profile.prompt?.instructions ?? [], knowledgeText: revision.knowledgeText }\n },\n }, {\n name: 'profile.update',\n description: 'Save a requested owner or manager text change with the revision from profile.read. Applies on the next message.',\n inputSchema: z.toJSONSchema(updateToolSchema, { io: 'input' }) as Record<string, unknown>,\n async run(args) {\n const { expectedRevisionId, changes } = updateToolSchema.parse(args)\n const turn = await context.activeTurn()\n if (turn.role !== 'owner' && turn.role !== 'manager') throw new ProfileAccessError('Profile management is required')\n const current = await context.store.getActiveRevision(turn.workspaceId, turn.profileId)\n if (!current || current.id !== expectedRevisionId) throw new ProfileConflictError('The profile changed; read it again')\n const next = profileTextChange(current, changes)\n const revision = await proposeRevision({ store: context.storeForTurn?.(turn) ?? context.store,\n workspaceId: turn.workspaceId,\n profileId: turn.profileId, expectedRevisionId, ...next,\n planDigest: await context.planDigest(next.profile, next.knowledgeText),\n author: { kind: 'agent', id: turn.memberId }, actorRole: turn.role,\n reason: 'Owner or manager requested a text change during chat' })\n return { profileId: turn.profileId, revisionId: revision.id, state: revision.state,\n canonicalSaved: revision.state === 'active', appliesTo: 'next_message', currentTurn: 'unchanged' }\n },\n }]\n}\n"],"mappings":";AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,SAAS;AAOX,IAAM,wBAAwB;AAAA,EACnC,UAAU,EAAE,WAAW,aAAa,cAAc,QAAQ,aAAa,MAAM;AAAA,EAC7E,qBAAqB,EAAE,WAAW,aAAa,c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rG;AAAA,EACF,CAAC;AACH;","names":["event"]}
@@ -6,13 +6,13 @@ import {
6
6
  buildAppToolOpenAITools,
7
7
  findCustomTool,
8
8
  isAppToolName
9
- } from "./chunk-J5EBGZTD.js";
9
+ } from "./chunk-KELJZHID.js";
10
10
  import {
11
11
  assertRenderUiSchema
12
- } from "./chunk-2BD7VZKN.js";
12
+ } from "./chunk-GDATBYU4.js";
13
13
  import {
14
14
  ToolInputError
15
- } from "./chunk-M63EUBSH.js";
15
+ } from "./chunk-OP6Y4DWQ.js";
16
16
  import {
17
17
  base64UrlDecodeText,
18
18
  base64UrlEncodeText,
@@ -270,4 +270,4 @@ export {
270
270
  createAppToolRuntimeExecutor,
271
271
  handleAppToolRequest
272
272
  };
273
- //# sourceMappingURL=chunk-IVE3T73T.js.map
273
+ //# sourceMappingURL=chunk-WQLC6IOD.js.map
@@ -1,7 +1,7 @@
1
1
  // src/design-canvas-react/lazy.tsx
2
2
  import { lazy } from "react";
3
3
  var DesignCanvasLazy = lazy(
4
- () => import("./DesignCanvasEditor-JSEDIQWF.js").then((m) => ({ default: m.DesignCanvasEditor }))
4
+ () => import("./DesignCanvasEditor-HB7HTZUT.js").then((m) => ({ default: m.DesignCanvasEditor }))
5
5
  );
6
6
  var DesignCanvasChromeLazy = lazy(
7
7
  () => import("./DesignCanvas-OWE67ZX3.js").then((m) => ({ default: m.DesignCanvas }))
@@ -11,4 +11,4 @@ export {
11
11
  DesignCanvasLazy,
12
12
  DesignCanvasChromeLazy
13
13
  };
14
- //# sourceMappingURL=chunk-GPRTXOBI.js.map
14
+ //# sourceMappingURL=chunk-YPP6OJGC.js.map
@@ -1,7 +1,7 @@
1
1
  // src/theme/brand.generated.ts
2
2
  var brandThemes = {
3
3
  "light": {
4
- "background": "0 0% 91.7647%",
4
+ "background": "223 23% 94%",
5
5
  "foreground": "0 0% 17.6471%",
6
6
  "card": "0 0% 100%",
7
7
  "cardForeground": "0 0% 17.6471%",
@@ -9,15 +9,15 @@ var brandThemes = {
9
9
  "popoverForeground": "0 0% 17.6471%",
10
10
  "primary": "243.2787 80.6167% 55.4902%",
11
11
  "primaryForeground": "0 0% 100%",
12
- "secondary": "0 0% 94.902%",
12
+ "secondary": "230 27% 96%",
13
13
  "secondaryForeground": "0 0% 17.6471%",
14
- "muted": "0 0% 94.902%",
14
+ "muted": "230 27% 96%",
15
15
  "mutedForeground": "0 0% 29.8039%",
16
- "accent": "0 0% 94.902%",
16
+ "accent": "230 27% 96%",
17
17
  "accentForeground": "0 0% 17.6471%",
18
18
  "destructive": "0 73.7089% 41.7647%",
19
19
  "destructiveForeground": "0 0% 100%",
20
- "border": "0 0% 81.5686%",
20
+ "border": "244 16% 81%",
21
21
  "input": "0 0% 29.8039%",
22
22
  "ring": "246 54% 51%",
23
23
  "success": "162.931 93.5484% 24.3137%",
@@ -25,64 +25,64 @@ var brandThemes = {
25
25
  "successForeground": "0 0% 100%",
26
26
  "warningForeground": "0 0% 0%",
27
27
  "warningStrong": "25.9259 90% 35.2941%",
28
- "inputFill": "hsl(0 0% 96.0784%)",
29
- "canvasBackdrop": "#dadada",
28
+ "inputFill": "hsl(225 29% 97%)",
29
+ "canvasBackdrop": "#dcdee6",
30
30
  "borderSoft": "rgba(0, 0, 0, 0.10)",
31
31
  "cardEdge": "rgba(0, 0, 0, 0.14)",
32
32
  "canvasRender": {
33
- "grid": "#d0d0d0",
33
+ "grid": "#c7c6d6",
34
34
  "snapGrid": "#787878",
35
35
  "snapGuide": "#0369a1",
36
36
  "snapPage": "#ab4f09",
37
37
  "snapElement": "#b91c1c",
38
38
  "selectionStroke": "#3c32e9",
39
39
  "selectionAnchorFill": "#ffffff",
40
- "placeholderFill": "#f7f7f7",
41
- "placeholderStroke": "#d0d0d0",
42
- "brokenFill": "#f2f2f2",
40
+ "placeholderFill": "#f6f7fa",
41
+ "placeholderStroke": "#c7c6d6",
42
+ "brokenFill": "#f1f2f7",
43
43
  "brokenStroke": "#787878"
44
44
  }
45
45
  },
46
46
  "dark": {
47
- "background": "0 0% 8.6275%",
47
+ "background": "240 33% 6%",
48
48
  "foreground": "0 0% 90.1961%",
49
- "card": "0 0% 18.8235%",
49
+ "card": "244 23% 12%",
50
50
  "cardForeground": "0 0% 90.1961%",
51
- "popover": "0 0% 20.7843%",
51
+ "popover": "247 23% 21%",
52
52
  "popoverForeground": "0 0% 90.1961%",
53
53
  "primary": "229.6552 93.5484% 81.7647%",
54
54
  "primaryForeground": "0 0% 0%",
55
- "secondary": "0 0% 20.7843%",
55
+ "secondary": "249 24% 16%",
56
56
  "secondaryForeground": "0 0% 90.1961%",
57
- "muted": "0 0% 20.7843%",
58
- "mutedForeground": "0 0% 70.9804%",
59
- "accent": "0 0% 20.7843%",
57
+ "muted": "249 24% 16%",
58
+ "mutedForeground": "240 5% 68%",
59
+ "accent": "249 24% 16%",
60
60
  "accentForeground": "0 0% 90.1961%",
61
61
  "destructive": "2.7907 100% 83.1373%",
62
62
  "destructiveForeground": "0 0% 0%",
63
- "border": "0 0% 29.8039%",
64
- "input": "0 0% 70.9804%",
63
+ "border": "243 20% 20%",
64
+ "input": "240 5% 68%",
65
65
  "ring": "233 100% 87%",
66
66
  "success": "154.7107 60.199% 60.5882%",
67
67
  "warning": "40 94% 56%",
68
68
  "successForeground": "0 0% 0%",
69
69
  "warningForeground": "0 0% 0%",
70
70
  "warningStrong": "41.4545 88.2353% 63.3333%",
71
- "inputFill": "hsl(0 0% 12.1569%)",
72
- "canvasBackdrop": "#101010",
71
+ "inputFill": "hsl(244 29% 9%)",
72
+ "canvasBackdrop": "#060610",
73
73
  "borderSoft": "rgba(255, 255, 255, 0.10)",
74
74
  "cardEdge": "rgba(255, 255, 255, 0.16)",
75
75
  "canvasRender": {
76
- "grid": "#4c4c4c",
76
+ "grid": "#2a293d",
77
77
  "snapGrid": "#8e8e8e",
78
78
  "snapGuide": "#67cdff",
79
79
  "snapPage": "#f4c14f",
80
80
  "snapElement": "#ffada9",
81
81
  "selectionStroke": "#a5b4fc",
82
- "selectionAnchorFill": "#3b3b3b",
83
- "placeholderFill": "#242424",
84
- "placeholderStroke": "#4c4c4c",
85
- "brokenFill": "#353535",
82
+ "selectionAnchorFill": "#232238",
83
+ "placeholderFill": "#12111f",
84
+ "placeholderStroke": "#2a293d",
85
+ "brokenFill": "#221f33",
86
86
  "brokenStroke": "#8e8e8e"
87
87
  }
88
88
  }
@@ -147,4 +147,4 @@ export {
147
147
  themeColor,
148
148
  themeToCssVars
149
149
  };
150
- //# sourceMappingURL=chunk-GDB3YCNS.js.map
150
+ //# sourceMappingURL=chunk-ZBZA7KSL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/theme/brand.generated.ts","../src/theme/theme.ts"],"sourcesContent":["/** GENERATED from @tangle-network/brand/styles/legacy-light.css\n * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901\n * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */\nexport const brandThemes = {\n \"light\": {\n \"background\": \"223 23% 94%\",\n \"foreground\": \"0 0% 17.6471%\",\n \"card\": \"0 0% 100%\",\n \"cardForeground\": \"0 0% 17.6471%\",\n \"popover\": \"0 0% 100%\",\n \"popoverForeground\": \"0 0% 17.6471%\",\n \"primary\": \"243.2787 80.6167% 55.4902%\",\n \"primaryForeground\": \"0 0% 100%\",\n \"secondary\": \"230 27% 96%\",\n \"secondaryForeground\": \"0 0% 17.6471%\",\n \"muted\": \"230 27% 96%\",\n \"mutedForeground\": \"0 0% 29.8039%\",\n \"accent\": \"230 27% 96%\",\n \"accentForeground\": \"0 0% 17.6471%\",\n \"destructive\": \"0 73.7089% 41.7647%\",\n \"destructiveForeground\": \"0 0% 100%\",\n \"border\": \"244 16% 81%\",\n \"input\": \"0 0% 29.8039%\",\n \"ring\": \"246 54% 51%\",\n \"success\": \"162.931 93.5484% 24.3137%\",\n \"warning\": \"41 96% 50%\",\n \"successForeground\": \"0 0% 100%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"25.9259 90% 35.2941%\",\n \"inputFill\": \"hsl(225 29% 97%)\",\n \"canvasBackdrop\": \"#dcdee6\",\n \"borderSoft\": \"rgba(0, 0, 0, 0.10)\",\n \"cardEdge\": \"rgba(0, 0, 0, 0.14)\",\n \"canvasRender\": {\n \"grid\": \"#c7c6d6\",\n \"snapGrid\": \"#787878\",\n \"snapGuide\": \"#0369a1\",\n \"snapPage\": \"#ab4f09\",\n \"snapElement\": \"#b91c1c\",\n \"selectionStroke\": \"#3c32e9\",\n \"selectionAnchorFill\": \"#ffffff\",\n \"placeholderFill\": \"#f6f7fa\",\n \"placeholderStroke\": \"#c7c6d6\",\n \"brokenFill\": \"#f1f2f7\",\n \"brokenStroke\": \"#787878\"\n }\n },\n \"dark\": {\n \"background\": \"240 33% 6%\",\n \"foreground\": \"0 0% 90.1961%\",\n \"card\": \"244 23% 12%\",\n \"cardForeground\": \"0 0% 90.1961%\",\n \"popover\": \"247 23% 21%\",\n \"popoverForeground\": \"0 0% 90.1961%\",\n \"primary\": \"229.6552 93.5484% 81.7647%\",\n \"primaryForeground\": \"0 0% 0%\",\n \"secondary\": \"249 24% 16%\",\n \"secondaryForeground\": \"0 0% 90.1961%\",\n \"muted\": \"249 24% 16%\",\n \"mutedForeground\": \"240 5% 68%\",\n \"accent\": \"249 24% 16%\",\n \"accentForeground\": \"0 0% 90.1961%\",\n \"destructive\": \"2.7907 100% 83.1373%\",\n \"destructiveForeground\": \"0 0% 0%\",\n \"border\": \"243 20% 20%\",\n \"input\": \"240 5% 68%\",\n \"ring\": \"233 100% 87%\",\n \"success\": \"154.7107 60.199% 60.5882%\",\n \"warning\": \"40 94% 56%\",\n \"successForeground\": \"0 0% 0%\",\n \"warningForeground\": \"0 0% 0%\",\n \"warningStrong\": \"41.4545 88.2353% 63.3333%\",\n \"inputFill\": \"hsl(244 29% 9%)\",\n \"canvasBackdrop\": \"#060610\",\n \"borderSoft\": \"rgba(255, 255, 255, 0.10)\",\n \"cardEdge\": \"rgba(255, 255, 255, 0.16)\",\n \"canvasRender\": {\n \"grid\": \"#2a293d\",\n \"snapGrid\": \"#8e8e8e\",\n \"snapGuide\": \"#67cdff\",\n \"snapPage\": \"#f4c14f\",\n \"snapElement\": \"#ffada9\",\n \"selectionStroke\": \"#a5b4fc\",\n \"selectionAnchorFill\": \"#232238\",\n \"placeholderFill\": \"#12111f\",\n \"placeholderStroke\": \"#2a293d\",\n \"brokenFill\": \"#221f33\",\n \"brokenStroke\": \"#8e8e8e\"\n }\n }\n} as const\n","/** Brand-derived HSL compatibility and bitmap snapshots. Regenerate with src/theme/build.mjs; never author a second palette here. */\nimport { brandThemes } from './brand.generated'\n\nexport interface AgentAppTheme {\n background: string\n foreground: string\n card: string\n cardForeground: string\n popover: string\n popoverForeground: string\n primary: string\n primaryForeground: string\n secondary: string\n secondaryForeground: string\n muted: string\n mutedForeground: string\n accent: string\n accentForeground: string\n destructive: string\n destructiveForeground: string\n border: string\n input: string\n /** Full field fill, distinct from the input border. Optional for existing custom themes. */\n inputFill?: string\n ring: string\n success: string\n successForeground: string\n warning: string\n warningForeground: string\n /**\n * Warning as TEXT on a warning-TINTED surface, as a channel triple. Optional\n * so a consumer's existing `AgentAppTheme` literal still type-checks;\n * {@link themeToCssVars} falls back to `warningForeground`, which is what the\n * surface used before this token existed.\n */\n warningStrong?: string\n /** Full CSS color (not a triple) — the canvas/scene backdrop. */\n canvasBackdrop: string\n /**\n * Border tiers as FULL CSS colors (they are `color-mix()` results, not\n * triples). Optional so a consumer's existing `AgentAppTheme` literal still\n * type-checks; {@link themeToCssVars} falls back to full-strength\n * `hsl(var(--border))`, which can never erase an edge.\n */\n borderSoft?: string\n /** @see borderSoft */\n cardEdge?: string\n /** Konva render palette — full hex colors the bitmap canvas paints with\n * (it cannot resolve `var(--…)`). NOT emitted by themeToCssVars. */\n canvasRender: CanvasRenderPalette\n}\n\n/**\n * Colors the Konva design-canvas paints directly. Konva renders to a bitmap\n * and cannot read CSS custom properties, so these are full hex strings sourced\n * from the active theme and threaded through the canvas components.\n */\nexport interface CanvasRenderPalette {\n /** Grid line color (GridLayer). */\n grid: string\n /** Grid-snap guide line (SnapGuidesOverlay, kind 'grid'). */\n snapGrid: string\n /** Saved ruler-guide snap line (kind 'guide'). */\n snapGuide: string\n /** Page edge/center snap line (kinds 'page-edge'/'page-center'). */\n snapPage: string\n /** Element edge/center snap line (kinds 'element-edge'/'element-center'). */\n snapElement: string\n /** Transformer border + anchor stroke (SelectionLayer). */\n selectionStroke: string\n /** Transformer anchor fill (SelectionLayer). */\n selectionAnchorFill: string\n /** Video placeholder fill (ElementNode VideoNode). */\n placeholderFill: string\n /** Video placeholder stroke (ElementNode VideoNode). */\n placeholderStroke: string\n /** Broken/loading image placeholder fill (ElementNode ImageNode). */\n brokenFill: string\n /** Broken/loading image placeholder stroke (ElementNode ImageNode). */\n brokenStroke: string\n}\n\n/** Define a light color theme with specific background, foreground, and accent color values */\nexport const lightTheme: AgentAppTheme = brandThemes.light\n\n/** Canonical Brand dark values projected for legacy JS and bitmap callers. */\nexport const darkTheme: AgentAppTheme = brandThemes.dark\n\n/**\n * Wrap a channel triple in `hsl()`; pass through values already in a color form.\n * `oklch(…)` / `oklab(…)` / `color-mix(…)` are recognised because the ramp is\n * authored in oklch and the border tiers are colour mixes — wrapping either in\n * `hsl()` yields an invalid colour that paints as nothing.\n */\nexport function themeColor(value: string): string {\n return /^(hsl|rgb|oklch|oklab|lch|lab|color|color-mix|#)/.test(value) ? value : `hsl(${value})`\n}\n\n/**\n * Map a theme to the full CSS-variable set (shadcn triples + canvas/sequences\n * aliases + canvas surface). Apply at runtime to scope a theme without loading\n * tokens.css: `Object.assign(el.style, themeToCssVars(darkTheme))`.\n */\nexport function themeToCssVars(theme: AgentAppTheme): Record<string, string> {\n return {\n '--background': theme.background,\n '--foreground': theme.foreground,\n '--card': theme.card,\n '--card-foreground': theme.cardForeground,\n '--popover': theme.popover,\n '--popover-foreground': theme.popoverForeground,\n '--primary': theme.primary,\n '--primary-foreground': theme.primaryForeground,\n '--secondary': theme.secondary,\n '--secondary-foreground': theme.secondaryForeground,\n '--muted': theme.muted,\n '--muted-foreground': theme.mutedForeground,\n '--accent': theme.accent,\n '--accent-foreground': theme.accentForeground,\n '--destructive': theme.destructive,\n '--destructive-foreground': theme.destructiveForeground,\n '--border': theme.border,\n '--input': theme.input,\n '--ring': theme.ring,\n '--success': theme.success,\n '--success-foreground': theme.successForeground,\n '--warning': theme.warning,\n '--warning-foreground': theme.warningForeground,\n // Falls back to the pairing the tinted surfaces used before this token\n // existed, so an unset value restores the previous look rather than an\n // unthemed one.\n '--warning-strong': theme.warningStrong ?? theme.warningForeground,\n '--bg-input': theme.inputFill ?? `hsl(${theme.card})`,\n '--text-primary': `hsl(${theme.foreground})`,\n '--text-secondary': `hsl(${theme.secondaryForeground})`,\n '--text-muted': `hsl(${theme.mutedForeground})`,\n '--text-danger': `hsl(${theme.destructive})`,\n '--text-warning': `hsl(${theme.warningStrong ?? theme.warningForeground})`,\n '--border-default': `hsl(${theme.border})`,\n '--brand-primary': `hsl(${theme.primary})`,\n '--editor-selection-background': `hsl(${theme.primary})`,\n '--editor-selection-foreground': `hsl(${theme.primaryForeground})`,\n '--canvas-backdrop': theme.canvasBackdrop,\n // Full strength is the safe default: an unset tier can under-draw an edge,\n // never erase one.\n '--border-soft': theme.borderSoft ?? `hsl(${theme.border})`,\n '--card-edge': theme.cardEdge ?? `hsl(${theme.border})`,\n }\n}\n"],"mappings":";AAGO,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,IACP,cAAc;AAAA,IACd,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,kBAAkB;AAAA,IAClB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,WAAW;AAAA,IACX,qBAAqB;AAAA,IACrB,aAAa;AAAA,IACb,uBAAuB;AAAA,IACvB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,UAAU;AAAA,IACV,oBAAoB;AAAA,IACpB,eAAe;AAAA,IACf,yBAAyB;AAAA,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IACrD,iCAAiC,OAAO,MAAM,iBAAiB;AAAA,IAC/D,qBAAqB,MAAM;AAAA;AAAA;AAAA,IAG3B,iBAAiB,MAAM,cAAc,OAAO,MAAM,MAAM;AAAA,IACxD,eAAe,MAAM,YAAY,OAAO,MAAM,MAAM;AAAA,EACtD;AACF;","names":[]}
@@ -11,7 +11,7 @@ import {
11
11
  bakeTextTransform,
12
12
  exportDocumentJson,
13
13
  exportPageDataUrl
14
- } from "../chunk-HNVWTWU5.js";
14
+ } from "../chunk-6KZ4ZTLG.js";
15
15
  import {
16
16
  BTN,
17
17
  BTN_ACTIVE,
@@ -41,7 +41,7 @@ import {
41
41
  formatRulerLabel,
42
42
  selectTickStep
43
43
  } from "../chunk-DKHM4B4A.js";
44
- import "../chunk-GDB3YCNS.js";
44
+ import "../chunk-ZBZA7KSL.js";
45
45
  import "../chunk-ZN5J47UX.js";
46
46
  import {
47
47
  DEFAULT_INSERT_TEMPLATES,
@@ -92,7 +92,7 @@ import {
92
92
  import {
93
93
  DesignCanvasChromeLazy,
94
94
  DesignCanvasLazy
95
- } from "../chunk-GPRTXOBI.js";
95
+ } from "../chunk-YPP6OJGC.js";
96
96
  import "../chunk-YNSPVKMS.js";
97
97
  import "../chunk-3NCPXNBZ.js";
98
98
  import "../chunk-TXD5HXLE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DesignCanvasChromeLazy,
3
3
  DesignCanvasLazy
4
- } from "../chunk-GPRTXOBI.js";
4
+ } from "../chunk-YPP6OJGC.js";
5
5
  export {
6
6
  DesignCanvasChromeLazy,
7
7
  DesignCanvasLazy
@@ -6,8 +6,8 @@ import {
6
6
  } from "../chunk-7KKOFMLD.js";
7
7
  import {
8
8
  assertRenderUiSchema
9
- } from "../chunk-2BD7VZKN.js";
10
- import "../chunk-M63EUBSH.js";
9
+ } from "../chunk-GDATBYU4.js";
10
+ import "../chunk-OP6Y4DWQ.js";
11
11
 
12
12
  // src/preset-cloudflare/workflow-instance.ts
13
13
  async function ensureCloudflareWorkflowInstance(binding, input) {
@@ -103,12 +103,12 @@ import {
103
103
  } from "../chunk-73WE4UQG.js";
104
104
  import "../chunk-MCYJON3F.js";
105
105
  import "../chunk-LWSJK546.js";
106
- import "../chunk-IVE3T73T.js";
106
+ import "../chunk-WQLC6IOD.js";
107
107
  import "../chunk-6A7MYOUI.js";
108
- import "../chunk-J5EBGZTD.js";
108
+ import "../chunk-KELJZHID.js";
109
109
  import "../chunk-UGWQLQDS.js";
110
- import "../chunk-2BD7VZKN.js";
111
- import "../chunk-M63EUBSH.js";
110
+ import "../chunk-GDATBYU4.js";
111
+ import "../chunk-OP6Y4DWQ.js";
112
112
  import "../chunk-S5SRJJQG.js";
113
113
  import "../chunk-D6UJEOZQ.js";
114
114
  export {
@@ -27,3 +27,23 @@ export declare const usageReportMessage: ChatUiMessage[];
27
27
  * render inline, chronologically).
28
28
  */
29
29
  export declare const reasoningToolThread: ChatUiMessage[];
30
+ /** Participants of a thread a client, an attorney and the agent share. */
31
+ export declare const multiPartyAuthors: {
32
+ readonly client: {
33
+ readonly id: 'client-maria-lopez';
34
+ readonly name: 'Maria Lopez';
35
+ readonly role: 'Client';
36
+ };
37
+ readonly attorney: {
38
+ readonly id: 'attorney-jane-doe';
39
+ readonly name: 'Jane Doe';
40
+ readonly role: 'Attorney';
41
+ };
42
+ readonly agent: {
43
+ readonly id: 'agent-intake';
44
+ readonly name: 'Intake assistant';
45
+ readonly role: 'AI';
46
+ };
47
+ };
48
+ /** A legal intake that the agent hands to an attorney, who joins the thread. */
49
+ export declare const multiPartyThread: ChatUiMessage[];
@@ -1,9 +1,9 @@
1
1
  /** GENERATED from @tangle-network/brand/styles/legacy-light.css
2
- * SHA-256: 14616a7bcbdcbb3587912f566c71803ac5dd1d48adc5a36e8f3fc2f3ab7a6fe6
2
+ * SHA-256: f806a1a96207921493e506e2007b883eba7138639d396a1af91c7abe4cb3d901
3
3
  * Run node src/theme/build.mjs --write; do not edit colors or ratios here. */
4
4
  export declare const brandThemes: {
5
5
  readonly light: {
6
- readonly background: "0 0% 91.7647%";
6
+ readonly background: "223 23% 94%";
7
7
  readonly foreground: "0 0% 17.6471%";
8
8
  readonly card: "0 0% 100%";
9
9
  readonly cardForeground: "0 0% 17.6471%";
@@ -11,15 +11,15 @@ export declare const brandThemes: {
11
11
  readonly popoverForeground: "0 0% 17.6471%";
12
12
  readonly primary: "243.2787 80.6167% 55.4902%";
13
13
  readonly primaryForeground: "0 0% 100%";
14
- readonly secondary: "0 0% 94.902%";
14
+ readonly secondary: "230 27% 96%";
15
15
  readonly secondaryForeground: "0 0% 17.6471%";
16
- readonly muted: "0 0% 94.902%";
16
+ readonly muted: "230 27% 96%";
17
17
  readonly mutedForeground: "0 0% 29.8039%";
18
- readonly accent: "0 0% 94.902%";
18
+ readonly accent: "230 27% 96%";
19
19
  readonly accentForeground: "0 0% 17.6471%";
20
20
  readonly destructive: "0 73.7089% 41.7647%";
21
21
  readonly destructiveForeground: "0 0% 100%";
22
- readonly border: "0 0% 81.5686%";
22
+ readonly border: "244 16% 81%";
23
23
  readonly input: "0 0% 29.8039%";
24
24
  readonly ring: "246 54% 51%";
25
25
  readonly success: "162.931 93.5484% 24.3137%";
@@ -27,64 +27,64 @@ export declare const brandThemes: {
27
27
  readonly successForeground: "0 0% 100%";
28
28
  readonly warningForeground: "0 0% 0%";
29
29
  readonly warningStrong: "25.9259 90% 35.2941%";
30
- readonly inputFill: "hsl(0 0% 96.0784%)";
31
- readonly canvasBackdrop: "#dadada";
30
+ readonly inputFill: "hsl(225 29% 97%)";
31
+ readonly canvasBackdrop: "#dcdee6";
32
32
  readonly borderSoft: "rgba(0, 0, 0, 0.10)";
33
33
  readonly cardEdge: "rgba(0, 0, 0, 0.14)";
34
34
  readonly canvasRender: {
35
- readonly grid: "#d0d0d0";
35
+ readonly grid: "#c7c6d6";
36
36
  readonly snapGrid: "#787878";
37
37
  readonly snapGuide: "#0369a1";
38
38
  readonly snapPage: "#ab4f09";
39
39
  readonly snapElement: "#b91c1c";
40
40
  readonly selectionStroke: "#3c32e9";
41
41
  readonly selectionAnchorFill: "#ffffff";
42
- readonly placeholderFill: "#f7f7f7";
43
- readonly placeholderStroke: "#d0d0d0";
44
- readonly brokenFill: "#f2f2f2";
42
+ readonly placeholderFill: "#f6f7fa";
43
+ readonly placeholderStroke: "#c7c6d6";
44
+ readonly brokenFill: "#f1f2f7";
45
45
  readonly brokenStroke: "#787878";
46
46
  };
47
47
  };
48
48
  readonly dark: {
49
- readonly background: "0 0% 8.6275%";
49
+ readonly background: "240 33% 6%";
50
50
  readonly foreground: "0 0% 90.1961%";
51
- readonly card: "0 0% 18.8235%";
51
+ readonly card: "244 23% 12%";
52
52
  readonly cardForeground: "0 0% 90.1961%";
53
- readonly popover: "0 0% 20.7843%";
53
+ readonly popover: "247 23% 21%";
54
54
  readonly popoverForeground: "0 0% 90.1961%";
55
55
  readonly primary: "229.6552 93.5484% 81.7647%";
56
56
  readonly primaryForeground: "0 0% 0%";
57
- readonly secondary: "0 0% 20.7843%";
57
+ readonly secondary: "249 24% 16%";
58
58
  readonly secondaryForeground: "0 0% 90.1961%";
59
- readonly muted: "0 0% 20.7843%";
60
- readonly mutedForeground: "0 0% 70.9804%";
61
- readonly accent: "0 0% 20.7843%";
59
+ readonly muted: "249 24% 16%";
60
+ readonly mutedForeground: "240 5% 68%";
61
+ readonly accent: "249 24% 16%";
62
62
  readonly accentForeground: "0 0% 90.1961%";
63
63
  readonly destructive: "2.7907 100% 83.1373%";
64
64
  readonly destructiveForeground: "0 0% 0%";
65
- readonly border: "0 0% 29.8039%";
66
- readonly input: "0 0% 70.9804%";
65
+ readonly border: "243 20% 20%";
66
+ readonly input: "240 5% 68%";
67
67
  readonly ring: "233 100% 87%";
68
68
  readonly success: "154.7107 60.199% 60.5882%";
69
69
  readonly warning: "40 94% 56%";
70
70
  readonly successForeground: "0 0% 0%";
71
71
  readonly warningForeground: "0 0% 0%";
72
72
  readonly warningStrong: "41.4545 88.2353% 63.3333%";
73
- readonly inputFill: "hsl(0 0% 12.1569%)";
74
- readonly canvasBackdrop: "#101010";
73
+ readonly inputFill: "hsl(244 29% 9%)";
74
+ readonly canvasBackdrop: "#060610";
75
75
  readonly borderSoft: "rgba(255, 255, 255, 0.10)";
76
76
  readonly cardEdge: "rgba(255, 255, 255, 0.16)";
77
77
  readonly canvasRender: {
78
- readonly grid: "#4c4c4c";
78
+ readonly grid: "#2a293d";
79
79
  readonly snapGrid: "#8e8e8e";
80
80
  readonly snapGuide: "#67cdff";
81
81
  readonly snapPage: "#f4c14f";
82
82
  readonly snapElement: "#ffada9";
83
83
  readonly selectionStroke: "#a5b4fc";
84
- readonly selectionAnchorFill: "#3b3b3b";
85
- readonly placeholderFill: "#242424";
86
- readonly placeholderStroke: "#4c4c4c";
87
- readonly brokenFill: "#353535";
84
+ readonly selectionAnchorFill: "#232238";
85
+ readonly placeholderFill: "#12111f";
86
+ readonly placeholderStroke: "#2a293d";
87
+ readonly brokenFill: "#221f33";
88
88
  readonly brokenStroke: "#8e8e8e";
89
89
  };
90
90
  };
@@ -3,7 +3,7 @@ import {
3
3
  lightTheme,
4
4
  themeColor,
5
5
  themeToCssVars
6
- } from "../chunk-GDB3YCNS.js";
6
+ } from "../chunk-ZBZA7KSL.js";
7
7
  export {
8
8
  darkTheme,
9
9
  lightTheme,