@aigne/cli 1.59.0-beta.12 → 1.59.0-beta.13

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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.59.0-beta.13](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.12...cli-v1.59.0-beta.13) (2026-01-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * **core:** add cross session user memory support ([#873](https://github.com/AIGNE-io/aigne-framework/issues/873)) ([f377aa1](https://github.com/AIGNE-io/aigne-framework/commit/f377aa17f2cf8004fd3225ade4a37fd90af1292f))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **cli:** add askUserQuestion for run-skill command ([9c621e7](https://github.com/AIGNE-io/aigne-framework/commit/9c621e7c55501d129e71966da79514717a4579ab))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * The following workspace dependencies were updated
19
+ * dependencies
20
+ * @aigne/afs-history bumped to 1.2.0-beta.6
21
+ * @aigne/afs-local-fs bumped to 1.4.0-beta.10
22
+ * @aigne/agent-library bumped to 1.24.0-beta.12
23
+ * @aigne/agentic-memory bumped to 1.1.6-beta.10
24
+ * @aigne/aigne-hub bumped to 0.10.16-beta.14
25
+ * @aigne/core bumped to 1.72.0-beta.10
26
+ * @aigne/default-memory bumped to 1.4.0-beta.9
27
+ * @aigne/openai bumped to 0.16.16-beta.10
28
+ * @aigne/secrets bumped to 0.1.6-beta.10
29
+ * devDependencies
30
+ * @aigne/test-utils bumped to 0.5.69-beta.10
31
+
3
32
  ## [1.59.0-beta.12](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.59.0-beta.11...cli-v1.59.0-beta.12) (2026-01-02)
4
33
 
5
34
 
@@ -1,4 +1,5 @@
1
1
  import assert from "node:assert";
2
+ import { DEFAULT_USER_ID } from "@aigne/cli/constants.js";
2
3
  import { logger } from "@aigne/core/utils/logger.js";
3
4
  import { v7 } from "@aigne/uuid";
4
5
  import { runAgentWithAIGNE } from "../../utils/run-with-aigne.js";
@@ -99,6 +100,7 @@ export async function invokeAgent(options) {
99
100
  input,
100
101
  interactive: options.input.interactive,
101
102
  sessionId: options.input.sessionId || v7(),
103
+ userId: DEFAULT_USER_ID,
102
104
  });
103
105
  }
104
106
  finally {
@@ -2,6 +2,7 @@ import { basename } from "node:path";
2
2
  import { AFSHistory } from "@aigne/afs-history";
3
3
  import { LocalFS } from "@aigne/afs-local-fs";
4
4
  import AgentSkillManager from "@aigne/agent-library/agent-skill-manager";
5
+ import AskUserQuestion from "@aigne/agent-library/ask-user-question";
5
6
  import BashAgent from "@aigne/agent-library/bash";
6
7
  import { AIGNE, FunctionAgent } from "@aigne/core";
7
8
  import { z } from "zod";
@@ -45,6 +46,21 @@ export function createRunSkillCommand() {
45
46
  taskRenderMode: "collapse",
46
47
  skills: [
47
48
  new BashAgent({
49
+ description: `\
50
+ Execute bash scripts and return stdout and stderr output.
51
+
52
+ When to use:
53
+ - Running system commands (git, curl, etc.)
54
+ - Executing build tools (npm, pip, make, etc.)
55
+ - Running code scripts (python, node, etc.)
56
+
57
+ Important:
58
+ - Do NOT use bash for file operations. Use AFS tools instead (afs_list, afs_read, afs_write, afs_edit, afs_search).
59
+ - Do NOT use 'cd'. The working directory is already set to workspace. Use relative paths directly.
60
+ - Do NOT use 'npm i -g' or 'pip install --user'. Install dependencies locally in workspace:
61
+ - For Node.js: Use 'npm install <pkg>' (local) or 'npx <pkg>' (one-time run without install).
62
+ - For Python: Use 'pip install <pkg> -t .' or 'python -m venv .venv && source .venv/bin/activate && pip install <pkg>'.
63
+ `,
48
64
  sandbox: false,
49
65
  permissions: {
50
66
  defaultMode: "ask",
@@ -59,14 +75,22 @@ export function createRunSkillCommand() {
59
75
  }),
60
76
  },
61
77
  }),
78
+ new AskUserQuestion(),
62
79
  ],
63
80
  afs: {
64
81
  modules: [
65
82
  new AFSHistory({}),
83
+ new LocalFS({
84
+ name: "workspace",
85
+ localPath: process.cwd(),
86
+ description: `\
87
+ Current working directory. All temporary files should be written here using absolute AFS paths (e.g., /modules/workspace/temp.py).
88
+ Note: Bash is already running in this directory, so do NOT use 'cd /modules/workspace' in scripts. Use relative paths directly (e.g., python temp.py).`,
89
+ }),
66
90
  ...options.skill.map((path) => new LocalFS({
67
91
  name: basename(path),
68
92
  localPath: path,
69
- description: `Agent Skill from local path ${path}`,
93
+ description: "Contains Agent Skills. Use 'Skill' tool to invoke skills from this module.",
70
94
  agentSkills: true,
71
95
  })),
72
96
  ],
@@ -3,3 +3,4 @@ export declare const AIGNE_CLI_VERSION: any;
3
3
  export declare const availableMemories: (typeof DefaultMemory)[];
4
4
  export declare const AIGNE_HUB_CREDITS_NOT_ENOUGH_ERROR_TYPE = "NOT_ENOUGH";
5
5
  export declare const CHAT_MODEL_OPTIONS: string[];
6
+ export declare const DEFAULT_USER_ID = "cli-user";
package/dist/constants.js CHANGED
@@ -17,3 +17,4 @@ export const CHAT_MODEL_OPTIONS = [
17
17
  "preferInputFileType",
18
18
  "reasoningEffort",
19
19
  ];
20
+ export const DEFAULT_USER_ID = "cli-user";
@@ -1,6 +1,7 @@
1
1
  import { type Message, type UserAgent } from "@aigne/core";
2
2
  export declare const DEFAULT_CHAT_INPUT_KEY = "message";
3
3
  export interface ChatLoopOptions {
4
+ userId?: string;
4
5
  sessionId?: string;
5
6
  initialCall?: Message | string;
6
7
  welcome?: string;
@@ -75,7 +75,7 @@ async function callAgent(userAgent, input, options) {
75
75
  const tracer = new TerminalTracer(userAgent.context, options);
76
76
  await tracer.run(userAgent, typeof input === "string"
77
77
  ? { ...options.input, [options.inputKey || DEFAULT_CHAT_INPUT_KEY]: input }
78
- : { ...options.input, ...input }, { userContext: { sessionId: options.sessionId } });
78
+ : { ...options.input, ...input }, { userContext: { sessionId: options.sessionId, userId: options.userId } });
79
79
  }
80
80
  const COMMANDS = {
81
81
  "/exit": () => ({ exit: true }),
@@ -15,7 +15,8 @@ export declare function runWithAIGNE(agentCreator: ((aigne: AIGNE) => PromiseOrV
15
15
  modelOptions?: ChatModelInputOptions;
16
16
  outputKey?: string;
17
17
  }): Promise<void>;
18
- export declare function runAgentWithAIGNE(aigne: AIGNE, agent: Agent, { sessionId, outputKey, outputFileKey, chatLoopOptions, ...options }?: {
18
+ export declare function runAgentWithAIGNE(aigne: AIGNE, agent: Agent, { userId, sessionId, outputKey, outputFileKey, chatLoopOptions, ...options }?: {
19
+ userId?: string;
19
20
  sessionId?: string;
20
21
  outputKey?: string;
21
22
  outputFileKey?: string;
@@ -84,7 +84,7 @@ export async function runWithAIGNE(agentCreator, { aigne, argv = process.argv, c
84
84
  process.exit(1);
85
85
  });
86
86
  }
87
- export async function runAgentWithAIGNE(aigne, agent, { sessionId, outputKey, outputFileKey, chatLoopOptions, ...options } = {}) {
87
+ export async function runAgentWithAIGNE(aigne, agent, { userId, sessionId, outputKey, outputFileKey, chatLoopOptions, ...options } = {}) {
88
88
  if (options.output) {
89
89
  const outputPath = isAbsolute(options.output)
90
90
  ? options.output
@@ -113,6 +113,7 @@ export async function runAgentWithAIGNE(aigne, agent, { sessionId, outputKey, ou
113
113
  inputFileKey: agent instanceof AIAgent ? agent.inputFileKey : undefined,
114
114
  input: options.input,
115
115
  sessionId,
116
+ userId,
116
117
  });
117
118
  return;
118
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.59.0-beta.12",
3
+ "version": "1.59.0-beta.13",
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-local-fs": "^1.4.0-beta.9",
94
93
  "@aigne/afs": "^1.4.0-beta.5",
95
- "@aigne/agent-library": "^1.24.0-beta.11",
96
- "@aigne/agentic-memory": "^1.1.6-beta.9",
97
- "@aigne/afs-history": "^1.2.0-beta.5",
98
- "@aigne/aigne-hub": "^0.10.16-beta.13",
99
- "@aigne/core": "^1.72.0-beta.9",
94
+ "@aigne/afs-history": "^1.2.0-beta.6",
95
+ "@aigne/agent-library": "^1.24.0-beta.12",
96
+ "@aigne/afs-local-fs": "^1.4.0-beta.10",
97
+ "@aigne/agentic-memory": "^1.1.6-beta.10",
98
+ "@aigne/core": "^1.72.0-beta.10",
100
99
  "@aigne/observability-api": "^0.11.14-beta.1",
101
- "@aigne/openai": "^0.16.16-beta.9",
102
- "@aigne/default-memory": "^1.4.0-beta.8",
103
- "@aigne/secrets": "^0.1.6-beta.9"
100
+ "@aigne/default-memory": "^1.4.0-beta.9",
101
+ "@aigne/openai": "^0.16.16-beta.10",
102
+ "@aigne/secrets": "^0.1.6-beta.10",
103
+ "@aigne/aigne-hub": "^0.10.16-beta.14"
104
104
  },
105
105
  "devDependencies": {
106
106
  "@inquirer/testing": "^2.1.50",
@@ -117,7 +117,7 @@
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.9"
120
+ "@aigne/test-utils": "^0.5.69-beta.10"
121
121
  },
122
122
  "scripts": {
123
123
  "lint": "tsc --noEmit",