jig-console 0.0.0-stage → 0.1.1

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 (137) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -2
  3. package/dist/commands/config.d.ts +8 -0
  4. package/dist/commands/config.d.ts.map +1 -0
  5. package/dist/commands/config.js +224 -0
  6. package/dist/commands/config.js.map +1 -0
  7. package/dist/commands/convert.d.ts +10 -0
  8. package/dist/commands/convert.d.ts.map +1 -0
  9. package/dist/commands/convert.js +40 -0
  10. package/dist/commands/convert.js.map +1 -0
  11. package/dist/commands/history.d.ts +8 -0
  12. package/dist/commands/history.d.ts.map +1 -0
  13. package/dist/commands/history.js +112 -0
  14. package/dist/commands/history.js.map +1 -0
  15. package/dist/commands/init.d.ts +7 -0
  16. package/dist/commands/init.d.ts.map +1 -0
  17. package/dist/commands/init.js +225 -0
  18. package/dist/commands/init.js.map +1 -0
  19. package/dist/commands/pipeline.d.ts +17 -0
  20. package/dist/commands/pipeline.d.ts.map +1 -0
  21. package/dist/commands/pipeline.js +137 -0
  22. package/dist/commands/pipeline.js.map +1 -0
  23. package/dist/commands/play.d.ts +13 -0
  24. package/dist/commands/play.d.ts.map +1 -0
  25. package/dist/commands/play.js +109 -0
  26. package/dist/commands/play.js.map +1 -0
  27. package/dist/commands/providers.d.ts +17 -0
  28. package/dist/commands/providers.d.ts.map +1 -0
  29. package/dist/commands/providers.js +161 -0
  30. package/dist/commands/providers.js.map +1 -0
  31. package/dist/commands/recipes.d.ts +16 -0
  32. package/dist/commands/recipes.d.ts.map +1 -0
  33. package/dist/commands/recipes.js +135 -0
  34. package/dist/commands/recipes.js.map +1 -0
  35. package/dist/commands/replay.d.ts +40 -0
  36. package/dist/commands/replay.d.ts.map +1 -0
  37. package/dist/commands/replay.js +206 -0
  38. package/dist/commands/replay.js.map +1 -0
  39. package/dist/commands/run.d.ts +3 -0
  40. package/dist/commands/run.d.ts.map +1 -0
  41. package/dist/commands/run.js +14 -0
  42. package/dist/commands/run.js.map +1 -0
  43. package/dist/commands/show.d.ts +15 -0
  44. package/dist/commands/show.d.ts.map +1 -0
  45. package/dist/commands/show.js +39 -0
  46. package/dist/commands/show.js.map +1 -0
  47. package/dist/commands/status.d.ts +6 -0
  48. package/dist/commands/status.d.ts.map +1 -0
  49. package/dist/commands/status.js +77 -0
  50. package/dist/commands/status.js.map +1 -0
  51. package/dist/commands/validate.d.ts +6 -0
  52. package/dist/commands/validate.d.ts.map +1 -0
  53. package/dist/commands/validate.js +36 -0
  54. package/dist/commands/validate.js.map +1 -0
  55. package/dist/help/jig-help.d.ts +25 -0
  56. package/dist/help/jig-help.d.ts.map +1 -0
  57. package/dist/help/jig-help.js +147 -0
  58. package/dist/help/jig-help.js.map +1 -0
  59. package/dist/index.d.ts +3 -0
  60. package/dist/index.d.ts.map +1 -0
  61. package/dist/index.js +216 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/keys.d.ts +14 -0
  64. package/dist/keys.d.ts.map +1 -0
  65. package/dist/keys.js +68 -0
  66. package/dist/keys.js.map +1 -0
  67. package/dist/live-view.d.ts +90 -0
  68. package/dist/live-view.d.ts.map +1 -0
  69. package/dist/live-view.js +239 -0
  70. package/dist/live-view.js.map +1 -0
  71. package/dist/permissions.d.ts +40 -0
  72. package/dist/permissions.d.ts.map +1 -0
  73. package/dist/permissions.js +88 -0
  74. package/dist/permissions.js.map +1 -0
  75. package/dist/providers.d.ts +68 -0
  76. package/dist/providers.d.ts.map +1 -0
  77. package/dist/providers.js +230 -0
  78. package/dist/providers.js.map +1 -0
  79. package/dist/session/app.d.ts +28 -0
  80. package/dist/session/app.d.ts.map +1 -0
  81. package/dist/session/app.js +458 -0
  82. package/dist/session/app.js.map +1 -0
  83. package/dist/session/ascii.d.ts +5 -0
  84. package/dist/session/ascii.d.ts.map +1 -0
  85. package/dist/session/ascii.js +39 -0
  86. package/dist/session/ascii.js.map +1 -0
  87. package/dist/session/commands.d.ts +26 -0
  88. package/dist/session/commands.d.ts.map +1 -0
  89. package/dist/session/commands.js +828 -0
  90. package/dist/session/commands.js.map +1 -0
  91. package/dist/session/controller.d.ts +291 -0
  92. package/dist/session/controller.d.ts.map +1 -0
  93. package/dist/session/controller.js +779 -0
  94. package/dist/session/controller.js.map +1 -0
  95. package/dist/session/editor.d.ts +60 -0
  96. package/dist/session/editor.d.ts.map +1 -0
  97. package/dist/session/editor.js +128 -0
  98. package/dist/session/editor.js.map +1 -0
  99. package/dist/session/jig-theme.json +1 -0
  100. package/dist/session/keys.d.ts +26 -0
  101. package/dist/session/keys.d.ts.map +1 -0
  102. package/dist/session/keys.js +95 -0
  103. package/dist/session/keys.js.map +1 -0
  104. package/dist/session/lines.d.ts +65 -0
  105. package/dist/session/lines.d.ts.map +1 -0
  106. package/dist/session/lines.js +370 -0
  107. package/dist/session/lines.js.map +1 -0
  108. package/dist/session/markdown.d.ts +13 -0
  109. package/dist/session/markdown.d.ts.map +1 -0
  110. package/dist/session/markdown.js +188 -0
  111. package/dist/session/markdown.js.map +1 -0
  112. package/dist/session/models.d.ts +24 -0
  113. package/dist/session/models.d.ts.map +1 -0
  114. package/dist/session/models.js +17 -0
  115. package/dist/session/models.js.map +1 -0
  116. package/dist/session/start.d.ts +27 -0
  117. package/dist/session/start.d.ts.map +1 -0
  118. package/dist/session/start.js +140 -0
  119. package/dist/session/start.js.map +1 -0
  120. package/dist/session/theme.d.ts +137 -0
  121. package/dist/session/theme.d.ts.map +1 -0
  122. package/dist/session/theme.js +129 -0
  123. package/dist/session/theme.js.map +1 -0
  124. package/dist/session-runner.d.ts +107 -0
  125. package/dist/session-runner.d.ts.map +1 -0
  126. package/dist/session-runner.js +463 -0
  127. package/dist/session-runner.js.map +1 -0
  128. package/dist/terminal-width.d.ts +7 -0
  129. package/dist/terminal-width.d.ts.map +1 -0
  130. package/dist/terminal-width.js +45 -0
  131. package/dist/terminal-width.js.map +1 -0
  132. package/dist/topology-arg.d.ts +12 -0
  133. package/dist/topology-arg.d.ts.map +1 -0
  134. package/dist/topology-arg.js +26 -0
  135. package/dist/topology-arg.js.map +1 -0
  136. package/docs/jig-help.md +70 -0
  137. package/package.json +73 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 David Estevez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,78 @@
1
- # Temporary Holding Version
1
+ # jig-console
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `jig` is the terminal for Jig. Jig is a Joint Inference Graph: several models reasoning together, arranged as a graph you define. You pick a topology (roles such as Plan, Do, Check, Critique and Decide, the ways the work goes back, a role another may consult), give each role a model from any provider you have, and use it for real work.
4
+
5
+ Jig was called Agentic Lab before.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install -g jig-console
11
+ ```
12
+
13
+ Then `jig` works in any terminal. It needs Node 20 or later and a model to talk to; a local [Ollama](https://ollama.com) is enough. It is tested on macOS, and on Linux in a container; not yet on Windows.
14
+
15
+ To work on Jig itself, build it from source and link it:
16
+
17
+ ```sh
18
+ git clone https://github.com/destbreso/jig.git
19
+ cd jig
20
+ npm install
21
+ npm run build:core && npm run build:cli
22
+ cd packages/cli && npm link
23
+ ```
24
+
25
+ ## A session
26
+
27
+ Run `jig` in your project. Each message you send is a task your topology runs.
28
+
29
+ - The topology sits at the top, drawn on its grid, and moves while a task runs: who is at work, the round, each way back taken. Ctrl+T folds it to one line.
30
+ - The answer streams in as Do's model writes it, with the run's latest steps under it, and ends with its outcome: passed, failed, inconclusive or stopped.
31
+ - Typing while a run goes sends a note Do reads on its next turn. Esc stops the run.
32
+ - Jig asks before it acts, as Claude Code does. See Permissions below.
33
+ - Slash commands, completed with Tab: `/topology`, `/models`, `/tools`, `/permissions`, `/add-dir`, `/sight`, `/checks`, `/budget`, `/memory`, `/advisor`, `/runs`, `/replay`, `/clear`, `/quit`, and `/help` for the rest.
34
+ - A command that takes a choice opens a picker when you type it alone: `/topology` lists the topologies with the current one marked, and the arrows and Enter switch. Give it the choice and it acts at once: `/topology advisor`. Every command that takes a choice works this way, and new ones will too. `/tools` gives each role a checklist, and `list` prints what a picker would show.
35
+ - `jig --resume` opens your last session again, with its conversation and settings.
36
+
37
+ Jig keeps runs, sessions and your input history in `.jig/` in the folder you run it in. That folder gets its own `.gitignore`, so your prompts never end up in a commit.
38
+
39
+ `--plain` draws without colour or style, and `--ascii` with plain ASCII. Colour only ever means a run's state: green is running, red failed, amber waiting for you.
40
+
41
+ ## Providers
42
+
43
+ Jig finds the model servers running on your computer by itself. When a session opens, it asks the usual ports of Ollama (11434, or the port in `OLLAMA_HOST`), LM Studio (1234), a llama.cpp server or llamafile (8080), vLLM (8000), Jan (1337), text-generation-webui (5000), KoboldCpp (5001), a LiteLLM proxy (4000), GPT4All (4891) and Docker Model Runner (12434), all at once, for their model lists. It never waits for them: the session opens straight away, and the header says what answered, like `ollama up (12 models) ∙ lmstudio up (3)`.
44
+
45
+ It only ever asks your own computer (127.0.0.1). It never looks at your network. A server on another machine is one you add yourself, with `/providers add` or `jig providers add`.
46
+
47
+ A server it finds can be used right away: it joins the `local` and `fast` brains after the providers you configured. It isn't written to your config until you keep it, with `/providers` (keep or ignore) or `jig providers discover --save`. If your config already names a server at the same address, yours wins and nothing shows twice. `/providers discover` asks again, and `jig doctor` shows what it found.
48
+
49
+ Cloud providers are found by their usual key variables (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, `OPENROUTER_API_KEY`). Jig lists them as "key found in env" and never prints the key.
50
+
51
+ ## Permissions
52
+
53
+ Every tool call a role makes is decided before it runs. Reading inside your project just happens. A write asks you, and shows you the diff. A shell command asks unless every part of it only reads, like `ls`, `cat` or `git status`. A read outside your project asks too.
54
+
55
+ You answer Yes, No, or a wider yes when there is one: all edits for this session, or "don't ask again" for a command's prefix, which Jig keeps in `.jig/settings.local.json`. No opens a field where you say what to do instead, and the role goes on with it. A plain No, or Esc, stops the run.
56
+
57
+ Shift+Tab cycles the mode: default, accept edits (writes inside your project just happen) and plan (reading only). `--dangerously-skip-permissions` skips the questions for one session, except your deny and ask rules and a removal that could wipe your home or the project.
58
+
59
+ Rules look like Claude Code's: `Shell(npm test *)`, `Write(src/**)`, `Read(./.env)`. They live in `~/.config/jig/config.json`, your project's `jig.config.json` and `.jig/settings.local.json`. Deny beats ask, and ask beats allow. `/permissions` lists them and changes them, and `/add-dir` lets roles work in another folder.
60
+
61
+ `jig run` has nobody to ask, so whatever would ask is denied. Allow it with `--permission-mode acceptEdits`, `--allow 'Shell(npm test *)'` or a rule.
62
+
63
+ The main README lists where this differs from Claude Code, and why.
64
+
65
+ ## For scripts
66
+
67
+ The subcommands stay:
68
+
69
+ - `jig run` runs a topology on a task and exits 0 when it passed. `--check "<command>"` gives it a check Jig runs itself, where no role can write.
70
+ - `jig show <topology>` draws a topology; `--play` runs it on a scripted model, with no tokens.
71
+ - `jig replay <run-id>` plays a recorded run.
72
+ - `jig validate <file>` and `jig convert <file>` check and convert topology files.
73
+
74
+ `jig --help` lists everything. The engine behind it is [jig-core](https://github.com/destbreso/jig/tree/main/packages/core#readme).
75
+
76
+ ## Licence
77
+
78
+ MIT.
@@ -0,0 +1,8 @@
1
+ interface ConfigOptions {
2
+ dir?: string;
3
+ check?: boolean;
4
+ meta?: boolean;
5
+ }
6
+ export declare function configCommand(options: ConfigOptions): Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAaA,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAyHzE"}
@@ -0,0 +1,224 @@
1
+ // ============================================
2
+ // CLI: config command: View and validate config
3
+ // ============================================
4
+ import * as path from "path";
5
+ import chalk from "chalk";
6
+ import Table from "cli-table3";
7
+ import { loadConfig, getAvailableProviders, getSystemMetaKnowledge, } from "jig-core";
8
+ export async function configCommand(options) {
9
+ // Sub-command: show system meta-knowledge
10
+ if (options.meta) {
11
+ showMetaKnowledge();
12
+ return;
13
+ }
14
+ const workingDir = path.resolve(options.dir || ".");
15
+ console.log(chalk.cyan("\nJig: configuration\n"));
16
+ const appConfig = await loadConfig(workingDir);
17
+ // Show provider configuration
18
+ console.log(chalk.white(" Providers:"));
19
+ const allProviders = getAvailableProviders();
20
+ const providerTable = new Table({
21
+ head: [
22
+ chalk.white("Provider"),
23
+ chalk.white("Status"),
24
+ chalk.white("Model"),
25
+ chalk.white("Base URL"),
26
+ ],
27
+ style: { head: [], border: [] },
28
+ });
29
+ for (const name of allProviders) {
30
+ const config = appConfig.providers[name];
31
+ const configured = !!config;
32
+ const hasKey = !!config?.apiKey;
33
+ providerTable.push([
34
+ chalk.bold(name),
35
+ configured
36
+ ? hasKey || name === "ollama"
37
+ ? chalk.green("✓ configured")
38
+ : chalk.yellow("! no API key")
39
+ : chalk.gray("◦ not configured"),
40
+ config?.defaultModel || chalk.gray("-"),
41
+ config?.baseUrl || chalk.gray("default"),
42
+ ]);
43
+ }
44
+ // Also show providers configured in .env but not registered in factory
45
+ for (const name of Object.keys(appConfig.providers)) {
46
+ if (!allProviders.includes(name)) {
47
+ const config = appConfig.providers[name];
48
+ providerTable.push([
49
+ chalk.bold(name),
50
+ chalk.yellow("! not registered"),
51
+ config?.defaultModel || chalk.gray("-"),
52
+ config?.baseUrl || chalk.gray("default"),
53
+ ]);
54
+ }
55
+ }
56
+ console.log(providerTable.toString());
57
+ // Show loop defaults
58
+ console.log(chalk.white("\n Loop Defaults:"));
59
+ const loop = appConfig.loop;
60
+ const loopEntries = [
61
+ ["Provider", loop.provider || chalk.gray("ollama")],
62
+ ["Max Iterations", String(loop.maxIterations || 10)],
63
+ ["Delay", `${loop.delayMs || 1000}ms`],
64
+ ["Prompt File", loop.promptFile || "PROMPT.md"],
65
+ ["Plan File", loop.planFile || "PLAN.md"],
66
+ ["Auto Commit", loop.autoCommit ? "yes" : "no"],
67
+ ["Auto Push", loop.autoPush ? "yes" : "no"],
68
+ ["Verbose", loop.verbose ? "yes" : "no"],
69
+ ];
70
+ for (const [key, value] of loopEntries) {
71
+ console.log(chalk.gray(` ${key.padEnd(16)} ${value}`));
72
+ }
73
+ // Show storage configuration
74
+ console.log(chalk.white("\n Storage:"));
75
+ const storage = appConfig.storage;
76
+ const storageBackend = storage.backend || "auto";
77
+ console.log(chalk.gray(` Backend ${storageBackend}`));
78
+ if (storage.postgres) {
79
+ const pg = storage.postgres;
80
+ const host = pg.connectionString
81
+ ? chalk.gray("(connection string)")
82
+ : `${pg.host || "localhost"}:${pg.port || 5432}`;
83
+ console.log(chalk.gray(` PostgreSQL ${host}/${pg.database || "agentic_lab"}`));
84
+ }
85
+ if (storage.redis) {
86
+ const redis = storage.redis;
87
+ const host = redis.url || `${redis.host || "localhost"}:${redis.port || 6379}`;
88
+ console.log(chalk.gray(` Redis ${host}`));
89
+ }
90
+ if (storage.qdrant) {
91
+ const q = storage.qdrant;
92
+ const host = q.url || `${q.host || "localhost"}:${q.port || 6333}`;
93
+ console.log(chalk.gray(` Qdrant ${host}`));
94
+ }
95
+ // Show logging
96
+ console.log(chalk.white("\n Logging:"));
97
+ console.log(chalk.gray(` Level ${appConfig.logging.level}`));
98
+ if (appConfig.logging.logFile) {
99
+ console.log(chalk.gray(` Log File ${appConfig.logging.logFile}`));
100
+ }
101
+ // Validation check
102
+ if (options.check) {
103
+ console.log(chalk.white("\n Validation:\n"));
104
+ await runValidation(appConfig, workingDir);
105
+ }
106
+ console.log("");
107
+ }
108
+ async function runValidation(appConfig, _workingDir) {
109
+ let issues = 0;
110
+ let warnings = 0;
111
+ // Check if at least one provider is configured
112
+ const configuredProviders = Object.keys(appConfig.providers);
113
+ if (configuredProviders.length === 0) {
114
+ console.log(chalk.red(" ✗ No providers configured"));
115
+ console.log(chalk.gray(" Set OLLAMA_BASE_URL, OPENAI_API_KEY, or ANTHROPIC_API_KEY in .env"));
116
+ issues++;
117
+ }
118
+ else {
119
+ console.log(chalk.green(` ✓ ${configuredProviders.length} provider(s) configured: ${configuredProviders.join(", ")}`));
120
+ }
121
+ // Check for providers in config but not in factory
122
+ const registeredProviders = getAvailableProviders();
123
+ for (const name of configuredProviders) {
124
+ if (!registeredProviders.includes(name)) {
125
+ console.log(chalk.yellow(` ! Provider "${name}" is configured but not registered in the factory`));
126
+ warnings++;
127
+ }
128
+ }
129
+ // Check default provider
130
+ const defaultProvider = appConfig.loop.provider || "ollama";
131
+ if (!configuredProviders.includes(defaultProvider)) {
132
+ console.log(chalk.yellow(` ! Default provider "${defaultProvider}" is not configured`));
133
+ warnings++;
134
+ }
135
+ else {
136
+ console.log(chalk.green(` ✓ Default provider "${defaultProvider}" is configured`));
137
+ }
138
+ // Check storage
139
+ if (appConfig.storage.postgres) {
140
+ console.log(chalk.green(" ✓ PostgreSQL configured"));
141
+ }
142
+ else {
143
+ console.log(chalk.gray(" ◦ No PostgreSQL configured (will use in-memory)"));
144
+ }
145
+ if (appConfig.storage.redis) {
146
+ console.log(chalk.green(" ✓ Redis configured"));
147
+ }
148
+ else {
149
+ console.log(chalk.gray(" ◦ No Redis configured (events local)"));
150
+ }
151
+ if (appConfig.storage.qdrant) {
152
+ console.log(chalk.green(" ✓ Qdrant configured (vector memory)"));
153
+ }
154
+ else {
155
+ console.log(chalk.gray(" ◦ No Qdrant configured (no vector memory)"));
156
+ }
157
+ // Summary
158
+ console.log("");
159
+ if (issues > 0) {
160
+ console.log(chalk.red(` ${issues} issue(s), ${warnings} warning(s)`));
161
+ }
162
+ else if (warnings > 0) {
163
+ console.log(chalk.yellow(` ✓ No issues, ${warnings} warning(s)`));
164
+ }
165
+ else {
166
+ console.log(chalk.green(" ✓ Configuration looks good!"));
167
+ }
168
+ }
169
+ function showMetaKnowledge() {
170
+ console.log(chalk.cyan("\nJig: what it knows about itself\n"));
171
+ const meta = getSystemMetaKnowledge();
172
+ // Identity
173
+ console.log(chalk.white(" Identity:"));
174
+ console.log(chalk.gray(` Name: ${meta.identity.name}`));
175
+ console.log(chalk.gray(` Version: ${meta.identity.version}`));
176
+ console.log(chalk.gray(` Description: ${meta.identity.description}`));
177
+ console.log(chalk.gray(` Philosophy: ${meta.identity.philosophy}`));
178
+ // Architecture
179
+ console.log(chalk.white("\n Architecture:"));
180
+ console.log(chalk.gray(` ${meta.architecture.overview}`));
181
+ for (const level of meta.architecture.levels) {
182
+ console.log(chalk.white(`\n ${level.name}:`));
183
+ console.log(chalk.gray(` ${level.description}`));
184
+ console.log(chalk.gray(` Components: ${level.components.join(", ")}`));
185
+ }
186
+ // Capabilities
187
+ console.log(chalk.white("\n Capabilities:"));
188
+ const grouped = new Map();
189
+ for (const cap of meta.capabilities) {
190
+ const list = grouped.get(cap.category) || [];
191
+ list.push(cap);
192
+ grouped.set(cap.category, list);
193
+ }
194
+ for (const [category, caps] of grouped) {
195
+ console.log(chalk.white(` [${category}]`));
196
+ for (const cap of caps) {
197
+ console.log(chalk.gray(` ∙ ${cap.name}: ${cap.description}`));
198
+ }
199
+ }
200
+ // Recipes
201
+ if (meta.recipes.length > 0) {
202
+ console.log(chalk.white("\n Recipes:"));
203
+ for (const recipe of meta.recipes) {
204
+ console.log(chalk.gray(` ∙ ${recipe.name} (${recipe.id})`));
205
+ console.log(chalk.gray(` ${recipe.description}`));
206
+ }
207
+ }
208
+ // Providers
209
+ if (meta.providers.length > 0) {
210
+ console.log(chalk.white("\n Providers:"));
211
+ for (const p of meta.providers) {
212
+ console.log(chalk.gray(` ∙ ${p.name}: ${p.description}`));
213
+ }
214
+ }
215
+ // Tools
216
+ if (meta.tools.length > 0) {
217
+ console.log(chalk.white("\n Tools:"));
218
+ for (const tool of meta.tools) {
219
+ console.log(chalk.gray(` ∙ ${tool.name}: ${tool.description}`));
220
+ }
221
+ }
222
+ console.log("");
223
+ }
224
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,gDAAgD;AAChD,+CAA+C;AAE/C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAQlB,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAsB;IACxD,0CAA0C;IAC1C,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,iBAAiB,EAAE,CAAC;QACpB,OAAO;IACT,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AAClB,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface ConvertOptions {
2
+ to?: string;
3
+ dialect?: string;
4
+ from?: string;
5
+ output?: string;
6
+ /** Write every node's inputs, outputs and branches instead of the compact form. */
7
+ expanded?: boolean;
8
+ }
9
+ export declare function convertCommand(file: string, options: ConvertOptions): Promise<void>;
10
+ //# sourceMappingURL=convert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../src/commands/convert.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAOD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBzF"}
@@ -0,0 +1,40 @@
1
+ // ============================================
2
+ // CLI: convert a definition between dialects and syntaxes
3
+ // ============================================
4
+ // Through the core's formats module and its model: read in any dialect and
5
+ // syntax, written in the one asked for. What the conversion drops, and what
6
+ // only the lab will read of the result, is reported on stderr.
7
+ import { readFile, writeFile } from "fs/promises";
8
+ import chalk from "chalk";
9
+ import { convertTopologyText, describeIssue } from "jig-core";
10
+ function report(title, losses) {
11
+ if (losses.length === 0)
12
+ return [];
13
+ return [chalk.bold(title), ...losses.map((l) => ` - ${l.what}${l.path ? chalk.gray(` (${l.path})`) : ""}`)];
14
+ }
15
+ export async function convertCommand(file, options) {
16
+ try {
17
+ if (options.to && !["yaml", "json"].includes(options.to))
18
+ throw new Error("--to must be yaml or json");
19
+ const syntax = (options.to ?? (/\.json$/i.test(file) ? "yaml" : "json"));
20
+ const result = convertTopologyText(await readFile(file, "utf-8"), { dialect: options.dialect ?? "agentspec", syntax, form: options.expanded ? "expanded" : "compact" }, { filename: file, dialect: options.from });
21
+ if (options.output)
22
+ await writeFile(options.output, result.text, "utf-8");
23
+ else
24
+ process.stdout.write(result.text);
25
+ const lines = [
26
+ chalk.gray(`${file}: ${result.from.dialect} in ${result.from.syntax} ⇢ ${options.dialect ?? "agentspec"} in ${syntax}${options.expanded ? ", expanded" : ""}${options.output ? `, written to ${options.output}` : ""}`),
27
+ ...result.warnings.map((w) => chalk.yellow(describeIssue(w))),
28
+ ...report("Lost when reading the source:", result.readLosses),
29
+ ...report("Not kept by the target:", result.losses.filter((l) => l.kind === "dropped")),
30
+ ...report("Kept only in the lab's extension, which another runtime ignores:", result.losses.filter((l) => l.kind === "ignored")),
31
+ ];
32
+ process.stderr.write(`${lines.join("\n")}\n`);
33
+ }
34
+ catch (e) {
35
+ const issues = e.issues;
36
+ process.stderr.write(chalk.red(` ✗ ${issues ? issues.map(describeIssue).join("\n") : e.message}\n`));
37
+ process.exitCode = 1;
38
+ }
39
+ }
40
+ //# sourceMappingURL=convert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convert.js","sourceRoot":"","sources":["../../src/commands/convert.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,0DAA0D;AAC1D,+CAA+C;AAC/C,2EAA2E;AAC3E,4EAA4E;AAC5E,+DAA+D;AAE/D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAa,MAAM,UAAU,CAAC;AAWzE,SAAS,MAAM,CAAC,KAAa,EAAE,MAAc;IAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO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CAAC"}
@@ -0,0 +1,8 @@
1
+ interface HistoryOptions {
2
+ dir?: string;
3
+ last?: string;
4
+ detail?: string;
5
+ }
6
+ export declare function historyCommand(options: HistoryOptions): Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AASA,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAsD3E"}
@@ -0,0 +1,112 @@
1
+ // ============================================
2
+ // CLI: history command: Show past runs
3
+ // ============================================
4
+ import * as path from 'path';
5
+ import chalk from 'chalk';
6
+ import Table from 'cli-table3';
7
+ import { IterationLogger } from 'jig-core';
8
+ export async function historyCommand(options) {
9
+ const workingDir = path.resolve(options.dir || '.');
10
+ console.log(chalk.cyan('\nJig: run history\n'));
11
+ // Show detail for a specific run
12
+ if (options.detail) {
13
+ await showRunDetail(workingDir, options.detail);
14
+ return;
15
+ }
16
+ // List runs
17
+ const runs = await IterationLogger.listRuns(workingDir);
18
+ const limit = parseInt(options.last || '10');
19
+ const displayRuns = runs.slice(0, limit);
20
+ if (displayRuns.length === 0) {
21
+ console.log(chalk.gray(' No runs found.\n'));
22
+ return;
23
+ }
24
+ const table = new Table({
25
+ head: [
26
+ chalk.white('Run ID'),
27
+ chalk.white('Iterations'),
28
+ chalk.white('Status'),
29
+ chalk.white('Duration'),
30
+ chalk.white('Tokens'),
31
+ ],
32
+ style: { head: [], border: [] },
33
+ });
34
+ for (const runId of displayRuns) {
35
+ const result = await IterationLogger.loadResult(workingDir, runId);
36
+ if (result) {
37
+ table.push([
38
+ runId.slice(0, 12),
39
+ String(result.totalIterations),
40
+ result.success ? chalk.green('✓ OK') : chalk.red('✗ Failed'),
41
+ formatMs(result.totalDurationMs),
42
+ result.state.totalTokenUsage.totalTokens.toLocaleString(),
43
+ ]);
44
+ }
45
+ else {
46
+ table.push([runId.slice(0, 12), '-', chalk.gray('unknown'), '-', '-']);
47
+ }
48
+ }
49
+ console.log(table.toString());
50
+ console.log(chalk.gray(`\n Showing ${displayRuns.length} of ${runs.length} runs`));
51
+ console.log(chalk.gray(' Use --detail <runId> to see details\n'));
52
+ }
53
+ async function showRunDetail(workingDir, runId) {
54
+ const result = await IterationLogger.loadResult(workingDir, runId);
55
+ if (!result) {
56
+ console.log(chalk.red(` Run "${runId}" not found.\n`));
57
+ return;
58
+ }
59
+ console.log(chalk.white(` Run: ${runId}`));
60
+ console.log(chalk.gray(` Status: ${result.success ? '✓ Success' : '✗ Failed'}`));
61
+ console.log(chalk.gray(` Duration: ${formatMs(result.totalDurationMs)}`));
62
+ console.log(chalk.gray(` Iterations: ${result.totalIterations}`));
63
+ console.log(chalk.gray(` Tokens: ${result.state.totalTokenUsage.totalTokens.toLocaleString()}`));
64
+ if (Object.keys(result.state.totalToolCalls).length > 0) {
65
+ console.log(chalk.white('\n Tool calls:'));
66
+ for (const [name, count] of Object.entries(result.state.totalToolCalls).sort((a, b) => b[1] - a[1])) {
67
+ console.log(chalk.gray(` ${name}: ${count}`));
68
+ }
69
+ }
70
+ if (result.state.errors.length > 0) {
71
+ console.log(chalk.white('\n Errors:'));
72
+ for (const err of result.state.errors.slice(0, 10)) {
73
+ console.log(chalk.red(` ✗ ${err}`));
74
+ }
75
+ }
76
+ // Iteration summary
77
+ if (result.state.iterations.length > 0) {
78
+ console.log(chalk.white('\n Iterations:'));
79
+ const table = new Table({
80
+ head: [
81
+ chalk.white('#'),
82
+ chalk.white('Duration'),
83
+ chalk.white('Tools'),
84
+ chalk.white('Tokens'),
85
+ chalk.white('Status'),
86
+ ],
87
+ style: { head: [], border: [] },
88
+ });
89
+ for (const iter of result.state.iterations) {
90
+ table.push([
91
+ String(iter.number),
92
+ formatMs(iter.durationMs || 0),
93
+ String(iter.toolCalls.length),
94
+ iter.tokenUsage.totalTokens.toLocaleString(),
95
+ iter.success ? chalk.green('✓') : chalk.red('✗'),
96
+ ]);
97
+ }
98
+ console.log(table.toString());
99
+ }
100
+ console.log('');
101
+ }
102
+ function formatMs(ms) {
103
+ if (ms < 1000)
104
+ return `${ms}ms`;
105
+ const seconds = Math.floor(ms / 1000);
106
+ const minutes = Math.floor(seconds / 60);
107
+ if (minutes > 0) {
108
+ return `${minutes}m ${seconds % 60}s`;
109
+ }
110
+ return `${seconds}s`;
111
+ }
112
+ //# sourceMappingURL=history.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/commands/history.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,uCAAuC;AACvC,+CAA+C;AAE/C,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAmB,MAAM,UAAU,CAAC;AAQ5D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAuB;IAC1D,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAEhD,iCAAiC;IACjC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,aAAa,CAAC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAChD,OAAO;IACT,CAAC;IAED,YAAY;IACZ,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CA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CAAC,CAAC;IACzC,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;QAChB,OAAO,GAAG,OAAO,KAAK,OAAO,GAAG,EAAE,GAAG,CAAC;IACxC,CAAC;IACD,OAAO,GAAG,OAAO,GAAG,CAAC;AACvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface InitOptions {
2
+ dir?: string;
3
+ template?: string;
4
+ }
5
+ export declare function initCommand(options: InitOptions): Promise<void>;
6
+ export {};
7
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAUA,UAAU,WAAW;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAsJD,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiFrE"}