@mgamadeus/ddd-agents 0.14.8 → 0.15.0
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/README.md +6 -0
- package/dist/admin.js +2 -2
- package/dist/chat.js +9 -9
- package/dist/chunks/{ConversationMarkdown-DlvwT3Qk.js → ConversationMarkdown-DNQcVuz-.js} +2 -2
- package/dist/chunks/{ConversationMarkdown-DlvwT3Qk.js.map → ConversationMarkdown-DNQcVuz-.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-TchR1lPj.js → ConversationMessageInputComposerWidgets-BlpIule7.js} +2 -2
- package/dist/chunks/{ConversationMessageInputComposerWidgets-TchR1lPj.js.map → ConversationMessageInputComposerWidgets-BlpIule7.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-y3mgSqbn.js → VoiceBarsIcon-eODB_UTI.js} +3 -3
- package/dist/chunks/{VoiceBarsIcon-y3mgSqbn.js.map → VoiceBarsIcon-eODB_UTI.js.map} +1 -1
- package/dist/chunks/{agents-http-trace-mappers-juBx_kw5.js → agents-http-trace-mappers-BYEpNy0b.js} +2 -1
- package/dist/chunks/{agents-http-trace-mappers-juBx_kw5.js.map → agents-http-trace-mappers-BYEpNy0b.js.map} +1 -1
- package/dist/chunks/{canvas-label-context-B54MYVLF.js → canvas-label-context-C1Pc_Ldo.js} +2 -2
- package/dist/chunks/{canvas-label-context-B54MYVLF.js.map → canvas-label-context-C1Pc_Ldo.js.map} +1 -1
- package/dist/chunks/{canvasBodies-BjXypuHf.js → canvasBodies-BpLPp-S8.js} +2 -2
- package/dist/chunks/{canvasBodies-BjXypuHf.js.map → canvasBodies-BpLPp-S8.js.map} +1 -1
- package/dist/chunks/{content-from-unified-diff-lgH6CejC.js → content-from-unified-diff-Dzsh8kR2.js} +6 -4
- package/dist/chunks/content-from-unified-diff-Dzsh8kR2.js.map +1 -0
- package/dist/chunks/conversation-trace-fVeh6Lg6.js.map +1 -1
- package/dist/chunks/{widget-name-resolver-DS3zH_5W.js → widget-name-resolver-DXIE9JUr.js} +2 -2
- package/dist/chunks/{widget-name-resolver-DS3zH_5W.js.map → widget-name-resolver-DXIE9JUr.js.map} +1 -1
- package/dist/client-testing.js +2 -2
- package/dist/client.js +2 -2
- package/dist/files/i18n-keys.json +9 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +2 -0
- package/dist/image-render.js +2 -2
- package/dist/index.js +3 -3
- package/dist/kit.js +1 -1
- package/dist/preview.js +3 -3
- package/dist/renderer.js +5 -5
- package/dist/types/chat/trace/trace-format.d.ts +2 -2
- package/dist/types/chat/trace/trace-types.d.ts +2 -0
- package/dist/types/client/http/agents-http-trace-wire.d.ts +1 -0
- package/dist/types/contract/conversation-trace.d.ts +3 -1
- package/dist/voice.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/content-from-unified-diff-lgH6CejC.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-trace-fVeh6Lg6.js","sources":["../../src/contract/conversation-trace.ts"],"sourcesContent":["/**\n * The turn trace of a conversation as the conversation client port returns it: what the agent did in each turn, step by\n * step, for the step rows of the chat and of an analysis view. The shape follows the server's trace read\n * (`GET …/{id}/trace`): a field keeps the server's name where it is neutral, and a server name that carries its entity\n * vocabulary is renamed (`initiatorMessageId` → `turnMessageId`, `wasHeldForOwnerConsent` → `isHeldForConsent`,\n * `fileChangeId` → `id`). The server decides how much a read carries (`level`): the fields marked \"debug level\" are\n * null or absent in a read at the level of steps.\n */\n\n// ── Vocabulary ───────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** How much a trace read carries: the steps as the owner may read them, or the debug facts beside them. */\nexport type ConversationTraceLevel = \"RESULT\" | \"STEPS\" | \"DEBUG\";\n\n/** The trace levels from the least to the most: RESULT (the answers only, no steps) < STEPS < DEBUG. */\nexport const CONVERSATION_TRACE_LEVELS: readonly ConversationTraceLevel[] = [\"RESULT\", \"STEPS\", \"DEBUG\"];\n\n/**\n * Which trace levels a reader may see in a conversation (the server's `AgentTraceViewPolicy`, decided by the app's\n * `AgentTraceViewPolicyService`): every level up to `maxDetailLevel`, starting at `defaultDetailLevel`. The server holds\n * the lock (a read above the maximum is lowered); a client only offers what is allowed. `isSwitchShown` is false when\n * a single level is allowed: no Short / Normal / Verbose switch then.\n */\nexport interface ConversationTraceViewPolicy {\n maxDetailLevel: ConversationTraceLevel;\n defaultDetailLevel: ConversationTraceLevel;\n isSwitchShown: boolean;\n}\n\nexport type ConversationTraceStepKind =\n | \"THINKING\"\n | \"MODEL_CALL\"\n | \"TOOL_CALL\"\n | \"SKILL_LOAD\"\n | \"SUB_AGENT\"\n | \"WIDGET\"\n | \"COMPACTION\"\n | \"SIGNAL\"\n | \"DECISION\"\n | \"TASK_PLAN\"\n | \"ERROR\";\n\n/** What a tool does to the data it works on, as the tool declared it. */\nexport type ConversationTraceToolEffect = \"READ\" | \"WORKSPACE\" | \"WRITE\" | \"DELETE\";\n\n/** The status of a step: the stored status of its call, or `ERROR` for an error row. */\nexport type ConversationTraceStepStatus =\n | \"PENDING\"\n | \"RUNNING\"\n | \"COMPLETED\"\n | \"FAILED\"\n | \"CANCEL_REQUESTED\"\n | \"CANCELLED\"\n | \"ERROR\"\n /** A control tool of the loop refused the call by design (`wait_for_sub_agents` on a turn that owes an answer): no failure. */\n | \"REFUSED\";\n\n/** Why a control call was refused (`step.refusalReason`); `other` for a refusal text the server does not know. */\nexport type ConversationTraceRefusalReason = \"turnAnswersOwner\" | \"ownerWroteDuringTurn\" | \"noSubAgentRunning\" | \"other\";\n\n/** What a sub-agent's task is (`subAgent.taskKind`): a task in words, a background job (one tool or operation, no model call), a run that exists already. */\nexport type ConversationTraceSubAgentTaskKind = \"agent\" | \"toolRun\" | \"awaitedRun\";\n\nexport type ConversationFileChangeType = \"ADDED\" | \"MODIFIED\" | \"DELETED\" | \"RENAMED\" | \"DIRECTORY_CREATED\";\n\n/**\n * What a file change carries as its diff: none (not a content change), the whole diff inline (`diffPreview`), a\n * preview with the whole diff stored (`getFileChangeDiff`), a binary file, a file over the size cap, or a diff that\n * could not be computed.\n */\nexport type ConversationFileChangeDiffState = \"NONE\" | \"INLINE\" | \"STORED\" | \"BINARY\" | \"TOO_LARGE\" | \"UNAVAILABLE\";\n\n// ── Parts of a step ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/** A record a call's arguments name by id; the host maps the argument name to a label and a route. */\nexport interface ConversationTraceEntityReference {\n argumentName: string;\n id: number;\n}\n\n/** One field a call changed on one record: the stored column name and its value before and after the call, as text. */\nexport interface ConversationTraceFieldChange {\n fieldName: string;\n /** Null when the record did not exist yet or the field was empty. */\n before: string | null;\n /** Null when the record was deleted or the field was emptied. */\n after: string | null;\n /** A value was cut (a long text, a credential shortened to its first characters). */\n isCut: boolean;\n}\n\n/** What a call did to one record. */\nexport type ConversationTraceRecordChangeOperation = \"CREATED\" | \"CHANGED\" | \"DELETED\";\n\n/** One record a call created, changed or deleted, captured at the call's own write statements. */\nexport interface ConversationTraceRecordChange {\n operation: ConversationTraceRecordChangeOperation;\n /** The table of the record (`SupportDirectives`). */\n tableName: string;\n /** Null for a created record whose id the database assigned. */\n recordId: number | null;\n fieldChanges: ConversationTraceFieldChange[];\n /** Changed fields left out beyond the server's cap. */\n omittedFieldCount: number;\n}\n\n/** The facts of one model call (debug level). */\nexport interface ConversationTraceModelCall {\n modelName: string | null;\n effort: string | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n /** The share of the input tokens read from the cache, 0–100. */\n cachePercent: number | null;\n costInUsd: number | null;\n reasoningTokens: number | null;\n /** Input tokens the call wrote to the cache. */\n cacheWriteTokens: number | null;\n /** The provider API the call went through, as the server names it. */\n wireApi: string | null;\n /** The tool the call was forced to choose, when one was forced. */\n forcedToolChoice: string | null;\n /** Milliseconds the provider took, and milliseconds the loop spent around the call. */\n providerCallMs: number | null;\n loopOverheadMs: number | null;\n /** The request of the call is stored (the sent payload can be read). */\n hasStoredPayload: boolean;\n /** The message whose context composition is the context of this call; null when the server names none. */\n contextMessageId: number | null;\n /** 1 for the first model call of the turn, 2 for the next. */\n callNumberInTurn: number | null;\n /** The tools the model called in this call, in order; empty when it answered with text. */\n toolNames: string[];\n /** How the call ended (`toolCalls`, `answer`, `empty`), as the server derives it. */\n stopReason: string | null;\n /** How tools were delivered on the call (`callTool`, `direct`), when stored. */\n toolDelivery: string | null;\n retryCount: number | null;\n}\n\n/** One probability a decision stored beside its answer. */\nexport interface ConversationTraceDecisionProbability {\n name: string;\n /** 0–1. */\n probability: number;\n}\n\n/** A decision the agent's loop took beside the model (a `DECISION` step; debug level). */\nexport interface ConversationTraceDecision {\n /** Which decision it is, as the server keys it (`replyLanguage`, `skillPreload`, `reasoningEffort`, …). */\n site: string | null;\n /** The decision's name in words, as the server words it (\"Reply language\"). */\n siteLabel: string | null;\n /** What keeps two decisions of one site apart (a pass, the tool of a consent, the evicted skill). */\n subject: string | null;\n /** Who decided (`decisionModel`, `rule`, `default`), and the same in words (\"Decision model\", \"Rule · platform\"). */\n engine: string | null;\n engineLabel: string | null;\n /** The site's mode when it decided (`on`, `shadow`). */\n mode: string | null;\n /**\n * Where the decision stands: `APPLIED` (the loop acted on it), `DECIDED` (answered, nothing to apply), `SHADOW`\n * (answered, recorded only), `FALLBACK` (no answer), `SKIPPED` (nobody was asked).\n */\n status: string | null;\n /** What came of it, in one line (\"effort medium → high\"). */\n resultSummary: string | null;\n modelName: string | null;\n modelVersion: string | null;\n /** The call's time; the decisions of one request share it. */\n durationMs: number | null;\n /**\n * How many decisions of the turn one request answered together (all with its duration): the step of the first of\n * them alone carries the duration on its row. Null or absent for a decision with a request of its own.\n */\n sharedRequestDecisionCount?: number | null;\n /** The leading probability of the answer, 0–1. */\n confidence: number | null;\n /** The probabilities the decision stored, highest first. */\n probabilities: ConversationTraceDecisionProbability[];\n /** Why the loop went on without the decision's answer (`FALLBACK`). */\n fallbackReason: string | null;\n /** Why the answer led to no action. */\n skipReason: string | null;\n /** The state the decision was sent, the questions it was asked, the model's raw answers and what the loop resolved from them, each as JSON text. */\n inputJson: string | null;\n isInputCut: boolean;\n questionsJson: string | null;\n isQuestionsCut: boolean;\n outputJson: string | null;\n isOutputCut: boolean;\n outcomeJson: string | null;\n isOutcomeCut: boolean;\n}\n\n/** One skill (or single tool) of a skill load. */\nexport interface ConversationTraceSkillLoadEntry {\n name: string;\n /** `SKILL` or `TOOL`. */\n type: string | null;\n /** `LOADED`, `ALREADY_LOADED`, `NOT_LOADED`. */\n outcome: string | null;\n /** `MODEL`, `DECISION_MODEL`, `PLAN_ITEM`, `STRUCTURAL`, `ALWAYS_LOADED`, `TOOL_CALL`. */\n cause: string | null;\n residentTokens: number | null;\n /** Tokens of the skill with the schemas of its tools. */\n residentTokensWithTools: number | null;\n tools: ConversationTraceLoadedSkillTool[];\n}\n\n/** What a step loaded: a `SKILL_LOAD` step, or a tool call that loaded skills (the entries at debug level only). */\nexport interface ConversationTraceSkillLoad {\n /** `MODEL` (the model asked for it), `PRELOAD` (loaded without a call of the model), `TOOL_CALL` (another tool's call loaded it). */\n cause: string | null;\n loadedCount: number | null;\n notLoadedCount: number | null;\n /** The names the model asked for. */\n requestedNames: string[];\n skills: ConversationTraceSkillLoadEntry[];\n /** What was not loaded and why, as the server stored it. */\n notLoadedText: string | null;\n}\n\n/** One item of a task plan. */\nexport interface ConversationTraceTaskPlanItem {\n key: string;\n /** The item's number in the plan (\"1\", \"1.2\"). */\n numberPath: string | null;\n depth: number;\n title: string;\n /** `open`, `done`, `blocked`, … as the server stores it. */\n status: string | null;\n /**\n * The state the plan shows (`open`, `done`, `blocked`, `not_applicable`): a container derives it from its subtasks, an\n * item below a blocked or not applicable container takes that state. Null from a server that does not send it.\n */\n shownStatus?: string | null;\n /** The one-line note of a terminal state: what was produced, why it is blocked, why it does not apply. */\n statusNote?: string | null;\n /** Only the owner can lift the block. */\n requiresUserAction?: boolean;\n /** The block is transient: the item may be tried again. */\n retryable?: boolean;\n /** The item came from the purpose's seeded plan (false: the agent added it). */\n isSeeded?: boolean;\n /** The seed found the item already satisfied and closed it at the start. */\n isPreResolvedAtSeed?: boolean;\n /** The platform closes the item from the record (a tool call, a widget, a delivered answer), never the agent's tick. */\n closesItself?: boolean;\n /** The platform wrote the item's current terminal state. */\n wasClosedByPlatform?: boolean;\n /** The machine done criterion of a seeded item. */\n doneCriterion?: string | null;\n /** The customer-facing progress step the item belongs to. */\n customerProgressStepKey?: string | null;\n /** Debug level: the agent's instruction, when the title is the customer-facing name. */\n instruction?: string | null;\n /** Debug level: the skills the item needs when it is the plan's next. */\n skillNames?: string[];\n /** Debug level: the seeded declarations that are set. */\n declarations?: ConversationTraceTaskPlanItemDeclaration[];\n /** Debug level: the message index of the evidence the item was closed on, and where the platform closed it. */\n evidenceMessageIndex?: number | null;\n platformResolvedAtMessageIndex?: number | null;\n}\n\n/** One seeded declaration of a task plan item (debug level). */\nexport interface ConversationTraceTaskPlanItemDeclaration {\n name: string;\n /** `text`, `nonEmptyArray`, `nameList`, `bool`, `connectedChannel`, `closedQuestionOptions`, `reasoningEffort`. */\n kind: string;\n value: string;\n}\n\n/** One line of the rejection block a refused plan call returned to the agent (debug level). */\nexport interface ConversationTraceTaskPlanRejection {\n line: string;\n /** The first item key the line names; null when it names none. */\n itemKey: string | null;\n}\n\n/** The compaction of a `COMPACTION` step (the summary text at debug level only). */\nexport interface ConversationTraceCompaction {\n /** The level of the summary (a summary of summaries has a higher one). */\n level: number | null;\n /** Messages the summary stands for, and the positions of the first and the last of them. */\n foldedMessageCount: number | null;\n foldedFromMessageIndex: number | null;\n foldedToMessageIndex: number | null;\n /** Tokens of those messages, and tokens of the summary in their place. */\n tokensBefore: number | null;\n tokensAfter: number | null;\n /** The share of the folded tokens the summary saved, 0–100. */\n compressionPercent: number | null;\n modelName: string | null;\n summaryText: string | null;\n isSummaryCut: boolean;\n /** The facts the compaction keeps beside its summary, as JSON text. */\n preservedFactsJson: string | null;\n}\n\n/** The signal of a `SIGNAL` step: a note the platform wrote into the conversation. */\nexport interface ConversationTraceSignal {\n source: string | null;\n /** The tag of a text that starts with `[SIGNAL:<kind>]` (`plan`, `ui`), else the source in words. */\n kind: string | null;\n /** The tag of a text that starts with `[SIGNAL:<tag>]`, as written; null when the text carries none (the source stays in `source`). */\n tag?: string | null;\n text: string | null;\n isTextCut: boolean;\n}\n\n/** The widget of a `WIDGET` step (the payload at debug level only). */\nexport interface ConversationTraceWidget {\n type: string | null;\n /** Who emitted it (`model`, a tool), as the server names it. */\n emittedBy: string | null;\n /** The payload passed the widget's validation. */\n isValid: boolean;\n /** The widget's own title and summary, where its payload names them. */\n title: string | null;\n summary: string | null;\n payloadJson: string | null;\n isPayloadCut: boolean;\n /** The message that holds the widget. */\n messageId?: number | null;\n /** The id of the `WIDGET` step of the widget (`m<messageId>.widget<ordinal>`). */\n stepId?: string | null;\n}\n\nexport interface ConversationTraceLoadedSkillTool {\n name: string;\n /** Tokens the tool's schema holds in the context. */\n residentTokens: number | null;\n /** Calls of the tool in the conversation so far. */\n usageCount: number | null;\n}\n\n/** A skill loaded at a model call, with its tools (debug level). */\nexport interface ConversationTraceLoadedSkill {\n name: string;\n residentTokens: number | null;\n /** Loaded since the model call before. */\n isNew: boolean;\n /** Loaded by the conversation itself, never by a `load` call. */\n isAlwaysLoaded: boolean;\n /** What loaded the skill (`MODEL`, `DECISION_MODEL`, `PLAN_ITEM`, `STRUCTURAL`, `ALWAYS_LOADED`, …), as the server names it. */\n cause: string | null;\n tools: ConversationTraceLoadedSkillTool[];\n}\n\n/** The shell command of a call (the output at debug level only). */\nexport interface ConversationTraceTerminal {\n command: string | null;\n cwd: string | null;\n exitCode: number | null;\n durationMs: number | null;\n output: string | null;\n errorOutput: string | null;\n /** The output was shortened by the runner. */\n isTruncated: boolean;\n isBackground: boolean;\n timedOut: boolean;\n}\n\n/** One file a call changed (the diff preview at debug level only). */\nexport interface ConversationFileChange {\n id: number | null;\n /** Where the change happened (`SANDBOX`, `CLOUDDRIVE`, `EXTERNAL_DRIVE`). */\n source: string | null;\n /** The kind of the mount (`OWN_DRIVE`, `SHARED_DRIVE`, `EXTERNAL_DRIVE`, `SCRATCH`); the host labels it. */\n mountKind: string | null;\n mountName: string | null;\n driveSpaceId: number | null;\n path: string;\n /** The path before a rename. */\n previousPath: string | null;\n changeType: ConversationFileChangeType | null;\n sizeBefore: number | null;\n sizeAfter: number | null;\n sha256Before: string | null;\n sha256After: string | null;\n contentType: string | null;\n isBinary: boolean;\n linesAdded: number | null;\n linesRemoved: number | null;\n diffState: ConversationFileChangeDiffState | null;\n /** The diff as unified diff text: all of it (`INLINE`) or its start (`STORED`). */\n diffPreview: string | null;\n driveNodeId: number | null;\n driveFileVersionId: number | null;\n externalRevisionId: string | null;\n}\n\nexport interface ConversationTraceSubAgentRun {\n runNumber: number | null;\n /** `QUEUED`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`, … as the server stores it. */\n status: string | null;\n startedAt: string | null;\n finishedAt: string | null;\n /** What the sub-agent answered its parent. */\n verdict: string | null;\n failureReason: string | null;\n costInUsd: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n /** What the run reported, readable: the text of a tool response, never its JSON (both levels). */\n resultText?: string | null;\n isResultTextCut?: boolean;\n /** The run stored the serialized response of a tool; `verdict` (the raw JSON) is then debug level only. */\n isToolResponse?: boolean;\n /** A tool response only: it reported an error; null otherwise. */\n isError?: boolean | null;\n}\n\n/** The sub-agent of a `SUB_AGENT` step. */\nexport interface ConversationTraceSubAgent {\n /** The number of the sub-agent in its parent conversation. */\n number: number | null;\n label: string;\n taskText: string | null;\n skillNames: string[];\n childConversationId: number | null;\n /** The status of the newest run. */\n status: string | null;\n runs: ConversationTraceSubAgentRun[];\n /** The model the sub-agent's conversation ran on (debug level). */\n modelName: string | null;\n /** That model as the model catalog names it (\"GPT-6 Luna\"); null when the server names none (debug level). */\n modelLabel?: string | null;\n /** The totals of the sub-agent's conversation over all its runs (debug level). */\n costInUsd: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n messageCount: number | null;\n /** What the task is; null when the server names none. */\n taskKind?: ConversationTraceSubAgentTaskKind | null;\n /** A `toolRun` task: the tool it runs; null for an operation the application names. */\n toolName?: string | null;\n /** A `toolRun` task: the operation (`executeTool` for a tool, else the application's operation name). */\n operationName?: string | null;\n /** A `toolRun` task: the stable id of the background job, `<operation>:<tool name>` (`executeTool:countRows`) or the operation. */\n backgroundJobKey?: string | null;\n /** The readable verdict of the current run (the text of a tool response for a background job). */\n verdictText?: string | null;\n /** What the current run reported, readable (both levels). */\n resultText?: string | null;\n isResultTextCut?: boolean;\n}\n\n// ── Steps and turns ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * A message of a turn as the trace carries it: the message that started the turn, or a text the assistant wrote in\n * it. The text is the stored one (widget blocks and line breaks kept) with credentials shortened; a long text is cut\n * (`isTextCut`) and its whole text is read by the per-message read of the audience.\n */\nexport interface ConversationTraceMessage {\n messageId: number | null;\n /** The position of the message in the conversation (`indexInConversation`). */\n messageIndex: number | null;\n /** Who wrote it: `OWNER`, `SIGNAL`, `ORCHESTRATOR` or `PLATFORM` for the message that started a turn, `ASSISTANT` for a text of the assistant. */\n authorKind: string | null;\n text: string;\n /** Characters of the whole text. */\n textChars: number;\n isTextCut: boolean;\n createdAt: string | null;\n /** The source of a signal that started the turn, or the marker of a text the platform wrote in the agent's name; null for a plain message. */\n signalSource: string | null;\n /** A text of the assistant: the model call that wrote it also called tools (a text between two steps, not the turn's answer). */\n isInterim: boolean;\n /** A text of the assistant: the model that wrote it, as the model catalog names it (\"GPT-6 Luna\"), else in words. */\n modelLabel: string | null;\n /** Debug level: the name of that model as the server stores it. */\n modelName: string | null;\n /** The types of the widget blocks the text holds, in order. */\n widgetTypes: string[];\n /** An answer: the widgets it shows, in order (type, title, message; the payload at debug level only). */\n widgets?: ConversationTraceWidget[];\n /** An owner message that arrived while a turn ran, so it started no turn of its own at that moment. */\n isQueuedDuringRun?: boolean;\n /** Such a message: the number of the turn that was running when it arrived. */\n arrivedDuringTurnNumber?: number | null;\n /** Such a message: the number of the turn that took it up (the same turn or the next one); null while none has. */\n handledInTurnNumber?: number | null;\n /** Such a message: the platform note that handed it to the model. */\n foldSignalMessageId?: number | null;\n}\n\n/** One step of a turn. */\nexport interface ConversationTraceStep {\n /** A key that is stable within the turn: the server's step id, else the row's message id, its kind and its position. */\n key: string;\n /** The id the server gives the step, unique within the conversation (never parsed, only compared); null when it sends none. */\n stepId: string | null;\n /** The number of the turn the step belongs to; null when the server names none. */\n turnNumber: number | null;\n kind: ConversationTraceStepKind;\n /** The stored message the step comes from; null for a step from an event. */\n messageId: number | null;\n /** The tool that was called: the real tool, also when the model called it through `call_tool`. */\n toolName: string | null;\n deliveredThroughCallTool: boolean;\n effect: ConversationTraceToolEffect | null;\n status: ConversationTraceStepStatus | null;\n /** The stored status of the call when `status` tells something else (`FAILED` behind `REFUSED`). */\n storedStatus?: string | null;\n /** A `REFUSED` step: why the call was refused. */\n refusalReason?: ConversationTraceRefusalReason | null;\n /** The step of a background job in the trace of its own conversation: the operation it ran (`executeTool` or the application's). */\n backgroundOperationName?: string | null;\n /** That step: the stable id of the job, `<operation>:<tool name>` or the operation. */\n backgroundJobKey?: string | null;\n startedAt: string | null;\n durationMs: number | null;\n /** The narrated activity line, as the owner read it; null when none was narrated. */\n line: string | null;\n /** The tool name in words (`searchServiceAreas` reads \"search service areas\"). */\n toolNameInWords: string | null;\n /** The loaded skills that brought the tool at the time of the call; empty when unknown. */\n toolSkillNames: string[];\n /** The model of a `MODEL_CALL` or `THINKING` step in words (\"GPT6 LUNA\"). */\n modelLabel: string | null;\n /** What the model wrote about its thinking at a `THINKING` or `MODEL_CALL` step, where the provider returned it readable. */\n thinkingSummary?: string | null;\n entityReferences: ConversationTraceEntityReference[];\n /** The records a writing call created, changed or deleted, each field before and after; empty for a read. */\n recordChanges?: ConversationTraceRecordChange[];\n /** Changed records left out beyond the server's cap. */\n omittedRecordChangeCount?: number;\n /** The owner-consent check held a write of the call back. */\n isHeldForConsent: boolean;\n /** A gate refused the call before it ran, or it was dropped as a repeat. */\n isRefused: boolean;\n /** The start of the text of an `ERROR` step. */\n errorText: string | null;\n /** The code of an `ERROR` step, as the server names it, and whether the turn went on with another model call after it. */\n errorCode: string | null;\n wasRetried: boolean;\n /** The widget type of a `WIDGET` step. */\n widgetType: string | null;\n /** The widget of a `WIDGET` step. */\n widget: ConversationTraceWidget | null;\n /** The decision of a `DECISION` step. */\n decision: ConversationTraceDecision | null;\n /** The compaction of a `COMPACTION` step. */\n compaction: ConversationTraceCompaction | null;\n /** The signal of a `SIGNAL` step. */\n signal: ConversationTraceSignal | null;\n /** What the step loaded: a `SKILL_LOAD` step, or a tool call that loaded skills. */\n skillLoad: ConversationTraceSkillLoad | null;\n /** The items of the task plan after a `TASK_PLAN` step; empty when the server sends none. */\n taskPlanItems: ConversationTraceTaskPlanItem[];\n /** Debug level: the rejection lines of a refused plan call. Absent from a server that does not send them. */\n taskPlanRejections?: ConversationTraceTaskPlanRejection[];\n /** The task plan after a `TASK_PLAN` step. */\n taskPlanTitle: string | null;\n /** Top-level items of the plan, and how many of them are open (neither done nor blocked). */\n taskPlanItemCount: number | null;\n taskPlanOpenItemCount: number | null;\n /** Top-level items that are done (or do not apply) and that are blocked; absent from a server that does not send them. */\n taskPlanDoneItemCount?: number | null;\n taskPlanBlockedItemCount?: number | null;\n terminal: ConversationTraceTerminal | null;\n fileChanges: ConversationFileChange[];\n subAgent: ConversationTraceSubAgent | null;\n /** Debug level: the arguments of the call as JSON. */\n argumentsJson: string | null;\n isArgumentsCut: boolean;\n /** Debug level: the stored result of the call (its start when `isResultCut`). */\n result: string | null;\n /** Debug level: characters of the whole stored result. */\n resultChars: number | null;\n isResultCut: boolean;\n /** Debug level: the facts of a `MODEL_CALL` or `THINKING` step. */\n modelCall: ConversationTraceModelCall | null;\n /** Debug level: the skills loaded at a model call; null when they are those of the model call before. */\n loadedSkills: ConversationTraceLoadedSkill[] | null;\n /** Debug level: the skills the call loaded. */\n loadedSkillNames: string[];\n /** The text the assistant wrote in the model call of this step, before the call's tools ran; null without one. */\n assistantText: string | null;\n /** Characters of that whole text. */\n assistantTextChars: number | null;\n isAssistantTextCut: boolean;\n}\n\n/** The figures of one turn (tokens, cost, model and effort at debug level only). */\nexport interface ConversationTurnTraceTotals {\n durationMs: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n /** The share of the input tokens read from the cache, 0–100. */\n cachePercent: number | null;\n costInUsd: number | null;\n stepCount: number;\n commandCount: number;\n fileCount: number;\n linesAdded: number;\n linesRemoved: number;\n modelName: string | null;\n effort: string | null;\n /** How the turn ended (`answered`, `gaveUp`, `failed`, `cancelled`, `expired`, `waitingForSubAgents`); null while it runs. */\n outcome: string | null;\n}\n\n/** The trace of one turn: the message that started it and what the agent did until its answer. */\nexport interface ConversationTurnTrace {\n /** The number of the turn in its conversation, from 1, oldest first. */\n turnNumber: number;\n /** The message that started the turn (the owner's message, a signal); null for rows before the first one. */\n turnMessageId: number | null;\n /** The position of that message in the conversation (`indexInConversation`); null when the server names none. */\n turnMessageIndex: number | null;\n startedAt: string | null;\n isRunning: boolean;\n /** The owner stopped the turn. */\n isStoppedByOwner: boolean;\n /** The message that started the turn, with its text; null when the server sends none. */\n initiatorMessage: ConversationTraceMessage | null;\n /** The texts the assistant wrote in the turn, in order: interim texts (`isInterim`) and the answer. */\n answerMessages: ConversationTraceMessage[];\n /** Owner messages that arrived while this turn ran (`isQueuedDuringRun`), in order; place them by `messageIndex`. */\n queuedMessages?: ConversationTraceMessage[];\n /** The loop started this turn for a queued owner message after the turn before had ended. */\n isStartedForQueuedOwnerMessage?: boolean;\n /** Such a turn: the platform note that is its first row. */\n startedBySignalMessageId?: number | null;\n steps: ConversationTraceStep[];\n totals: ConversationTurnTraceTotals;\n}\n\n/**\n * How a trace read was asked for: the page of the newest turns, a page from a turn number, or the follow-up read of a\n * running conversation (\"the turns that hold a row after this position\"), which is no page.\n */\nexport type ConversationTraceWindowMode = \"NEWEST\" | \"FROM_TURN\" | \"FOLLOW_UP\";\n\n/** The answer of a trace read. */\nexport interface ConversationTurnTraces {\n conversationId: number | null;\n level: ConversationTraceLevel;\n /** Oldest first. */\n turns: ConversationTurnTrace[];\n /** How the window was asked for; null when the server does not say. */\n windowMode: ConversationTraceWindowMode | null;\n /** Turns of the whole conversation; null when the server names no count. */\n totalTurnCount: number | null;\n /** The numbers of the first and the last turn of `turns`; null for an answer without turns. */\n firstTurnNumber: number | null;\n lastTurnNumber: number | null;\n /**\n * A page read (`NEWEST`, `FROM_TURN`): turns exist before the first, and after the last, turn of the page. Both are\n * false on a follow-up read, which is no page: a reader keeps the paging facts of its page reads.\n */\n hasOlderTurns: boolean;\n hasNewerTurns: boolean;\n /** The position (`indexInConversation`) of the newest row the read saw: the `afterMessageIndex` of the next read. */\n newestMessageIndex: number | null;\n /** A turn runs right now. */\n isRunLive: boolean;\n /** Who may see which level in this conversation; null when the server sends none (an older server). */\n traceViewPolicy: ConversationTraceViewPolicy | null;\n}\n\n/** Which turns a trace read returns. Without options: the newest turns, as many as the server's default window holds. */\nexport interface ConversationTurnTracesOptions {\n /** The level asked for; the server answers at most the level the reader is allowed. */\n level?: ConversationTraceLevel;\n /** The first turn of the window (turns are numbered from 1, oldest first). */\n fromTurnNumber?: number;\n /** Turns of the window. */\n limit?: number;\n /** Only the turns that hold a row after this position, each of them whole: the read that follows a running turn. */\n afterMessageIndex?: number;\n}\n\n/** The answer of a stop of the running turn. */\nexport interface ConversationTurnStop {\n /** A running turn was stopped; false when none ran. */\n isStopped: boolean;\n /** The run state of the conversation after the stop, as the server stores it; null when it names none. */\n runState: string | null;\n}\n\n// ── Context composition and stored diffs ─────────────────────────────────────────────────────────────────────────\n\n/** One part of what a model call was sent (the system prompt, a skill, the tool schemas, the history, …). */\nexport interface ConversationContextSegment {\n key: string;\n /** The segment's name as the server words it. */\n label: string;\n tokens: number;\n /** The share of the context, 0–100. */\n percent: number | null;\n}\n\n/** What one model call was sent, by segment (debug level; the context ring's and the composition bar's data). */\nexport interface ConversationContextComposition {\n messageId: number | null;\n /** Tokens in the context at this call: the provider's count of the newest call when the server names it, else the segments' sum. */\n totalTokens: number | null;\n /**\n * The size the context may reach before the conversation is compacted (the compaction threshold in effect, at most\n * the model's context window); null when the server names none.\n */\n contextWindowTokens: number | null;\n /** The share of that size in use, 0–100 (above 100 while a compaction is due). */\n fillPercent: number | null;\n segments: ConversationContextSegment[];\n}\n\n/** The whole diff of one file change (`diffState` `STORED`). */\nexport interface ConversationFileChangeDiff {\n fileChangeId: number;\n /** Unified diff text. */\n diff: string;\n /** The stored diff itself was cut at the server's cap. */\n isCut: boolean;\n}\n"],"names":[],"mappings":";AAeO,MAAM,4BAA+D,CAAC,UAAU,SAAS,OAAO;"}
|
|
1
|
+
{"version":3,"file":"conversation-trace-fVeh6Lg6.js","sources":["../../src/contract/conversation-trace.ts"],"sourcesContent":["/**\n * The turn trace of a conversation as the conversation client port returns it: what the agent did in each turn, step by\n * step, for the step rows of the chat and of an analysis view. The shape follows the server's trace read\n * (`GET …/{id}/trace`): a field keeps the server's name where it is neutral, and a server name that carries its entity\n * vocabulary is renamed (`initiatorMessageId` → `turnMessageId`, `wasHeldForOwnerConsent` → `isHeldForConsent`,\n * `fileChangeId` → `id`). The server decides how much a read carries (`level`): the fields marked \"debug level\" are\n * null or absent in a read at the level of steps.\n */\n\n// ── Vocabulary ───────────────────────────────────────────────────────────────────────────────────────────────────\n\n/** How much a trace read carries: the steps as the owner may read them, or the debug facts beside them. */\nexport type ConversationTraceLevel = \"RESULT\" | \"STEPS\" | \"DEBUG\";\n\n/** The trace levels from the least to the most: RESULT (the answers only, no steps) < STEPS < DEBUG. */\nexport const CONVERSATION_TRACE_LEVELS: readonly ConversationTraceLevel[] = [\"RESULT\", \"STEPS\", \"DEBUG\"];\n\n/**\n * Which trace levels a reader may see in a conversation (the server's `AgentTraceViewPolicy`, decided by the app's\n * `AgentTraceViewPolicyService`): every level up to `maxDetailLevel`, starting at `defaultDetailLevel`. The server holds\n * the lock (a read above the maximum is lowered); a client only offers what is allowed. `isSwitchShown` is false when\n * a single level is allowed: no Short / Normal / Verbose switch then.\n */\nexport interface ConversationTraceViewPolicy {\n maxDetailLevel: ConversationTraceLevel;\n defaultDetailLevel: ConversationTraceLevel;\n isSwitchShown: boolean;\n}\n\nexport type ConversationTraceStepKind =\n | \"THINKING\"\n | \"MODEL_CALL\"\n | \"TOOL_CALL\"\n | \"SKILL_LOAD\"\n | \"SUB_AGENT\"\n | \"WIDGET\"\n | \"COMPACTION\"\n | \"SIGNAL\"\n | \"DECISION\"\n | \"TASK_PLAN\"\n | \"ERROR\";\n\n/** What a tool does to the data it works on, as the tool declared it. */\nexport type ConversationTraceToolEffect = \"READ\" | \"WORKSPACE\" | \"WRITE\" | \"DELETE\";\n\n/** The status of a step: the stored status of its call, or `ERROR` for an error row. */\nexport type ConversationTraceStepStatus =\n | \"PENDING\"\n | \"RUNNING\"\n | \"COMPLETED\"\n | \"FAILED\"\n | \"CANCEL_REQUESTED\"\n | \"CANCELLED\"\n | \"ERROR\"\n /** A control tool of the loop refused the call by design (`wait_for_sub_agents` on a turn that owes an answer): no failure. */\n | \"REFUSED\";\n\n/** Why a control call was refused (`step.refusalReason`); `other` for a refusal text the server does not know. */\nexport type ConversationTraceRefusalReason = \"turnAnswersOwner\" | \"ownerWroteDuringTurn\" | \"noSubAgentRunning\" | \"other\";\n\n/** What a sub-agent's task is (`subAgent.taskKind`): a task in words, a background job (one tool or operation, no model call), a run that exists already. */\nexport type ConversationTraceSubAgentTaskKind = \"agent\" | \"toolRun\" | \"awaitedRun\";\n\nexport type ConversationFileChangeType = \"ADDED\" | \"MODIFIED\" | \"DELETED\" | \"RENAMED\" | \"DIRECTORY_CREATED\";\n\n/**\n * What a file change carries as its diff: none (not a content change), the whole diff inline (`diffPreview`), a\n * preview with the whole diff stored (`getFileChangeDiff`), a binary file, a file over the size cap, or a diff that\n * could not be computed.\n */\nexport type ConversationFileChangeDiffState = \"NONE\" | \"INLINE\" | \"STORED\" | \"BINARY\" | \"TOO_LARGE\" | \"UNAVAILABLE\";\n\n// ── Parts of a step ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/** A record a call's arguments name by id; the host maps the argument name to a label and a route. */\nexport interface ConversationTraceEntityReference {\n argumentName: string;\n id: number;\n}\n\n/** One field a call changed on one record: the stored column name and its value before and after the call, as text. */\nexport interface ConversationTraceFieldChange {\n fieldName: string;\n /** Null when the record did not exist yet or the field was empty. */\n before: string | null;\n /** Null when the record was deleted or the field was emptied. */\n after: string | null;\n /** A value was cut (a long text, a credential shortened to its first characters). */\n isCut: boolean;\n}\n\n/** What a call did to one record. */\nexport type ConversationTraceRecordChangeOperation = \"CREATED\" | \"CHANGED\" | \"DELETED\";\n\n/** One record a call created, changed or deleted, captured at the call's own write statements. */\nexport interface ConversationTraceRecordChange {\n operation: ConversationTraceRecordChangeOperation;\n /** The table of the record (`SupportDirectives`). */\n tableName: string;\n /** Null for a created record whose id the database assigned. */\n recordId: number | null;\n fieldChanges: ConversationTraceFieldChange[];\n /** Changed fields left out beyond the server's cap. */\n omittedFieldCount: number;\n}\n\n/** The facts of one model call (debug level). */\nexport interface ConversationTraceModelCall {\n modelName: string | null;\n effort: string | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n /** The share of the input tokens read from the cache, 0–100. */\n cachePercent: number | null;\n costInUsd: number | null;\n reasoningTokens: number | null;\n /** Input tokens the call wrote to the cache. */\n cacheWriteTokens: number | null;\n /** The provider API the call went through, as the server names it. */\n wireApi: string | null;\n /** The tool the call was forced to choose, when one was forced. */\n forcedToolChoice: string | null;\n /** Milliseconds the provider took, and milliseconds the loop spent around the call. */\n providerCallMs: number | null;\n loopOverheadMs: number | null;\n /** The request of the call is stored (the sent payload can be read). */\n hasStoredPayload: boolean;\n /** The message whose context composition is the context of this call; null when the server names none. */\n contextMessageId: number | null;\n /** 1 for the first model call of the turn, 2 for the next. */\n callNumberInTurn: number | null;\n /** The tools the model called in this call, in order; empty when it answered with text. */\n toolNames: string[];\n /** How the call ended (`toolCalls`, `answer`, `empty`), as the server derives it. */\n stopReason: string | null;\n /** How tools were delivered on the call (`callTool`, `direct`), when stored. */\n toolDelivery: string | null;\n retryCount: number | null;\n}\n\n/** One probability a decision stored beside its answer. */\nexport interface ConversationTraceDecisionProbability {\n name: string;\n /** 0–1. */\n probability: number;\n}\n\n/** A decision the agent's loop took beside the model (a `DECISION` step; debug level). */\nexport interface ConversationTraceDecision {\n /** Which decision it is, as the server keys it (`replyLanguage`, `skillPreload`, `reasoningEffort`, …). */\n site: string | null;\n /** The decision's name in words, as the server words it (\"Reply language\"). */\n siteLabel: string | null;\n /** What keeps two decisions of one site apart (a pass, the tool of a consent, the evicted skill). */\n subject: string | null;\n /** Who decided (`decisionModel`, `rule`, `default`), and the same in words (\"Decision model\", \"Rule · platform\"). */\n engine: string | null;\n engineLabel: string | null;\n /** The site's mode when it decided (`on`, `shadow`). */\n mode: string | null;\n /**\n * Where the decision stands: `APPLIED` (the loop acted on it), `DECIDED` (answered, nothing to apply), `SHADOW`\n * (answered, recorded only), `FALLBACK` (no answer), `SKIPPED` (nobody was asked).\n */\n status: string | null;\n /** What came of it, in one line (\"effort medium → high\"). */\n resultSummary: string | null;\n modelName: string | null;\n modelVersion: string | null;\n /** The call's time; the decisions of one request share it. */\n durationMs: number | null;\n /**\n * How many decisions of the turn one request answered together (all with its duration): the step of the first of\n * them alone carries the duration on its row. Null or absent for a decision with a request of its own.\n */\n sharedRequestDecisionCount?: number | null;\n /** The leading probability of the answer, 0–1. */\n confidence: number | null;\n /** The probabilities the decision stored, highest first. */\n probabilities: ConversationTraceDecisionProbability[];\n /** Why the loop went on without the decision's answer (`FALLBACK`). */\n fallbackReason: string | null;\n /** Why the answer led to no action. */\n skipReason: string | null;\n /** The state the decision was sent, the questions it was asked, the model's raw answers and what the loop resolved from them, each as JSON text. */\n inputJson: string | null;\n isInputCut: boolean;\n questionsJson: string | null;\n isQuestionsCut: boolean;\n outputJson: string | null;\n isOutputCut: boolean;\n outcomeJson: string | null;\n isOutcomeCut: boolean;\n}\n\n/** One skill (or single tool) of a skill load. */\nexport interface ConversationTraceSkillLoadEntry {\n name: string;\n /** `SKILL` or `TOOL`. */\n type: string | null;\n /** `LOADED`, `ALREADY_LOADED`, `NOT_LOADED`. */\n outcome: string | null;\n /** `MODEL`, `DECISION_MODEL`, `PLAN_ITEM`, `STRUCTURAL`, `ALWAYS_LOADED`, `TOOL_CALL`. */\n cause: string | null;\n residentTokens: number | null;\n /** Tokens of the skill with the schemas of its tools. */\n residentTokensWithTools: number | null;\n tools: ConversationTraceLoadedSkillTool[];\n}\n\n/** What a step loaded: a `SKILL_LOAD` step, or a tool call that loaded skills (the entries at debug level only). */\nexport interface ConversationTraceSkillLoad {\n /** `MODEL` (the model asked for it), `PRELOAD` (loaded without a call of the model), `TOOL_CALL` (another tool's call loaded it). */\n cause: string | null;\n loadedCount: number | null;\n notLoadedCount: number | null;\n /** The names the model asked for. */\n requestedNames: string[];\n skills: ConversationTraceSkillLoadEntry[];\n /** What was not loaded and why, as the server stored it. */\n notLoadedText: string | null;\n}\n\n/** One item of a task plan. */\nexport interface ConversationTraceTaskPlanItem {\n key: string;\n /** The item's number in the plan (\"1\", \"1.2\"). */\n numberPath: string | null;\n depth: number;\n title: string;\n /** `open`, `done`, `blocked`, … as the server stores it. */\n status: string | null;\n /**\n * The state the plan shows (`open`, `done`, `blocked`, `not_applicable`): a container derives it from its subtasks, an\n * item below a blocked or not applicable container takes that state. Null from a server that does not send it.\n */\n shownStatus?: string | null;\n /** The one-line note of a terminal state: what was produced, why it is blocked, why it does not apply. */\n statusNote?: string | null;\n /** Only the owner can lift the block. */\n requiresUserAction?: boolean;\n /** The block is transient: the item may be tried again. */\n retryable?: boolean;\n /** The item came from the purpose's seeded plan (false: the agent added it). */\n isSeeded?: boolean;\n /** The seed found the item already satisfied and closed it at the start. */\n isPreResolvedAtSeed?: boolean;\n /** The platform closes the item from the record (a tool call, a widget, a delivered answer), never the agent's tick. */\n closesItself?: boolean;\n /** The platform wrote the item's current terminal state. */\n wasClosedByPlatform?: boolean;\n /** The machine done criterion of a seeded item. */\n doneCriterion?: string | null;\n /** The customer-facing progress step the item belongs to. */\n customerProgressStepKey?: string | null;\n /** Debug level: the agent's instruction, when the title is the customer-facing name. */\n instruction?: string | null;\n /** Debug level: the skills the item needs when it is the plan's next. */\n skillNames?: string[];\n /** Debug level: the seeded declarations that are set. */\n declarations?: ConversationTraceTaskPlanItemDeclaration[];\n /** Debug level: the message index of the evidence the item was closed on, and where the platform closed it. */\n evidenceMessageIndex?: number | null;\n platformResolvedAtMessageIndex?: number | null;\n}\n\n/** One seeded declaration of a task plan item (debug level). */\nexport interface ConversationTraceTaskPlanItemDeclaration {\n name: string;\n /** `text`, `nonEmptyArray`, `nameList`, `bool`, `connectedChannel`, `closedQuestionOptions`, `reasoningEffort`. */\n kind: string;\n value: string;\n}\n\n/** One line of the rejection block a refused plan call returned to the agent (debug level). */\nexport interface ConversationTraceTaskPlanRejection {\n line: string;\n /** The first item key the line names; null when it names none. */\n itemKey: string | null;\n}\n\n/** The compaction of a `COMPACTION` step (the summary text at debug level only). */\nexport interface ConversationTraceCompaction {\n /** The level of the summary (a summary of summaries has a higher one). */\n level: number | null;\n /** Messages the summary stands for, and the positions of the first and the last of them. */\n foldedMessageCount: number | null;\n foldedFromMessageIndex: number | null;\n foldedToMessageIndex: number | null;\n /** Tokens of those messages, and tokens of the summary in their place. */\n tokensBefore: number | null;\n tokensAfter: number | null;\n /** The share of the folded tokens the summary saved, 0–100. */\n compressionPercent: number | null;\n modelName: string | null;\n summaryText: string | null;\n isSummaryCut: boolean;\n /** The facts the compaction keeps beside its summary, as JSON text. */\n preservedFactsJson: string | null;\n}\n\n/** The signal of a `SIGNAL` step: a note the platform wrote into the conversation. */\nexport interface ConversationTraceSignal {\n source: string | null;\n /** The tag of a text that starts with `[SIGNAL:<kind>]` (`plan`, `ui`), else the source in words. */\n kind: string | null;\n /** The tag of a text that starts with `[SIGNAL:<tag>]`, as written; null when the text carries none (the source stays in `source`). */\n tag?: string | null;\n text: string | null;\n isTextCut: boolean;\n}\n\n/** The widget of a `WIDGET` step (the payload at debug level only). */\nexport interface ConversationTraceWidget {\n type: string | null;\n /** Who emitted it (`model`, a tool), as the server names it. */\n emittedBy: string | null;\n /** The payload passed the widget's validation. */\n isValid: boolean;\n /** The widget's own title and summary, where its payload names them. */\n title: string | null;\n summary: string | null;\n payloadJson: string | null;\n isPayloadCut: boolean;\n /** The message that holds the widget. */\n messageId?: number | null;\n /** The id of the `WIDGET` step of the widget (`m<messageId>.widget<ordinal>`). */\n stepId?: string | null;\n}\n\nexport interface ConversationTraceLoadedSkillTool {\n name: string;\n /** Tokens the tool's schema holds in the context. */\n residentTokens: number | null;\n /** Calls of the tool in the conversation so far. */\n usageCount: number | null;\n}\n\n/** A skill loaded at a model call, with its tools (debug level). */\nexport interface ConversationTraceLoadedSkill {\n name: string;\n residentTokens: number | null;\n /** Loaded since the model call before. */\n isNew: boolean;\n /** Loaded by the conversation itself, never by a `load` call. */\n isAlwaysLoaded: boolean;\n /** What loaded the skill (`MODEL`, `DECISION_MODEL`, `PLAN_ITEM`, `STRUCTURAL`, `ALWAYS_LOADED`, …), as the server names it. */\n cause: string | null;\n tools: ConversationTraceLoadedSkillTool[];\n}\n\n/** The shell command of a call (the output at debug level only). */\nexport interface ConversationTraceTerminal {\n command: string | null;\n cwd: string | null;\n exitCode: number | null;\n durationMs: number | null;\n output: string | null;\n errorOutput: string | null;\n /** The output was shortened by the runner. */\n isTruncated: boolean;\n isBackground: boolean;\n timedOut: boolean;\n}\n\n/** One file a call changed (the diff preview at debug level only). */\nexport interface ConversationFileChange {\n id: number | null;\n /** Where the change happened (`SANDBOX`, `CLOUDDRIVE`, `EXTERNAL_DRIVE`). */\n source: string | null;\n /** The kind of the mount (`OWN_DRIVE`, `SHARED_DRIVE`, `EXTERNAL_DRIVE`, `SCRATCH`); the host labels it. */\n mountKind: string | null;\n mountName: string | null;\n driveSpaceId: number | null;\n path: string;\n /** The path before a rename. */\n previousPath: string | null;\n changeType: ConversationFileChangeType | null;\n sizeBefore: number | null;\n sizeAfter: number | null;\n sha256Before: string | null;\n sha256After: string | null;\n contentType: string | null;\n isBinary: boolean;\n linesAdded: number | null;\n linesRemoved: number | null;\n diffState: ConversationFileChangeDiffState | null;\n /** The diff as unified diff text: all of it (`INLINE`) or its start (`STORED`). */\n diffPreview: string | null;\n driveNodeId: number | null;\n driveFileVersionId: number | null;\n externalRevisionId: string | null;\n}\n\nexport interface ConversationTraceSubAgentRun {\n runNumber: number | null;\n /** `QUEUED`, `RUNNING`, `COMPLETED`, `FAILED`, `CANCELLED`, … as the server stores it. */\n status: string | null;\n startedAt: string | null;\n finishedAt: string | null;\n /** What the sub-agent answered its parent. */\n verdict: string | null;\n failureReason: string | null;\n costInUsd: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n /** What the run reported, readable: the text of a tool response, never its JSON (both levels). */\n resultText?: string | null;\n isResultTextCut?: boolean;\n /** The run stored the serialized response of a tool; `verdict` (the raw JSON) is then debug level only. */\n isToolResponse?: boolean;\n /** A tool response only: it reported an error; null otherwise. */\n isError?: boolean | null;\n}\n\n/** The sub-agent of a `SUB_AGENT` step. */\nexport interface ConversationTraceSubAgent {\n /** The number of the sub-agent in its parent conversation. */\n number: number | null;\n label: string;\n taskText: string | null;\n skillNames: string[];\n childConversationId: number | null;\n /** The status of the newest run. */\n status: string | null;\n runs: ConversationTraceSubAgentRun[];\n /** The model the sub-agent's conversation ran on (debug level). */\n modelName: string | null;\n /** That model as the model catalog names it (\"GPT-6 Luna\"); null when the server names none (debug level). */\n modelLabel?: string | null;\n /** The totals of the sub-agent's conversation over all its runs (debug level). */\n costInUsd: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n messageCount: number | null;\n /** What the task is; null when the server names none. */\n taskKind?: ConversationTraceSubAgentTaskKind | null;\n /** A `toolRun` task: the tool it runs; null for an operation the application names. */\n toolName?: string | null;\n /** A `toolRun` task: the operation (`executeTool` for a tool, else the application's operation name). */\n operationName?: string | null;\n /** A `toolRun` task: the stable id of the background job, `<operation>:<tool name>` (`executeTool:countRows`) or the operation. */\n backgroundJobKey?: string | null;\n /** The readable verdict of the current run (the text of a tool response for a background job). */\n verdictText?: string | null;\n /** What the current run reported, readable (both levels). */\n resultText?: string | null;\n isResultTextCut?: boolean;\n}\n\n// ── Steps and turns ──────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * A message of a turn as the trace carries it: the message that started the turn, or a text the assistant wrote in\n * it. The text is the stored one (widget blocks and line breaks kept) with credentials shortened; a long text is cut\n * (`isTextCut`) and its whole text is read by the per-message read of the audience.\n */\nexport interface ConversationTraceMessage {\n messageId: number | null;\n /** The position of the message in the conversation (`indexInConversation`). */\n messageIndex: number | null;\n /** Who wrote it: `OWNER`, `SIGNAL`, `ORCHESTRATOR` or `PLATFORM` for the message that started a turn, `ASSISTANT` for a text of the assistant. */\n authorKind: string | null;\n text: string;\n /** Characters of the whole text. */\n textChars: number;\n isTextCut: boolean;\n createdAt: string | null;\n /** The source of a signal that started the turn, or the marker of a text the platform wrote in the agent's name; null for a plain message. */\n signalSource: string | null;\n /** A text of the assistant: the model call that wrote it also called tools (a text between two steps, not the turn's answer). */\n isInterim: boolean;\n /** A text of the assistant: the model that wrote it, as the model catalog names it (\"GPT-6 Luna\"), else in words. */\n modelLabel: string | null;\n /** Debug level: the name of that model as the server stores it. */\n modelName: string | null;\n /** The types of the widget blocks the text holds, in order. */\n widgetTypes: string[];\n /** An answer: the widgets it shows, in order (type, title, message; the payload at debug level only). */\n widgets?: ConversationTraceWidget[];\n /** An owner message that arrived while a turn ran, so it started no turn of its own at that moment. */\n isQueuedDuringRun?: boolean;\n /** Such a message: the number of the turn that was running when it arrived. */\n arrivedDuringTurnNumber?: number | null;\n /** Such a message: the number of the turn that took it up (the same turn or the next one); null while none has. */\n handledInTurnNumber?: number | null;\n /** Such a message: the platform note that handed it to the model. */\n foldSignalMessageId?: number | null;\n}\n\n/** One step of a turn. */\nexport interface ConversationTraceStep {\n /** A key that is stable within the turn: the server's step id, else the row's message id, its kind and its position. */\n key: string;\n /** The id the server gives the step, unique within the conversation (never parsed, only compared); null when it sends none. */\n stepId: string | null;\n /** The number of the turn the step belongs to; null when the server names none. */\n turnNumber: number | null;\n kind: ConversationTraceStepKind;\n /** The stored message the step comes from; null for a step from an event. */\n messageId: number | null;\n /** The tool that was called: the real tool, also when the model called it through `call_tool`. */\n toolName: string | null;\n deliveredThroughCallTool: boolean;\n effect: ConversationTraceToolEffect | null;\n status: ConversationTraceStepStatus | null;\n /** The stored status of the call when `status` tells something else (`FAILED` behind `REFUSED`). */\n storedStatus?: string | null;\n /** A `REFUSED` step: why the call was refused. */\n refusalReason?: ConversationTraceRefusalReason | null;\n /** The step of a background job in the trace of its own conversation: the operation it ran (`executeTool` or the application's). */\n backgroundOperationName?: string | null;\n /** That step: the stable id of the job, `<operation>:<tool name>` or the operation. */\n backgroundJobKey?: string | null;\n startedAt: string | null;\n durationMs: number | null;\n /** The narrated activity line, as the owner read it; null when none was narrated. */\n line: string | null;\n /** The tool name in words (`searchServiceAreas` reads \"search service areas\"). */\n toolNameInWords: string | null;\n /** The loaded skills that brought the tool at the time of the call; empty when unknown. */\n toolSkillNames: string[];\n /** The model of a `MODEL_CALL` or `THINKING` step in words (\"GPT6 LUNA\"). */\n modelLabel: string | null;\n /** What the model wrote about its thinking at a `THINKING` or `MODEL_CALL` step, where the provider returned it readable. */\n thinkingSummary?: string | null;\n entityReferences: ConversationTraceEntityReference[];\n /** The records a writing call created, changed or deleted, each field before and after; empty for a read. */\n recordChanges?: ConversationTraceRecordChange[];\n /** Changed records left out beyond the server's cap. */\n omittedRecordChangeCount?: number;\n /** The owner-consent check held a write of the call back; the owner answers in the chat (the approval card). */\n isHeldForConsent: boolean;\n /** The held write was stored as a step that waits for the owner's click on its widget: waiting, no approval card. */\n isAwaitingOwnerClick?: boolean;\n /** A gate refused the call before it ran, or it was dropped as a repeat. */\n isRefused: boolean;\n /** The start of the text of an `ERROR` step. */\n errorText: string | null;\n /** The code of an `ERROR` step, as the server names it, and whether the turn went on with another model call after it. */\n errorCode: string | null;\n wasRetried: boolean;\n /** The widget type of a `WIDGET` step. */\n widgetType: string | null;\n /** The widget of a `WIDGET` step. */\n widget: ConversationTraceWidget | null;\n /** The decision of a `DECISION` step. */\n decision: ConversationTraceDecision | null;\n /** The compaction of a `COMPACTION` step. */\n compaction: ConversationTraceCompaction | null;\n /** The signal of a `SIGNAL` step. */\n signal: ConversationTraceSignal | null;\n /** What the step loaded: a `SKILL_LOAD` step, or a tool call that loaded skills. */\n skillLoad: ConversationTraceSkillLoad | null;\n /** The items of the task plan after a `TASK_PLAN` step; empty when the server sends none. */\n taskPlanItems: ConversationTraceTaskPlanItem[];\n /** Debug level: the rejection lines of a refused plan call. Absent from a server that does not send them. */\n taskPlanRejections?: ConversationTraceTaskPlanRejection[];\n /** The task plan after a `TASK_PLAN` step. */\n taskPlanTitle: string | null;\n /** Top-level items of the plan, and how many of them are open (neither done nor blocked). */\n taskPlanItemCount: number | null;\n taskPlanOpenItemCount: number | null;\n /** Top-level items that are done (or do not apply) and that are blocked; absent from a server that does not send them. */\n taskPlanDoneItemCount?: number | null;\n taskPlanBlockedItemCount?: number | null;\n terminal: ConversationTraceTerminal | null;\n fileChanges: ConversationFileChange[];\n subAgent: ConversationTraceSubAgent | null;\n /** Debug level: the arguments of the call as JSON. */\n argumentsJson: string | null;\n isArgumentsCut: boolean;\n /** Debug level: the stored result of the call (its start when `isResultCut`). */\n result: string | null;\n /** Debug level: characters of the whole stored result. */\n resultChars: number | null;\n isResultCut: boolean;\n /** Debug level: the facts of a `MODEL_CALL` or `THINKING` step. */\n modelCall: ConversationTraceModelCall | null;\n /** Debug level: the skills loaded at a model call; null when they are those of the model call before. */\n loadedSkills: ConversationTraceLoadedSkill[] | null;\n /** Debug level: the skills the call loaded. */\n loadedSkillNames: string[];\n /** The text the assistant wrote in the model call of this step, before the call's tools ran; null without one. */\n assistantText: string | null;\n /** Characters of that whole text. */\n assistantTextChars: number | null;\n isAssistantTextCut: boolean;\n}\n\n/** The figures of one turn (tokens, cost, model and effort at debug level only). */\nexport interface ConversationTurnTraceTotals {\n durationMs: number | null;\n inputTokens: number | null;\n outputTokens: number | null;\n cachedInputTokens: number | null;\n /** The share of the input tokens read from the cache, 0–100. */\n cachePercent: number | null;\n costInUsd: number | null;\n stepCount: number;\n commandCount: number;\n fileCount: number;\n linesAdded: number;\n linesRemoved: number;\n modelName: string | null;\n effort: string | null;\n /** How the turn ended (`answered`, `gaveUp`, `failed`, `cancelled`, `expired`, `waitingForSubAgents`); null while it runs. */\n outcome: string | null;\n}\n\n/** The trace of one turn: the message that started it and what the agent did until its answer. */\nexport interface ConversationTurnTrace {\n /** The number of the turn in its conversation, from 1, oldest first. */\n turnNumber: number;\n /** The message that started the turn (the owner's message, a signal); null for rows before the first one. */\n turnMessageId: number | null;\n /** The position of that message in the conversation (`indexInConversation`); null when the server names none. */\n turnMessageIndex: number | null;\n startedAt: string | null;\n isRunning: boolean;\n /** The owner stopped the turn. */\n isStoppedByOwner: boolean;\n /** The message that started the turn, with its text; null when the server sends none. */\n initiatorMessage: ConversationTraceMessage | null;\n /** The texts the assistant wrote in the turn, in order: interim texts (`isInterim`) and the answer. */\n answerMessages: ConversationTraceMessage[];\n /** Owner messages that arrived while this turn ran (`isQueuedDuringRun`), in order; place them by `messageIndex`. */\n queuedMessages?: ConversationTraceMessage[];\n /** The loop started this turn for a queued owner message after the turn before had ended. */\n isStartedForQueuedOwnerMessage?: boolean;\n /** Such a turn: the platform note that is its first row. */\n startedBySignalMessageId?: number | null;\n steps: ConversationTraceStep[];\n totals: ConversationTurnTraceTotals;\n}\n\n/**\n * How a trace read was asked for: the page of the newest turns, a page from a turn number, or the follow-up read of a\n * running conversation (\"the turns that hold a row after this position\"), which is no page.\n */\nexport type ConversationTraceWindowMode = \"NEWEST\" | \"FROM_TURN\" | \"FOLLOW_UP\";\n\n/** The answer of a trace read. */\nexport interface ConversationTurnTraces {\n conversationId: number | null;\n level: ConversationTraceLevel;\n /** Oldest first. */\n turns: ConversationTurnTrace[];\n /** How the window was asked for; null when the server does not say. */\n windowMode: ConversationTraceWindowMode | null;\n /** Turns of the whole conversation; null when the server names no count. */\n totalTurnCount: number | null;\n /** The numbers of the first and the last turn of `turns`; null for an answer without turns. */\n firstTurnNumber: number | null;\n lastTurnNumber: number | null;\n /**\n * A page read (`NEWEST`, `FROM_TURN`): turns exist before the first, and after the last, turn of the page. Both are\n * false on a follow-up read, which is no page: a reader keeps the paging facts of its page reads.\n */\n hasOlderTurns: boolean;\n hasNewerTurns: boolean;\n /** The position (`indexInConversation`) of the newest row the read saw: the `afterMessageIndex` of the next read. */\n newestMessageIndex: number | null;\n /** A turn runs right now. */\n isRunLive: boolean;\n /** Who may see which level in this conversation; null when the server sends none (an older server). */\n traceViewPolicy: ConversationTraceViewPolicy | null;\n}\n\n/** Which turns a trace read returns. Without options: the newest turns, as many as the server's default window holds. */\nexport interface ConversationTurnTracesOptions {\n /** The level asked for; the server answers at most the level the reader is allowed. */\n level?: ConversationTraceLevel;\n /** The first turn of the window (turns are numbered from 1, oldest first). */\n fromTurnNumber?: number;\n /** Turns of the window. */\n limit?: number;\n /** Only the turns that hold a row after this position, each of them whole: the read that follows a running turn. */\n afterMessageIndex?: number;\n}\n\n/** The answer of a stop of the running turn. */\nexport interface ConversationTurnStop {\n /** A running turn was stopped; false when none ran. */\n isStopped: boolean;\n /** The run state of the conversation after the stop, as the server stores it; null when it names none. */\n runState: string | null;\n}\n\n// ── Context composition and stored diffs ─────────────────────────────────────────────────────────────────────────\n\n/** One part of what a model call was sent (the system prompt, a skill, the tool schemas, the history, …). */\nexport interface ConversationContextSegment {\n key: string;\n /** The segment's name as the server words it. */\n label: string;\n tokens: number;\n /** The share of the context, 0–100. */\n percent: number | null;\n}\n\n/** What one model call was sent, by segment (debug level; the context ring's and the composition bar's data). */\nexport interface ConversationContextComposition {\n messageId: number | null;\n /** Tokens in the context at this call: the provider's count of the newest call when the server names it, else the segments' sum. */\n totalTokens: number | null;\n /**\n * The size the context may reach before the conversation is compacted (the compaction threshold in effect, at most\n * the model's context window); null when the server names none.\n */\n contextWindowTokens: number | null;\n /** The share of that size in use, 0–100 (above 100 while a compaction is due). */\n fillPercent: number | null;\n segments: ConversationContextSegment[];\n}\n\n/** The whole diff of one file change (`diffState` `STORED`). */\nexport interface ConversationFileChangeDiff {\n fileChangeId: number;\n /** Unified diff text. */\n diff: string;\n /** The stored diff itself was cut at the server's cap. */\n isCut: boolean;\n}\n"],"names":[],"mappings":";AAeO,MAAM,4BAA+D,CAAC,UAAU,SAAS,OAAO;"}
|
|
@@ -61,7 +61,7 @@ const findingCodes = ["INVALID_NODE", "INVALID_PROP", "UNKNOWN_BINDING", "INVALI
|
|
|
61
61
|
const noteFindingCodes = ["INLINE_VALUE_WITHOUT_SOURCE", "INVALID_INITIAL_CHOICE", "UNREAD_STATE", "UNKNOWN_ITEM_KEY", "INVALID_SLOT_NODE_COUNT", "WIDGET_LIFTED"];
|
|
62
62
|
const nodeTypes = /* @__PURE__ */ JSON.parse(`{"Badge":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a small status chip with a tone (success, warning, danger, info, neutral)","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the status, in the owner's language — one or two words"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"}],"slots":[]},"Button":{"categories":["input"],"providesItemScope":false,"textContentProp":"label","summary":"a button that runs one of the tree's actions (copy, resetState, openUrl, openEntity) or writes a value to state","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the button does (\\"Copy result\\")"},{"name":"onClick","types":["event"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"{\\"action\\": \\"<action name>\\"} or {\\"set\\": \\"<state name>\\"} with value"},{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what a {\\"set\\": …} click writes"},{"name":"variant","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["primary","secondary"],"description":"primary for the one main action (default), secondary beside it"},{"name":"icon","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["copy","reset","link","add","check","next","calendar","info"],"description":"a glyph before the label (copy, reset, link, add, check, next, calendar, info)"},{"name":"fullWidth","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the button takes the whole width"}],"slots":[]},"Caption":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":"text","summary":"muted secondary text: a sub-line, a unit, a date, a method note","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the secondary text, in the owner's language"}],"slots":[]},"Carousel":{"categories":["layout"],"providesItemScope":true,"textContentProp":null,"summary":"slides side by side with previous / next buttons; each child is a slide, or the children repeat per item of \`items\`","props":[{"name":"items","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the list the children repeat over, one slide per item ($item binds a field of the item)"},{"name":"visibleItems","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":[1,2,3,4],"description":"how many slides are fully visible at once (1 to 4, default 2); the next one peeks in"},{"name":"showArrows","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"show the previous / next buttons (default true)"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the slides are, for screen readers (e.g. \\"Visitors per channel\\")"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the slides (one node each) or, with \`items\`, the template of one slide"}],"itemsProp":"items"},"Chart":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"a line, area, bar, pie, donut, scatter, heatmap, funnel or radar chart over rows; bars with a change per bar; a sparkline in a compact slot","props":[{"name":"kind","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":["line","area","bar","pie","donut","scatter","heatmap","funnel","radar"],"description":"line, area, bar, pie, donut, scatter, heatmap, funnel or radar"},{"name":"data","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the rows (objects), usually a binding: {\\"$data\\":…}, {\\"$computed\\":…}, {\\"$from\\":…}"},{"name":"x","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the row field of the category / time axis (the slice name of a pie, the row of a heatmap, the stage of a funnel, the axis of a radar)"},{"name":"series","types":["array"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the plotted fields: [{\\"field\\",\\"label\\",\\"visible\\"?}] — one for a pie or a funnel, one column each for a heatmap"},{"name":"horizontal","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar only: horizontal bars, for a ranking or a poll"},{"name":"stacked","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar and area only: the series stacked"},{"name":"valueFormat","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how the values are shown on the axis and in the tooltip (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for valueFormat currency (default EUR)"},{"name":"min","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the lowest value of the value axis (default: from the data)"},{"name":"max","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the highest value of the value axis (default: from the data)"},{"name":"xLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the category axis"},{"name":"yLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the value axis"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a heading above the chart"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the chart (the period, what the values mean)"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the values come from ({\\"name\\",\\"url\\"}), shown as the source line"},{"name":"deltaField","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"bar only: the row field of the change against an earlier measurement, shown signed at the right of each bar (plus green, minus red)"},{"name":"deltaUnit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["pp","%"],"description":"what the change counts: pp (percentage points, the figure alone) or % (default: the figure alone)"},{"name":"deltaLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line under the bars that says what the change compares with (\\"Right: change in percentage points since January 2026\\")"}],"slots":[],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":["data"],"figureProps":[]}},"Checkbox":{"categories":["input"],"providesItemScope":false,"textContentProp":"label","summary":"one checkbox that writes true or false to a state value","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the box switches on"},{"name":"checked","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"whether it is ticked, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes true or false"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the label"}],"slots":[]},"Code":{"categories":["block"],"providesItemScope":false,"textContentProp":"code","summary":"a block of source code with syntax highlighting, a copy button and a line-wrap toggle","props":[{"name":"code","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the source code, line breaks as \\\\n"},{"name":"language","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the language for the highlighting: php, javascript, typescript, json, html, css, scss, sql, bash, python, java, kotlin, swift, go, rust, ruby, csharp, cpp, c, yaml, xml, markdown, diff, dockerfile, graphql, ini, plaintext; another name shows plain text"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a file name or a short label shown in the header instead of the language name"},{"name":"wrap","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"true wraps long lines from the start (the owner can toggle it); default false scrolls them"}],"slots":[]},"DatePicker":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a date field with a calendar that writes the picked day (YYYY-MM-DD) to a state value","props":[{"name":"value","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked day as YYYY-MM-DD, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the day as YYYY-MM-DD"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"min","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the earliest day that can be picked, YYYY-MM-DD"},{"name":"max","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the latest day that can be picked, YYYY-MM-DD"}],"slots":[]},"Diagram":{"categories":["heavy"],"providesItemScope":false,"textContentProp":"source","summary":"a diagram drawn from Mermaid source (flowchart, sequence, state, timeline), with an optional heading and caption","props":[{"name":"source","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the Mermaid source, line breaks as \\\\n, e.g. \\"flowchart TD\\\\n A[Request] --> B{Widget found?}\\\\n B -- Yes --> C[Select widget]\\""},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above the diagram"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the heading: what the diagram shows"}],"slots":[]},"Divider":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"a hairline between two parts, horizontal or vertical","props":[{"name":"orientation","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["horizontal","vertical"],"description":"horizontal (default, in a column) or vertical (between the items of a row)"}],"slots":[]},"EntityLink":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"an entity's name (a competitor, a review, a keyword) that opens its detail panel through an openEntity action","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the entity's name as the owner reads it (\\"Pizzeria Roma\\")"},{"name":"action","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the name of this tree's openEntity action whose ref is the entity's reference from a tool result"},{"name":"variant","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["link","title","chip"],"description":"link = the name inline in a sentence or cell (default), title = the name as the bold headline of a Surface, chip = a small pill with a detail glyph"}],"slots":[]},"Favicon":{"categories":["inline"],"providesItemScope":false,"textContentProp":null,"summary":"the small site icon of a domain, in front of a source or a result","props":[{"name":"url","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"a page address or a bare domain (wdr.de) whose site icon is shown"},{"name":"name","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the site name, read aloud and shown on hover"}],"slots":[]},"Flow":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"small items (badges, labels, chips) that flow like words and wrap onto more lines","props":[{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the items: none, xsmall, small (default), medium or large"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end"],"description":"where the items of a line sit vertically: start, center (default) or end"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"the items, each at its own width"}]},"Form":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a form around inputs: its submit sends the field values to you as the owner's answer (optional decline)","props":[{"name":"name","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the form id its submit names: letters, digits, \`_\` or \`-\`, at most 64, unique in the tree (e.g. \\"holidayHours\\")"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the form heading, in the owner's language"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one line under the heading: what the answer is used for"},{"name":"submitLabel","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the submit button label, in the owner's language (default \\"Send\\")"},{"name":"declineLabel","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a decline button label (e.g. \\"Not now\\"); without it the form has no decline"},{"name":"fields","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the state names the submit sends, in this order; default: every state name the form's inputs bind"},{"name":"requiredFields","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"state names that must be filled (not empty, a checkbox ticked) before the form submits"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the form body: inputs and the text and layout around them"},{"name":"header","acceptsCategories":["inline"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":2,"sizeClass":"compact","description":"at most two small items at the end of the heading: a badge, a popover that explains the method"}],"submitsInputs":true},"Grid":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"equal columns (1 to 4), one child per cell; drops to fewer columns on a narrow screen","props":[{"name":"columns","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":[1,2,3,4],"description":"the most columns side by side (1 to 4, default 2)"},{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the children: none, xsmall, small, medium (default, between rows and tiles) or large (between sections)"},{"name":"minColumnWidth","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["compact","regular"],"description":"the narrowest a cell may get before the grid shows fewer columns: compact (KPI tiles) or regular (charts, images, text tiles); default compact when every cell is a KpiTile, Pressable, Badge, Icon, Favicon or Button, else regular"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the cells, one node each, filled row by row; 1 column = full cells, 2 = regular, 3–4 = compact","sizeClassFromProp":"columns","sizeClassesByPropValue":{"1":"full","2":"regular","3":"compact","4":"compact"},"acceptsHeavyWhenCompact":true}]},"Icon":{"categories":["inline"],"providesItemScope":false,"textContentProp":null,"summary":"one design-system icon (check, close, warning, star, arrows, …) in a tone","props":[{"name":"name","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":["check","close","warning","info","help","question","exclamation","add","remove","dash","star","starActive","like","prize","arrowUp","arrowDown","arrowLeft","arrowRight","caretUp","caretDown","calendar","clock","location","pinFilled","directions","maps","phone","mail","link","newTab","lock","lockOpen","user","business","search","lineChart","barChart","budget","google","image","photo","play","pause","document","edit","trash","download","upload","refresh","settings","notification","messageGood","messageBad","messageNeutral","message","shield","tag","ai","visibility","desktop","mobile","tablet","event","post","news","home"],"description":"the icon (check, close, warning, info, star, arrowUp, …)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"its colour: neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"},{"name":"size","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["small","medium","large"],"description":"default small"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the icon means, for screen readers and the tooltip"}],"slots":[]},"Image":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"one picture with alt text, an optional title, caption and source chip; opens in a lightbox","props":[{"name":"src","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the image URL (https, or a data:image URI)"},{"name":"alt","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the image shows, in one short sentence (read aloud by screen readers, shown when the image fails)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the bold line under the image"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the muted line under the title"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the image was found ({\\"name\\",\\"url\\"}), shown as a chip over the image"},{"name":"aspectRatio","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["1:1","4:3","3:2","5:4","16:9","3:4"],"description":"the frame the image is cropped to (default 4:3)"},{"name":"fit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["cover","contain"],"description":"cover crops a photo to the frame (default), contain shows a logo whole"}],"slots":[]},"ImageGroup":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"a gallery of pictures as a grid, a carousel or a magazine layout; each opens in a lightbox","props":[{"name":"images","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the pictures: [{\\"src\\",\\"alt\\",\\"title\\"?,\\"caption\\"?,\\"source\\"?:{\\"name\\",\\"url\\"}}], src and alt required per picture"},{"name":"layout","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["grid","carousel","magazine"],"description":"grid (default), carousel or magazine (one hero over tiles)"},{"name":"aspectRatio","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["1:1","4:3","3:2","5:4","16:9","3:4"],"description":"the frame of each tile (default 4:3; the carousel and the magazine hero use 16:9 when unset)"},{"name":"maxVisible","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"grid only: how many tiles show before the last one counts the rest (default 4)"}],"slots":[]},"Input":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a one-line text or number field that writes what is typed to a state value","props":[{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current text or number, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes what is typed"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while the field is empty"},{"name":"inputType","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["text","number","email","url"],"description":"what is typed (default text)"},{"name":"maxLength","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the most characters the field takes"}],"slots":[]},"KpiTile":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"one headline number as a tile: label, hero value, unit, change with a good/bad arrow, detail line","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"what the number is, above it (\\"Visitors\\", \\"MRR month 12\\")"},{"name":"value","types":["number","string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the number (formatted by \`format\`) or an already written value (\\"4,32 %\\")"},{"name":"format","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how a numeric value is shown (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for format currency (default EUR)"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the fraction digits of a numeric value (default: up to 2)"},{"name":"signed","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a positive value gets a plus sign (a growth rate)"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a lower-case unit line under the number (\\"visits\\", \\"per month\\")"},{"name":"delta","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the change against the comparison period, signed (+5, -0.49)"},{"name":"deltaFormat","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency"],"description":"how the change is shown (default number)"},{"name":"deltaLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the change compares with (\\"vs. September\\")"},{"name":"higherIsBetter","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"false for a number where less is better (a rank, a churn rate) — the arrow colour follows (default true)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"the judgement colour of the hero value itself (default neutral)"},{"name":"detail","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the tile (\\"All channels\\", \\"simulated\\")"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the number comes from ({\\"name\\",\\"url\\"}), shown as the source line"}],"slots":[],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":[],"figureProps":["value"]}},"Label":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a short label above a value, an input or a group","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the label, in the owner's language — a few words"}],"slots":[]},"Link":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a text link that opens an http(s) page in a new tab","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the link text, in the owner's language"},{"name":"url","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the http(s) address it opens in a new tab"}],"slots":[]},"List":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"a hairline-divided list: items (strings or title/description/meta/value) or ListItem children","props":[{"name":"items","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the short form: strings, or {\\"title\\",\\"description\\"?,\\"meta\\"?,\\"value\\"?}"},{"name":"marker","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","bullet","number","check"],"description":"bullet, number, check or none (default none)"},{"name":"emptyText","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line shown when the list has no entries"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["ListItem","Repeat"],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"ListItem nodes and Repeats of ListItems"}]},"ListItem":{"categories":[],"providesItemScope":false,"textContentProp":null,"summary":"one List entry: title, description, meta, value, plus nodes under it and at its end","props":[{"name":"title","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the entry, bold"},{"name":"description","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a line under the title"},{"name":"meta","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line (a date, a source)"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a figure at the end of the entry"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"nodes shown under the title"},{"name":"trailing","acceptsCategories":["inline","input","data"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":2,"sizeClass":"compact","description":"at the end of the entry: a badge, an icon, a sparkline"}]},"Map":{"categories":["heavy"],"providesItemScope":false,"textContentProp":null,"summary":"an interactive map: labelled points with rating badges, a carousel of the points, an optional route line, full-screen expand","props":[{"name":"points","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the places, each {\\"label\\",\\"lat\\",\\"lng\\"} with optional \\"rating\\" (0–5), \\"subtitle\\" (category), \\"detail\\" (a status line such as opening state) with \\"detailTone\\" (a tone of the kit: success for open, danger for closed, warning for closing soon; also neutral, muted, info), \\"image\\" (an http(s) photo URL) and \\"action\\" (the name of an openEntity action of this tree)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the points are (e.g. \\"Cafés in Münster\\"), the heading of the full-screen list"},{"name":"route","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"draw a route line through the points in their order and number the markers"},{"name":"routePath","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the route line as [{\\"lat\\",\\"lng\\"}, …] when a tool returned the real path; without it the line joins the points directly"},{"name":"routeLabel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one short line on the route, e.g. its duration or length, shown on the map"},{"name":"carousel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["auto","hidden"],"description":"the carousel of the points along the bottom edge: auto (shown, default) or hidden"},{"name":"minHeight","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the map height in CSS pixels (240–560, default 330)"},{"name":"pointAction","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the name of the action a point without its own \\"action\\" runs — over $from points a row-bound openEntity action ({\\"type\\":\\"openEntity\\",\\"ref\\":{\\"$item\\":\\"entityRef\\"}}) opens each row's entity"}],"slots":[]},"Markdown":{"categories":["block"],"providesItemScope":false,"textContentProp":"markdown","summary":"formatted text: a safe Markdown subset (no HTML, no images), http(s) links in a new tab","props":[{"name":"markdown","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the formatted text (Markdown without HTML, images or code fences), in the owner's language"}],"slots":[]},"Math":{"categories":["block","inline"],"providesItemScope":false,"textContentProp":"latex","summary":"a formula typeset from LaTeX, as a centred block or inline in a sentence, with an optional heading and caption","props":[{"name":"latex","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the formula in LaTeX math notation, without $ delimiters, e.g. \\"CR = \\\\frac{N_{Conversions}}{N_{Visitors}} \\\\times 100\\\\%\\""},{"name":"display","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["block","inline"],"description":"\\"block\\" (default) centres the formula on its own line, \\"inline\\" sets it inside a line of text"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above a block formula (\\"Conversion rate\\"), shown with a LaTeX badge"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under a block formula: what the symbols mean, or a worked example"}],"slots":[]},"Popover":{"categories":["inline"],"providesItemScope":false,"textContentProp":"text","summary":"a small button (label + info icon) that opens a floating explanation on click","props":[{"name":"label","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the button text (e.g. \\"Method\\")"},{"name":"text","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the explanation as plain text"},{"name":"icon","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["info","help","none"],"description":"the icon before the label: info (default), help or none"},{"name":"placement","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","end"],"description":"which edge of the button the panel lines up with: start or end (default — for a button at the right of a title row)"}],"slots":[{"name":"content","acceptsCategories":["inline","block","data","media"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"the explanation, when it is more than one plain text"}]},"Pressable":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"makes its content one clickable area that sets a state value or runs an action","props":[{"name":"onClick","types":["event"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} (writes \`value\`) or {\\"action\\": \\"<action name>\\"}"},{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the value a {\\"set\\": …} click writes into the state"},{"name":"isSelected","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"draw the selection ring (bind a computed comparison, e.g. channel == \\"Organic\\")"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the click does, for screen readers (e.g. \\"Show the organic channel\\")"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","layout"],"acceptsNodeTypes":[],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"what the clickable area shows (no inputs, no other pressable)"}]},"Quote":{"categories":["block"],"providesItemScope":false,"textContentProp":"text","summary":"a quotation: the quoted words, who said them and where they were published","props":[{"name":"text","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the quoted words, verbatim"},{"name":"attribution","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"who said or wrote it"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where it was published ({\\"name\\",\\"url\\"}), shown as a link after the attribution"}],"slots":[{"name":"children","acceptsCategories":["inline","block"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the quoted content, when it is more than one plain text"}]},"RadioGroup":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"radio buttons: one of a few explained choices, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the group"},{"name":"direction","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["column","row"],"description":"the buttons under each other (default) or side by side"}],"slots":[],"optionsProp":"options"},"Repeat":{"categories":["data"],"providesItemScope":true,"textContentProp":null,"summary":"its children once per item, $item bound to the item (table rows, list items, tiles)","props":[{"name":"items","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the list to repeat over, usually a binding ({\\"$data\\":…}, {\\"$computed\\":…})"},{"name":"limit","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"show the first N items only"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout"],"acceptsNodeTypes":["TableRow","ListItem"],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the nodes rendered once per item"}],"sourcing":{"needsSource":false,"namesSources":false,"rowsProps":["items"],"figureProps":[]},"itemsProp":"items"},"Select":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a drop-down: one of a longer list of choices, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the control"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while nothing is picked"}],"slots":[],"optionsProp":"options"},"Slider":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a slider between min and max that writes the number to a state value and shows it formatted","props":[{"name":"min","types":["number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the smallest value"},{"name":"max","types":["number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the largest value"},{"name":"step","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the step between two values (default 1)"},{"name":"value","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current value, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the number"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the number is, shown left of the value"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"written after the shown value (\\"%\\", \\"€\\", \\"km\\")"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"decimal places of the shown value (default: as many as the step has)"},{"name":"showValue","types":["boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"show the formatted value beside the label (default true)"}],"slots":[]},"SourceRef":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":null,"summary":"the source line of the shown values: each source with icon and link, licence and author when given","props":[{"name":"sources","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the sources, each {\\"name\\", \\"url\\"?, \\"title\\"?, \\"author\\"?, \\"license\\"?, \\"licenseUrl\\"?} — name = the publisher or site"}],"slots":[],"sourcing":{"needsSource":false,"namesSources":true,"rowsProps":[],"figureProps":[]}},"Spacer":{"categories":["block"],"providesItemScope":false,"textContentProp":null,"summary":"empty room: a fixed step, or all the free room of a row (grow)","props":[{"name":"size","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["small","medium","large"],"description":"the extra space: small, medium (default) or large"},{"name":"grow","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"take all the free room of the row or column, pushing the following nodes to the end"}],"slots":[]},"Stack":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a row or a column of nodes with one gap step between them; rows wrap on a narrow screen","props":[{"name":"direction","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["row","column"],"description":"row (side by side) or column (one under the other, the default)"},{"name":"gap","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["none","xsmall","small","medium","large"],"description":"the space between the children: none, xsmall, small, medium (default, between rows and tiles) or large (between sections)"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end","stretch","baseline"],"description":"cross-axis alignment: start, center, end, stretch (the column default) or baseline"},{"name":"justify","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end","between"],"description":"main-axis distribution: start (default), center, end or between (first and last at the edges, e.g. a title left and a control right)"},{"name":"wrap","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a row continues on the next line when it does not fit (default true)"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the nodes of the row or column, in order"}]},"Surface":{"categories":["layout"],"providesItemScope":false,"textContentProp":null,"summary":"a titled surface grouping nodes, with optional media, header controls, body and footer","props":[{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the title of the surface, in the owner's language"},{"name":"subtitle","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the title (what the numbers are, the period)"},{"name":"density","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["regular","compact"],"description":"regular (default) or compact (smaller padding, for tiles in a grid or carousel)"}],"slots":[{"name":"media","acceptsCategories":["media"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":1,"sizeClass":"full","description":"one image or video flush with the top of the surface"},{"name":"header","acceptsCategories":["inline","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":3,"sizeClass":"compact","description":"controls and badges at the end of the title row (tabs, a badge, a popover)"},{"name":"children","acceptsCategories":["inline","block","data","media","input","layout","heavy"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"the body, one node under the other"},{"name":"footer","acceptsCategories":["inline","block","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"a caption line or small actions at the foot"}]},"Svg":{"categories":["data","media"],"providesItemScope":false,"textContentProp":null,"summary":"a sanitised vector graphic from SVG markup (no scripts, no external references); the markup may follow the state through a computed text","props":[{"name":"markup","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"one <svg> element with a viewBox, e.g. \\"<svg viewBox='0 0 200 200'>…</svg>\\"; bind it to a computed text to make the drawing follow the state"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"what the graphic shows, in one sentence (read out by screen readers)"},{"name":"title","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short heading above the graphic"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"one muted line under the heading"}],"slots":[]},"Table":{"categories":["data"],"providesItemScope":false,"textContentProp":null,"summary":"a table: columns + rows, or TableRow / Repeat children whose TableCells hold other nodes","props":[{"name":"columns","types":["array"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the short form: [{\\"key\\",\\"label\\",\\"align\\"?,\\"format\\"?,\\"decimals\\"?,\\"currency\\"?,\\"unit\\"?}] — the header row and how each cell is shown"},{"name":"rows","types":["array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the short form: the rows (objects with the column keys), usually a binding"},{"name":"caption","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a muted line under the table (what the figures are, the date)"},{"name":"emptyText","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the line shown when the short form has no rows"},{"name":"source","types":["object","array"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the figures come from ({\\"name\\",\\"url\\"}, or a list of them when the values come from several pages), shown as the source line"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["TableRow","Repeat"],"minChildren":0,"maxChildren":null,"sizeClass":"regular","description":"TableRow nodes and Repeats of TableRows, in display order"}],"sourcing":{"needsSource":true,"namesSources":false,"rowsProps":["rows"],"figureProps":[]}},"TableCell":{"categories":[],"providesItemScope":false,"textContentProp":"value","summary":"one table cell: a formatted value, a share bar or heat tint, and compact nodes (icon, badge, sparkline)","props":[{"name":"value","types":["string","number","boolean"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the cell text or number, usually {\\"$item\\":\\"field\\"}"},{"name":"format","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["number","percent","currency","compact","date","text"],"description":"how a numeric value is shown (default number)"},{"name":"currency","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the ISO currency code for format currency (default EUR)"},{"name":"decimals","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the fraction digits of a numeric value (default: up to 2)"},{"name":"unit","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a unit written after the value"},{"name":"align","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["start","center","end"],"description":"start, center or end (numbers: end)"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"the judgement colour of the value (success: a +2 in green, danger: a -3 in red)"},{"name":"signed","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a positive number gets a plus sign (a change column)"},{"name":"bar","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a share bar in the cell, the filled part from 0 to 1"},{"name":"heat","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"tints the cell by intensity from 0 to 1 (a heatmap cell); no value = an empty cell"}],"slots":[{"name":"children","acceptsCategories":["inline","block","data","media","input"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"nodes shown in the cell after the value (compact: a chart is a sparkline, an image a thumbnail)"}],"sourcing":{"needsSource":false,"namesSources":false,"rowsProps":[],"figureProps":["value"]}},"TableRow":{"categories":[],"providesItemScope":false,"textContentProp":null,"summary":"one table row of TableCells; header for the column titles, emphasis for a total row","props":[{"name":"header","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the column header row"},{"name":"emphasis","types":["boolean"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"a total or summary row, shown bold"}],"slots":[{"name":"children","acceptsCategories":[],"acceptsNodeTypes":["TableCell"],"minChildren":1,"maxChildren":null,"sizeClass":"regular","description":"the TableCell nodes, one per column"}]},"Tabs":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a segmented control: a few short choices side by side, the picked one written to a state value","props":[{"name":"options","types":["array"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the choices: a list of labels, or of {\\"id\\", \\"label\\", \\"description\\", \\"disabled\\"} objects; the picked id (or label) is written to the state"},{"name":"value","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the picked choice, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes the picked id"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the control"}],"slots":[],"optionsProp":"options"},"Text":{"categories":["inline","block"],"providesItemScope":false,"textContentProp":"text","summary":"plain text, a paragraph or an inline run; its children are inline nodes on the same line","props":[{"name":"text","types":["string","number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the text, in the owner's language (a Text with only children may leave it out)"},{"name":"weight","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["regular","medium","bold"],"description":"regular (default), medium or bold"},{"name":"tone","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":["neutral","muted","success","warning","danger","info","default","positive","negative"],"description":"neutral (default), muted (secondary text), success (green), warning (amber), danger (red) or info (blue)"},{"name":"maxLines","types":["number"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"clamp the text at this many lines (1–10); the full text shows on hover"}],"slots":[{"name":"children","acceptsCategories":["inline"],"acceptsNodeTypes":[],"minChildren":0,"maxChildren":null,"sizeClass":"compact","description":"inline nodes that follow the text on the same line"}]},"Textarea":{"categories":["input"],"providesItemScope":false,"textContentProp":null,"summary":"a multi-line text field that writes what is typed to a state value","props":[{"name":"value","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the current text, usually {\\"$state\\": \\"<name>\\"}"},{"name":"onChange","types":["event"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"{\\"set\\": \\"<state name>\\"} — writes what is typed"},{"name":"label","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"a short label above the field"},{"name":"placeholder","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"shown while the field is empty"},{"name":"rows","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the visible lines (default 3)"},{"name":"maxLength","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the most characters the field takes, shown as a counter"}],"slots":[]},"Title":{"categories":["block"],"providesItemScope":false,"textContentProp":"text","summary":"a heading: the title of the view or of one section of it","props":[{"name":"text","types":["string","number"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the heading, in the owner's language"},{"name":"level","types":["string"],"isRequired":false,"isBindable":false,"allowedValues":["widget","section"],"description":"widget = the title of the whole view (default), section = the title of one part of it"}],"slots":[]},"Video":{"categories":["media"],"providesItemScope":false,"textContentProp":null,"summary":"one video: title, thumbnail, length, and a videoId or url that plays it","props":[{"name":"title","types":["string"],"isRequired":true,"isBindable":true,"allowedValues":null,"description":"the video title, as the source names it"},{"name":"videoId","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the id the video connector returned (plays embedded)"},{"name":"url","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"an http(s) link that opens the video, when there is no videoId"},{"name":"thumbnail","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the thumbnail image URL"},{"name":"durationSeconds","types":["number"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"the length in seconds"},{"name":"channel","types":["string"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"who published it"},{"name":"source","types":["object"],"isRequired":false,"isBindable":true,"allowedValues":null,"description":"where the video was found ({\\"name\\",\\"url\\"}), shown as the source line"}],"slots":[]},"Widget":{"categories":["heavy"],"providesItemScope":false,"textContentProp":null,"summary":"an existing domain widget embedded in the tree (only widgets declared embeddable)","props":[{"name":"widget","types":["string"],"isRequired":true,"isBindable":false,"allowedValues":null,"description":"the wire name of an embeddable domain widget"},{"name":"fields","types":["object"],"isRequired":false,"isBindable":false,"allowedValues":null,"description":"the widget's own payload fields, as its fence would carry them next to \`type\`"}],"slots":[]}}`);
|
|
63
63
|
const embeddableWidgets = { "CustomVisualization": { "sizeClass": "full" } };
|
|
64
|
-
const widgetTypes = ["AttachedFiles", "ComposedView", "ContinueInPersonalSpace", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ExtendConnectionPermission", "ImageGallery", "MailDraftPreview", "MultiChoice", "QuickReplies", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
64
|
+
const widgetTypes = ["AttachedFiles", "ComposedView", "ContinueInPersonalSpace", "ConversationSearchResults", "CustomVisualization", "DriveFiles", "EntityMention", "ExtendConnectionPermission", "ImageGallery", "MailDraftPreview", "MultiChoice", "OwnerStepConfirmation", "QuickReplies", "ScheduleOrderApproval", "SuggestedActions", "ToolTrace", "WebSearchResults"];
|
|
65
65
|
const dataSources = {};
|
|
66
66
|
const entityTypes = [];
|
|
67
67
|
const generatedComposedNodeSchema = {
|
|
@@ -10120,4 +10120,4 @@ export {
|
|
|
10120
10120
|
getConversationWidgetRegistryRevision as y,
|
|
10121
10121
|
readComposedViewTree as z
|
|
10122
10122
|
};
|
|
10123
|
-
//# sourceMappingURL=widget-name-resolver-
|
|
10123
|
+
//# sourceMappingURL=widget-name-resolver-DXIE9JUr.js.map
|