osagent 0.1.45 → 0.1.47
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/cli.js +8 -5
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -146205,7 +146205,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
146205
146205
|
};
|
|
146206
146206
|
}
|
|
146207
146207
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
146208
|
-
const version3 = "0.1.
|
|
146208
|
+
const version3 = "0.1.47";
|
|
146209
146209
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
146210
146210
|
const baseHeaders = {
|
|
146211
146211
|
"User-Agent": userAgent2
|
|
@@ -329137,7 +329137,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
329137
329137
|
// packages/cli/src/utils/version.ts
|
|
329138
329138
|
async function getCliVersion() {
|
|
329139
329139
|
const pkgJson = await getPackageJson();
|
|
329140
|
-
return "0.1.
|
|
329140
|
+
return "0.1.47";
|
|
329141
329141
|
}
|
|
329142
329142
|
__name(getCliVersion, "getCliVersion");
|
|
329143
329143
|
|
|
@@ -333306,8 +333306,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
333306
333306
|
|
|
333307
333307
|
// packages/cli/src/generated/git-commit.ts
|
|
333308
333308
|
init_esbuild_shims();
|
|
333309
|
-
var GIT_COMMIT_INFO2 = "
|
|
333310
|
-
var CLI_VERSION2 = "0.1.
|
|
333309
|
+
var GIT_COMMIT_INFO2 = "f286542";
|
|
333310
|
+
var CLI_VERSION2 = "0.1.47";
|
|
333311
333311
|
|
|
333312
333312
|
// packages/cli/src/utils/systemInfo.ts
|
|
333313
333313
|
async function getNpmVersion() {
|
|
@@ -337833,7 +337833,10 @@ __name(isVisionModel, "isVisionModel");
|
|
|
337833
337833
|
function getModelContextWindow(modelId) {
|
|
337834
337834
|
const allModels = getAllAvailableModels();
|
|
337835
337835
|
const model = allModels.find((m) => m.id === modelId);
|
|
337836
|
-
|
|
337836
|
+
if (model?.contextWindow) {
|
|
337837
|
+
return model.contextWindow;
|
|
337838
|
+
}
|
|
337839
|
+
return tokenLimit(modelId);
|
|
337837
337840
|
}
|
|
337838
337841
|
__name(getModelContextWindow, "getModelContextWindow");
|
|
337839
337842
|
function formatContextWindow(tokens) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "osagent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "OS Agent - AI-powered CLI for autonomous coding with Ollama Cloud and Qwen models",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/osagent/osagent:0.1.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/osagent/osagent:0.1.47"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"tiktoken": "^1.0.21",
|