@copado/agentia-cli 0.108.0-alpha.0 → 0.110.0-alpha.0
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/README.md +263 -188
- package/dist/commands/ai/session/list.d.ts +14 -0
- package/dist/commands/ai/session/list.js +46 -0
- package/dist/commands/ai/session/list.js.map +1 -0
- package/dist/commands/ai/session/start.d.ts +17 -0
- package/dist/commands/ai/session/start.js +60 -0
- package/dist/commands/ai/session/start.js.map +1 -0
- package/dist/commands/cicd/notification/configure.d.ts +1 -1
- package/dist/commands/cicd/work/deployment-step/create.d.ts +1 -1
- package/dist/commands/cicd/work/status.d.ts +5 -1
- package/dist/commands/cicd/work/status.js +41 -6
- package/dist/commands/cicd/work/status.js.map +1 -1
- package/dist/commands/testing/build/run.d.ts +1 -1
- package/dist/commands/testing/job/update.d.ts +1 -1
- package/dist/commands/testing/run.d.ts +1 -1
- package/dist/commands/testing/test/run.d.ts +1 -1
- package/dist/lib/ai-chat-session.d.ts +3 -0
- package/dist/lib/ai-chat-session.js +180 -64
- package/dist/lib/ai-chat-session.js.map +1 -1
- package/dist/lib/ai-gateway.d.ts +8 -1
- package/dist/lib/ai-gateway.js +34 -2
- package/dist/lib/ai-gateway.js.map +1 -1
- package/dist/lib/ai-session-banner.d.ts +5 -0
- package/dist/lib/ai-session-banner.js +20 -0
- package/dist/lib/ai-session-banner.js.map +1 -0
- package/dist/lib/ai-session-tui-blocks.d.ts +9 -0
- package/dist/lib/ai-session-tui-blocks.js +36 -0
- package/dist/lib/ai-session-tui-blocks.js.map +1 -0
- package/dist/lib/ai-session-tui-clipboard.d.ts +22 -0
- package/dist/lib/ai-session-tui-clipboard.js +78 -0
- package/dist/lib/ai-session-tui-clipboard.js.map +1 -0
- package/dist/lib/ai-session-tui-composer.d.ts +35 -0
- package/dist/lib/ai-session-tui-composer.js +96 -0
- package/dist/lib/ai-session-tui-composer.js.map +1 -0
- package/dist/lib/ai-session-tui-highlight.d.ts +11 -0
- package/dist/lib/ai-session-tui-highlight.js +310 -0
- package/dist/lib/ai-session-tui-highlight.js.map +1 -0
- package/dist/lib/ai-session-tui-keys.d.ts +42 -0
- package/dist/lib/ai-session-tui-keys.js +159 -0
- package/dist/lib/ai-session-tui-keys.js.map +1 -0
- package/dist/lib/ai-session-tui-mermaid-image.d.ts +43 -0
- package/dist/lib/ai-session-tui-mermaid-image.js +444 -0
- package/dist/lib/ai-session-tui-mermaid-image.js.map +1 -0
- package/dist/lib/ai-session-tui-mermaid-paint.d.ts +3 -0
- package/dist/lib/ai-session-tui-mermaid-paint.js +182 -0
- package/dist/lib/ai-session-tui-mermaid-paint.js.map +1 -0
- package/dist/lib/ai-session-tui-mermaid.d.ts +19 -0
- package/dist/lib/ai-session-tui-mermaid.js +158 -0
- package/dist/lib/ai-session-tui-mermaid.js.map +1 -0
- package/dist/lib/ai-session-tui-message.d.ts +9 -0
- package/dist/lib/ai-session-tui-message.js +24 -0
- package/dist/lib/ai-session-tui-message.js.map +1 -0
- package/dist/lib/ai-session-tui-scroll.d.ts +32 -0
- package/dist/lib/ai-session-tui-scroll.js +148 -0
- package/dist/lib/ai-session-tui-scroll.js.map +1 -0
- package/dist/lib/ai-session-tui-slash.d.ts +14 -0
- package/dist/lib/ai-session-tui-slash.js +53 -0
- package/dist/lib/ai-session-tui-slash.js.map +1 -0
- package/dist/lib/ai-session-tui-welcome.d.ts +12 -0
- package/dist/lib/ai-session-tui-welcome.js +33 -0
- package/dist/lib/ai-session-tui-welcome.js.map +1 -0
- package/dist/lib/ai-session-tui-wrap.d.ts +2 -0
- package/dist/lib/ai-session-tui-wrap.js +24 -0
- package/dist/lib/ai-session-tui-wrap.js.map +1 -0
- package/dist/lib/ai-session-tui.d.ts +7 -0
- package/dist/lib/ai-session-tui.js +859 -0
- package/dist/lib/ai-session-tui.js.map +1 -0
- package/dist/lib/ai-sessions.d.ts +17 -0
- package/dist/lib/ai-sessions.js +142 -0
- package/dist/lib/ai-sessions.js.map +1 -0
- package/dist/lib/ai-types.d.ts +19 -0
- package/dist/lib/ai-types.js +49 -1
- package/dist/lib/ai-types.js.map +1 -1
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/format.js +5 -2
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +5 -2
- package/dist/lib/mcp/tools.js +20 -3
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/testing-flags.d.ts +1 -1
- package/dist/lib/work-branch-metadata.d.ts +11 -0
- package/dist/lib/work-branch-metadata.js +31 -0
- package/dist/lib/work-branch-metadata.js.map +1 -0
- package/dist/lib/work-types.d.ts +3 -0
- package/dist/lib/work-types.js +21 -0
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +2418 -2260
- package/package.json +10 -1
- package/templates/skills/agentia-ai/SKILL.md +5 -5
- package/templates/skills/agentia-ai/references/ai-agents.md +18 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copado/agentia-cli",
|
|
3
3
|
"description": "Command-line interface for Agentia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.110.0-alpha.0",
|
|
5
5
|
"author": "Copado Solutions",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentia": "./bin/run.js"
|
|
@@ -14,7 +14,11 @@
|
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
15
|
"@oclif/plugin-help": "^6",
|
|
16
16
|
"@oclif/plugin-plugins": "^5",
|
|
17
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
17
18
|
"@xmldom/xmldom": "^0.9.12",
|
|
19
|
+
"beautiful-mermaid": "^1.1.3",
|
|
20
|
+
"ink": "5.2.1",
|
|
21
|
+
"react": "18.3.1",
|
|
18
22
|
"semver": "^7.8.5",
|
|
19
23
|
"tty-table": "^5.0.0",
|
|
20
24
|
"uuid": "^14.0.1",
|
|
@@ -27,11 +31,13 @@
|
|
|
27
31
|
"@types/chai": "^4",
|
|
28
32
|
"@types/mocha": "^10",
|
|
29
33
|
"@types/node": "^18",
|
|
34
|
+
"@types/react": "18.3.18",
|
|
30
35
|
"@types/semver": "^7.8.0",
|
|
31
36
|
"chai": "^4",
|
|
32
37
|
"eslint": "^9",
|
|
33
38
|
"eslint-config-oclif": "^6",
|
|
34
39
|
"eslint-config-prettier": "^10",
|
|
40
|
+
"ink-testing-library": "4.0.0",
|
|
35
41
|
"mocha": "^11",
|
|
36
42
|
"oclif": "^4",
|
|
37
43
|
"shx": "^0.3.3",
|
|
@@ -83,6 +89,9 @@
|
|
|
83
89
|
"ai:quota": {
|
|
84
90
|
"description": "Inspect Copado AI quota"
|
|
85
91
|
},
|
|
92
|
+
"ai:session": {
|
|
93
|
+
"description": "List and resume Copado AI dialogue sessions"
|
|
94
|
+
},
|
|
86
95
|
"ai:workspace": {
|
|
87
96
|
"description": "Manage Copado AI workspaces"
|
|
88
97
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agentia-ai
|
|
3
|
-
description: Use this skill when prompting Copado AI agents through the Agentia CLI or MCP, including `agentia ai agent ask`, `agentia ai agent chat`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
|
|
3
|
+
description: Use this skill when prompting Copado AI agents through the Agentia CLI or MCP, including `agentia ai agent ask`, `agentia ai agent chat`, `agentia ai session list`, `agentia ai session start`, Plan, Build, Test, Release, Operate, Knowledge, workspace, dialogue, user story, Salesforce org, and component context.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Agentia managed skill file: agentia setup skills -->
|
|
@@ -9,14 +9,14 @@ description: Use this skill when prompting Copado AI agents through the Agentia
|
|
|
9
9
|
|
|
10
10
|
Use this skill to ask Copado AI agents through Agentia with the right agent selector, workspace context, and output mode.
|
|
11
11
|
|
|
12
|
-
Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompts. Use CLI examples as the fallback. Use `agentia ai agent chat`
|
|
12
|
+
Prefer the `agentia_ai_ask` MCP tool when it is available for single-turn prompts. Use CLI examples as the fallback. Use `agentia ai session start` for the interactive Ink session UI, or `agentia ai agent chat` for the readline chat loop. List prior Context Hub dialogues with `agentia ai session list`.
|
|
13
13
|
|
|
14
14
|
## Start Here
|
|
15
15
|
|
|
16
16
|
1. Confirm AI auth with `agentia auth get --ai --json`. Configure missing credentials with `agentia auth set --ai ...` or the supported `AGENTIA_AI_*` environment variables.
|
|
17
|
-
2. Choose exactly one agent selector for `ask`: `--plan`, `--build`, `--test`, `--release`, `--operate`, or `--knowledge`.
|
|
18
|
-
3. Add useful context flags when available: `--workspace
|
|
19
|
-
4. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response.
|
|
17
|
+
2. Choose exactly one agent selector for `ask`: `--plan`, `--build`, `--test`, `--release`, `--operate`, or `--knowledge`. `session start` uses `--agent plan|build|test|release|operate|knowledge|orchestrate` and defaults to Orchestrate.
|
|
18
|
+
3. Add useful context flags when available: `--workspace` (overrides the authenticated workspace), `--dialogue`, `--user-story`, `--sf-org`, and `--component`.
|
|
19
|
+
4. Use `--json` for automation. Use `--no-stream` when the caller needs a buffered response. List dialogues with `agentia ai session list`.
|
|
20
20
|
|
|
21
21
|
## Reference
|
|
22
22
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# AI Agents Reference
|
|
4
4
|
|
|
5
|
-
Use this reference for `agentia ai agent ask`, `agentia ai agent chat`, and the matching `agentia_ai_ask` MCP tool.
|
|
5
|
+
Use this reference for `agentia ai agent ask`, `agentia ai agent chat`, `agentia ai session list`, `agentia ai session start`, and the matching `agentia_ai_ask` MCP tool.
|
|
6
6
|
|
|
7
7
|
## Authentication And Context
|
|
8
8
|
|
|
@@ -52,6 +52,20 @@ agentia ai agent chat --orchestrate --workspace <workspace-id>
|
|
|
52
52
|
|
|
53
53
|
Chat creates or reuses one dialogue for the session and supports session slash commands. It is not suitable for headless JSON workflows.
|
|
54
54
|
|
|
55
|
+
## Sessions
|
|
56
|
+
|
|
57
|
+
Prefer `session list` and `session start` for human terminal use. A session is a Copado GPT Gateway dialogue (Context Hub). `--dialogue` is that UUID, same flag as `ask` / `chat`.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
agentia ai session list
|
|
61
|
+
agentia ai session list --page-size 15 --workspace <workspace-id> --json
|
|
62
|
+
agentia ai session start
|
|
63
|
+
agentia ai session start --dialogue <dialogue-uuid>
|
|
64
|
+
agentia ai session start --agent build --user-story US-1042
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`session list` defaults to 15 rows (max 200) from `GET /dialogues`, newest first. `session start` is TTY-only and opens an Ink session UI (header, wrapping scrolling transcript, sticky composer, syntax-colored fences, Mermaid diagrams as filled flowchart chips (diamond / stadium / rectangle), or a pixel PNG in Kitty). Type `/` for command autocomplete (Tab completes, Enter runs, Esc dismisses). Esc cancels an in-flight turn. `/clear` wipes the local transcript; `/new` starts a new dialogue after confirm; `/copy` copies the last fenced block without `│` gutters. Drag-select still copies the screen (mouse tracking is off so the terminal can select). ←/→ move the composer cursor; ↑/↓ scroll the transcript; PgUp/PgDn (Fn+↑ / Fn+↓ on a Mac) recall previous prompts. After a reply, numbered Follow-ups can be sent with 1–5 on an empty prompt. The terminal scrollbar is not the history. Without `--dialogue` it shows a CopadoContextHub welcome; `/session` (or Resume) opens an overlay picker. Agent slash commands stay on the current dialogue: `/plan`, `/build`, `/test`, `/release`, `/operate`, `/knowledge`, `/orchestrate`, plus `/help`, `/copy`, `/clear`, `/exit`. Esc or `/cancel` dismisses the overlay. `ai agent chat` still uses the readline loop. There is no MCP tool for list or start.
|
|
68
|
+
|
|
55
69
|
## Workspace And Quota Helpers
|
|
56
70
|
|
|
57
71
|
Use these adjacent commands when the prompt workflow needs context setup:
|
|
@@ -64,7 +78,8 @@ Use these adjacent commands when the prompt workflow needs context setup:
|
|
|
64
78
|
|
|
65
79
|
## Gotchas
|
|
66
80
|
|
|
67
|
-
- `--workspace`
|
|
68
|
-
- `--user-story`, `--sf-org`, and `--component`
|
|
81
|
+
- `--workspace` on `session start` overrides the workspace stored by `auth set --ai-workspace` or `AGENTIA_AI_WORKSPACE`; omit it to use that default. `--dialogue` resumes a conversation, same flag as `ask`/`chat`.
|
|
82
|
+
- `--user-story`, `--sf-org`, and `--component` prepend labeled context to the first prompt so you do not have to paste those ids by hand. They do not fetch Copado records.
|
|
69
83
|
- Streaming is human-friendly. For tools, CI, or follow-up parsing, use `--json` and consider `--no-stream`.
|
|
70
84
|
- `chat` has no MCP equivalent and should not be used in non-interactive shells.
|
|
85
|
+
- `session start` also has no MCP equivalent. Use `session list --json` to inspect dialogue IDs from scripts.
|