@truss-harness/tui 0.1.21 → 0.1.22
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/dist/bin.js +5 -3
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -5,7 +5,8 @@ import { cwd } from "node:process";
|
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { brand } from "@truss-harness/branding";
|
|
7
7
|
import { FileAgentProfileStore } from "@truss-harness/cli/agents";
|
|
8
|
-
import { resolveConfiguration, } from "@truss-harness/cli/config";
|
|
8
|
+
import { MissingModelError, resolveConfiguration, } from "@truss-harness/cli/config";
|
|
9
|
+
import { systemSecretStore } from "@truss-harness/cli/secrets";
|
|
9
10
|
import { detectLocalEndpoints, isLocalEndpointKind, listLocalModels, } from "@truss-harness/provider-openai-compatible";
|
|
10
11
|
import { render, useApp } from "ink";
|
|
11
12
|
import { useEffect, useMemo, useReducer, useState } from "react";
|
|
@@ -305,11 +306,12 @@ function App({ initialConfiguration, }) {
|
|
|
305
306
|
},
|
|
306
307
|
} }));
|
|
307
308
|
}
|
|
309
|
+
const secrets = systemSecretStore();
|
|
308
310
|
const initialConfiguration = await resolveConfiguration({
|
|
309
311
|
workspaceRoot: cwd(),
|
|
312
|
+
...(secrets ? { secrets } : {}),
|
|
310
313
|
}).catch((error) => {
|
|
311
|
-
|
|
312
|
-
if (message.startsWith("Set a model"))
|
|
314
|
+
if (error instanceof MissingModelError)
|
|
313
315
|
return undefined;
|
|
314
316
|
throw error;
|
|
315
317
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truss-harness/tui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Interactive terminal client for Truss.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"ink": "^6.8.0",
|
|
44
44
|
"react": "^19.2.0",
|
|
45
45
|
"@truss-harness/branding": "0.1.1",
|
|
46
|
-
"@truss-harness/cli": "^0.1.
|
|
47
|
-
"@truss-harness/provider-openai-compatible": "^0.1.
|
|
46
|
+
"@truss-harness/cli": "^0.1.25",
|
|
47
|
+
"@truss-harness/provider-openai-compatible": "^0.1.17",
|
|
48
48
|
"@truss-harness/runtime": "^0.1.15"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|