@robota-sdk/agent-cli 3.0.0-beta.3 → 3.0.0-beta.4

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/node/bin.cjs CHANGED
@@ -744,7 +744,7 @@ function useSession(props) {
744
744
  setStreamingText((prev) => prev + delta);
745
745
  };
746
746
  const paths = (0, import_agent_sdk.projectPaths)(props.cwd ?? process.cwd());
747
- sessionRef.current = new import_agent_sdk.Session({
747
+ sessionRef.current = (0, import_agent_sdk.createSession)({
748
748
  config: props.config,
749
749
  context: props.context,
750
750
  terminal: NOOP_TERMINAL,
@@ -1185,14 +1185,13 @@ async function startCli() {
1185
1185
  }
1186
1186
  const terminal = new PrintTerminal();
1187
1187
  const paths = (0, import_agent_sdk2.projectPaths)(cwd);
1188
- const session = new import_agent_sdk2.Session({
1188
+ const session = (0, import_agent_sdk2.createSession)({
1189
1189
  config,
1190
1190
  context,
1191
1191
  terminal,
1192
1192
  sessionLogger: new import_agent_sdk2.FileSessionLogger(paths.logs),
1193
1193
  projectInfo,
1194
1194
  permissionMode: args.permissionMode,
1195
- systemPromptBuilder: import_agent_sdk2.buildSystemPrompt,
1196
1195
  promptForApproval
1197
1196
  });
1198
1197
  const response = await session.run(prompt);
package/dist/node/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startCli
4
- } from "./chunk-MO7RIZFR.js";
4
+ } from "./chunk-4DYVT4WI.js";
5
5
 
6
6
  // src/bin.ts
7
7
  startCli().catch((err) => {
@@ -8,10 +8,9 @@ import {
8
8
  loadConfig,
9
9
  loadContext,
10
10
  detectProject,
11
- Session as Session2,
11
+ createSession as createSession2,
12
12
  SessionStore,
13
13
  FileSessionLogger as FileSessionLogger2,
14
- buildSystemPrompt,
15
14
  projectPaths as projectPaths2
16
15
  } from "@robota-sdk/agent-sdk";
17
16
 
@@ -41,7 +40,7 @@ import { render } from "ink";
41
40
  // src/ui/App.tsx
42
41
  import { useState as useState4, useCallback as useCallback2, useRef as useRef2 } from "react";
43
42
  import { Box as Box6, Text as Text8, useApp, useInput as useInput4 } from "ink";
44
- import { Session, FileSessionLogger, projectPaths } from "@robota-sdk/agent-sdk";
43
+ import { createSession, FileSessionLogger, projectPaths } from "@robota-sdk/agent-sdk";
45
44
 
46
45
  // src/commands/command-registry.ts
47
46
  var CommandRegistry = class {
@@ -728,7 +727,7 @@ function useSession(props) {
728
727
  setStreamingText((prev) => prev + delta);
729
728
  };
730
729
  const paths = projectPaths(props.cwd ?? process.cwd());
731
- sessionRef.current = new Session({
730
+ sessionRef.current = createSession({
732
731
  config: props.config,
733
732
  context: props.context,
734
733
  terminal: NOOP_TERMINAL,
@@ -1168,14 +1167,13 @@ async function startCli() {
1168
1167
  }
1169
1168
  const terminal = new PrintTerminal();
1170
1169
  const paths = projectPaths2(cwd);
1171
- const session = new Session2({
1170
+ const session = createSession2({
1172
1171
  config,
1173
1172
  context,
1174
1173
  terminal,
1175
1174
  sessionLogger: new FileSessionLogger2(paths.logs),
1176
1175
  projectInfo,
1177
1176
  permissionMode: args.permissionMode,
1178
- systemPromptBuilder: buildSystemPrompt,
1179
1177
  promptForApproval
1180
1178
  });
1181
1179
  const response = await session.run(prompt);
@@ -760,7 +760,7 @@ function useSession(props) {
760
760
  setStreamingText((prev) => prev + delta);
761
761
  };
762
762
  const paths = (0, import_agent_sdk.projectPaths)(props.cwd ?? process.cwd());
763
- sessionRef.current = new import_agent_sdk.Session({
763
+ sessionRef.current = (0, import_agent_sdk.createSession)({
764
764
  config: props.config,
765
765
  context: props.context,
766
766
  terminal: NOOP_TERMINAL,
@@ -1201,14 +1201,13 @@ async function startCli() {
1201
1201
  }
1202
1202
  const terminal = new PrintTerminal();
1203
1203
  const paths = (0, import_agent_sdk2.projectPaths)(cwd);
1204
- const session = new import_agent_sdk2.Session({
1204
+ const session = (0, import_agent_sdk2.createSession)({
1205
1205
  config,
1206
1206
  context,
1207
1207
  terminal,
1208
1208
  sessionLogger: new import_agent_sdk2.FileSessionLogger(paths.logs),
1209
1209
  projectInfo,
1210
1210
  permissionMode: args.permissionMode,
1211
- systemPromptBuilder: import_agent_sdk2.buildSystemPrompt,
1212
1211
  promptForApproval
1213
1212
  });
1214
1213
  const response = await session.run(prompt);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  startCli
3
- } from "./chunk-MO7RIZFR.js";
3
+ } from "./chunk-4DYVT4WI.js";
4
4
 
5
5
  // src/index.ts
6
6
  import { Session, SessionStore, query, TRUST_TO_MODE } from "@robota-sdk/agent-sdk";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-cli",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "AI coding assistant CLI built on Robota SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,8 +35,8 @@
35
35
  "marked-terminal": "^7.3.0",
36
36
  "react": "19.2.4",
37
37
  "string-width": "^8.2.0",
38
- "@robota-sdk/agent-core": "3.0.0-beta.3",
39
- "@robota-sdk/agent-sdk": "3.0.0-beta.3"
38
+ "@robota-sdk/agent-core": "3.0.0-beta.4",
39
+ "@robota-sdk/agent-sdk": "3.0.0-beta.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/marked": "^6.0.0",