saarthiclaw 0.3.0 → 0.4.0

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +13 -9
  3. package/dist/chunks/{chunk-H2FAKNUI.js → chunk-4QQKAYXY.js} +2 -2
  4. package/dist/chunks/{chunk-2GDAWRT7.js → chunk-5CZK76GD.js} +168 -3
  5. package/dist/chunks/{chunk-XT5WAZRV.js → chunk-5J4EZHBC.js} +5 -5
  6. package/dist/chunks/{chunk-SYH37PL6.js → chunk-5TGJUVF3.js} +5 -5
  7. package/dist/chunks/{chunk-KAWTUWO2.js → chunk-D3EGRS3I.js} +4 -4
  8. package/dist/chunks/{chunk-N33J57DT.js → chunk-FCUOVDGP.js} +6 -6
  9. package/dist/chunks/{chunk-HFMRQTXE.js → chunk-HAXIR2UL.js} +1 -1
  10. package/dist/chunks/{chunk-33MUQ6E5.js → chunk-IJH424FN.js} +1 -1
  11. package/dist/chunks/{chunk-XATEICDJ.js → chunk-PKKPIADV.js} +4 -4
  12. package/dist/chunks/{chunk-R4PMMMD5.js → chunk-QVXNGO7V.js} +53 -26
  13. package/dist/chunks/{chunk-OF5PQQQ4.js → chunk-UQLWSQM7.js} +4 -4
  14. package/dist/chunks/{chunk-CGJ4VEUD.js → chunk-Y5KHLA3U.js} +1 -1
  15. package/dist/chunks/{chunk-S6YZ2A73.js → chunk-ZNW5U3O5.js} +3 -3
  16. package/dist/chunks/{client-TI5W2YDP.js → client-ZC4NAQXK.js} +3 -3
  17. package/dist/chunks/{config-PA5NJ37O.js → config-IC2NOB3E.js} +1 -1
  18. package/dist/chunks/{context-RKFGCGP7.js → context-QVV5J6E6.js} +5 -5
  19. package/dist/chunks/{doctor-ZQICU2F4.js → doctor-ZKLHHV6B.js} +11 -8
  20. package/dist/chunks/{errors-OJZTUG74.js → errors-EOWKXBLQ.js} +2 -2
  21. package/dist/chunks/{init-5ENYFSX2.js → init-GVUB76FT.js} +96 -22
  22. package/dist/chunks/orchestrator-256I33EZ.js +22 -0
  23. package/dist/chunks/{orchestrator-XLVMKC4V.js → orchestrator-7PHH2BFH.js} +10 -10
  24. package/dist/chunks/{orchestrator-NJ7US5XC.js → orchestrator-MJZMWRN6.js} +9 -9
  25. package/dist/chunks/{session-ZC5D2O77.js → session-4F3Y36PA.js} +4 -4
  26. package/dist/chunks/{store-JG5OKLEO.js → store-V3BGNZAC.js} +3 -3
  27. package/dist/chunks/{sync-ESB3YWI2.js → sync-TOXUX5TK.js} +7 -7
  28. package/dist/chunks/{team-PFETXIEC.js → team-Z3LGTAVW.js} +9 -9
  29. package/dist/chunks/{telegram-IMADPCKR.js → telegram-Y5YBM5OM.js} +12 -12
  30. package/dist/chunks/{wakeup-UX6AM7M6.js → wakeup-TCMBEW2F.js} +15 -15
  31. package/dist/chunks/{workspace-XERWEYJB.js → workspace-435F7NMP.js} +4 -4
  32. package/dist/index.js +22 -22
  33. package/package.json +6 -1
  34. package/dist/chunks/orchestrator-ATA2LHPJ.js +0 -22
@@ -3,19 +3,19 @@ import {
3
3
  } from "./chunk-R7ID2QVW.js";
4
4
  import {
5
5
  runTeamSync
6
- } from "./chunk-XATEICDJ.js";
7
- import "./chunk-CGJ4VEUD.js";
6
+ } from "./chunk-PKKPIADV.js";
7
+ import "./chunk-Y5KHLA3U.js";
8
8
  import "./chunk-QRAFFI5V.js";
9
9
  import {
10
10
  describeTeamMode,
11
11
  getTeamContext,
12
12
  teamClientFor
13
- } from "./chunk-S6YZ2A73.js";
13
+ } from "./chunk-ZNW5U3O5.js";
14
14
  import {
15
15
  LEVEL_LABEL,
16
16
  TeamApiError,
17
17
  TeamClient
18
- } from "./chunk-33MUQ6E5.js";
18
+ } from "./chunk-IJH424FN.js";
19
19
  import "./chunk-HGBZ55ND.js";
20
20
  import "./chunk-5WH3FNFK.js";
21
21
  import {
@@ -27,12 +27,12 @@ import {
27
27
  removeTeamLink,
28
28
  saveKey,
29
29
  writeTeamLink
30
- } from "./chunk-H2FAKNUI.js";
30
+ } from "./chunk-4QQKAYXY.js";
31
31
  import {
32
32
  UserFacingError,
33
33
  isSecretPath
34
- } from "./chunk-R4PMMMD5.js";
35
- import "./chunk-2GDAWRT7.js";
34
+ } from "./chunk-QVXNGO7V.js";
35
+ import "./chunk-5CZK76GD.js";
36
36
  import "./chunk-MMIJKDOU.js";
37
37
  import "./chunk-IT46XDPQ.js";
38
38
 
@@ -345,7 +345,7 @@ async function teamInbox(session) {
345
345
  });
346
346
  if (what === "back") continue;
347
347
  if (what === "run") {
348
- const { runAgentTask } = await import("./orchestrator-NJ7US5XC.js");
348
+ const { runAgentTask } = await import("./orchestrator-MJZMWRN6.js");
349
349
  const task = `${item.message}${item.adminNote ? `
350
350
 
351
351
  Admin note: ${item.adminNote}` : ""}
@@ -374,7 +374,7 @@ async function teamDisconnect(session) {
374
374
  console.log(chalk.green("\n✓ Disconnected. SaarthiClaw now works solo in this project.\n"));
375
375
  }
376
376
  async function teamWatch(session, opts) {
377
- const { syncWorkspace, readWorkspaceState } = await import("./workspace-XERWEYJB.js");
377
+ const { syncWorkspace, readWorkspaceState } = await import("./workspace-435F7NMP.js");
378
378
  const { client, link } = requireLinked(session);
379
379
  const me = await client.whoami();
380
380
  const canPush = me.role === "admin" || me.permissionLevel === "trusted";
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  generatePlan,
3
3
  stepPrompt
4
- } from "./chunk-N33J57DT.js";
4
+ } from "./chunk-FCUOVDGP.js";
5
5
  import {
6
6
  createWebTools
7
- } from "./chunk-HFMRQTXE.js";
7
+ } from "./chunk-HAXIR2UL.js";
8
8
  import {
9
9
  createAgentTools,
10
10
  createReadOnlyTools,
11
11
  dedupeReadOnlyTools,
12
12
  finishOnLastStep
13
- } from "./chunk-OF5PQQQ4.js";
13
+ } from "./chunk-UQLWSQM7.js";
14
14
  import {
15
15
  ToolExecutor
16
- } from "./chunk-CGJ4VEUD.js";
16
+ } from "./chunk-Y5KHLA3U.js";
17
17
  import {
18
18
  groupPending
19
19
  } from "./chunk-QRAFFI5V.js";
20
- import "./chunk-S6YZ2A73.js";
21
- import "./chunk-33MUQ6E5.js";
20
+ import "./chunk-ZNW5U3O5.js";
21
+ import "./chunk-IJH424FN.js";
22
22
  import {
23
23
  waitForInterrupt
24
24
  } from "./chunk-HGBZ55ND.js";
@@ -27,16 +27,16 @@ import {
27
27
  createTracker,
28
28
  instructionsFor,
29
29
  readOnlyAgentConfig
30
- } from "./chunk-KAWTUWO2.js";
30
+ } from "./chunk-D3EGRS3I.js";
31
31
  import "./chunk-5WH3FNFK.js";
32
- import "./chunk-H2FAKNUI.js";
32
+ import "./chunk-4QQKAYXY.js";
33
33
  import {
34
34
  AI_MAX_RETRIES,
35
35
  MissingApiKeyError,
36
36
  UserFacingError,
37
37
  mapAiError
38
- } from "./chunk-R4PMMMD5.js";
39
- import "./chunk-2GDAWRT7.js";
38
+ } from "./chunk-QVXNGO7V.js";
39
+ import "./chunk-5CZK76GD.js";
40
40
  import "./chunk-MMIJKDOU.js";
41
41
  import "./chunk-IT46XDPQ.js";
42
42
 
@@ -411,7 +411,7 @@ ${list}`);
411
411
 
412
412
  // modes/telegram/index.ts
413
413
  async function runTelegramMode(session) {
414
- const { getTeamContext } = await import("./context-RKFGCGP7.js");
414
+ const { getTeamContext } = await import("./context-QVV5J6E6.js");
415
415
  const team = await getTeamContext(session);
416
416
  if (team.mode === "needs_approval" || team.mode === "suggest_only") {
417
417
  throw new UserFacingError(
@@ -433,7 +433,7 @@ async function runTelegramMode(session) {
433
433
  "Message @userinfobot on Telegram to find it."
434
434
  );
435
435
  }
436
- const { hasAiAccess } = await import("./session-ZC5D2O77.js");
436
+ const { hasAiAccess } = await import("./session-4F3Y36PA.js");
437
437
  if (!hasAiAccess(session)) throw new MissingApiKeyError();
438
438
  console.log(chalk.bold("\n📱 Telegram Mode\n"));
439
439
  const { Telegraf } = await import("telegraf");
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  runAgentMode
3
- } from "./chunk-XT5WAZRV.js";
3
+ } from "./chunk-5J4EZHBC.js";
4
4
  import {
5
5
  runAskMode
6
- } from "./chunk-SYH37PL6.js";
6
+ } from "./chunk-5TGJUVF3.js";
7
7
  import {
8
8
  runPlanMode
9
- } from "./chunk-N33J57DT.js";
10
- import "./chunk-HFMRQTXE.js";
11
- import "./chunk-OF5PQQQ4.js";
12
- import "./chunk-CGJ4VEUD.js";
9
+ } from "./chunk-FCUOVDGP.js";
10
+ import "./chunk-HAXIR2UL.js";
11
+ import "./chunk-UQLWSQM7.js";
12
+ import "./chunk-Y5KHLA3U.js";
13
13
  import "./chunk-QRAFFI5V.js";
14
- import "./chunk-S6YZ2A73.js";
15
- import "./chunk-33MUQ6E5.js";
14
+ import "./chunk-ZNW5U3O5.js";
15
+ import "./chunk-IJH424FN.js";
16
16
  import {
17
17
  RunCancelledError
18
18
  } from "./chunk-HGBZ55ND.js";
19
- import "./chunk-KAWTUWO2.js";
19
+ import "./chunk-D3EGRS3I.js";
20
20
  import "./chunk-5WH3FNFK.js";
21
- import "./chunk-H2FAKNUI.js";
21
+ import "./chunk-4QQKAYXY.js";
22
22
  import {
23
23
  reportError
24
- } from "./chunk-R4PMMMD5.js";
25
- import "./chunk-2GDAWRT7.js";
24
+ } from "./chunk-QVXNGO7V.js";
25
+ import "./chunk-5CZK76GD.js";
26
26
  import "./chunk-MMIJKDOU.js";
27
27
  import {
28
28
  UserCancelledError
@@ -122,15 +122,15 @@ async function runWakeup(session) {
122
122
  }
123
123
  if (choice === MainMenu.Telegram) {
124
124
  await runModeSafely(session, async () => {
125
- const { runTelegramMode } = await import("./telegram-IMADPCKR.js");
125
+ const { runTelegramMode } = await import("./telegram-Y5YBM5OM.js");
126
126
  await runTelegramMode(session);
127
127
  });
128
128
  }
129
129
  }
130
130
  }
131
131
  async function runTeamMenu(session) {
132
- const team = await import("./team-PFETXIEC.js");
133
- const { readTeamLink } = await import("./store-JG5OKLEO.js");
132
+ const team = await import("./team-Z3LGTAVW.js");
133
+ const { readTeamLink } = await import("./store-V3BGNZAC.js");
134
134
  while (true) {
135
135
  const link = readTeamLink(session.root, session.env ?? process.env);
136
136
  const options = link ? [
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  TeamApiError
3
- } from "./chunk-33MUQ6E5.js";
3
+ } from "./chunk-IJH424FN.js";
4
4
  import {
5
5
  sha256Hex
6
- } from "./chunk-H2FAKNUI.js";
6
+ } from "./chunk-4QQKAYXY.js";
7
7
  import {
8
8
  isSecretPath
9
- } from "./chunk-R4PMMMD5.js";
10
- import "./chunk-2GDAWRT7.js";
9
+ } from "./chunk-QVXNGO7V.js";
10
+ import "./chunk-5CZK76GD.js";
11
11
  import {
12
12
  projectStateDir
13
13
  } from "./chunk-MMIJKDOU.js";
package/dist/index.js CHANGED
@@ -15,9 +15,9 @@ async function bootstrap(cmd, opts = {}) {
15
15
  const g = cmd.optsWithGlobals();
16
16
  const [{ resolveWorkspaceRoot }, { loadConfig }, prompterMod, { createSession }] = await Promise.all([
17
17
  import("./chunks/workspace-PFJUEHAB.js"),
18
- import("./chunks/config-PA5NJ37O.js"),
18
+ import("./chunks/config-IC2NOB3E.js"),
19
19
  import("./chunks/prompter-AAH4A3BG.js"),
20
- import("./chunks/session-ZC5D2O77.js")
20
+ import("./chunks/session-4F3Y36PA.js")
21
21
  ]);
22
22
  if (opts.needsTty && !prompterMod.isInteractiveTerminal()) {
23
23
  throw new prompterMod.NonInteractiveError(opts.needsTty);
@@ -37,9 +37,9 @@ async function bootstrap(cmd, opts = {}) {
37
37
  async function startWakeup(cmd) {
38
38
  const session = await bootstrap(cmd, { needsTty: "`saarthiclaw wakeup`" });
39
39
  const g = cmd.optsWithGlobals();
40
- const { renderBanner, runWakeup } = await import("./chunks/wakeup-UX6AM7M6.js");
40
+ const { renderBanner, runWakeup } = await import("./chunks/wakeup-TCMBEW2F.js");
41
41
  if (g.banner !== false) console.log(renderBanner(getVersion()) + "\n");
42
- const { hasAiAccess } = await import("./chunks/session-ZC5D2O77.js");
42
+ const { hasAiAccess } = await import("./chunks/session-4F3Y36PA.js");
43
43
  if (!hasAiAccess(session)) {
44
44
  console.log(chalk.yellow("⚠ No AI key found. Run `saarthiclaw init` first, or ask your team Admin to add a Team AI key (Ask/Plan/Agent need one).\n"));
45
45
  }
@@ -52,7 +52,7 @@ function joinWords(words) {
52
52
  }
53
53
  function buildProgram() {
54
54
  const program = new Command();
55
- program.name("saarthiclaw").description("SaarthiClaw — an AI developer assistant for your project's terminal.\nThe AI proposes, you approve.").version(getVersion(), "-v, --version", "print the version").helpOption("-h, --help", "show help").option("--cwd <path>", "workspace root (default: nearest folder with package.json or .git)").option("--model <id>", "OpenRouter model id for this run").option("--allow-shell", "let the agent propose shell commands this run (each still needs approval)").option("--debug", "show stack traces and verbose errors").addOption(new Option("--no-banner", "hide the startup banner")).showHelpAfterError("(run `saarthiclaw --help` for usage)").exitOverride().allowExcessArguments(true).action(async (_opts, cmd) => {
55
+ program.name("saarthiclaw").description("SaarthiClaw — an AI developer assistant for your project's terminal.\nThe AI proposes, you approve.").version(getVersion(), "-v, --version", "print the version").helpOption("-h, --help", "show help").option("--cwd <path>", "workspace root (default: nearest folder with package.json or .git)").option("--model <id>", "model id for this run (from your AI provider)").option("--allow-shell", "let the agent propose shell commands this run (each still needs approval)").option("--debug", "show stack traces and verbose errors").addOption(new Option("--no-banner", "hide the startup banner")).showHelpAfterError("(run `saarthiclaw --help` for usage)").exitOverride().allowExcessArguments(true).action(async (_opts, cmd) => {
56
56
  if (cmd.args.length > 0) {
57
57
  cmd.error(`error: unknown command '${cmd.args[0]}'`, { exitCode: 1, code: "commander.unknownCommand" });
58
58
  }
@@ -66,36 +66,36 @@ function buildProgram() {
66
66
  program.command("wakeup").aliases(["wake", "start"]).description("open the interactive menu (CLI: Ask / Plan / Agent, or Telegram)").action(async (_opts, cmd) => startWakeup(cmd));
67
67
  program.command("init").description("guided one-time setup (API key, model, safety options)").action(async (_opts, cmd) => {
68
68
  const session = await bootstrap(cmd, { needsTty: "`saarthiclaw init`" });
69
- const { runInit } = await import("./chunks/init-5ENYFSX2.js");
69
+ const { runInit } = await import("./chunks/init-GVUB76FT.js");
70
70
  await runInit({ root: session.root, prompter: session.prompter, decorate: true });
71
71
  });
72
72
  program.command("doctor").description("check your setup (Node, config, API key, a live test call)").option("--offline", "skip the live model call").action(async (opts, cmd) => {
73
73
  const session = await bootstrap(cmd);
74
- const { runDoctor } = await import("./chunks/doctor-ZQICU2F4.js");
74
+ const { runDoctor } = await import("./chunks/doctor-ZKLHHV6B.js");
75
75
  const code = await runDoctor(session, { live: !opts.offline });
76
76
  if (code !== 0) throw new CommanderError(code, "saarthiclaw.doctorFailed", "");
77
77
  });
78
78
  program.command("ask").argument("[question...]", "question about the codebase (omit for the interactive prompt)").option("--save <file.md>", "save the answer as Markdown (goes through the approval flow)").description("ask a question about this codebase (read-only)").action(async (words, opts, cmd) => {
79
79
  const question = joinWords(words);
80
80
  const session = await bootstrap(cmd, { needsTty: question && !opts.save ? void 0 : "`saarthiclaw ask` without a question or with --save" });
81
- const ask = await import("./chunks/orchestrator-XLVMKC4V.js");
81
+ const ask = await import("./chunks/orchestrator-7PHH2BFH.js");
82
82
  if (question) await ask.runAskOnce(session, question, opts.save);
83
83
  else await ask.runAskMode(session);
84
84
  });
85
85
  program.command("plan").argument("[goal...]", "what you want to achieve").description("generate a step-by-step plan, pick steps, execute them with approval").action(async (words, _opts, cmd) => {
86
86
  const session = await bootstrap(cmd, { needsTty: "`saarthiclaw plan`" });
87
- const { runPlanMode } = await import("./chunks/orchestrator-ATA2LHPJ.js");
87
+ const { runPlanMode } = await import("./chunks/orchestrator-256I33EZ.js");
88
88
  await runPlanMode(session, joinWords(words));
89
89
  });
90
90
  program.command("agent").argument("[task...]", "task for the agent").description("let the agent stage changes; you review and approve every diff").option("--send", "team (Needs approval): send the changes to the Admin without asking; no shell commands").action(async (words, opts, cmd) => {
91
91
  const task = joinWords(words);
92
92
  const session = await bootstrap(cmd, { needsTty: opts.send && task ? void 0 : "`saarthiclaw agent`" });
93
- const { runAgentMode } = await import("./chunks/orchestrator-NJ7US5XC.js");
93
+ const { runAgentMode } = await import("./chunks/orchestrator-MJZMWRN6.js");
94
94
  await runAgentMode(session, task, { send: opts.send });
95
95
  });
96
96
  program.command("telegram").description("run the Telegram remote-control bot (owner only) until Ctrl+C").action(async (_opts, cmd) => {
97
97
  const session = await bootstrap(cmd);
98
- const { runTelegramMode } = await import("./chunks/telegram-IMADPCKR.js");
98
+ const { runTelegramMode } = await import("./chunks/telegram-Y5YBM5OM.js");
99
99
  await runTelegramMode(session);
100
100
  });
101
101
  program.command("history").description("show the audit trail of staged / approved / applied actions").option("--last <n>", "number of events to show", "20").action(async (opts, cmd) => {
@@ -107,49 +107,49 @@ function buildProgram() {
107
107
  });
108
108
  const team = program.command("team").description("work with a team dashboard: connect, sync approved changes, suggest, invite").action(async (_opts, cmd) => {
109
109
  const session = await bootstrap(cmd);
110
- const { teamStatus } = await import("./chunks/team-PFETXIEC.js");
110
+ const { teamStatus } = await import("./chunks/team-Z3LGTAVW.js");
111
111
  await teamStatus(session);
112
112
  });
113
113
  team.command("connect").alias("join").argument("[url]", "dashboard address, e.g. http://127.0.0.1:3000").description("link this project to a dashboard with your access key (Admin or member)").action(async (url, _opts, cmd) => {
114
114
  const session = await bootstrap(cmd, { needsTty: process.env.SAARTHICLAW_TEAM_KEY ? void 0 : "`saarthiclaw team connect` (or set SAARTHICLAW_TEAM_KEY)" });
115
- const { teamConnect } = await import("./chunks/team-PFETXIEC.js");
115
+ const { teamConnect } = await import("./chunks/team-Z3LGTAVW.js");
116
116
  await teamConnect(session, url);
117
117
  });
118
118
  team.command("status").description("who you are, your level, and what is waiting").action(async (_opts, cmd) => {
119
119
  const session = await bootstrap(cmd);
120
- const { teamStatus } = await import("./chunks/team-PFETXIEC.js");
120
+ const { teamStatus } = await import("./chunks/team-Z3LGTAVW.js");
121
121
  await teamStatus(session);
122
122
  });
123
123
  team.command("sync").description("apply your changes the Admin approved; show rejections").option("-y, --yes", "apply approved changes without asking").option("-w, --wait", "keep waiting until the Admin has decided on everything").action(async (opts, cmd) => {
124
124
  const session = await bootstrap(cmd);
125
125
  const g = cmd.optsWithGlobals();
126
- const { teamSync } = await import("./chunks/team-PFETXIEC.js");
126
+ const { teamSync } = await import("./chunks/team-Z3LGTAVW.js");
127
127
  await teamSync(session, { yes: opts.yes, wait: opts.wait, allowShell: g.allowShell });
128
128
  });
129
129
  team.command("watch").description("keep this folder and the team website in step (approved website changes come down here; Admin/Trusted edits go up)").option("--once", "sync one time and exit").option("--prefer <side>", "when both sides changed a file: website | laptop").option("--interval <seconds>", "how often to check (default 2)").action(async (opts, cmd) => {
130
130
  const session = await bootstrap(cmd);
131
- const { teamWatch } = await import("./chunks/team-PFETXIEC.js");
131
+ const { teamWatch } = await import("./chunks/team-Z3LGTAVW.js");
132
132
  await teamWatch(session, opts);
133
133
  });
134
134
  team.command("suggest").argument("[idea...]", "your idea for the Admin").description("send an idea to the Admin (any level, including Suggest only)").action(async (words, _opts, cmd) => {
135
135
  const idea = joinWords(words);
136
136
  const session = await bootstrap(cmd, { needsTty: idea ? void 0 : "`saarthiclaw team suggest` without text" });
137
- const { teamSuggest } = await import("./chunks/team-PFETXIEC.js");
137
+ const { teamSuggest } = await import("./chunks/team-Z3LGTAVW.js");
138
138
  await teamSuggest(session, idea);
139
139
  });
140
140
  team.command("invite").argument("[name]", "developer's name").option("--level <level>", "trusted | needs-approval | suggest-only").description("(Admin) add a developer and print their one-time access key").action(async (name, opts, cmd) => {
141
141
  const session = await bootstrap(cmd, { needsTty: name ? void 0 : "`saarthiclaw team invite` without a name" });
142
- const { teamInvite } = await import("./chunks/team-PFETXIEC.js");
142
+ const { teamInvite } = await import("./chunks/team-Z3LGTAVW.js");
143
143
  await teamInvite(session, name ?? "", opts.level);
144
144
  });
145
145
  team.command("inbox").description("(Admin) suggestions you forwarded to the agent; run the agent on one").action(async (_opts, cmd) => {
146
146
  const session = await bootstrap(cmd);
147
- const { teamInbox } = await import("./chunks/team-PFETXIEC.js");
147
+ const { teamInbox } = await import("./chunks/team-Z3LGTAVW.js");
148
148
  await teamInbox(session);
149
149
  });
150
150
  team.command("disconnect").alias("leave").description("unlink this project from the dashboard (back to solo mode)").action(async (_opts, cmd) => {
151
151
  const session = await bootstrap(cmd, { needsTty: "`saarthiclaw team disconnect`" });
152
- const { teamDisconnect } = await import("./chunks/team-PFETXIEC.js");
152
+ const { teamDisconnect } = await import("./chunks/team-Z3LGTAVW.js");
153
153
  await teamDisconnect(session);
154
154
  });
155
155
  program.addHelpText(
@@ -181,7 +181,7 @@ async function main(argv = process.argv) {
181
181
  });
182
182
  }
183
183
  process.on("unhandledRejection", async (reason) => {
184
- const { reportError } = await import("./chunks/errors-OJZTUG74.js");
184
+ const { reportError } = await import("./chunks/errors-EOWKXBLQ.js");
185
185
  reportError(reason, debug);
186
186
  process.exit(1);
187
187
  });
@@ -203,7 +203,7 @@ async function main(argv = process.argv) {
203
203
  console.log(chalk.yellow("\nRun cancelled. Staged changes were discarded — nothing was written."));
204
204
  return 0;
205
205
  }
206
- const { reportError } = await import("./chunks/errors-OJZTUG74.js");
206
+ const { reportError } = await import("./chunks/errors-EOWKXBLQ.js");
207
207
  reportError(e, debug);
208
208
  return 1;
209
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saarthiclaw",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "An AI developer assistant that lives in your project's terminal. Ask, Plan and Agent modes — the AI proposes, you approve every change.",
5
5
  "keywords": [
6
6
  "ai",
@@ -9,6 +9,11 @@
9
9
  "coding-assistant",
10
10
  "developer-tools",
11
11
  "openrouter",
12
+ "openai",
13
+ "anthropic",
14
+ "gemini",
15
+ "groq",
16
+ "ollama",
12
17
  "code-review",
13
18
  "approval",
14
19
  "terminal",
@@ -1,22 +0,0 @@
1
- import {
2
- runPlanMode,
3
- stepPrompt
4
- } from "./chunk-N33J57DT.js";
5
- import "./chunk-HFMRQTXE.js";
6
- import "./chunk-OF5PQQQ4.js";
7
- import "./chunk-CGJ4VEUD.js";
8
- import "./chunk-QRAFFI5V.js";
9
- import "./chunk-S6YZ2A73.js";
10
- import "./chunk-33MUQ6E5.js";
11
- import "./chunk-HGBZ55ND.js";
12
- import "./chunk-KAWTUWO2.js";
13
- import "./chunk-5WH3FNFK.js";
14
- import "./chunk-H2FAKNUI.js";
15
- import "./chunk-R4PMMMD5.js";
16
- import "./chunk-2GDAWRT7.js";
17
- import "./chunk-MMIJKDOU.js";
18
- import "./chunk-IT46XDPQ.js";
19
- export {
20
- runPlanMode,
21
- stepPrompt
22
- };