nolo-cli 0.1.1 → 0.1.2

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.
@@ -5,6 +5,8 @@ import { homedir } from "node:os";
5
5
  export type NoloProfile = {
6
6
  serverUrl: string;
7
7
  authToken: string;
8
+ agentKey?: string;
9
+ agentName?: string;
8
10
  };
9
11
 
10
12
  export type NoloProfileConfig = {
@@ -47,6 +49,8 @@ export function buildEnvFromProfile(config: NoloProfileConfig | null) {
47
49
  NOLO_PROFILE: config.currentProfile,
48
50
  NOLO_SERVER: profile.serverUrl,
49
51
  AUTH_TOKEN: profile.authToken,
52
+ ...(profile.agentKey ? { NOLO_AGENT: profile.agentKey } : {}),
53
+ ...(profile.agentName ? { NOLO_AGENT_NAME: profile.agentName } : {}),
50
54
  };
51
55
  }
52
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
package/tui/session.ts CHANGED
@@ -1,10 +1,10 @@
1
- export const DEFAULT_TUI_AGENT_KEY = "agent-pub-01NOLOAPPBLD000000019KCKT0";
1
+ export const DEFAULT_TUI_AGENT_KEY = "agent-pub-01APPBUILDER00000001YAII3I";
2
2
  export const DEFAULT_TUI_SERVER_URL = "http://127.0.0.1:38123";
3
3
 
4
4
  const KNOWN_AGENT_ALIASES: Record<string, { name: string; key: string }> = {
5
5
  nolo: {
6
6
  name: "nolo",
7
- key: DEFAULT_TUI_AGENT_KEY,
7
+ key: "agent-pub-01NOLOAPPBLD000000019KCKT0",
8
8
  },
9
9
  "app-builder": {
10
10
  name: "app-builder",
@@ -41,7 +41,7 @@ type EnvLike = Record<string, string | undefined>;
41
41
 
42
42
  export function createInitialTuiState(env: EnvLike = process.env): TuiState {
43
43
  const agentKey = env.NOLO_AGENT?.trim() || DEFAULT_TUI_AGENT_KEY;
44
- const agentName = env.NOLO_AGENT_NAME?.trim() || "nolo";
44
+ const agentName = env.NOLO_AGENT_NAME?.trim() || "app-builder";
45
45
 
46
46
  return {
47
47
  agentKey,