osagent 0.1.11 → 0.1.12

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 (2) hide show
  1. package/dist/cli.js +116 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -146108,7 +146108,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
146108
146108
  };
146109
146109
  }
146110
146110
  async function createContentGenerator(config, gcConfig, sessionId2, isInitialAuth) {
146111
- const version2 = "0.1.11";
146111
+ const version2 = "0.1.12";
146112
146112
  const userAgent2 = `OSAgent/${version2} (${process.platform}; ${process.arch})`;
146113
146113
  const baseHeaders = {
146114
146114
  "User-Agent": userAgent2
@@ -309520,7 +309520,7 @@ __name(getPackageJson, "getPackageJson");
309520
309520
  // packages/cli/src/utils/version.ts
309521
309521
  async function getCliVersion() {
309522
309522
  const pkgJson = await getPackageJson();
309523
- return "0.1.11";
309523
+ return "0.1.12";
309524
309524
  }
309525
309525
  __name(getCliVersion, "getCliVersion");
309526
309526
 
@@ -313525,7 +313525,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
313525
313525
 
313526
313526
  // packages/cli/src/generated/git-commit.ts
313527
313527
  init_esbuild_shims();
313528
- var GIT_COMMIT_INFO2 = "3ec9379";
313528
+ var GIT_COMMIT_INFO2 = "a300790";
313529
313529
 
313530
313530
  // packages/cli/src/utils/systemInfo.ts
313531
313531
  async function getNpmVersion() {
@@ -314585,6 +314585,92 @@ var corgiCommand = {
314585
314585
  }, "action")
314586
314586
  };
314587
314587
 
314588
+ // packages/cli/src/ui/commands/dangerouslyCommand.ts
314589
+ init_esbuild_shims();
314590
+ var dangerouslyCommand = {
314591
+ name: "dangerously",
314592
+ get description() {
314593
+ return t2("Toggle dangerous mode - auto-accept all tool executions without confirmation");
314594
+ },
314595
+ kind: "built-in" /* BUILT_IN */,
314596
+ subCommands: [
314597
+ {
314598
+ name: "on",
314599
+ get description() {
314600
+ return t2("Enable dangerous mode - bypass all confirmations");
314601
+ },
314602
+ kind: "built-in" /* BUILT_IN */,
314603
+ action: /* @__PURE__ */ __name(async (context2) => {
314604
+ const settings = context2.services.settings;
314605
+ if (settings) {
314606
+ settings.setValue("User" /* User */, "tools.autoAccept", true);
314607
+ }
314608
+ return {
314609
+ type: "message",
314610
+ messageType: "info",
314611
+ content: t2("\u26A0\uFE0F DANGEROUS MODE ENABLED\nAll tool executions will be auto-accepted without confirmation.\nUse /dangerously off to disable.")
314612
+ };
314613
+ }, "action")
314614
+ },
314615
+ {
314616
+ name: "off",
314617
+ get description() {
314618
+ return t2("Disable dangerous mode - require confirmations");
314619
+ },
314620
+ kind: "built-in" /* BUILT_IN */,
314621
+ action: /* @__PURE__ */ __name(async (context2) => {
314622
+ const settings = context2.services.settings;
314623
+ if (settings) {
314624
+ settings.setValue("User" /* User */, "tools.autoAccept", false);
314625
+ }
314626
+ return {
314627
+ type: "message",
314628
+ messageType: "info",
314629
+ content: t2("Safe mode restored. Tool executions will require confirmation.")
314630
+ };
314631
+ }, "action")
314632
+ }
314633
+ ],
314634
+ action: /* @__PURE__ */ __name(async (context2, args) => {
314635
+ const settings = context2.services.settings;
314636
+ const currentValue = settings?.merged.tools?.autoAccept ?? false;
314637
+ if (args.trim() === "") {
314638
+ const newValue = !currentValue;
314639
+ if (settings) {
314640
+ settings.setValue("User" /* User */, "tools.autoAccept", newValue);
314641
+ }
314642
+ if (newValue) {
314643
+ return {
314644
+ type: "message",
314645
+ messageType: "info",
314646
+ content: t2("\u26A0\uFE0F DANGEROUS MODE ENABLED\nAll tool executions will be auto-accepted without confirmation.\nUse /dangerously off to disable.")
314647
+ };
314648
+ } else {
314649
+ return {
314650
+ type: "message",
314651
+ messageType: "info",
314652
+ content: t2("Safe mode restored. Tool executions will require confirmation.")
314653
+ };
314654
+ }
314655
+ }
314656
+ return {
314657
+ type: "message",
314658
+ messageType: "info",
314659
+ content: t2(`Dangerous mode is currently: ${currentValue ? "ON" : "OFF"}
314660
+ Use /dangerously on|off to change.`)
314661
+ };
314662
+ }, "action")
314663
+ };
314664
+ var yoloCommand = {
314665
+ name: "yolo",
314666
+ get description() {
314667
+ return t2("Alias for /dangerously - auto-accept all tool executions");
314668
+ },
314669
+ kind: "built-in" /* BUILT_IN */,
314670
+ action: dangerouslyCommand.action,
314671
+ subCommands: dangerouslyCommand.subCommands
314672
+ };
314673
+
314588
314674
  // packages/cli/src/ui/commands/delegateCommand.ts
314589
314675
  init_esbuild_shims();
314590
314676
  var BUILTIN_AGENTS = [
@@ -316623,6 +316709,30 @@ var quitCommand = {
316623
316709
  }, "action")
316624
316710
  };
316625
316711
 
316712
+ // packages/cli/src/ui/commands/resetCommand.ts
316713
+ init_esbuild_shims();
316714
+ var resetCommand = {
316715
+ name: "reset",
316716
+ get description() {
316717
+ return t2("Reset the conversation and start fresh");
316718
+ },
316719
+ kind: "built-in" /* BUILT_IN */,
316720
+ action: /* @__PURE__ */ __name(async (context2, _args) => {
316721
+ const OSAClient2 = context2.services.config?.getOSAClient();
316722
+ if (OSAClient2) {
316723
+ context2.ui.setDebugMessage(t2("Resetting conversation..."));
316724
+ await OSAClient2.resetChat();
316725
+ }
316726
+ uiTelemetryService.setLastPromptTokenCount(0);
316727
+ context2.ui.clear();
316728
+ return {
316729
+ type: "message",
316730
+ messageType: "info",
316731
+ content: t2("Conversation reset. Ready for a fresh start.")
316732
+ };
316733
+ }, "action")
316734
+ };
316735
+
316626
316736
  // packages/cli/src/ui/commands/restoreCommand.ts
316627
316737
  init_esbuild_shims();
316628
316738
  import * as fs75 from "node:fs/promises";
@@ -318362,6 +318472,7 @@ var BuiltinCommandLoader = class {
318362
318472
  openaiProfileCommand,
318363
318473
  copyCommand,
318364
318474
  corgiCommand,
318475
+ dangerouslyCommand,
318365
318476
  delegateCommand,
318366
318477
  docsCommand,
318367
318478
  directoryCommand,
@@ -318377,6 +318488,7 @@ var BuiltinCommandLoader = class {
318377
318488
  ...this.config?.getFolderTrust() ? [permissionsCommand] : [],
318378
318489
  quitCommand,
318379
318490
  quitConfirmCommand,
318491
+ resetCommand,
318380
318492
  restoreCommand(this.config),
318381
318493
  statsCommand,
318382
318494
  summaryCommand,
@@ -318386,6 +318498,7 @@ var BuiltinCommandLoader = class {
318386
318498
  spCommand,
318387
318499
  systemPromptCommand,
318388
318500
  vimCommand,
318501
+ yoloCommand,
318389
318502
  setupGithubCommand,
318390
318503
  terminalSetupCommand
318391
318504
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osagent",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
5
  "author": "Roberto Luna",
6
6
  "license": "Apache-2.0",