osagent 0.1.80 → 0.1.81
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/cli.js +22 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -146587,7 +146587,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
146587
146587
|
};
|
|
146588
146588
|
}
|
|
146589
146589
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
146590
|
-
const version3 = "0.1.
|
|
146590
|
+
const version3 = "0.1.81";
|
|
146591
146591
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
146592
146592
|
const baseHeaders = {
|
|
146593
146593
|
"User-Agent": userAgent2
|
|
@@ -335543,7 +335543,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
335543
335543
|
// packages/cli/src/utils/version.ts
|
|
335544
335544
|
async function getCliVersion() {
|
|
335545
335545
|
const pkgJson = await getPackageJson();
|
|
335546
|
-
return "0.1.
|
|
335546
|
+
return "0.1.81";
|
|
335547
335547
|
}
|
|
335548
335548
|
__name(getCliVersion, "getCliVersion");
|
|
335549
335549
|
|
|
@@ -339730,8 +339730,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
339730
339730
|
|
|
339731
339731
|
// packages/cli/src/generated/git-commit.ts
|
|
339732
339732
|
init_esbuild_shims();
|
|
339733
|
-
var GIT_COMMIT_INFO2 = "
|
|
339734
|
-
var CLI_VERSION2 = "0.1.
|
|
339733
|
+
var GIT_COMMIT_INFO2 = "fb83e12";
|
|
339734
|
+
var CLI_VERSION2 = "0.1.81";
|
|
339735
339735
|
|
|
339736
339736
|
// packages/cli/src/utils/systemInfo.ts
|
|
339737
339737
|
async function getNpmVersion() {
|
|
@@ -380777,12 +380777,25 @@ var InputPrompt = /* @__PURE__ */ __name(({
|
|
|
380777
380777
|
const [dirs, setDirs] = (0, import_react103.useState)(
|
|
380778
380778
|
config2.getWorkspaceContext().getDirectories()
|
|
380779
380779
|
);
|
|
380780
|
-
const dirsChanged = config2.getWorkspaceContext().getDirectories();
|
|
380781
380780
|
(0, import_react103.useEffect)(() => {
|
|
380782
|
-
|
|
380783
|
-
|
|
380784
|
-
|
|
380785
|
-
|
|
380781
|
+
const checkDirs = /* @__PURE__ */ __name(() => {
|
|
380782
|
+
const currentDirs = config2.getWorkspaceContext().getDirectories();
|
|
380783
|
+
setDirs((prev) => {
|
|
380784
|
+
if (prev.length !== currentDirs.length) {
|
|
380785
|
+
return currentDirs;
|
|
380786
|
+
}
|
|
380787
|
+
for (let i = 0; i < prev.length; i++) {
|
|
380788
|
+
if (prev[i] !== currentDirs[i]) {
|
|
380789
|
+
return currentDirs;
|
|
380790
|
+
}
|
|
380791
|
+
}
|
|
380792
|
+
return prev;
|
|
380793
|
+
});
|
|
380794
|
+
}, "checkDirs");
|
|
380795
|
+
checkDirs();
|
|
380796
|
+
const interval = setInterval(checkDirs, 2e3);
|
|
380797
|
+
return () => clearInterval(interval);
|
|
380798
|
+
}, [config2]);
|
|
380786
380799
|
const [reverseSearchActive, setReverseSearchActive] = (0, import_react103.useState)(false);
|
|
380787
380800
|
const [commandSearchActive, setCommandSearchActive] = (0, import_react103.useState)(false);
|
|
380788
380801
|
const [textBeforeReverseSearch, setTextBeforeReverseSearch] = (0, import_react103.useState)("");
|