@adecore/agents-react 0.54.2 → 0.54.3
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 +3 -3
- package/dist/agents/model-name.js +1 -1
- package/dist/agents/option-words.js +1 -1
- package/dist/chat/logic/resume-compaction.js +1 -1
- package/dist/chat/runtime-modes.js +1 -1
- package/dist/chat/ui/markdown-blocks.js +3 -3
- package/dist/locales/en/agent-chat.js +1 -1
- package/dist/locales/en/agent-providers.js +3 -3
- package/dist/locales/nl/agent-chat.js +1 -1
- package/dist/locales/nl/agent-providers.js +3 -3
- package/dist/locales.js +1 -1
- package/dist/prompts/logic/subjects.js +1 -1
- package/dist/testing/prompts.js +1 -1
- package/dist/usage/UsageLimitsCard.js +1 -1
- package/package.json +9 -9
- package/src/agents/model-name.ts +1 -1
- package/src/agents/option-words.ts +1 -1
- package/src/chat/logic/resume-compaction.ts +1 -1
- package/src/chat/runtime-modes.ts +1 -1
- package/src/chat/ui/markdown-blocks.ts +3 -3
- package/src/chat/ui/rows/SubagentRow.tsx +1 -1
- package/src/host.ts +1 -1
- package/src/locales/en/agent-chat.ts +1 -1
- package/src/locales/en/agent-providers.ts +3 -3
- package/src/locales/nl/agent-chat.ts +1 -1
- package/src/locales/nl/agent-providers.ts +3 -3
- package/src/locales.ts +1 -1
- package/src/prompts/logic/subjects.ts +2 -2
- package/src/testing/prompts.ts +1 -1
- package/src/usage/UsageLimitsCard.tsx +1 -1
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/
|
|
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/
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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) {
|
|
@@ -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.
|
|
86
|
-
//
|
|
87
|
-
//
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
}
|
package/dist/testing/prompts.js
CHANGED
|
@@ -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/
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.54.3",
|
|
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.
|
|
76
|
-
"@adecore/editor": "0.54.
|
|
77
|
-
"@adecore/editor-react": "0.54.
|
|
78
|
-
"@adecore/intelligent-ui": "0.54.
|
|
79
|
-
"@adecore/merge": "0.54.
|
|
80
|
-
"@adecore/utils": "0.54.
|
|
75
|
+
"@adecore/agent-contracts": "0.54.3",
|
|
76
|
+
"@adecore/editor": "0.54.3",
|
|
77
|
+
"@adecore/editor-react": "0.54.3",
|
|
78
|
+
"@adecore/intelligent-ui": "0.54.3",
|
|
79
|
+
"@adecore/merge": "0.54.3",
|
|
80
|
+
"@adecore/utils": "0.54.3",
|
|
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.
|
|
104
|
+
"@adecore/ui": "^0.54.3",
|
|
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.
|
|
111
|
+
"@adecore/ui": "0.54.3",
|
|
112
112
|
"@types/bun": "^1.4.4",
|
|
113
113
|
"@types/react": "^19.3.0",
|
|
114
114
|
"@types/react-dom": "^19.3.0",
|
package/src/agents/model-name.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
@@ -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.
|
|
161
|
-
//
|
|
162
|
-
//
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|
package/src/testing/prompts.ts
CHANGED
|
@@ -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/
|
|
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
|
|
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);
|