osagent 0.2.1 → 0.2.2
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/README.md +42 -0
- package/cli.js +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,6 +42,48 @@ npm run build
|
|
|
42
42
|
npm link
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
### Troubleshooting Installation
|
|
46
|
+
|
|
47
|
+
**Never use `sudo` with npm!** Using `sudo npm install -g` creates permission problems.
|
|
48
|
+
|
|
49
|
+
If you see permission errors:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Fix npm cache permissions
|
|
53
|
+
sudo chown -R $(whoami) ~/.npm
|
|
54
|
+
|
|
55
|
+
# If using nvm, also fix nvm directory
|
|
56
|
+
sudo chown -R $(whoami) ~/.nvm
|
|
57
|
+
|
|
58
|
+
# Clear npm cache
|
|
59
|
+
npm cache clean --force
|
|
60
|
+
|
|
61
|
+
# Now install without sudo
|
|
62
|
+
npm install -g osagent
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
If updates don't take effect (old version showing):
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm cache clean --force
|
|
69
|
+
npm install -g osagent@latest --force
|
|
70
|
+
osagent --version
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Recommended: Use nvm** to avoid permission issues entirely:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Install nvm
|
|
77
|
+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
|
|
78
|
+
|
|
79
|
+
# Restart terminal, then:
|
|
80
|
+
nvm install 20
|
|
81
|
+
nvm use 20
|
|
82
|
+
|
|
83
|
+
# Now npm never needs sudo
|
|
84
|
+
npm install -g osagent
|
|
85
|
+
```
|
|
86
|
+
|
|
45
87
|
## Quick Start
|
|
46
88
|
|
|
47
89
|
### Option 1: Use with Ollama (Local - Recommended)
|
package/cli.js
CHANGED
|
@@ -148873,7 +148873,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
148873
148873
|
};
|
|
148874
148874
|
}
|
|
148875
148875
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
148876
|
-
const version3 = "0.2.
|
|
148876
|
+
const version3 = "0.2.2";
|
|
148877
148877
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
148878
148878
|
const baseHeaders = {
|
|
148879
148879
|
"User-Agent": userAgent2
|
|
@@ -337241,7 +337241,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
337241
337241
|
// packages/cli/src/utils/version.ts
|
|
337242
337242
|
async function getCliVersion() {
|
|
337243
337243
|
const pkgJson = await getPackageJson();
|
|
337244
|
-
return "0.2.
|
|
337244
|
+
return "0.2.2";
|
|
337245
337245
|
}
|
|
337246
337246
|
__name(getCliVersion, "getCliVersion");
|
|
337247
337247
|
|
|
@@ -341443,8 +341443,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
341443
341443
|
|
|
341444
341444
|
// packages/cli/src/generated/git-commit.ts
|
|
341445
341445
|
init_esbuild_shims();
|
|
341446
|
-
var GIT_COMMIT_INFO2 = "
|
|
341447
|
-
var CLI_VERSION2 = "0.2.
|
|
341446
|
+
var GIT_COMMIT_INFO2 = "d10e665";
|
|
341447
|
+
var CLI_VERSION2 = "0.2.2";
|
|
341448
341448
|
|
|
341449
341449
|
// packages/cli/src/utils/systemInfo.ts
|
|
341450
341450
|
async function getNpmVersion() {
|
|
@@ -380773,6 +380773,7 @@ var DialogManager = /* @__PURE__ */ __name(({
|
|
|
380773
380773
|
OpenAIKeyPrompt,
|
|
380774
380774
|
{
|
|
380775
380775
|
onSubmit: (apiKey, baseUrl, model) => {
|
|
380776
|
+
process34.env["OLLAMA_API_KEY"] = apiKey;
|
|
380776
380777
|
uiActions.handleAuthSelect(AuthType2.OLLAMA_CLOUD, "User" /* User */, {
|
|
380777
380778
|
apiKey,
|
|
380778
380779
|
baseUrl: baseUrl || "https://ollama.com/v1",
|