@adecore/agents-react 0.54.2 → 0.54.4

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 CHANGED
@@ -40,7 +40,7 @@ import { Composer, Timeline } from '@adecore/agents-react/chat/ui';
40
40
  </ChatHostProvider>;
41
41
  ```
42
42
 
43
- [Getting started](https://adecore.dev/agents-react/guide/getting-started) covers the words, the host, the scope and its transport.
43
+ [Getting started](https://adecore.dev/agents-react/getting-started) covers the words, the host, the scope and its transport.
44
44
 
45
45
  The root holds the host, the scope and the transport; `/chat`, `/chat/ui`, `/prompts`, `/providers`, `/state`, `/usage`, `/locales` and `/testing` hold the rest. A module that no entry exports is internal.
46
46
 
@@ -48,7 +48,7 @@ The root holds the host, the scope and the transport; `/chat`, `/chat/ui`, `/pro
48
48
 
49
49
  | Page | What it covers |
50
50
  |---|---|
51
- | [Getting started](https://adecore.dev/agents-react/guide/getting-started) | Install, CSS, words, the host and a first chat |
51
+ | [Getting started](https://adecore.dev/agents-react/getting-started) | Install, CSS, words, the host and a first chat |
52
52
  | [Host adapters](https://adecore.dev/agents-react/guide/host) | Everything a `ChatHostProvider` takes |
53
53
  | [Chat client and state](https://adecore.dev/agents-react/guide/chat-client) | The transport, `ChatClient` and the stores |
54
54
  | [Persistence](https://adecore.dev/agents-react/guide/persistence) | Drafts, preferences and their storage keys |
@@ -61,4 +61,4 @@ The root holds the host, the scope and the transport; `/chat`, `/chat/ui`, `/pro
61
61
 
62
62
  FSL-1.1-MIT. See [LICENSE](./LICENSE).
63
63
 
64
- Diagrams in a reply are drawn by [Pele](https://github.com/obsidianmd/pele), a dependency under the MIT license, loaded only when a reply holds one.
64
+ [Pele](https://github.com/obsidianmd/pele), a dependency under the MIT license, draws the diagrams in a reply. It loads only when a reply holds one.
@@ -19,7 +19,7 @@ export function modelNameFromSlug(slug) {
19
19
  }
20
20
  return words.map(word => word === 'gpt' ? 'GPT' : word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
21
21
  }
22
- /* What the CLI calls the model, so every surface says the same thing; a slug it no longer offers is read as one. */
22
+ /* What the CLI calls the model, so every view says the same thing; a slug it no longer offers is read as one. */
23
23
  export function modelName(slug, models) {
24
24
  return models?.find(entry => entry.slug === slug)?.name ?? modelNameFromSlug(slug);
25
25
  }
@@ -15,7 +15,7 @@ export function optionWord(option) {
15
15
  export function choiceWord(optionId, choice) {
16
16
  return catalogWord(`agent-chat:modelOptions.${optionId}.choices.${choice.id}`, choice.label);
17
17
  }
18
- /* The option with the words a person reads, for a surface that draws its labels and choices. */
18
+ /* The option with the words a person reads, for a view that draws its labels and choices. */
19
19
  export function localizedOption(option) {
20
20
  const label = optionWord(option);
21
21
  if (option.type !== 'select') {
@@ -48,7 +48,7 @@ function dueAtOf(info, endedAt) {
48
48
  }
49
49
  /*
50
50
  * When the next message would pay for the whole thread again, or null while nothing could be offered,
51
- * so a surface knows whether to keep a timer.
51
+ * so a view knows whether to keep a timer.
52
52
  */
53
53
  export function resumeCompactionDueAt(input) {
54
54
  const endedAt = offerableTurn(input)?.endedAt ?? null;
@@ -2,7 +2,7 @@ import { RuntimeModeSchema } from '@adecore/agent-contracts';
2
2
  import i18next from 'i18next';
3
3
  /*
4
4
  * The runtime modes in the order they are offered: the schema's, which the host reads as the rank
5
- * from narrowest to widest. Their words are read when a surface draws one, not when this module loads.
5
+ * from narrowest to widest. Their words are read when a view draws one, not when this module loads.
6
6
  */
7
7
  export const RUNTIME_MODES = RuntimeModeSchema.options;
8
8
  export function runtimeModeLabel(mode) {
@@ -12,6 +12,7 @@ import { ReferenceTrail } from './ReferenceTrail.js';
12
12
  /*
13
13
  * One token in the transcript. One that opens is a span with a button's role rather than a button,
14
14
  * since a button is a box with a baseline of its own and would not sit on the line the others sit on.
15
+ * It stays out of prose, whose margins on an image would lift a host's picture mark off the line.
15
16
  */
16
17
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
18
  export function TokenChip(t0) {
@@ -71,7 +72,7 @@ export function TokenChip(t0) {
71
72
  const t2 = onOpen !== undefined && "cursor-pointer focus-visible:outline-2 focus-visible:outline-accent";
72
73
  let t3;
73
74
  if ($[11] !== className || $[12] !== t2 || $[13] !== tone) {
74
- t3 = clsx(TOKEN_IN_MESSAGE, tone, t2, className);
75
+ t3 = clsx("not-prose", TOKEN_IN_MESSAGE, tone, t2, className);
75
76
  $[11] = className;
76
77
  $[12] = t2;
77
78
  $[13] = tone;
@@ -82,9 +82,9 @@ function scanMarkdownBlocks(text, checkpoints = false) {
82
82
  const blocks = [];
83
83
  let start = 0;
84
84
  let offset = 0;
85
- // The fence as a reading line by line sees it, blind to lists and indented code. A blank line is
86
- // only cut at where this reading agrees, so every such cut is one this split made before it
87
- // followed fences any further.
85
+ // The fence as a reading line by line sees it, blind to lists and indented code. The split cuts
86
+ // at a blank line only where this reading agrees, so it made every such cut before it followed
87
+ // fences any further.
88
88
  let lineFence = null;
89
89
  let afterBlank = false;
90
90
  // A fence inside a list item.
@@ -473,7 +473,7 @@ export default {
473
473
  backToMain: 'Back to main agent',
474
474
  loading: 'Loading conversation…',
475
475
  working: 'Working…',
476
- unsupported: 'Update Ruimte on this machine to read sub-agents.',
476
+ unsupported: 'Update the app on this machine to read sub-agents.',
477
477
  unreadable: 'Could not read conversation.',
478
478
  noAnswer: 'The machine did not answer',
479
479
  stopFailed: 'Could not stop sub-agent',
@@ -24,7 +24,7 @@ export default {
24
24
  missing: 'Missing',
25
25
  notInstalledNote: 'Install to use it here.',
26
26
  none: 'No agents found on this machine.',
27
- noAccounts: 'Update Ruimte on this machine to add accounts.'
27
+ noAccounts: 'Update the app on this machine to add accounts.'
28
28
  },
29
29
  install: {
30
30
  notInstalled: 'Not installed',
@@ -58,7 +58,7 @@ export default {
58
58
  description: 'Pick {{provider}} for your next chat or terminal.'
59
59
  },
60
60
  footer: {
61
- missing: 'Not found yet. Ruimte checks again when you come back to this window.',
61
+ missing: 'Not found yet. The app checks again when you come back to this window.',
62
62
  found: 'Found on this machine.'
63
63
  },
64
64
  fallback: 'Install {{provider}} to use it here.'
@@ -161,7 +161,7 @@ export default {
161
161
  advanced: 'Advanced',
162
162
  link: {
163
163
  label: 'Link an existing folder',
164
- description: 'Use an existing config folder. Ruimte never moves or deletes it.',
164
+ description: 'Use an existing config folder. The app never moves or deletes it.',
165
165
  placeholder: 'Path on the machine'
166
166
  },
167
167
  create: 'Add account',
@@ -473,7 +473,7 @@ export default {
473
473
  backToMain: 'Terug naar de main agent',
474
474
  loading: 'Gesprek laden…',
475
475
  working: 'Bezig…',
476
- unsupported: 'Werk Ruimte op deze machine bij om sub-agents te lezen.',
476
+ unsupported: 'Werk de app op deze machine bij om sub-agents te lezen.',
477
477
  unreadable: 'Kon het gesprek niet lezen.',
478
478
  noAnswer: 'De machine antwoordde niet',
479
479
  stopFailed: 'Kon de sub-agent niet stoppen',
@@ -24,7 +24,7 @@ export default {
24
24
  missing: 'Ontbreekt',
25
25
  notInstalledNote: 'Installeer om hem hier te gebruiken.',
26
26
  none: 'Geen agents gevonden op deze machine.',
27
- noAccounts: 'Werk Ruimte op deze machine bij om accounts toe te voegen.'
27
+ noAccounts: 'Werk de app op deze machine bij om accounts toe te voegen.'
28
28
  },
29
29
  install: {
30
30
  notInstalled: 'Niet geïnstalleerd',
@@ -58,7 +58,7 @@ export default {
58
58
  description: 'Kies {{provider}} voor je volgende chat of terminal.'
59
59
  },
60
60
  footer: {
61
- missing: 'Nog niet gevonden. Ruimte kijkt opnieuw als je terugkomt in dit venster.',
61
+ missing: 'Nog niet gevonden. De app kijkt opnieuw als je terugkomt in dit venster.',
62
62
  found: 'Gevonden op deze machine.'
63
63
  },
64
64
  fallback: 'Installeer {{provider}} om hem hier te gebruiken.'
@@ -161,7 +161,7 @@ export default {
161
161
  advanced: 'Geavanceerd',
162
162
  link: {
163
163
  label: 'Een bestaande map koppelen',
164
- description: 'Gebruik een bestaande configuratiemap. Ruimte verplaatst of verwijdert hem nooit.',
164
+ description: 'Gebruik een bestaande configuratiemap. De app verplaatst of verwijdert hem nooit.',
165
165
  placeholder: 'Pad op de machine'
166
166
  },
167
167
  create: 'Account toevoegen',
package/dist/locales.js CHANGED
@@ -1,4 +1,4 @@
1
- /* The words of this package, a namespace per surface, which the app adds to its i18next beside its own namespaces. */
1
+ /* The words of this package, a namespace per part of the package, which the app adds to its i18next beside its own namespaces. */
2
2
  export const AGENTS_NAMESPACES = ['agent-chat', 'agent-prompts', 'agent-providers', 'agent-usage'];
3
3
  async function open(files) {
4
4
  return Object.fromEntries(await Promise.all(Object.entries(files).map(async ([namespace, file]) => [namespace, (await file()).default])));
@@ -1,6 +1,6 @@
1
1
  import i18next from 'i18next';
2
2
  import { isBlockingPrompt } from './prompts.js';
3
- /* Unique across the chats of a surface and the app's own prompts, and stable while the prompt waits. */
3
+ /* Unique across the chats of a view and the app's own prompts, and stable while the prompt waits. */
4
4
  export function promptIdOf(subject) {
5
5
  return subject.kind === 'chat' ? `agent-chat:${subject.nodeId}:${subject.item.requestId}` : subject.prompt.id;
6
6
  }
@@ -83,7 +83,7 @@ export const PROMPT_SAMPLES = [{
83
83
  toolUseId: null,
84
84
  input: {
85
85
  command: 'bun run check && bun test',
86
- cwd: '/projects/ruimte'
86
+ cwd: '/projects/app'
87
87
  },
88
88
  description: "Run the project's validation checks before continuing.",
89
89
  canAllowAlways: true,
@@ -6,7 +6,7 @@ import { useLimitGroups, useUsageLimits } from './limits.js';
6
6
  import { AccountLimitsList } from './LimitsList.js';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const MINUTE_MS = 60_000;
9
- /* Asking the CLIs starts a process each, so the question waits until the card is actually opened. */
9
+ /* Asking the CLIs starts a process each, so the question waits until the card opens. */
10
10
  function CardBody(t0) {
11
11
  const $ = _c(7);
12
12
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents-react",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
4
4
  "description": "React agent chat threads, composers, approvals, provider accounts and usage views.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -72,12 +72,12 @@
72
72
  "test:visuals": "bun --config=integration.bunfig.toml --conditions=source test ./src/chat/visual-viewport.integration.test.ts"
73
73
  },
74
74
  "dependencies": {
75
- "@adecore/agent-contracts": "0.54.2",
76
- "@adecore/editor": "0.54.2",
77
- "@adecore/editor-react": "0.54.2",
78
- "@adecore/intelligent-ui": "0.54.2",
79
- "@adecore/merge": "0.54.2",
80
- "@adecore/utils": "0.54.2",
75
+ "@adecore/agent-contracts": "0.54.4",
76
+ "@adecore/editor": "0.54.4",
77
+ "@adecore/editor-react": "0.54.4",
78
+ "@adecore/intelligent-ui": "0.54.4",
79
+ "@adecore/merge": "0.54.4",
80
+ "@adecore/utils": "0.54.4",
81
81
  "@codemirror/commands": "^6.11.1",
82
82
  "@codemirror/language": "^6.13.1",
83
83
  "@codemirror/state": "^6.7.6",
@@ -101,14 +101,14 @@
101
101
  "zustand": "^5.0.16"
102
102
  },
103
103
  "peerDependencies": {
104
- "@adecore/ui": "^0.54.2",
104
+ "@adecore/ui": "^0.54.4",
105
105
  "i18next": "^26.4.2",
106
106
  "react": "^19.3.0",
107
107
  "react-dom": "^19.3.0",
108
108
  "react-i18next": "^17.0.15"
109
109
  },
110
110
  "devDependencies": {
111
- "@adecore/ui": "0.54.2",
111
+ "@adecore/ui": "0.54.4",
112
112
  "@types/bun": "^1.4.4",
113
113
  "@types/react": "^19.3.0",
114
114
  "@types/react-dom": "^19.3.0",
@@ -26,7 +26,7 @@ export function modelNameFromSlug(slug: string): string {
26
26
  return words.map((word) => (word === 'gpt' ? 'GPT' : word.charAt(0).toUpperCase() + word.slice(1))).join(' ');
27
27
  }
28
28
 
29
- /* What the CLI calls the model, so every surface says the same thing; a slug it no longer offers is read as one. */
29
+ /* What the CLI calls the model, so every view says the same thing; a slug it no longer offers is read as one. */
30
30
  export function modelName(slug: string, models: readonly ModelInfo[] | undefined): string {
31
31
  return models?.find((entry) => entry.slug === slug)?.name ?? modelNameFromSlug(slug);
32
32
  }
@@ -17,7 +17,7 @@ export function choiceWord(optionId: string, choice: { id: string; label: string
17
17
  return catalogWord(`agent-chat:modelOptions.${optionId}.choices.${choice.id}`, choice.label);
18
18
  }
19
19
 
20
- /* The option with the words a person reads, for a surface that draws its labels and choices. */
20
+ /* The option with the words a person reads, for a view that draws its labels and choices. */
21
21
  export function localizedOption(option: ModelOptionDescriptor): ModelOptionDescriptor {
22
22
  const label = optionWord(option);
23
23
 
@@ -78,7 +78,7 @@ function dueAtOf(info: ChatInfo, endedAt: number): number {
78
78
 
79
79
  /*
80
80
  * When the next message would pay for the whole thread again, or null while nothing could be offered,
81
- * so a surface knows whether to keep a timer.
81
+ * so a view knows whether to keep a timer.
82
82
  */
83
83
  export function resumeCompactionDueAt(input: OfferInput): number | null {
84
84
  const endedAt = offerableTurn(input)?.endedAt ?? null;
@@ -3,7 +3,7 @@ import i18next from 'i18next';
3
3
 
4
4
  /*
5
5
  * The runtime modes in the order they are offered: the schema's, which the host reads as the rank
6
- * from narrowest to widest. Their words are read when a surface draws one, not when this module loads.
6
+ * from narrowest to widest. Their words are read when a view draws one, not when this module loads.
7
7
  */
8
8
  export const RUNTIME_MODES: readonly RuntimeMode[] = RuntimeModeSchema.options;
9
9
 
@@ -25,6 +25,7 @@ interface TokenChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children
25
25
  /*
26
26
  * One token in the transcript. One that opens is a span with a button's role rather than a button,
27
27
  * since a button is a box with a baseline of its own and would not sit on the line the others sit on.
28
+ * It stays out of prose, whose margins on an image would lift a host's picture mark off the line.
28
29
  */
29
30
  export function TokenChip({ kind, value, sigil, icon, label, tone, onOpen, className, ...rest }: TokenChipProps) {
30
31
  const onKeyDown = (e: KeyboardEvent<HTMLSpanElement>): void => {
@@ -37,7 +38,13 @@ export function TokenChip({ kind, value, sigil, icon, label, tone, onOpen, class
37
38
  return (
38
39
  <span
39
40
  {...rest}
40
- className={clsx(TOKEN_IN_MESSAGE, tone, onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent', className)}
41
+ className={clsx(
42
+ 'not-prose',
43
+ TOKEN_IN_MESSAGE,
44
+ tone,
45
+ onOpen !== undefined && 'cursor-pointer focus-visible:outline-2 focus-visible:outline-accent',
46
+ className
47
+ )}
41
48
  data-chip={kind}
42
49
  data-chip-value={value}
43
50
  data-chip-name={kind === 'reference' ? label : undefined}
@@ -157,9 +157,9 @@ function scanMarkdownBlocks(text: string, checkpoints = false): MarkdownScan {
157
157
  const blocks: MarkdownBlock[] = [];
158
158
  let start = 0;
159
159
  let offset = 0;
160
- // The fence as a reading line by line sees it, blind to lists and indented code. A blank line is
161
- // only cut at where this reading agrees, so every such cut is one this split made before it
162
- // followed fences any further.
160
+ // The fence as a reading line by line sees it, blind to lists and indented code. The split cuts
161
+ // at a blank line only where this reading agrees, so it made every such cut before it followed
162
+ // fences any further.
163
163
  let lineFence: OpenFence | null = null;
164
164
  let afterBlank = false;
165
165
  // A fence inside a list item.
@@ -154,7 +154,7 @@ export function SubagentRow({
154
154
  work: ChatItem[];
155
155
  expanded: boolean;
156
156
  onToggle(): void;
157
- /* Opens everything it did in the thread's place, for a surface that has somewhere to open it. */
157
+ /* Opens everything it did in the thread's place, for a view that has somewhere to open it. */
158
158
  onOpenConversation?(): void;
159
159
  }) {
160
160
  const { t } = useTranslation('agent-chat');
package/src/host.ts CHANGED
@@ -48,7 +48,7 @@ export interface ChatToast {
48
48
  }
49
49
 
50
50
  /*
51
- * What a person does to a chat from its own surfaces. Without an app's own set, each one is the request
51
+ * What a person does to a chat from its own views. Without an app's own set, each one is the request
52
52
  * a chat host answers; an app that runs every action through one door (confirmations, voice, an
53
53
  * activity log) hands its own. A refusal throws something with a `code`.
54
54
  */
@@ -473,7 +473,7 @@ export default {
473
473
  backToMain: 'Back to main agent',
474
474
  loading: 'Loading conversation…',
475
475
  working: 'Working…',
476
- unsupported: 'Update Ruimte on this machine to read sub-agents.',
476
+ unsupported: 'Update the app on this machine to read sub-agents.',
477
477
  unreadable: 'Could not read conversation.',
478
478
  noAnswer: 'The machine did not answer',
479
479
  stopFailed: 'Could not stop sub-agent',
@@ -24,7 +24,7 @@ export default {
24
24
  missing: 'Missing',
25
25
  notInstalledNote: 'Install to use it here.',
26
26
  none: 'No agents found on this machine.',
27
- noAccounts: 'Update Ruimte on this machine to add accounts.'
27
+ noAccounts: 'Update the app on this machine to add accounts.'
28
28
  },
29
29
  install: {
30
30
  notInstalled: 'Not installed',
@@ -58,7 +58,7 @@ export default {
58
58
  description: 'Pick {{provider}} for your next chat or terminal.'
59
59
  },
60
60
  footer: {
61
- missing: 'Not found yet. Ruimte checks again when you come back to this window.',
61
+ missing: 'Not found yet. The app checks again when you come back to this window.',
62
62
  found: 'Found on this machine.'
63
63
  },
64
64
  fallback: 'Install {{provider}} to use it here.'
@@ -161,7 +161,7 @@ export default {
161
161
  advanced: 'Advanced',
162
162
  link: {
163
163
  label: 'Link an existing folder',
164
- description: 'Use an existing config folder. Ruimte never moves or deletes it.',
164
+ description: 'Use an existing config folder. The app never moves or deletes it.',
165
165
  placeholder: 'Path on the machine'
166
166
  },
167
167
  create: 'Add account',
@@ -473,7 +473,7 @@ export default {
473
473
  backToMain: 'Terug naar de main agent',
474
474
  loading: 'Gesprek laden…',
475
475
  working: 'Bezig…',
476
- unsupported: 'Werk Ruimte op deze machine bij om sub-agents te lezen.',
476
+ unsupported: 'Werk de app op deze machine bij om sub-agents te lezen.',
477
477
  unreadable: 'Kon het gesprek niet lezen.',
478
478
  noAnswer: 'De machine antwoordde niet',
479
479
  stopFailed: 'Kon de sub-agent niet stoppen',
@@ -24,7 +24,7 @@ export default {
24
24
  missing: 'Ontbreekt',
25
25
  notInstalledNote: 'Installeer om hem hier te gebruiken.',
26
26
  none: 'Geen agents gevonden op deze machine.',
27
- noAccounts: 'Werk Ruimte op deze machine bij om accounts toe te voegen.'
27
+ noAccounts: 'Werk de app op deze machine bij om accounts toe te voegen.'
28
28
  },
29
29
  install: {
30
30
  notInstalled: 'Niet geïnstalleerd',
@@ -58,7 +58,7 @@ export default {
58
58
  description: 'Kies {{provider}} voor je volgende chat of terminal.'
59
59
  },
60
60
  footer: {
61
- missing: 'Nog niet gevonden. Ruimte kijkt opnieuw als je terugkomt in dit venster.',
61
+ missing: 'Nog niet gevonden. De app kijkt opnieuw als je terugkomt in dit venster.',
62
62
  found: 'Gevonden op deze machine.'
63
63
  },
64
64
  fallback: 'Installeer {{provider}} om hem hier te gebruiken.'
@@ -161,7 +161,7 @@ export default {
161
161
  advanced: 'Geavanceerd',
162
162
  link: {
163
163
  label: 'Een bestaande map koppelen',
164
- description: 'Gebruik een bestaande configuratiemap. Ruimte verplaatst of verwijdert hem nooit.',
164
+ description: 'Gebruik een bestaande configuratiemap. De app verplaatst of verwijdert hem nooit.',
165
165
  placeholder: 'Pad op de machine'
166
166
  },
167
167
  create: 'Account toevoegen',
package/src/locales.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  type Bundle = Record<string, unknown>;
2
2
 
3
- /* The words of this package, a namespace per surface, which the app adds to its i18next beside its own namespaces. */
3
+ /* The words of this package, a namespace per part of the package, which the app adds to its i18next beside its own namespaces. */
4
4
  export const AGENTS_NAMESPACES = ['agent-chat', 'agent-prompts', 'agent-providers', 'agent-usage'] as const;
5
5
 
6
6
  export type AgentsNamespace = (typeof AGENTS_NAMESPACES)[number];
@@ -10,7 +10,7 @@ import { isBlockingPrompt, type PendingPrompt, type PromptAction, type PromptDra
10
10
  * rest and keeps its draft.
11
11
  */
12
12
  export interface HostPrompt {
13
- /* Unique across the prompts of a surface, and stable while the prompt waits. */
13
+ /* Unique across the prompts of a view, and stable while the prompt waits. */
14
14
  id: string;
15
15
  createdAt: number;
16
16
  blocking: boolean;
@@ -59,7 +59,7 @@ export interface ApprovalButtonSpec {
59
59
  action: PromptAction;
60
60
  }
61
61
 
62
- /* Unique across the chats of a surface and the app's own prompts, and stable while the prompt waits. */
62
+ /* Unique across the chats of a view and the app's own prompts, and stable while the prompt waits. */
63
63
  export function promptIdOf(subject: PromptSubject): string {
64
64
  return subject.kind === 'chat' ? `agent-chat:${subject.nodeId}:${subject.item.requestId}` : subject.prompt.id;
65
65
  }
@@ -71,7 +71,7 @@ export const PROMPT_SAMPLES: Array<{ label: string; items: PendingPrompt[] }> =
71
71
  kind: 'approval',
72
72
  toolName: 'Bash',
73
73
  toolUseId: null,
74
- input: { command: 'bun run check && bun test', cwd: '/projects/ruimte' },
74
+ input: { command: 'bun run check && bun test', cwd: '/projects/app' },
75
75
  description: "Run the project's validation checks before continuing.",
76
76
  canAllowAlways: true,
77
77
  allowAlways: { label: 'Allow for this session', description: 'Allow commands in this session until it ends.' },
@@ -6,7 +6,7 @@ import { AccountLimitsList } from './LimitsList';
6
6
 
7
7
  const MINUTE_MS = 60_000;
8
8
 
9
- /* Asking the CLIs starts a process each, so the question waits until the card is actually opened. */
9
+ /* Asking the CLIs starts a process each, so the question waits until the card opens. */
10
10
  function CardBody({ folded, onFoldedChange }: { folded: ReadonlySet<string>; onFoldedChange: (folded: ReadonlySet<string>) => void }) {
11
11
  const limits = useUsageLimits();
12
12
  const groups = useLimitGroups(limits);