@aigne/cli 1.59.0-beta.10 → 1.59.0-beta.11
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/CHANGELOG.md +25 -0
- package/dist/commands/app/agent.js +1 -1
- package/dist/commands/run.js +10 -9
- package/dist/utils/aigne-hub/store/index.js +2 -2
- package/dist/utils/yargs.d.ts +4 -0
- package/dist/utils/yargs.js +4 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.59.0-beta.11](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.10...cli-v1.59.0-beta.11) (2025-12-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add session compact support for AIAgent ([#863](https://github.com/AIGNE-io/aigne-framework/issues/863)) ([9010918](https://github.com/AIGNE-io/aigne-framework/commit/9010918cd3f18b02b5c60ddc9ed5c34b568d0b28))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @aigne/afs bumped to 1.4.0-beta.5
|
|
16
|
+
* @aigne/afs-history bumped to 1.2.0-beta.5
|
|
17
|
+
* @aigne/afs-local-fs bumped to 1.4.0-beta.8
|
|
18
|
+
* @aigne/agent-library bumped to 1.24.0-beta.10
|
|
19
|
+
* @aigne/agentic-memory bumped to 1.1.6-beta.8
|
|
20
|
+
* @aigne/aigne-hub bumped to 0.10.16-beta.12
|
|
21
|
+
* @aigne/core bumped to 1.72.0-beta.8
|
|
22
|
+
* @aigne/default-memory bumped to 1.4.0-beta.7
|
|
23
|
+
* @aigne/openai bumped to 0.16.16-beta.8
|
|
24
|
+
* @aigne/secrets bumped to 0.1.6-beta.8
|
|
25
|
+
* devDependencies
|
|
26
|
+
* @aigne/test-utils bumped to 0.5.69-beta.8
|
|
27
|
+
|
|
3
28
|
## [1.59.0-beta.10](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.9...cli-v1.59.0-beta.10) (2025-12-26)
|
|
4
29
|
|
|
5
30
|
|
package/dist/commands/run.js
CHANGED
|
@@ -60,15 +60,16 @@ export function createRunCommand({ aigneFilePath, } = {}) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
const path = aigneFilePath || options.path || ".";
|
|
63
|
-
if (!(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
if (!isUrl(path) &&
|
|
64
|
+
!(await findAIGNEFile(path).catch((error) => {
|
|
65
|
+
if (options._[0] !== "run") {
|
|
66
|
+
yargsInstance?.showHelp();
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
throw error;
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}))) {
|
|
72
73
|
return;
|
|
73
74
|
}
|
|
74
75
|
// Parse model options for loading application
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { logger } from "@aigne/core/utils/logger.js";
|
|
2
|
-
import { AIGNE_ENV_FILE } from "../constants.js";
|
|
2
|
+
import { AIGNE_ENV_FILE, isTest } from "../constants.js";
|
|
3
3
|
import FileStore from "./file.js";
|
|
4
4
|
import KeyringStore from "./keytar.js";
|
|
5
5
|
import { migrateFileToKeyring } from "./migrate.js";
|
|
@@ -32,7 +32,7 @@ const getSecretStore = async () => {
|
|
|
32
32
|
cachedSecretStore = await createSecretStore({
|
|
33
33
|
filepath: AIGNE_ENV_FILE,
|
|
34
34
|
serviceName: "aigne-hub",
|
|
35
|
-
|
|
35
|
+
forceKeytarUnavailable: Boolean(isTest),
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
return cachedSecretStore;
|
package/dist/utils/yargs.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { ZodType } from "zod";
|
|
|
5
5
|
export type InferArgv<T> = T extends Argv<infer U> ? U : never;
|
|
6
6
|
export declare const withRunAgentCommonOptions: (yargs: Argv) => Argv<{
|
|
7
7
|
chat: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
"session-id": string | undefined;
|
|
8
10
|
} & {
|
|
9
11
|
model: string | undefined;
|
|
10
12
|
} & {
|
|
@@ -56,6 +58,8 @@ export declare function withAgentInputSchema(yargs: Argv, options: Pick<Agent, "
|
|
|
56
58
|
optionalInputs?: string[];
|
|
57
59
|
}): Argv<{
|
|
58
60
|
chat: boolean;
|
|
61
|
+
} & {
|
|
62
|
+
"session-id": string | undefined;
|
|
59
63
|
} & {
|
|
60
64
|
model: string | undefined;
|
|
61
65
|
} & {
|
package/dist/utils/yargs.js
CHANGED
|
@@ -15,6 +15,10 @@ export const withRunAgentCommonOptions = (yargs) => yargs
|
|
|
15
15
|
describe: "Run chat loop in terminal",
|
|
16
16
|
type: "boolean",
|
|
17
17
|
default: false,
|
|
18
|
+
})
|
|
19
|
+
.option("session-id", {
|
|
20
|
+
describe: "Session ID for chat-based agents to maintain context across interactions",
|
|
21
|
+
type: "string",
|
|
18
22
|
})
|
|
19
23
|
.option("model", {
|
|
20
24
|
group: MODEL_OPTIONS_GROUP_NAME,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.59.0-beta.
|
|
3
|
+
"version": "1.59.0-beta.11",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
"yoctocolors-cjs": "^2.1.3",
|
|
91
91
|
"zod": "^3.25.67",
|
|
92
92
|
"zod-to-json-schema": "^3.24.6",
|
|
93
|
-
"@aigne/afs": "^1.4.0-beta.
|
|
94
|
-
"@aigne/afs-
|
|
95
|
-
"@aigne/afs-
|
|
96
|
-
"@aigne/
|
|
97
|
-
"@aigne/
|
|
98
|
-
"@aigne/
|
|
99
|
-
"@aigne/default-memory": "^1.4.0-beta.
|
|
100
|
-
"@aigne/aigne-hub": "^0.10.16-beta.11",
|
|
93
|
+
"@aigne/afs": "^1.4.0-beta.5",
|
|
94
|
+
"@aigne/afs-local-fs": "^1.4.0-beta.8",
|
|
95
|
+
"@aigne/afs-history": "^1.2.0-beta.5",
|
|
96
|
+
"@aigne/agent-library": "^1.24.0-beta.10",
|
|
97
|
+
"@aigne/agentic-memory": "^1.1.6-beta.8",
|
|
98
|
+
"@aigne/aigne-hub": "^0.10.16-beta.12",
|
|
99
|
+
"@aigne/default-memory": "^1.4.0-beta.7",
|
|
101
100
|
"@aigne/observability-api": "^0.11.14-beta.1",
|
|
102
|
-
"@aigne/
|
|
103
|
-
"@aigne/
|
|
101
|
+
"@aigne/core": "^1.72.0-beta.8",
|
|
102
|
+
"@aigne/openai": "^0.16.16-beta.8",
|
|
103
|
+
"@aigne/secrets": "^0.1.6-beta.8"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@inquirer/testing": "^2.1.50",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"rimraf": "^6.0.1",
|
|
118
118
|
"typescript": "^5.9.2",
|
|
119
119
|
"ufo": "^1.6.1",
|
|
120
|
-
"@aigne/test-utils": "^0.5.69-beta.
|
|
120
|
+
"@aigne/test-utils": "^0.5.69-beta.8"
|
|
121
121
|
},
|
|
122
122
|
"scripts": {
|
|
123
123
|
"lint": "tsc --noEmit",
|
|
124
124
|
"build": "tsc --build tsconfig.build.json",
|
|
125
125
|
"clean": "rimraf dist test/coverage templates/coverage",
|
|
126
|
-
"test": "run
|
|
127
|
-
"test:coverage": "run
|
|
126
|
+
"test": "npm run test:src && npm run test:templates",
|
|
127
|
+
"test:coverage": "npm run test:src:coverage && npm run test:templates:coverage",
|
|
128
128
|
"test:src": "bun --cwd test test",
|
|
129
129
|
"test:src:coverage": "bun --cwd test test --coverage --coverage-reporter=lcov --coverage-reporter=text",
|
|
130
130
|
"test:templates": "cd templates && node --test",
|