@robota-sdk/agent-ui-terminal 3.0.0-beta.90 → 3.0.0-beta.93
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/CHANGELOG.md +43 -0
- package/dist/node/index.d.ts +3 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +11 -11
- package/src/keybindings/__tests__/keybinding-registry.test.ts +1 -1
- package/src/render.tsx +5 -0
- package/src/tui-channel-options.ts +1 -0
- package/src/tui-session-options.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-ui-terminal",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.93",
|
|
4
4
|
"description": "Terminal UI package (React + Ink) for the Robota SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"marked-terminal": "^7.3.0",
|
|
39
39
|
"react": "19.2.8",
|
|
40
40
|
"string-width": "^8.2.2",
|
|
41
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
42
|
-
"@robota-sdk/agent-framework": "3.0.0-beta.
|
|
43
|
-
"@robota-sdk/agent-interface-analytics": "3.0.0-beta.
|
|
44
|
-
"@robota-sdk/agent-interface-command": "3.0.0-beta.
|
|
45
|
-
"@robota-sdk/agent-interface-execution": "3.0.0-beta.
|
|
46
|
-
"@robota-sdk/agent-interface-
|
|
47
|
-
"@robota-sdk/agent-interface-
|
|
48
|
-
"@robota-sdk/agent-interface-tui": "3.0.0-beta.
|
|
49
|
-
"@robota-sdk/agent-transport": "3.0.0-beta.
|
|
41
|
+
"@robota-sdk/agent-core": "3.0.0-beta.93",
|
|
42
|
+
"@robota-sdk/agent-framework": "3.0.0-beta.93",
|
|
43
|
+
"@robota-sdk/agent-interface-analytics": "3.0.0-beta.93",
|
|
44
|
+
"@robota-sdk/agent-interface-command": "3.0.0-beta.93",
|
|
45
|
+
"@robota-sdk/agent-interface-execution": "3.0.0-beta.93",
|
|
46
|
+
"@robota-sdk/agent-interface-session": "3.0.0-beta.93",
|
|
47
|
+
"@robota-sdk/agent-interface-transport": "3.0.0-beta.93",
|
|
48
|
+
"@robota-sdk/agent-interface-tui": "3.0.0-beta.93",
|
|
49
|
+
"@robota-sdk/agent-transport": "3.0.0-beta.93"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@homebridge/node-pty-prebuilt-multiarch": "^0.14.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"tsx": "^4.23.1",
|
|
58
58
|
"typescript": "^6.0.3",
|
|
59
59
|
"vitest": "^3.2.6",
|
|
60
|
-
"@robota-sdk/agent-command": "3.0.0-beta.
|
|
60
|
+
"@robota-sdk/agent-command": "3.0.0-beta.93"
|
|
61
61
|
},
|
|
62
62
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
63
63
|
"publishConfig": {
|
|
@@ -217,7 +217,7 @@ describe('contextual keybinding registry', () => {
|
|
|
217
217
|
$defs: Record<string, { properties?: Record<string, unknown> }>;
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
expect(schema.$id).toBe('https://docs.robota.io
|
|
220
|
+
expect(schema.$id).toBe('https://docs.robota.io/schemas/keybindings.schema.json');
|
|
221
221
|
expect(Object.keys(schema.properties.bindings.properties)).toEqual(
|
|
222
222
|
Object.keys(KEYBINDING_ACTIONS),
|
|
223
223
|
);
|
package/src/render.tsx
CHANGED
|
@@ -39,6 +39,7 @@ import type { ITuiInteractionChannelOptions } from './TuiInteractionChannel.js';
|
|
|
39
39
|
import type { ITuiClientCommands } from './wire-tui-client-commands.js';
|
|
40
40
|
import type {
|
|
41
41
|
IAIProvider,
|
|
42
|
+
TProviderCredentialResolver,
|
|
42
43
|
IToolWithEventService,
|
|
43
44
|
IProviderDefinition,
|
|
44
45
|
} from '@robota-sdk/agent-core';
|
|
@@ -102,6 +103,7 @@ export interface IRenderOptions {
|
|
|
102
103
|
skillRoots?: readonly ISkillRootDescriptor[];
|
|
103
104
|
userSettingsSources?: readonly INodeHostSettingsSource[];
|
|
104
105
|
environment?: Readonly<Record<string, string | undefined>>;
|
|
106
|
+
resolveProviderCredential?: TProviderCredentialResolver;
|
|
105
107
|
/**
|
|
106
108
|
* CLI-083 (issue #2287) — the org policy, forwarded to the session so `blockedCommands` is
|
|
107
109
|
* enforced on the direct CLI path as well as under `--serve`.
|
|
@@ -308,6 +310,9 @@ export function toChannelOptions(
|
|
|
308
310
|
? { userSettingsSources: options.userSettingsSources }
|
|
309
311
|
: {}),
|
|
310
312
|
...(options.environment !== undefined ? { environment: options.environment } : {}),
|
|
313
|
+
...(options.resolveProviderCredential !== undefined
|
|
314
|
+
? { resolveProviderCredential: options.resolveProviderCredential }
|
|
315
|
+
: {}),
|
|
311
316
|
...(options.orgPolicy !== undefined ? { orgPolicy: options.orgPolicy } : {}),
|
|
312
317
|
...(options.externalEventVerifierFactory !== undefined
|
|
313
318
|
? { externalEventVerifierFactory: options.externalEventVerifierFactory }
|
|
@@ -81,6 +81,7 @@ export interface ITuiInteractionChannelOptions {
|
|
|
81
81
|
skillRoots?: ICreateSessionOptions['skillRoots'];
|
|
82
82
|
userSettingsSources?: readonly INodeHostSettingsSource[];
|
|
83
83
|
environment?: Readonly<Record<string, string | undefined>>;
|
|
84
|
+
resolveProviderCredential?: import('@robota-sdk/agent-core').TProviderCredentialResolver;
|
|
84
85
|
/**
|
|
85
86
|
* Explicit authority- and permission-backed edit checkpoint capability for this channel's one
|
|
86
87
|
* session. Never shared with another channel's session: a store holds one turn in progress.
|
|
@@ -53,6 +53,9 @@ export function buildTuiSessionOptions(
|
|
|
53
53
|
? { userSettingsSources: opts.userSettingsSources }
|
|
54
54
|
: {}),
|
|
55
55
|
...(opts.environment !== undefined ? { environment: opts.environment } : {}),
|
|
56
|
+
...(opts.resolveProviderCredential !== undefined
|
|
57
|
+
? { resolveProviderCredential: opts.resolveProviderCredential }
|
|
58
|
+
: {}),
|
|
56
59
|
...(opts.editCheckpointStore !== undefined
|
|
57
60
|
? { editCheckpointStore: opts.editCheckpointStore }
|
|
58
61
|
: {}),
|