osagent 0.1.62 → 0.1.63

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/cli.js +11 -8
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -146557,7 +146557,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
146557
146557
  };
146558
146558
  }
146559
146559
  async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
146560
- const version3 = "0.1.62";
146560
+ const version3 = "0.1.63";
146561
146561
  const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
146562
146562
  const baseHeaders = {
146563
146563
  "User-Agent": userAgent2
@@ -335686,7 +335686,7 @@ __name(getPackageJson, "getPackageJson");
335686
335686
  // packages/cli/src/utils/version.ts
335687
335687
  async function getCliVersion() {
335688
335688
  const pkgJson = await getPackageJson();
335689
- return "0.1.62";
335689
+ return "0.1.63";
335690
335690
  }
335691
335691
  __name(getCliVersion, "getCliVersion");
335692
335692
 
@@ -339855,8 +339855,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
339855
339855
 
339856
339856
  // packages/cli/src/generated/git-commit.ts
339857
339857
  init_esbuild_shims();
339858
- var GIT_COMMIT_INFO2 = "7c671d4";
339859
- var CLI_VERSION2 = "0.1.62";
339858
+ var GIT_COMMIT_INFO2 = "cdc54fc";
339859
+ var CLI_VERSION2 = "0.1.63";
339860
339860
 
339861
339861
  // packages/cli/src/utils/systemInfo.ts
339862
339862
  async function getNpmVersion() {
@@ -391934,10 +391934,13 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
391934
391934
  setShowInitScreen(true);
391935
391935
  }
391936
391936
  }, [isFirstRun, isConfigInitialized, isAuthDialogOpen, isAuthenticating, showInitScreen]);
391937
+ const historyManagerRef = (0, import_react152.useRef)(historyManager);
391938
+ historyManagerRef.current = historyManager;
391937
391939
  (0, import_react152.useEffect)(() => {
391938
- if (isConfigInitialized && projectGreeting && !greetingShownRef.current && !isAuthenticating && !isAuthDialogOpen && !showInitScreen && historyManager.history.length === 0) {
391940
+ if (greetingShownRef.current) return;
391941
+ if (isConfigInitialized && projectGreeting && !isAuthenticating && !isAuthDialogOpen && !showInitScreen && historyManagerRef.current.history.length === 0) {
391939
391942
  greetingShownRef.current = true;
391940
- historyManager.addItem(
391943
+ historyManagerRef.current.addItem(
391941
391944
  {
391942
391945
  type: "info" /* INFO */,
391943
391946
  text: projectGreeting
@@ -391950,8 +391953,8 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
391950
391953
  projectGreeting,
391951
391954
  isAuthenticating,
391952
391955
  isAuthDialogOpen,
391953
- showInitScreen,
391954
- historyManager
391956
+ showInitScreen
391957
+ // Removed historyManager - use ref to prevent infinite loop
391955
391958
  ]);
391956
391959
  (0, import_react152.useEffect)(() => {
391957
391960
  if (settings.merged.security?.auth?.enforcedType && settings.merged.security?.auth.selectedType && settings.merged.security?.auth.enforcedType !== settings.merged.security?.auth.selectedType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osagent",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
5
5
  "repository": {
6
6
  "type": "git",