@zcy2nn/agent-forge 1.1.3 → 1.1.5

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.
Files changed (58) hide show
  1. package/README.md +188 -247
  2. package/agent-forge.schema.json +2 -265
  3. package/dist/agents/orchestrator.d.ts +1 -1
  4. package/dist/cli/index.js +90 -259
  5. package/dist/cli/providers.d.ts +0 -44
  6. package/dist/cli/types.d.ts +0 -2
  7. package/dist/config/constants.d.ts +3 -8
  8. package/dist/config/index.d.ts +0 -1
  9. package/dist/config/loader.d.ts +1 -1
  10. package/dist/config/schema.d.ts +1 -184
  11. package/dist/hooks/index.d.ts +0 -6
  12. package/dist/hooks/json-error-recovery/hook.d.ts +1 -1
  13. package/dist/hooks/todo-continuation/index.d.ts +2 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +7875 -31853
  16. package/dist/tools/index.d.ts +0 -3
  17. package/dist/tui.js +5 -61
  18. package/dist/utils/index.d.ts +0 -2
  19. package/package.json +95 -104
  20. package/src/skills/brainstorming/SKILL.md +185 -186
  21. package/src/skills/brainstorming/scripts/frame-template.html +214 -214
  22. package/src/skills/brainstorming/scripts/server.cjs +354 -354
  23. package/src/skills/brainstorming/spec-document-reviewer-prompt.md +1 -1
  24. package/src/skills/requesting-code-review/SKILL.md +1 -1
  25. package/src/skills/subagent-driven-development/SKILL.md +1 -1
  26. package/src/skills/systematic-debugging/SKILL.md +318 -318
  27. package/src/skills/test-driven-development/SKILL.md +392 -392
  28. package/src/skills/verification-before-completion/SKILL.md +153 -153
  29. package/src/skills/writing-plans/SKILL.md +2 -2
  30. package/src/skills/writing-skills/graphviz-conventions.dot +171 -171
  31. package/dist/agents/council.d.ts +0 -27
  32. package/dist/agents/councillor.d.ts +0 -2
  33. package/dist/agents/designer.d.ts +0 -2
  34. package/dist/agents/explorer.d.ts +0 -2
  35. package/dist/agents/fixer.d.ts +0 -2
  36. package/dist/agents/implementer.d.ts +0 -2
  37. package/dist/agents/librarian.d.ts +0 -2
  38. package/dist/agents/observer.d.ts +0 -2
  39. package/dist/agents/oracle.d.ts +0 -2
  40. package/dist/agents/reviewer.d.ts +0 -2
  41. package/dist/cli/migration.d.ts +0 -46
  42. package/dist/config/council-schema.d.ts +0 -127
  43. package/dist/council/council-manager.d.ts +0 -49
  44. package/dist/council/index.d.ts +0 -1
  45. package/dist/hooks/phase-reminder/index.d.ts +0 -26
  46. package/dist/hooks/post-file-tool-nudge/index.d.ts +0 -19
  47. package/dist/skills/systematic-debugging/condition-based-waiting-example.d.ts +0 -51
  48. package/dist/tools/council.d.ts +0 -10
  49. package/src/skills/codemap/README.md +0 -59
  50. package/src/skills/codemap/SKILL.md +0 -163
  51. package/src/skills/codemap/codemap.md +0 -36
  52. package/src/skills/codemap/scripts/codemap.mjs +0 -483
  53. package/src/skills/codemap/scripts/codemap.test.ts +0 -129
  54. package/src/skills/codemap.md +0 -40
  55. package/src/skills/simplify/README.md +0 -19
  56. package/src/skills/simplify/SKILL.md +0 -138
  57. package/src/skills/simplify/codemap.md +0 -36
  58. package/src/skills/using-git-worktrees/SKILL.md +0 -226
@@ -1,6 +1,3 @@
1
- export { ast_grep_replace, ast_grep_search } from './ast-grep';
2
- export { createCouncilTool } from './council';
3
1
  export type { PresetManager } from './preset-manager';
4
2
  export { createPresetManager } from './preset-manager';
5
3
  export { createSkillTool } from './skill';
6
- export { createWebfetchTool } from './smartfetch';
package/dist/tui.js CHANGED
@@ -1,77 +1,21 @@
1
- import { createRequire } from "node:module";
2
- var __create = Object.create;
3
- var __getProtoOf = Object.getPrototypeOf;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- function __accessProp(key) {
8
- return this[key];
9
- }
10
- var __toESMCache_node;
11
- var __toESMCache_esm;
12
- var __toESM = (mod, isNodeMode, target) => {
13
- var canCache = mod != null && typeof mod === "object";
14
- if (canCache) {
15
- var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
- var cached = cache.get(mod);
17
- if (cached)
18
- return cached;
19
- }
20
- target = mod != null ? __create(__getProtoOf(mod)) : {};
21
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
28
- if (canCache)
29
- cache.set(mod, to);
30
- return to;
31
- };
32
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
34
-
35
1
  // src/tui.ts
36
2
  import { readFileSync as readFileSync2 } from "node:fs";
37
3
  import { fileURLToPath } from "node:url";
38
4
  import { createElement, insert, setProp } from "@opentui/solid";
39
5
 
40
6
  // src/config/constants.ts
41
- var SUBAGENT_NAMES = [
42
- "researcher",
43
- "reviewer",
44
- "implementer",
45
- "council",
46
- "councillor"
47
- ];
7
+ var SUBAGENT_NAMES = ["researcher"];
48
8
  var ORCHESTRATOR_NAME = "orchestrator";
49
9
  var ALL_AGENT_NAMES = [ORCHESTRATOR_NAME, ...SUBAGENT_NAMES];
50
- var PROTECTED_AGENTS = new Set([
51
- "orchestrator",
52
- "researcher",
53
- "reviewer",
54
- "implementer",
55
- "councillor"
56
- ]);
10
+ var PROTECTED_AGENTS = new Set(["orchestrator", "researcher"]);
57
11
  var DEFAULT_MODELS = {
58
12
  orchestrator: undefined,
59
- reviewer: "openai/gpt-5.5",
60
- researcher: "openai/gpt-5.4-mini",
61
- implementer: "openai/gpt-5.4-mini",
62
- council: "openai/gpt-5.4-mini",
63
- councillor: "openai/gpt-5.4-mini"
13
+ researcher: "openai/gpt-5.4-mini"
64
14
  };
65
- var POLL_INTERVAL_BACKGROUND_MS = 2000;
66
15
  var DEFAULT_TIMEOUT_MS = 2 * 60 * 1000;
67
16
  var MAX_POLL_TIME_MS = 5 * 60 * 1000;
68
17
  var DEFAULT_MAX_SUBAGENT_DEPTH = 3;
69
- var PHASE_REMINDER_TEXT = `!IMPORTANT! Recall the workflow rules:
70
- Understand → choose the best parallelized path based on your capabilities and agents delegation rules → recall session reuse rules → execute → verify.
71
- If delegating, launch the specialist in the same turn you mention it !END!`;
72
- var TMUX_SPAWN_DELAY_MS = 500;
73
- var COUNCILLOR_STAGGER_MS = 250;
74
- var DEFAULT_DISABLED_AGENTS = ["council"];
18
+ var DEFAULT_DISABLED_AGENTS = [];
75
19
 
76
20
  // src/tui-state.ts
77
21
  import * as fs from "node:fs";
@@ -143,7 +87,7 @@ function recordTuiAgentModel(input) {
143
87
 
144
88
  // src/tui.ts
145
89
  var PLUGIN_NAME = "agent-forge";
146
- var FALLBACK_SIDEBAR_AGENTS = SUBAGENT_NAMES.filter((agent) => agent !== "councillor" && agent !== "council" && !DEFAULT_DISABLED_AGENTS.includes(agent));
90
+ var FALLBACK_SIDEBAR_AGENTS = SUBAGENT_NAMES.filter((agent) => !DEFAULT_DISABLED_AGENTS.includes(agent));
147
91
  var BORDER = { type: "single" };
148
92
  function readPackageVersion() {
149
93
  try {
@@ -4,6 +4,4 @@ export * from './internal-initiator';
4
4
  export { getLogDir, initLogger, log, resetLogger } from './logger';
5
5
  export * from './polling';
6
6
  export * from './session';
7
- export * from './session-manager';
8
7
  export * from './task';
9
- export { extractZip } from './zip-extractor';
package/package.json CHANGED
@@ -1,104 +1,95 @@
1
- {
2
- "name": "@zcy2nn/agent-forge",
3
- "version": "1.1.3",
4
- "description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.js",
10
- "types": "./dist/index.d.ts"
11
- },
12
- "./tui": {
13
- "import": "./dist/tui.js",
14
- "types": "./dist/tui.d.ts"
15
- }
16
- },
17
- "bin": {
18
- "agent-forge": "./dist/cli/index.js"
19
- },
20
- "type": "module",
21
- "license": "MIT",
22
- "publishConfig": {
23
- "access": "public"
24
- },
25
- "keywords": [
26
- "opencode",
27
- "opencode-plugin",
28
- "ai",
29
- "agents",
30
- "orchestration",
31
- "llm",
32
- "claude",
33
- "gpt",
34
- "gemini"
35
- ],
36
- "repository": {
37
- "type": "git",
38
- "url": "https://cnb.cool/zcyoop/ai-assistant/agent-forge"
39
- },
40
- "bugs": {
41
- "url": "https://cnb.cool/zcyoop/ai-assistant/agent-forge/issues"
42
- },
43
- "homepage": "https://cnb.cool/zcyoop/ai-assistant/agent-forge#readme",
44
- "files": [
45
- "dist",
46
- "src/skills",
47
- "agent-forge.schema.json",
48
- "README.md",
49
- "LICENSE"
50
- ],
51
- "scripts": {
52
- "build:plugin": "bun build src/index.ts src/tui.ts --outdir dist --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external @opentui/core --external @opentui/solid --external jsdom --external zod",
53
- "build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom --external zod",
54
- "copy:divoom-assets": "bun run scripts/copy-divoom-assets.ts",
55
- "build": "bun run build:plugin && bun run build:cli && bun run copy:divoom-assets && tsc --emitDeclarationOnly && bun run generate-schema",
56
- "prepare": "bun run build",
57
- "contributors:add": "all-contributors add",
58
- "contributors:check": "all-contributors check",
59
- "contributors:generate": "all-contributors generate",
60
- "generate-schema": "bun run scripts/generate-schema.ts",
61
- "verify:release": "bun run scripts/verify-release-artifact.ts",
62
- "verify:host-smoke": "bun run scripts/verify-opencode-host-smoke.ts",
63
- "typecheck": "tsc --noEmit",
64
- "test": "bun test",
65
- "lint": "biome lint .",
66
- "format": "biome format . --write",
67
- "check": "biome check --write .",
68
- "check:ci": "biome check .",
69
- "dev": "bun run build && opencode",
70
- "prepublishOnly": "bun run build",
71
- "release:patch": "npm version patch && git push --follow-tags && npm publish --access public",
72
- "release:minor": "npm version minor && git push --follow-tags && npm publish --access public",
73
- "release:major": "npm version major && git push --follow-tags && npm publish --access public"
74
- },
75
- "dependencies": {
76
- "@ast-grep/cli": "^0.42.1",
77
- "@modelcontextprotocol/sdk": "^1.29.0",
78
- "@mozilla/readability": "^0.6.0",
79
- "@opencode-ai/plugin": "^1.3.17",
80
- "@opencode-ai/sdk": "^1.3.17",
81
- "jsdom": "^26.1.0",
82
- "lru-cache": "^11.3.3",
83
- "turndown": "^7.2.4"
84
- },
85
- "optionalDependencies": {
86
- "@opentui/solid": "^0.1.97"
87
- },
88
- "devDependencies": {
89
- "@biomejs/biome": "2.4.11",
90
- "@types/jsdom": "^21.1.7",
91
- "@types/node": "^24.6.1",
92
- "@types/turndown": "^5.0.6",
93
- "all-contributors-cli": "^6.26.1",
94
- "bun-types": "1.3.12",
95
- "typescript": "^5.9.3",
96
- "zod": "^4.3.6"
97
- },
98
- "peerDependencies": {
99
- "zod": "^4.0.0"
100
- },
101
- "trustedDependencies": [
102
- "@ast-grep/cli"
103
- ]
104
- }
1
+ {
2
+ "name": "@zcy2nn/agent-forge",
3
+ "version": "1.1.5",
4
+ "description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ },
12
+ "./tui": {
13
+ "import": "./dist/tui.js",
14
+ "types": "./dist/tui.d.ts"
15
+ }
16
+ },
17
+ "bin": {
18
+ "agent-forge": "./dist/cli/index.js"
19
+ },
20
+ "type": "module",
21
+ "license": "MIT",
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "keywords": [
26
+ "opencode",
27
+ "opencode-plugin",
28
+ "ai",
29
+ "agents",
30
+ "orchestration",
31
+ "llm",
32
+ "claude",
33
+ "gpt",
34
+ "gemini"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://cnb.cool/zcyoop/ai-assistant/agent-forge"
39
+ },
40
+ "bugs": {
41
+ "url": "https://cnb.cool/zcyoop/ai-assistant/agent-forge/issues"
42
+ },
43
+ "homepage": "https://cnb.cool/zcyoop/ai-assistant/agent-forge#readme",
44
+ "files": [
45
+ "dist",
46
+ "src/skills",
47
+ "agent-forge.schema.json",
48
+ "README.md",
49
+ "LICENSE"
50
+ ],
51
+ "scripts": {
52
+ "build:plugin": "bun build src/index.ts src/tui.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/sdk --external @opentui/core --external @opentui/solid --external zod",
53
+ "build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @opencode-ai/plugin --external @opencode-ai/sdk --external zod",
54
+ "copy:divoom-assets": "bun run scripts/copy-divoom-assets.ts",
55
+ "build": "bun run build:plugin && bun run build:cli && bun run copy:divoom-assets && tsc --emitDeclarationOnly && bun run generate-schema",
56
+ "prepare": "bun run build",
57
+ "contributors:add": "all-contributors add",
58
+ "contributors:check": "all-contributors check",
59
+ "contributors:generate": "all-contributors generate",
60
+ "generate-schema": "bun run scripts/generate-schema.ts",
61
+ "verify:release": "bun run scripts/verify-release-artifact.ts",
62
+ "verify:host-smoke": "bun run scripts/verify-opencode-host-smoke.ts",
63
+ "typecheck": "tsc --noEmit",
64
+ "test": "bun test",
65
+ "lint": "biome lint .",
66
+ "format": "biome format . --write",
67
+ "check": "biome check --write .",
68
+ "check:ci": "biome check .",
69
+ "dev": "bun run build && opencode",
70
+ "prepublishOnly": "bun run build",
71
+ "release:patch": "npm version patch && git push --follow-tags && npm publish --access public",
72
+ "release:minor": "npm version minor && git push --follow-tags && npm publish --access public",
73
+ "release:major": "npm version major && git push --follow-tags && npm publish --access public"
74
+ },
75
+ "dependencies": {
76
+ "@modelcontextprotocol/sdk": "^1.29.0",
77
+ "@opencode-ai/plugin": "^1.3.17",
78
+ "@opencode-ai/sdk": "^1.3.17",
79
+ "zod": "^4.3.6"
80
+ },
81
+ "optionalDependencies": {
82
+ "@opentui/solid": "^0.1.97"
83
+ },
84
+ "devDependencies": {
85
+ "@biomejs/biome": "2.4.11",
86
+ "@types/node": "^24.6.1",
87
+ "all-contributors-cli": "^6.26.1",
88
+ "bun-types": "1.3.12",
89
+ "typescript": "^5.9.3",
90
+ "zod": "^4.3.6"
91
+ },
92
+ "peerDependencies": {
93
+ "zod": "^4.0.0"
94
+ }
95
+ }