@agentled/cli 0.7.17 → 0.7.19

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 CHANGED
@@ -357,6 +357,21 @@ The CLI now includes dedicated command groups matching MCP domains:
357
357
  - `agentled models list`
358
358
  - `agentled clients feedback add|reply|validate|sync`
359
359
 
360
+ ## Credit Usage and Cost Drivers
361
+
362
+ The CLI does not yet ship first-class credit-reporting commands. Until those
363
+ land, agents should use the product UI, MCP tools, or external API:
364
+
365
+ - UI: `https://www.agentled.app/en/{workspace}/account/billing/credits-usage`
366
+ shows the workspace credit breakdown and cost drivers.
367
+ - MCP: `get_workspace_credits`, `get_workspace_credit_cost_drivers`, and
368
+ `get_workflow_credits`.
369
+ - API: `GET /api/external/workspace/credits?period=rolling-30-days&include=costDrivers`
370
+ and `GET /api/external/workflows/{workflowId}/credits?period=rolling-30-days&include=costDrivers`.
371
+
372
+ Always include the returned `period.label` / `period.display` when reporting a
373
+ credit total.
374
+
360
375
  ## Running workflows
361
376
 
362
377
  Start a workflow execution by id:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentled/cli",
3
- "version": "0.7.17",
3
+ "version": "0.7.19",
4
4
  "description": "CLI for Agentled — manage workflows, apps, and knowledge from the command line. Zero context-window cost for AI agents.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "dependencies": {
20
- "@agentled/core": "^0.2.10",
20
+ "@agentled/core": "^0.2.12",
21
21
  "commander": "^12.0.0"
22
22
  },
23
23
  "devDependencies": {
@@ -88,6 +88,35 @@ Do not block a working MCP-only task just because the local CLI is absent or old
88
88
  Only update/install the CLI when the task needs CLI-backed setup, local files,
89
89
  fixtures, tests, or builder-work commands.
90
90
 
91
+ ### Tool discovery and multi-workspace use
92
+
93
+ Codex does not always preload the full Agentled MCP surface. If a tool seems
94
+ "missing", search for the exact tool name before assuming the server or plugin
95
+ is missing it. Common examples:
96
+
97
+ - `get_knowledge_rows`
98
+ - `get_knowledge_rows_by_ids`
99
+ - `query_kg_edges`
100
+
101
+ When this repo is used against multiple workspaces, prefer the
102
+ workspace-specific MCP namespace for live work, for example
103
+ `mcp__agentled_angelhive.*`, instead of relying on the generic `mcp__agentled`
104
+ namespace.
105
+
106
+ The generic stdio MCP server follows the CLI's active workspace from
107
+ `~/.agentled/config.json`, and the current MCP session may cache that client.
108
+ If you switch with `agentled auth use <workspace>`, reconnect or restart the AI
109
+ client before expecting `mcp__agentled.*` to point at the new workspace.
110
+
111
+ For CLI commands, make workspace targeting explicit when needed:
112
+
113
+ ```bash
114
+ agentled auth current
115
+ agentled auth use angelhive
116
+ agentled --workspace angelhive workspace inspect
117
+ AGENTLED_WORKSPACE=angelhive agentled workflows list
118
+ ```
119
+
91
120
  ### External builder setup
92
121
 
93
122
  When this session is acting as an external AI builder for Agentled work items,