agent-devkit 0.8.3 → 0.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-devkit",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "Agent DevKit CLI and TUI runtime for specialist AI agents, capabilities and provider-aware workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,6 +60,7 @@
60
60
  "@modelcontextprotocol/sdk": "^1.29.0",
61
61
  "commander": "^15.0.0",
62
62
  "ink": "^7.1.0",
63
+ "marked": "^18.0.5",
63
64
  "react": "^19.2.7",
64
65
  "zod": "^4.4.3"
65
66
  },
@@ -52,7 +52,7 @@
52
52
  {
53
53
  "id": "agent-devkit.capability-map",
54
54
  "source": "core/chat",
55
- "content": "Current capability areas include project doctor/init/reset, package update, preferences, themes, aliases, personalization characters, logs, encrypted secrets, dependency inspection/planning, models, projects, sessions, conversation, runtime runs, goals and memory."
55
+ "content": "Current capability areas include project doctor/init/reset, package update, preferences, themes, aliases, personalization characters, logs, encrypted secrets, dependency setup/inspection/planning, provider login, models, projects, sessions, conversation, runtime runs, goals and memory."
56
56
  },
57
57
  {
58
58
  "id": "agent-devkit.memory-rule",
@@ -93,13 +93,19 @@ function createPtyTerminal() {
93
93
  : env.SHELL || process.env.SHELL || "/bin/sh";
94
94
  const args =
95
95
  process.platform === "win32" ? ["/d", "/s", "/c", session.command] : ["-lc", session.command];
96
- const ptyProcess = pty.spawn(shell, args, {
97
- cols: session.cols ?? 120,
98
- cwd: session.cwd,
99
- env,
100
- name: "xterm-256color",
101
- rows: session.rows ?? 30,
102
- });
96
+ let ptyProcess;
97
+
98
+ try {
99
+ ptyProcess = pty.spawn(shell, args, {
100
+ cols: session.cols ?? 120,
101
+ cwd: session.cwd,
102
+ env,
103
+ name: "xterm-256color",
104
+ rows: session.rows ?? 30,
105
+ });
106
+ } catch {
107
+ return undefined;
108
+ }
103
109
 
104
110
  ptyProcess.onData((chunk) => appendOutput(chunk));
105
111
  ptyProcess.onExit((event) => {
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "moduleId": "environment",
3
- "summary": "Environment capabilities inspect the local development machine, scan supported tooling, manage tooling lifecycle plans, process variables, files and approved shell execution.",
3
+ "summary": "Environment capabilities inspect the local development machine, scan supported tooling, prepare dependencies, manage tooling lifecycle plans, process variables, files and approved shell execution.",
4
4
  "facts": [
5
5
  "Tools inspection can locate installed binaries and common version strings.",
6
6
  "Environment scan runs a structured read-only inventory of languages, SDKs, CLIs, frameworks, services and workspace tooling from the canonical tooling catalog.",
7
7
  "Environment tooling uses JSON definitions from assets/tooling plus local data/tooling entries to detect, doctor, install, upgrade, downgrade and uninstall supported tools.",
8
+ "Environment setup is the preferred orchestrator when the user wants the agent to prepare, repair, install or authenticate operational dependencies.",
9
+ "When a required CLI is missing, prefer environment.setup before telling the user to install it manually.",
8
10
  "Tooling lifecycle actions must plan before mutating the local environment.",
9
11
  "Learned tooling starts as a draft and must be promoted before it should be used for trusted lifecycle execution.",
10
12
  "Environment variable reads redact sensitive values unless explicitly requested.",
@@ -16,6 +16,11 @@
16
16
  "template": "Summarize shell execution result with exit code, stdout, stderr and timeout status. Never hide failures: {{result}}",
17
17
  "variables": ["result"]
18
18
  },
19
+ {
20
+ "id": "environment.setup",
21
+ "template": "Explain this setup result as readiness, planned work, executed work and next actions. If approval is required, state exactly what permission is needed. If a CLI login requires an interactive terminal, say which command will run: {{result}}",
22
+ "variables": ["result"]
23
+ },
19
24
  {
20
25
  "id": "environment.tooling",
21
26
  "template": "Explain this tooling result. For plans, show exact commands and approval requirements. For executions, show succeeded/failed/skipped steps and the next safe action: {{result}}",
@@ -4,6 +4,7 @@
4
4
  "whenToUse": [
5
5
  "The user asks for a system scan, environment diagnosis, machine raio X, installed languages, CLIs, frameworks, Docker, Flutter, Dart, cloud tools or development tools.",
6
6
  "The user asks whether a required external tool, CLI, SDK, runtime or framework is installed or compatible.",
7
+ "The user asks the agent to configure, prepare, repair or make a provider/tool ready for use.",
7
8
  "The user asks to install, update, upgrade, downgrade, uninstall or doctor a supported CLI, SDK, runtime, service or framework.",
8
9
  "The user wants to plan installation, configuration, upgrade, downgrade, or uninstall steps for known tooling.",
9
10
  "The agent needs to verify runtime prerequisites before using a module.",
@@ -5,6 +5,7 @@
5
5
  "Each agent chat or task run should create a run.json file.",
6
6
  "Runtime events are append-only JSON Lines entries in events.jsonl.",
7
7
  "Runtime runs audit what the agent did; they are separate from chat session memory.",
8
+ "Runtime diagnostics is the canonical source for explaining why an Agent DevKit run failed; use runtime.diagnostics before logs.analysis when the user asks why a run errored.",
8
9
  "Runtime goals group related runs but do not imply autonomous background execution yet."
9
10
  ]
10
11
  }
@@ -10,6 +10,11 @@
10
10
  "id": "runtime.goals",
11
11
  "template": "Explain this Agent DevKit runtime goal and its related runs: {{goal}}",
12
12
  "variables": ["goal"]
13
+ },
14
+ {
15
+ "id": "runtime.diagnostics",
16
+ "template": "Diagnose this failed Agent DevKit run using runtime events, plan state and child runs before consulting generic logs: {{diagnosis}}",
17
+ "variables": ["diagnosis"]
13
18
  }
14
19
  ]
15
20
  }