infynon 0.2.8 → 0.2.9

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 (2) hide show
  1. package/README.md +649 -122
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,212 +1,739 @@
1
- # infynon
1
+ # INFYNON CLI
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/infynon?style=flat-square&logo=npm)](https://www.npmjs.com/package/infynon)
4
- [![npm downloads](https://img.shields.io/badge/dynamic/json?style=flat-square&logo=npm&label=npm%20downloads&query=%24.downloads&url=https%3A%2F%2Fapi.npmjs.org%2Fdownloads%2Fpoint%2F2025-05-04%3A2050-12-31%2Finfynon&cacheSeconds=3600)](https://www.npmjs.com/package/infynon)
5
4
  [![GitHub release](https://img.shields.io/github/v/release/d4rkNinja/infynon-cli?style=flat-square&logo=github)](https://github.com/d4rkNinja/infynon-cli/releases)
6
- [![Agent control plane](https://img.shields.io/badge/agent%20control%20plane-Codex%20%7C%20Claude%20%7C%20Gemini-7c3aed?style=flat-square)](https://github.com/d4rkNinja/infynon-cli/blob/main/docs/agent-control-plane.md)
7
- [![Package security](https://img.shields.io/badge/pkg-secure%20installs-ef4444?style=flat-square)](https://github.com/d4rkNinja/infynon-cli/blob/main/docs/commands.md)
5
+ [![MIT License](https://img.shields.io/badge/license-MIT-0f172a?style=flat-square)](LICENSE)
6
+ [![Docs](https://img.shields.io/badge/docs-cli.infynon.com-14b8a6?style=flat-square)](https://cli.infynon.com/docs)
7
+ [![Agent control plane](https://img.shields.io/badge/agent%20control%20plane-Codex%20%7C%20Claude%20%7C%20Gemini-7c3aed?style=flat-square)](docs/agent-control-plane.md)
8
+ [![Package security](https://img.shields.io/badge/pkg-secure%20installs-ef4444?style=flat-square)](#package-safety-pkg)
9
+ [![API flows](https://img.shields.io/badge/weave-API%20flows-0ea5e9?style=flat-square)](#api-workflow-testing-weave)
10
+ [![Repo memory](https://img.shields.io/badge/trace-repo%20memory-10b981?style=flat-square)](#repo-memory-trace)
11
+ [![npm downloads](https://img.shields.io/badge/dynamic/json?style=flat-square&logo=npm&label=npm%20downloads&query=%24.downloads&url=https%3A%2F%2Fapi.npmjs.org%2Fdownloads%2Fpoint%2F2025-05-04%3A2050-12-31%2Finfynon&cacheSeconds=3600)](https://www.npmjs.com/package/infynon)
12
+
13
+ Security-first CLI for AI-driven development.
14
+
15
+ INFYNON helps developers verify packages before install, trace repo context, test API flows, and manage AI coding tasks with more control.
8
16
 
9
- INFYNON is a terminal control plane for agentic engineering: multi-agent workspace/task orchestration, package intelligence, API flow testing, and repository memory in one native CLI.
17
+ > Install. Verify. Trace. Orchestrate.
10
18
 
11
- This npm package is the official wrapper for the INFYNON native binary. npm installs the matching optional platform package when available; otherwise the wrapper downloads and verifies the matching GitHub Release binary on first launch. The public distribution repo includes installers, npm/go wrappers, docs, and release assets; the core Rust implementation is not included.
19
+ ---
12
20
 
13
- ## Why Install INFYNON
21
+ ## Why INFYNON?
14
22
 
15
- INFYNON is built for teams that need one terminal tool for five connected workflows:
23
+ AI coding tools can generate code fast, but they can also install unknown packages, miss dependency risk, lose context, or create messy task flows.
16
24
 
17
- | Workflow | Command Area | Purpose |
18
- |---|---|---|
19
- | Agent control plane | `infynon workspace`, `infynon task`, `infynon coding` | Coordinate Codex, Claude Code, Gemini CLI, and child agent sessions through durable workspace and task records. |
20
- | Package intelligence | `infynon pkg` | Scan dependencies, inspect risk, audit package changes, and support safer install workflows. |
21
- | API flow testing | `infynon weave` | Run multi-step API flows with context passed between requests. |
22
- | Repository memory | `infynon trace` | Preserve structured handoff notes, branch context, package ownership, and repo memory. |
23
- | Agent task contracts | GCCD briefs | Turn vague AI work requests into Goal, Context, Constraints, and Done When. |
25
+ INFYNON gives developers a control layer for modern AI-assisted development:
24
26
 
25
- ## Install
27
+ - Check package risk before installation
28
+ - Audit dependency files and lockfiles
29
+ - Trace repo decisions and execution context
30
+ - Build and replay API workflows
31
+ - Manage AI-agent coding tasks across workspaces
32
+ - Coordinate Claude, Codex, Gemini, or other agents through task state
33
+
34
+ ---
35
+
36
+ ## Installation
26
37
 
27
38
  ```bash
28
- npm install -g infynon
39
+ npm i -g infynon
29
40
  ```
30
41
 
31
- npm installs the wrapper and, when available, the matching optional native package for the current platform. If the optional package is unavailable, first launch downloads and verifies the matching GitHub Release binary.
42
+ Verify installation:
32
43
 
33
- ## Supported Platforms
44
+ ```bash
45
+ infynon --version
46
+ ```
34
47
 
35
- - Windows x64
36
- - Linux x64
37
- - Linux arm64
38
- - macOS x64
39
- - macOS arm64
48
+ Other install paths:
40
49
 
41
- Unsupported platforms can still install the npm wrapper, but the wrapper will not be able to download a native binary until a matching release asset exists.
50
+ ```bash
51
+ go install github.com/d4rkNinja/infynon-cli/go/cmd/infynon@latest
52
+ curl -fsSL https://raw.githubusercontent.com/d4rkNinja/infynon-cli/main/install.sh | bash
53
+ ```
42
54
 
43
- ## Provenance and Platform Packages
55
+ Windows:
44
56
 
45
- INFYNON npm packages are configured for npm provenance when published from a public GitHub Actions source repository. Private-source release runs publish without provenance because npm rejects private-repo provenance bundles; use the GitHub Release manifest and SHA-256 checksums as the release-integrity signal for those builds.
57
+ ```powershell
58
+ irm https://raw.githubusercontent.com/d4rkNinja/infynon-cli/main/install.ps1 | iex
59
+ ```
46
60
 
47
- The package can use optional native binary packages:
61
+ ---
48
62
 
49
- - `@infynon/cli-win32-x64`
50
- - `@infynon/cli-linux-x64`
51
- - `@infynon/cli-linux-arm64`
52
- - `@infynon/cli-darwin-x64`
53
- - `@infynon/cli-darwin-arm64`
63
+ ## Core Commands
54
64
 
55
- ## Quick Start
65
+ INFYNON is built around a few major command groups:
66
+
67
+ | Command | Purpose |
68
+ |---|---|
69
+ | `pkg` | Package search, install verification, audits, dependency safety |
70
+ | `trace` | Repo memory, context, file/package/PR/branch tracking |
71
+ | `weave` | API workflow testing, replay, chained requests |
72
+ | `task` | AI task management and agent coordination |
73
+ | `workspace` | Workspace setup, routing, and agent root configuration |
74
+ | `coding` | Launch coding agents like Claude, Codex, Gemini |
75
+ | `soul` | Store stable user-level agent context |
76
+ | `doctor` | Diagnose installation and wrapper issues |
77
+
78
+ ### Complete command map
79
+
80
+ Use this as the quick command checklist.
56
81
 
57
82
  ```bash
58
- infynon --help
59
- infynon workspace agent-root-show
60
- infynon pkg scan
61
- infynon pkg audit
62
- infynon weave flow run checkout
63
- infynon trace tui
64
- infynon task create task_001 --mutate --workspace app --agent codex --prompt "Ship the settings API patch"
83
+ infynon pkg scan [--output markdown|pdf|both] [--fix [level]] [--pkg-file <file>]
84
+ infynon pkg audit [--pkg-file <file>]
85
+ infynon pkg why <package> [--pkg-file <file>]
86
+ infynon pkg explain <package> [--ecosystem <name>] [--pkg-file <file>]
87
+ infynon pkg outdated [--pkg-file <file>]
88
+ infynon pkg diff <package> <version-a> <version-b> [--ecosystem <name>]
89
+ infynon pkg doctor [--pkg-file <file>]
90
+ infynon pkg size <package...> [--ecosystem <name>]
91
+ infynon pkg search <query> [--ecosystem <name>]
92
+ infynon pkg fix [--auto] [--pkg-file <file>]
93
+ infynon pkg clean [--pkg-file <file>]
94
+ infynon pkg migrate <from> <to>
95
+ infynon pkg eagle-eye setup|start|status|enable|disable
96
+ infynon pkg <npm|yarn|pnpm|bun|pip|uv|poetry|cargo|...> <package-manager-args>
65
97
  ```
66
98
 
67
- ## Agent Control Plane
99
+ ```bash
100
+ infynon weave tui [flow-id]
101
+ infynon weave env list
102
+ infynon weave env set <key> <value>
103
+ infynon weave env get <key> [--reveal]
104
+ infynon weave env delete <key>
105
+ infynon weave node create [--ai <description>]
106
+ infynon weave node list
107
+ infynon weave node get <node-id>
108
+ infynon weave node clone <node-id> <new-id>
109
+ infynon weave node run <node-id> [--base-url <url>] [--set key=value] [--prompt]
110
+ infynon weave node export <node-id> [--format curl|json] [--base-url <url>]
111
+ infynon weave node remove <node-id>
112
+ infynon weave node assertion <node-id> list
113
+ infynon weave node assertion <node-id> add <check> [--on-fail stop|continue]
114
+ infynon weave node assertion <node-id> enable <index>
115
+ infynon weave node assertion <node-id> disable <index>
116
+ infynon weave node assertion <node-id> toggle <index>
117
+ infynon weave node assertion <node-id> remove <index>
118
+ infynon weave node prompt <node-id> list
119
+ infynon weave node prompt <node-id> add <var> [--label <label>] [--secret] [--default <value>] [--type text|secret|boolean|select|multiselect] [--options a,b,c]
120
+ infynon weave node prompt <node-id> remove <index>
121
+ infynon weave flow create <name> [--ai <description>]
122
+ infynon weave flow list
123
+ infynon weave flow show <flow-id>
124
+ infynon weave flow run <flow-id> [--base-url <url>] [--set key=value] [--format json|markdown|junit] [--output markdown|pdf|both] [--no-input]
125
+ infynon weave flow run-all [--base-url <url>] [--set key=value] [--format json|markdown|junit] [--output markdown|pdf|both] [--no-input]
126
+ infynon weave flow merge <flow-a> <flow-b> --join-at <node-id> [--name <name>]
127
+ infynon weave flow remove <flow-id>
128
+ infynon weave attach <from-node> <to-node> [--carry var1,var2] [--condition <expr>] [--ai]
129
+ infynon weave detach <from-node> <to-node>
130
+ infynon weave import <spec> [--flow <name>] [--base-url <url>] [--prefix <prefix>] [--dry-run]
131
+ infynon weave validate
132
+ infynon weave ai suggest --after <node-id>
133
+ infynon weave ai attach --after <node-id> [--flow <flow-id>]
134
+ infynon weave ai complete <flow-id>
135
+ infynon weave ai probe <flow-id> [--base-url <url>]
136
+ infynon weave ai build-flow --nodes <node-a,node-b> [--name <name>]
137
+ infynon weave ai explain <flow-id> [--run <index>]
138
+ infynon weave ai assert <node-id>
139
+ infynon weave ai branch <node-id>
140
+ ```
68
141
 
69
- Use INFYNON when one lead session needs to coordinate child coding agents.
142
+ ```bash
143
+ infynon trace overview
144
+ infynon trace init [--repo <name>] [--owner <owner>] [--user <user>]
145
+ infynon trace source add-redis <id> --url <url> [--namespace <ns>] [--notes <text>] [--user <user>] [--default]
146
+ infynon trace source add-sql <id> --engine postgres|mysql|sqlite --url <url> [--database <db>] [--username <user>] [--password-env <env>] [--notes <text>] [--user <user>] [--default]
147
+ infynon trace source list
148
+ infynon trace source default <id>
149
+ infynon trace source remove <id>
150
+ infynon trace note add <id> --title <title> --body <body> [--layer canonical|team|user] [--scope repo|branch|pr|file|user|session|package] [--target <value>] [--author <name>] [--actor <name>] [--files a,b] [--tags a,b] [--related-pr <n>]
151
+ infynon trace note update <id> [--title <title>] [--body <body>] [--status <status>]
152
+ infynon trace note list
153
+ infynon trace note remove <id>
154
+ infynon trace retrieve [--layer <layer>] [--scope <scope>] [--target <value>] [--author <name>] [--file <path>] [--tag <tag>] [--format table|markdown|json] [--limit <n>]
155
+ infynon trace sync [--source <id>] [--direction pull|push|both]
156
+ infynon trace compact
157
+ infynon trace schema sql|redis
158
+ infynon trace tui
159
+ infynon trace graph build [--branch <branch>] [--all-branches]
160
+ infynon trace graph show [--branch <branch>] [--kind <kind>]
161
+ infynon trace graph entity add <name> --kind <kind> [--branch <branch>] [--meta key=value,key=value]
162
+ infynon trace graph entity list [--branch <branch>] [--kind <kind>]
163
+ infynon trace graph entity remove <id>
164
+ infynon trace graph edge add --from <entity> --to <entity> --relation <type> [--weight <0.0-1.0>] [--branch <branch>] [--evidence <text>]
165
+ infynon trace graph edge list [--branch <branch>] [--relation <type>]
166
+ infynon trace graph edge remove <id>
167
+ infynon trace graph path <from> <to> [--branch <branch>]
168
+ infynon trace graph impact <entity> [--branch <branch>]
169
+ infynon trace graph orphans [--branch <branch>]
170
+ infynon trace graph diff <branch-a> <branch-b>
171
+ infynon trace graph export [--format json|dot] [--branch <branch>] [-o <file>]
172
+ infynon trace graph import <file> [--format json] [--branch <branch>]
173
+ infynon trace graph tui [--branch <branch>]
174
+ ```
70
175
 
71
176
  ```bash
72
- infynon workspace agent-root-set --mutate --path D:/Codeverse/infynon-agent
73
- infynon workspace create app --mutate --folder-name web --path D:/Codeverse/app --default
177
+ infynon workspace create <name> --mutate [--folder-name <folder>] [--path <absolute-dir>] [--description <text>] [--default] [model flags]
178
+ infynon workspace list
179
+ infynon workspace show <name>
180
+ infynon workspace update <name> --mutate [--folder-name <folder>] [--path <absolute-dir>] [--description <text>] [--default] [model flags]
181
+ infynon workspace add-folder <name> --mutate --folder-name <folder> --path <absolute-dir>
182
+ infynon workspace remove-folder <name> --mutate --folder-name <folder>
183
+ infynon workspace remove <name> --mutate
184
+ infynon workspace agent-root-show
185
+ infynon workspace agent-root-set --mutate --path <absolute-dir>
186
+ ```
74
187
 
75
- infynon task create task_ui_review \
76
- --mutate \
77
- --workspace app \
78
- --folder-name web \
79
- --agent claude \
80
- --prompt "Review the settings UI change. Do not edit backend files. Done when findings are recorded."
188
+ ```bash
189
+ infynon task create <id> --mutate [--workspace <name>] [--folder-name <folder>] [--agent <agent>] [--model <model>] [--thinking auto|low|medium|high|xhigh] [--prompt <text>] [--command <cmd>] [--pid <pid>] [--session-id <id>] [--notes <text>] [--result <text>] [--blocked-by <task-id>] [--blocked-reason <text>] [--status <status>]
190
+ infynon task list [--workspace <name>] [--status <status>] [--agent <agent>]
191
+ infynon task show <id>
192
+ infynon task update <id> --mutate [task metadata flags]
193
+ infynon task note <id> --mutate --text <text>
194
+ infynon task result <id> --mutate --text <text>
195
+ infynon task fork <new-id> --from <task-id> --mutate [task metadata flags]
196
+ infynon task start <id> --mutate [--pid <pid>] [--session-id <id>]
197
+ infynon task resume <id> --mutate [--session-id <id>] [--prompt <text>]
198
+ infynon task complete <id> --mutate [--notes <text>] [--result <text>] [--close-terminal] [--keep-terminal]
199
+ infynon task fail <id> --mutate [--reason <text>] [--result <text>] [--close-terminal] [--keep-terminal]
200
+ infynon task kill <id> --mutate [--pid <pid>] [--reason <text>] [--force]
201
+ infynon task remove <id> --mutate
202
+ ```
81
203
 
204
+ ```bash
82
205
  infynon coding tui
206
+ infynon coding codex [--background true|false] [--cwd <path>] [-- <agent args>]
207
+ infynon coding claude [--background true|false] [--cwd <path>] [-- <agent args>]
208
+ infynon coding gemini [--background true|false] [--cwd <path>] [-- <agent args>]
209
+ infynon soul show
210
+ infynon soul update [--text <text>] [--file <path>]
211
+ infynon doctor npm
212
+ ```
213
+
214
+ ---
215
+
216
+ ## Package Safety: `pkg`
217
+
218
+ Use `pkg` to search, verify, audit, and manage dependencies safely.
219
+
220
+ ### Search packages
221
+
222
+ ```bash
223
+ infynon pkg search react
224
+ infynon pkg search fastapi --ecosystem pypi
83
225
  ```
84
226
 
85
- Good fit:
227
+ Search works across supported ecosystems and helps compare packages using stronger trust signals.
86
228
 
87
- - parent and child agent work
88
- - Codex, Claude Code, and Gemini CLI sessions launched from the right workspace
89
- - task retries where context and completion criteria must stay intact
90
- - reviewable handoffs between agents and humans
229
+ ### Install with verification
91
230
 
92
- ## Package Intelligence
231
+ ```bash
232
+ infynon pkg npm install axios
233
+ infynon pkg uv add fastapi
234
+ infynon pkg cargo add serde
235
+ ```
236
+
237
+ INFYNON checks package risk before execution, not after.
93
238
 
94
- Use `infynon pkg` to inspect dependency risk and package state.
239
+ ### Scan dependency files
95
240
 
96
241
  ```bash
97
242
  infynon pkg scan
243
+ infynon pkg scan --pkg-file package-lock.json
244
+ infynon pkg scan --pkg-file uv.lock
245
+ infynon pkg scan --json
246
+ ```
247
+
248
+ ### Auto-fix vulnerable packages
249
+
250
+ ```bash
251
+ infynon pkg scan --fix
252
+ infynon pkg scan --fix high
253
+ infynon pkg fix --auto
254
+ ```
255
+
256
+ ### Other useful package commands
257
+
258
+ ```bash
98
259
  infynon pkg audit
99
- infynon pkg explain serde_json
260
+ infynon pkg outdated
261
+ infynon pkg why <package>
262
+ infynon pkg explain <package>
263
+ infynon pkg diff <package> <version-a> <version-b>
264
+ infynon pkg size <package>
265
+ infynon pkg doctor
266
+ infynon pkg clean
267
+ infynon pkg migrate <from> <to>
268
+ infynon pkg eagle-eye setup
100
269
  ```
101
270
 
102
- Good fit:
271
+ Global package flags:
103
272
 
104
- - reviewing dependency changes
105
- - scanning a project before merging
106
- - understanding why a package exists
107
- - adding package security checks to local workflows
273
+ ```bash
274
+ --strict [level]
275
+ --pkg-file <path>
276
+ --json
277
+ --no-input
278
+ --yes
279
+ --skip-vulnerable
280
+ --auto-fix
281
+ ```
282
+
283
+ ---
284
+
285
+ ## API Workflow Testing: `weave`
108
286
 
109
- ## API Flow Testing
287
+ Use `weave` to build, run, save, and replay API flows from the terminal.
110
288
 
111
- Use `infynon weave` when API behavior depends on multiple connected requests.
289
+ Good for testing real backend flows like:
290
+
291
+ - Login
292
+ - Fetch profile
293
+ - Create resource
294
+ - Pass token to the next request
295
+ - Use a response ID in another request
296
+ - Replay the full flow safely in CI
297
+
298
+ Set shared environment values:
112
299
 
113
300
  ```bash
114
- infynon weave env set BASE_URL http://localhost:8001
115
- infynon weave flow run checkout
301
+ infynon weave env set BASE_URL http://localhost:8000
302
+ infynon weave env list
116
303
  ```
117
304
 
118
- Good fit:
305
+ Create and inspect nodes:
119
306
 
120
- - login-then-action API workflows
121
- - stateful API validation
122
- - terminal-first flow execution
123
- - CI-friendly API checks
307
+ ```bash
308
+ infynon weave node create
309
+ infynon weave node create --ai "POST /auth/login extracts token"
310
+ infynon weave node list
311
+ infynon weave node get <node-id>
312
+ ```
313
+
314
+ Run one node:
315
+
316
+ ```bash
317
+ infynon weave node run <node-id>
318
+ infynon weave node run <node-id> --base-url http://localhost:8000
319
+ infynon weave node run <node-id> --set token=abc123
320
+ ```
321
+
322
+ Create and run flows:
323
+
324
+ ```bash
325
+ infynon weave flow create auth-flow
326
+ infynon weave flow create auth-flow --ai "login then get profile"
327
+ infynon weave flow list
328
+ infynon weave flow show <flow-id>
329
+ infynon weave flow run <flow-id>
330
+ infynon weave flow run <flow-id> --format json --no-input
331
+ infynon weave flow run-all --format junit --no-input
332
+ ```
333
+
334
+ Assertions and runtime prompts:
335
+
336
+ ```bash
337
+ infynon weave node assertion <node-id> add "status == 200"
338
+ infynon weave node assertion <node-id> list
339
+ infynon weave node prompt <node-id> add otp --label "OTP code" --type text
340
+ infynon weave node prompt <node-id> list
341
+ ```
342
+
343
+ Security and AI helpers:
124
344
 
125
- ## Repository Memory
345
+ ```bash
346
+ infynon weave ai probe <flow-id>
347
+ infynon weave ai explain <flow-id>
348
+ infynon weave ai build-flow --nodes login,get-profile --name auth-flow
349
+ ```
350
+
351
+ Open the API flow TUI:
352
+
353
+ ```bash
354
+ infynon weave tui
355
+ ```
356
+
357
+ ---
126
358
 
127
- Use `infynon trace` to preserve context that usually disappears into chat, PR comments, or local notes.
359
+ ## Repo Memory: `trace`
360
+
361
+ Use `trace` to remember why something changed, not just what changed.
362
+
363
+ Useful for tracking:
364
+
365
+ - Packages
366
+ - Files
367
+ - Branches
368
+ - Pull requests
369
+ - Repo decisions
370
+ - AI-generated changes
371
+ - Context behind implementation
372
+
373
+ Initialize Trace:
128
374
 
129
375
  ```bash
130
376
  infynon trace init
131
- infynon trace note add repo-handoff --title "Auth changed" --body "Refresh moved into middleware"
377
+ infynon trace overview
378
+ ```
379
+
380
+ Create notes:
381
+
382
+ ```bash
383
+ infynon trace note add auth-change --title "Auth changed" --body "Refresh logic moved into middleware."
384
+ infynon trace note add package-risk --title "Package risk" --body "Review before next release." --scope package --target serde_json
385
+ ```
386
+
387
+ List, update, and remove notes:
388
+
389
+ ```bash
390
+ infynon trace note list
391
+ infynon trace note update auth-change --status stale
392
+ infynon trace note remove auth-change
393
+ ```
394
+
395
+ Retrieve context:
396
+
397
+ ```bash
398
+ infynon trace retrieve --scope branch --target feature/auth
399
+ infynon trace retrieve --scope package --target serde_json
400
+ infynon trace retrieve --file src/auth.rs
401
+ infynon trace retrieve --format markdown --limit 5
402
+ ```
403
+
404
+ Sync and inspect:
405
+
406
+ ```bash
407
+ infynon trace sync --direction both
408
+ infynon trace compact
409
+ infynon trace schema sql
410
+ infynon trace schema redis
132
411
  infynon trace tui
133
412
  ```
134
413
 
135
- Good fit:
414
+ Knowledge graph:
415
+
416
+ ```bash
417
+ infynon trace graph build
418
+ infynon trace graph show
419
+ infynon trace graph entity add src/auth.rs --kind file
420
+ infynon trace graph edge add --from src/auth.rs --to serde_json --relation depends_on
421
+ infynon trace graph path <from> <to>
422
+ infynon trace graph impact src/auth.rs
423
+ infynon trace graph diff main feature/auth
424
+ infynon trace graph export --format dot -o graph.dot
425
+ infynon trace graph tui
426
+ ```
427
+
428
+ ---
136
429
 
137
- - branch handoffs
138
- - package ownership context
139
- - team notes
140
- - AI-assisted coding sessions that need durable memory
430
+ ## AI Task Management: `task`
141
431
 
142
- ## Agent Task Contracts
432
+ Use `task` to create, assign, track, block, fork, resume, and complete coding tasks.
143
433
 
144
- Use `infynon task` when AI work needs a contract instead of a loose prompt. INFYNON uses GCCD:
434
+ This is useful when using multiple AI agents as subagents.
145
435
 
146
- - Goal: the outcome the task must produce
147
- - Context: the project, files, APIs, or decisions the agent needs to know
148
- - Constraints: boundaries the agent must respect
149
- - Done When: the checks that prove the task is complete
436
+ ### Create task
150
437
 
151
438
  ```bash
152
- infynon task create task_001 \
153
- --mutate \
154
- --workspace ./apps/web \
155
- --agent codex \
156
- --prompt "Build the settings page using existing UI components. Do not modify auth logic. Typecheck must pass."
439
+ infynon task create <task-id> --mutate --workspace <workspace> --prompt "Review the authentication module."
157
440
  ```
158
441
 
159
- Good fit:
442
+ Assign the task during creation:
160
443
 
161
- - scoped implementation tasks
162
- - reviewable handoffs
163
- - retries where completion criteria must stay intact
444
+ ```bash
445
+ infynon task create <task-id> --mutate --workspace <workspace> --agent claude --prompt "Review auth code."
446
+ infynon task create <task-id> --mutate --workspace <workspace> --agent codex --prompt "Implement the focused fix."
447
+ infynon task create <task-id> --mutate --workspace <workspace> --agent gemini --prompt "Review edge cases."
448
+ ```
164
449
 
165
- ## Alternative Install Methods
450
+ If `--agent` is `claude`, `codex`, or `gemini`, INFYNON can start the agent task immediately. Use `--status queued` to create the task without launching it.
166
451
 
167
- GitHub Releases:
452
+ ### List tasks
168
453
 
169
- ```text
170
- https://github.com/d4rkNinja/infynon-cli/releases
454
+ ```bash
455
+ infynon task list
456
+ infynon task list --workspace <workspace>
457
+ infynon task list --status running
458
+ infynon task list --agent codex
171
459
  ```
172
460
 
173
- macOS and Linux:
461
+ ### Show task details
174
462
 
175
463
  ```bash
176
- curl -fsSL https://raw.githubusercontent.com/d4rkNinja/infynon-cli/main/install.sh | bash
464
+ infynon task show <task-id>
177
465
  ```
178
466
 
179
- Windows:
467
+ ### Update task metadata
180
468
 
181
- ```powershell
182
- iwr https://raw.githubusercontent.com/d4rkNinja/infynon-cli/main/install.ps1 -useb | iex
469
+ ```bash
470
+ infynon task update <task-id> --mutate --status running
471
+ infynon task update <task-id> --mutate --model gpt-5.5 --thinking high
472
+ infynon task update <task-id> --mutate --session-id <session-id>
183
473
  ```
184
474
 
185
- Go wrapper:
475
+ ### Add task note
186
476
 
187
477
  ```bash
188
- go install github.com/d4rkNinja/infynon-cli/go/cmd/infynon@latest
478
+ infynon task note <task-id> --mutate --text "Blocked on CI output."
189
479
  ```
190
480
 
191
- ## Verification
481
+ Task notes can be used by subagents or the main agent to understand updates, blockers, and execution context.
192
482
 
193
- GitHub Releases include `checksums.txt` for SHA-256 verification.
483
+ ### Add task result
194
484
 
195
- ```text
196
- https://github.com/d4rkNinja/infynon-cli/releases
485
+ ```bash
486
+ infynon task result <task-id> --mutate --text "Found one auth edge case."
197
487
  ```
198
488
 
199
- ## Documentation
489
+ ### Resume task
490
+
491
+ ```bash
492
+ infynon task resume <task-id> --mutate --session-id <session-id> --prompt "Continue with the next failing test."
493
+ ```
494
+
495
+ ### Mark task complete
496
+
497
+ ```bash
498
+ infynon task complete <task-id> --mutate --result "Task completed with findings recorded."
499
+ ```
500
+
501
+ ### Mark task failed
502
+
503
+ ```bash
504
+ infynon task fail <task-id> --mutate --reason "Blocked by missing environment variables."
505
+ ```
506
+
507
+ ### Block task
508
+
509
+ Block during create or update:
510
+
511
+ ```bash
512
+ infynon task create <task-id> --mutate --workspace <workspace> --blocked-by <other-task-id> --blocked-reason "Waiting for backend task."
513
+ infynon task update <task-id> --mutate --blocked-by <other-task-id> --blocked-reason "Waiting for backend task."
514
+ ```
515
+
516
+ ### Fork task
517
+
518
+ ```bash
519
+ infynon task fork <child-task-id> --from <parent-task-id> --mutate --agent codex --prompt "Handle the backend slice only."
520
+ ```
521
+
522
+ ### TUI
523
+
524
+ INFYNON includes a TUI for workspace and task management:
525
+
526
+ ```bash
527
+ infynon coding tui
528
+ ```
529
+
530
+ ---
531
+
532
+ ## GCCD Task Format
533
+
534
+ INFYNON tasks work best with the GCCD format:
535
+
536
+ ```md
537
+ Goal:
538
+ What needs to be done.
539
+
540
+ Constraint:
541
+ Rules, limits, files to avoid, style, framework, security boundaries.
542
+
543
+ Context:
544
+ Current project state, related files, existing behavior, previous notes.
545
+
546
+ Done When:
547
+ Clear completion condition.
548
+ ```
549
+
550
+ Example:
551
+
552
+ ```md
553
+ Goal:
554
+ Review the authentication module and find possible bugs.
555
+
556
+ Constraint:
557
+ Do not rewrite the whole module. Only suggest minimal safe fixes.
558
+
559
+ Context:
560
+ This is a NestJS backend using JWT-based auth and role permissions.
561
+
562
+ Done When:
563
+ List confirmed bugs, risky patterns, and safe patch suggestions.
564
+ ```
565
+
566
+ ---
567
+
568
+ ## Workspace Management
569
+
570
+ INFYNON supports multiple workspaces and agent roots.
571
+
572
+ ```bash
573
+ infynon workspace list
574
+ infynon workspace show <name>
575
+ infynon workspace create <name> --mutate --folder-name <folder> --path <path>
576
+ infynon workspace update <name> --mutate --description "Primary workspace"
577
+ infynon workspace add-folder <name> --mutate --folder-name <folder> --path <path>
578
+ infynon workspace remove-folder <name> --mutate --folder-name <folder>
579
+ infynon workspace remove <name> --mutate
580
+ infynon workspace agent-root-show
581
+ infynon workspace agent-root-set --mutate --path <path>
582
+ ```
583
+
584
+ Example:
585
+
586
+ ```bash
587
+ infynon workspace create app --mutate --folder-name backend --path D:\Codeverse\app --default
588
+ infynon workspace agent-root-set --mutate --path D:\infyn
589
+ ```
590
+
591
+ Workspace model slots:
592
+
593
+ ```bash
594
+ --lite-model <model>
595
+ --frontier-model <model>
596
+ --highest-frontier-model <model>
597
+ --super-lite-model <model>
598
+ ```
599
+
600
+ ---
601
+
602
+ ## Launch Coding Agents
603
+
604
+ INFYNON can launch coding agents from the terminal.
605
+
606
+ ```bash
607
+ infynon coding claude
608
+ infynon coding codex
609
+ infynon coding gemini
610
+ ```
611
+
612
+ Use this with tasks to create cleaner AI-agent workflows.
613
+
614
+ Optional launch flags:
615
+
616
+ ```bash
617
+ infynon coding codex --cwd D:/Codeverse/app
618
+ infynon coding claude --background true
619
+ infynon coding gemini -- --debug
620
+ ```
621
+
622
+ ---
623
+
624
+ ## Multi-Agent Workflow
625
+
626
+ INFYNON can be used as a coordination layer for AI coding agents.
627
+
628
+ Example flow:
629
+
630
+ ```bash
631
+ infynon workspace create app --mutate --folder-name backend --path D:/Codeverse/app --default
632
+ infynon task create parent-task --mutate --workspace app --prompt "Review and fix auth risk."
633
+ infynon task fork backend-task --from parent-task --mutate --agent codex --folder-name backend --prompt "Implement the backend fix only."
634
+ infynon task fork review-task --from parent-task --mutate --agent gemini --folder-name backend --status queued --prompt "Review backend-task after it finishes."
635
+ infynon task note backend-task --mutate --text "Backend worker started."
636
+ infynon task result backend-task --mutate --text "Patch completed."
637
+ infynon task complete backend-task --mutate --result "Backend fix completed."
638
+ infynon task start review-task --mutate
639
+ ```
640
+
641
+ Recommended model:
642
+
643
+ - Main agent owns the parent task
644
+ - Child agents handle focused subtasks
645
+ - Every subtask has a real task record
646
+ - Notes and results are added back into INFYNON
647
+ - Main agent reviews before completion
648
+
649
+ ---
650
+
651
+ ## Example Use Cases
652
+
653
+ ### Secure package install
654
+
655
+ ```bash
656
+ infynon pkg npm install express
657
+ ```
658
+
659
+ ### Audit a lockfile
660
+
661
+ ```bash
662
+ infynon pkg scan --pkg-file package-lock.json
663
+ ```
664
+
665
+ ### Test API login flow
666
+
667
+ ```bash
668
+ infynon weave flow run auth-flow --format json --no-input
669
+ ```
670
+
671
+ ### Create code review task
672
+
673
+ ```bash
674
+ infynon task create review-auth --mutate --workspace app --agent gemini --prompt "Review auth module for bugs."
675
+ ```
676
+
677
+ ### Launch Claude Code inside workspace
678
+
679
+ ```bash
680
+ infynon coding claude --cwd D:/Codeverse/app
681
+ ```
682
+
683
+ ---
684
+
685
+ ## Security Philosophy
686
+
687
+ INFYNON treats package installation and AI-generated execution as trust boundaries.
688
+
689
+ The goal is simple:
690
+
691
+ ```txt
692
+ Do not blindly install.
693
+ Do not blindly execute.
694
+ Do not lose context.
695
+ Do not trust AI-generated dependency changes without verification.
696
+ ```
697
+
698
+ INFYNON helps developers add control before damage happens.
699
+
700
+ ---
701
+
702
+ ## Roadmap
703
+
704
+ - Better multi-agent orchestration
705
+ - Stronger task lifecycle management
706
+ - More package ecosystem support
707
+ - Improved package trust scoring
708
+ - Better workflow replay and API security probes
709
+ - Deeper AI coding agent integrations
710
+ - Better workspace-level memory and traceability
711
+
712
+ ---
713
+
714
+ ## Links
715
+
716
+ - Website: [https://cli.infynon.com](https://cli.infynon.com)
717
+ - GitHub: [https://github.com/d4rkNinja/infynon-cli](https://github.com/d4rkNinja/infynon-cli)
718
+ - npm: [https://www.npmjs.com/package/infynon](https://www.npmjs.com/package/infynon)
719
+ - Docs: [https://cli.infynon.com/docs](https://cli.infynon.com/docs)
720
+ - Docs home: [docs/README.md](docs/README.md)
721
+ - Command overview: [docs/commands/overview.md](docs/commands/overview.md)
722
+ - Package safety: [docs/commands/pkg.md](docs/commands/pkg.md)
723
+ - API workflows: [docs/commands/weave.md](docs/commands/weave.md)
724
+ - Repo trace: [docs/commands/trace.md](docs/commands/trace.md)
725
+ - AI tasks: [docs/commands/task.md](docs/commands/task.md)
726
+ - Workspaces: [docs/commands/workspace.md](docs/commands/workspace.md)
727
+ - Coding agents: [docs/commands/coding.md](docs/commands/coding.md)
728
+
729
+ Install:
730
+
731
+ ```bash
732
+ npm i -g infynon
733
+ ```
200
734
 
201
- - Public docs: https://github.com/d4rkNinja/infynon-cli/tree/main/docs
202
- - Agent control plane: https://github.com/d4rkNinja/infynon-cli/blob/main/docs/agent-control-plane.md
203
- - AI agent workflow: https://github.com/d4rkNinja/infynon-cli/blob/main/docs/ai-agent-workflow.md
204
- - GCCD task contracts: https://github.com/d4rkNinja/infynon-cli/blob/main/docs/gccd.md
205
- - npm install: https://github.com/d4rkNinja/infynon-cli/blob/main/docs/npm-install.md
206
- - Windows troubleshooting: https://github.com/d4rkNinja/infynon-cli/blob/main/docs/windows-troubleshooting.md
207
- - Releases: https://github.com/d4rkNinja/infynon-cli/releases
208
- - Issues: https://github.com/d4rkNinja/infynon-cli/issues
735
+ ---
209
736
 
210
- ## Source Availability
737
+ ## License
211
738
 
212
- This npm package distributes the INFYNON binary and installer wrapper only. The core Rust implementation is not bundled in this package.
739
+ MIT License. See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infynon",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Security-first CLI for AI-assisted development: safe package installs, dependency scanning, API flow testing, and agent task orchestration.",
5
5
  "bin": {
6
6
  "infynon": "run.js",
@@ -15,11 +15,11 @@
15
15
  "preuninstall.js"
16
16
  ],
17
17
  "optionalDependencies": {
18
- "@infynon/cli-win32-x64": "0.2.8",
19
- "@infynon/cli-linux-x64": "0.2.8",
20
- "@infynon/cli-linux-arm64": "0.2.8",
21
- "@infynon/cli-darwin-x64": "0.2.8",
22
- "@infynon/cli-darwin-arm64": "0.2.8"
18
+ "@infynon/cli-win32-x64": "0.2.9",
19
+ "@infynon/cli-linux-x64": "0.2.9",
20
+ "@infynon/cli-linux-arm64": "0.2.9",
21
+ "@infynon/cli-darwin-x64": "0.2.9",
22
+ "@infynon/cli-darwin-arm64": "0.2.9"
23
23
  },
24
24
  "engines": {
25
25
  "node": "\u003e=18"