micro-models-agent 0.18.1 → 0.18.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.
@@ -1,16 +1,16 @@
1
1
  import { t } from "../i18n/index";
2
2
  import { askUser } from "./user-input";
3
- const DESCRIPTION = `Use this tool when you need to ask the user questions during execution. This allows you to:
4
- 1. Gather user preferences or requirements
5
- 2. Clarify ambiguous instructions
6
- 3. Get decisions on implementation choices as you work
7
- 4. Offer choices to the user about what direction to take.
8
-
9
- Usage notes:
10
- - When "custom" is enabled (default), a "Type your own answer" option is added automatically; don't include "Other" or catch-all options
11
- - Answers are returned as arrays of labels; set "multiple": true to allow selecting more than one
12
- - If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label
13
- - Execution blocks until the user answers every question
3
+ const DESCRIPTION = `Use this tool when you need to ask the user questions during execution. This allows you to:
4
+ 1. Gather user preferences or requirements
5
+ 2. Clarify ambiguous instructions
6
+ 3. Get decisions on implementation choices as you work
7
+ 4. Offer choices to the user about what direction to take.
8
+
9
+ Usage notes:
10
+ - When "custom" is enabled (default), a "Type your own answer" option is added automatically; don't include "Other" or catch-all options
11
+ - Answers are returned as arrays of labels; set "multiple": true to allow selecting more than one
12
+ - If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label
13
+ - Execution blocks until the user answers every question
14
14
  - Omit "options" for a free-text question`;
15
15
  function isOption(val) {
16
16
  if (!val || typeof val !== "object")
package/package.json CHANGED
@@ -1,44 +1,44 @@
1
- {
2
- "name": "micro-models-agent",
3
- "version": "0.18.1",
4
- "description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
5
- "type": "module",
6
- "bin": {
7
- "mma": "bin/mma.mjs"
8
- },
9
- "files": [
10
- "dist/",
11
- "bin/"
12
- ],
13
- "engines": {
14
- "node": ">=20"
15
- },
16
- "scripts": {
17
- "mma": "bun run src/cli/main.ts",
18
- "build": "bun run build:tsc && bun run build:copy-assets",
19
- "build:tsc": "tsc -p tsconfig.build.json",
20
- "build:copy-assets": "powershell -Command \"Copy-Item -Recurse -Force 'src/modules/skills/builtin' 'dist/skills/builtin'\"",
21
- "build:prod": "bun run 'build:bundle' && bun run 'build:copy-assets'",
22
- "build:clean": "cmd /c \"if exist dist rmdir /s /q dist\"",
23
- "build:bundle": "bun build ./src/cli/main.ts --outfile ./dist/main.js --target node --format esm --external playwright",
24
- "dev": "bun --watch src/cli/main.ts",
25
- "typecheck": "tsc --noEmit",
26
- "test": "vitest run",
27
- "test:watch": "vitest",
28
- "test:integration": "vitest run --config vitest.integration.config.ts"
29
- },
30
- "dependencies": {
31
- "commander": "^12.0.0",
32
- "js-tiktoken": "^1.0.0",
33
- "jsonrepair": "^3.15.0",
34
- "picocolors": "^1.1.1",
35
- "playwright": "^1.62.0",
36
- "string-width": "^8.2.2"
37
- },
38
- "devDependencies": {
39
- "@types/bun": "^1.3.14",
40
- "@types/node": "^22.0.0",
41
- "typescript": "^5.8.0",
42
- "vitest": "^3.0.0"
43
- }
44
- }
1
+ {
2
+ "name": "micro-models-agent",
3
+ "version": "0.18.2",
4
+ "description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
5
+ "type": "module",
6
+ "bin": {
7
+ "mma": "bin/mma.mjs"
8
+ },
9
+ "files": [
10
+ "dist/",
11
+ "bin/"
12
+ ],
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "scripts": {
17
+ "mma": "bun run src/cli/main.ts",
18
+ "build": "bun run build:tsc && bun run build:copy-assets",
19
+ "build:tsc": "tsc -p tsconfig.build.json",
20
+ "build:copy-assets": "powershell -Command \"Copy-Item -Recurse -Force 'src/modules/skills/builtin' 'dist/skills/builtin'\"",
21
+ "build:prod": "bun run 'build:bundle' && bun run 'build:copy-assets'",
22
+ "build:clean": "cmd /c \"if exist dist rmdir /s /q dist\"",
23
+ "build:bundle": "bun build ./src/cli/main.ts --outfile ./dist/main.js --target node --format esm --external playwright",
24
+ "dev": "bun --watch src/cli/main.ts",
25
+ "typecheck": "tsc --noEmit",
26
+ "test": "vitest run",
27
+ "test:watch": "vitest",
28
+ "test:integration": "vitest run --config vitest.integration.config.ts"
29
+ },
30
+ "dependencies": {
31
+ "commander": "^12.0.0",
32
+ "js-tiktoken": "^1.0.0",
33
+ "jsonrepair": "^3.15.0",
34
+ "picocolors": "^1.1.1",
35
+ "playwright": "^1.62.0",
36
+ "string-width": "^8.2.2"
37
+ },
38
+ "devDependencies": {
39
+ "@types/bun": "^1.3.14",
40
+ "@types/node": "^22.0.0",
41
+ "typescript": "^5.8.0",
42
+ "vitest": "^3.0.0"
43
+ }
44
+ }
@@ -1,15 +0,0 @@
1
- import { appendFileSync, mkdirSync, existsSync } from 'fs';
2
- import { join } from 'path';
3
- export class SessionHistoryWriter {
4
- historyPath;
5
- constructor(sessionsDir, sessionId) {
6
- const sessionDir = join(sessionsDir, sessionId);
7
- if (!existsSync(sessionDir)) {
8
- mkdirSync(sessionDir, { recursive: true });
9
- }
10
- this.historyPath = join(sessionDir, 'history.jsonl');
11
- }
12
- append(msg) {
13
- appendFileSync(this.historyPath, JSON.stringify(msg) + '\n', 'utf-8');
14
- }
15
- }