Skip to content

Commit e794ddd

Browse files
committed
test(console): pin the Connected line's new strings in every pack; de quote pairs 110
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2537364 commit e794ddd

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
'@objectstack/mcp': patch
5+
'@objectstack/platform-objects': patch
6+
---
7+
8+
feat(console): Connect an AI Assistant names the connected assistant and its last call; plain-words page subtitle
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
- **`@object-ui/app-shell`**: once the signed-in person has connected, the line under the example requests on Connect an AI Assistant names what is connected and when it last made a call, the most recent call first: an authorized assistant by its name, with its last call "in the hour from" the recorded hour, or an API key by its name, with its last call as a moment; "no call yet" when none is recorded, and a pointer to the list at the bottom when more than one is connected. With nothing connected (or when it cannot be read) the line stays the try-first hint. It reads the records the "What can act as you" list reads (`oauth.authorizedClients.list()` and the person's own `sys_api_key` rows; a revoked or expired key is not a connection) through one hook, `useConnectedAccess`, and follows a Revoke made on the page.
14+
- **`@object-ui/i18n`**: `connectAgent.capabilities.connected`, `connectedKey`, `lastCallHour`, `lastCallAt`, `noCallYet` and `moreConnected` added in all eleven packs.
15+
- **`@objectstack/mcp`**: the Connect an AI Assistant page header no longer speaks of MCP-capable clients or row-level security: "Work in this system from Claude, Doubao and other AI assistants. Each one acts as you: it sees and changes only what your own permissions allow."
16+
- **`@objectstack/platform-objects`**: `pages.connect_agent.subtitle` follows in en, es-ES, ja-JP, zh-CN and zh-Hant, with the source digests re-recorded.

‎ui/packages/app-shell/src/console/connect/ConnectAgentWidget.keyName-13355.test.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ describe('Connect an Agent says what a connected assistant can do, in plain word
395395
expect(example.closest('li')?.querySelector('button')).not.toBeNull();
396396
expect(example.compareDocumentPosition(endpoint) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
397397
}
398-
// What to try first is said to everyone: the page cannot tell whether you have connected.
398+
// Without a read of what is connected (no adapter here), the line says what to try first.
399399
expect(screen.getByText('«connectAgent.capabilities.tryFirst»')).toBeInTheDocument();
400400
});
401401

@@ -410,6 +410,12 @@ describe('Connect an Agent says what a connected assistant can do, in plain word
410410
'capabilities.example2',
411411
'capabilities.example3',
412412
'capabilities.tryFirst',
413+
'capabilities.connected',
414+
'capabilities.connectedKey',
415+
'capabilities.lastCallHour',
416+
'capabilities.lastCallAt',
417+
'capabilities.noCallYet',
418+
'capabilities.moreConnected',
413419
]);
414420
for (const [lang, pack] of Object.entries(builtInLocales)) {
415421
const strings = new Map(flatten((pack as Record<string, unknown>).connectAgent));

‎ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,11 @@ describe('objectui#3876 — de pack closes „ with “ and not with a straight
405405
// `fields.preferenceOption.useTyped`, the picker row that commits the typed
406406
// topic or channel („{{value}}“ verwenden) — one interpolated span, runtime
407407
// data.
408-
expect(okSpans, 'correctly paired spans').toBe(109);
408+
// 110 once objectstack-ai/objectstack#30898 added
409+
// `connectAgent.capabilities.connectedKey`, the Connect line that names the
410+
// API key a connection runs on („{{name}}“) — one interpolated span,
411+
// runtime data.
412+
expect(okSpans, 'correctly paired spans').toBe(110);
409413
});
410414

411415
it('keeps the count identity that replaces the card’s count(„) === count(“)', () => {
@@ -497,7 +501,9 @@ describe('objectui#3876 — de pack closes „ with “ and not with a straight
497501
// added `connectAgent.access.revokeTitle`, one more matched pair. 109 / 109 / 0
498502
// after objectstack-ai/objectstack#31062 added
499503
// `fields.preferenceOption.useTyped`, one more matched pair.
500-
expect({ open, close, rdq }).toEqual({ open: 109, close: 109, rdq: 0 });
504+
// 110 / 110 / 0 after objectstack-ai/objectstack#30898 added
505+
// `connectAgent.capabilities.connectedKey`, one more matched pair.
506+
expect({ open, close, rdq }).toEqual({ open: 110, close: 110, rdq: 0 });
501507
// The durable shape: every „ closed by a “, every surplus “ an English
502508
// opener answered by a ”. Survived translating the two English values.
503509
expect(close).toBe(open + rdq);

0 commit comments

Comments
 (0)