@soft-boy/agentschema 0.3.12 → 0.4.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 CHANGED
@@ -10,7 +10,7 @@ Define an AI-Agent as a folder of Markdown files.
10
10
  ```
11
11
  my-agent/
12
12
  ├── agent.md # the agent
13
- ├── env.md # the environment it runs in
13
+ ├── computer.md # the computer it runs on
14
14
  ├── system_prompt/
15
15
  │ └── rules.md # more of the system prompt
16
16
  ├── tools/
@@ -28,8 +28,6 @@ my-agent/
28
28
  └── good-morning.md # a task it runs on a timetable
29
29
  ```
30
30
 
31
- **Status:** v0.2 draft. v0.2 breaks from the Claude Managed Agents schema: tools move out of `agent.md` and into `tools/`.
32
-
33
31
  ## Table of contents
34
32
 
35
33
  - [Philosophy](#philosophy)
@@ -39,7 +37,7 @@ my-agent/
39
37
  - [Specification](#specification)
40
38
  - [`agent.md`](#agentmd)
41
39
  - [`system_prompt/`](#system_prompt)
42
- - [`env.md`](#envmd)
40
+ - [`computer.md`](#computermd)
43
41
  - [`tools/`](#tools)
44
42
  - [`skills/`](#skills)
45
43
  - [`vaults/`](#vaults)
@@ -84,7 +82,7 @@ agentschema run my-agent
84
82
 
85
83
  ## Specification
86
84
 
87
- `agent.md` and `env.md` are required; everything else is optional. `agentschema check` validates a folder without calling the API. This is the short version, and the full specification is in [docs/](docs/README.md).
85
+ `agent.md` and `computer.md` are required; everything else is optional. `agentschema check` validates a folder without calling the API. This is the short version, and the full specification is in [docs/](docs/README.md).
88
86
 
89
87
  ### `agent.md`
90
88
 
@@ -94,9 +92,9 @@ The frontmatter uses the fields of a [Managed Agents agent](https://platform.cla
94
92
 
95
93
  A long system prompt can be split into files here, at any depth. They're added after `agent.md`'s body, in the order `tree` lists them, with a blank line between each one, so number them to keep them in order, like `01-role.md` and `02-rules.md`. Each file is taken as written. See [System prompt](docs/system_prompt.md).
96
94
 
97
- ### `env.md`
95
+ ### `computer.md`
98
96
 
99
- The frontmatter uses the fields of a [Managed Agents environment](https://platform.claude.com/docs/en/managed-agents/environments). The body is a note for people, and isn't sent anywhere.
97
+ The computer the agent runs on. The frontmatter uses the fields of a [Managed Agents environment](https://platform.claude.com/docs/en/managed-agents/environments), and the body is a note for people, and isn't sent anywhere. It used to be called `env.md`, which still works, with a warning to rename it.
100
98
 
101
99
  ### `tools/`
102
100
 
package/lib/check.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { checkChannels, readChannels } from "./channels.js";
2
2
  import { textOf } from "./files.js";
3
- import { AGENT_FILE, ENV_FILE, readInstance } from "./instance.js";
3
+ import { AGENT_FILE, readInstance } from "./instance.js";
4
4
  import { checkScheduled, readScheduled } from "./scheduled.js";
5
5
  import { SYSTEM_PROMPT_DIR, readSystemPrompt, systemPromptOf } from "./system-prompt.js";
6
6
  import { MAX_UPLOAD_BYTES, SKILLS_DIR, readSkills } from "./skills.js";
@@ -31,7 +31,7 @@ const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v)
31
31
  // `options` is what checkTools takes: { customTools, toolsets }.
32
32
  // Returns { errors, warnings, instance }; instance is null when the files can't be read.
33
33
  export function checkFiles(files, options = {}) {
34
- const { agent, env, errors } = readInstance(files);
34
+ const { agent, env, errors, warnings } = readInstance(files);
35
35
  const { tools, errors: toolErrors } = readTools(files);
36
36
  const { vaults, errors: vaultErrors } = readVaults(files);
37
37
  const { skills, errors: skillErrors } = readSkills(files);
@@ -39,7 +39,6 @@ export function checkFiles(files, options = {}) {
39
39
  const { tasks: scheduled, errors: scheduledErrors } = readScheduled(files);
40
40
  const { parts: systemPrompt, errors: systemPromptErrors } = readSystemPrompt(files);
41
41
  errors.push(...toolErrors, ...vaultErrors, ...skillErrors, ...channelErrors, ...scheduledErrors, ...systemPromptErrors);
42
- const warnings = [];
43
42
 
44
43
  if (agent) checkAgent(agent, errors, warnings);
45
44
  if (agent) checkSystemPromptLength({ agent, systemPrompt }, errors);
@@ -57,7 +56,7 @@ export function checkFiles(files, options = {}) {
57
56
 
58
57
  const vaultFiles = vaults.flatMap((v) => [...(v.file ? [[`${v.path}/${VAULT_FILE}`, v.file]] : []), ...v.credentials.map((c) => [c.file, c])]);
59
58
  const skillTexts = skills.flatMap((s) => s.files.map((f) => [`${s.path}/${f.rel}`, { raw: textOf(f.bytes) }]));
60
- for (const [file, parsed] of [[AGENT_FILE, agent], [ENV_FILE, env], ...tools.map((t) => [t.file, t]), ...vaultFiles, ...skillTexts, ...channels.map((c) => [c.file, c]), ...scheduled.map((t) => [t.file, t]), ...systemPrompt.map((p) => [p.file, { raw: p.text }])]) {
59
+ for (const [file, parsed] of [[AGENT_FILE, agent], [env?.file, env], ...tools.map((t) => [t.file, t]), ...vaultFiles, ...skillTexts, ...channels.map((c) => [c.file, c]), ...scheduled.map((t) => [t.file, t]), ...systemPrompt.map((p) => [p.file, { raw: p.text }])]) {
61
60
  if (!parsed) continue;
62
61
  for (const [pattern, what] of SECRET_PATTERNS) {
63
62
  if (pattern.test(parsed.raw)) errors.push(`${file}: looks like it contains ${what}; keep secrets out of these files`);
@@ -117,8 +116,8 @@ function checkAgent({ data, body }, errors, warnings) {
117
116
  }
118
117
  }
119
118
 
120
- function checkEnv({ data }, errors, warnings) {
121
- const err = (msg) => errors.push(`${ENV_FILE}: ${msg}`);
119
+ function checkEnv({ data, file }, errors, warnings) {
120
+ const err = (msg) => errors.push(`${file}: ${msg}`);
122
121
 
123
122
  if (typeof data.name !== "string" || data.name.trim() === "") err("`name` is required");
124
123
 
@@ -141,7 +140,7 @@ function checkEnv({ data }, errors, warnings) {
141
140
  checkMetadata(data.metadata, Infinity, err);
142
141
 
143
142
  for (const key of Object.keys(data)) {
144
- if (!ENV_FIELDS.has(key)) warnings.push(`${ENV_FILE}: unknown field \`${key}\` will be sent to the API as written`);
143
+ if (!ENV_FIELDS.has(key)) warnings.push(`${file}: unknown field \`${key}\` will be sent to the API as written`);
145
144
  }
146
145
  }
147
146
 
@@ -227,7 +226,7 @@ function checkMcpNetworking(agent, env, warnings) {
227
226
  }
228
227
  if (!allowed.includes(host)) {
229
228
  warnings.push(
230
- `${ENV_FILE}: its limited networking doesn't allow MCP server \`${server.name}\` (${host}), so sessions won't start; ` +
229
+ `${env.file}: its limited networking doesn't allow MCP server \`${server.name}\` (${host}), so sessions won't start; ` +
231
230
  `set config.networking.allow_mcp_servers to true, or add ${host} to allowed_hosts`,
232
231
  );
233
232
  }
@@ -287,7 +286,7 @@ function checkEnvVarCredentials(vaults, env, warnings) {
287
286
  if (net?.type === "limited" && networking?.type === "limited" && Array.isArray(networking.allowed_hosts)) {
288
287
  for (const host of networking.allowed_hosts) {
289
288
  if (!(net.allowed_hosts ?? []).includes(host)) {
290
- warn(`${ENV_FILE}'s limited networking doesn't allow ${host}, so requests to it will be blocked; add it to allowed_hosts in ${ENV_FILE}`);
289
+ warn(`${env.file}'s limited networking doesn't allow ${host}, so requests to it will be blocked; add it to allowed_hosts in ${env.file}`);
291
290
  }
292
291
  }
293
292
  }
package/lib/index.js CHANGED
@@ -3,7 +3,9 @@
3
3
  export { ANYONE, CHANNELS_DIR, CHANNEL_TYPES, channelSettings, channelSystem, durationMs, readChannels } from "./channels.js";
4
4
  export { checkFiles } from "./check.js";
5
5
  export { bytesOf, isIgnoredPath, pathsUnder, textOf } from "./files.js";
6
- export { AGENT_FILE, ENV_FILE, agentBody, envBody, readInstance } from "./instance.js";
6
+ export {
7
+ AGENT_FILE, COMPUTER_FILE, ENVIRONMENT_KEY, OLD_COMPUTER_FILE, agentBody, envBody, environmentEntry, readInstance, upgradeLock,
8
+ } from "./instance.js";
7
9
  export { FileError, editFrontmatter, parseMarkdown } from "./markdown.js";
8
10
  export { MODELS, NETWORKING, builtInFile, defaultAnswers, scaffold } from "./scaffold.js";
9
11
  export { SCHEDULED_DIR, cronProblem, isTimeZone, readScheduled, taskBody, taskKey, taskSettings } from "./scheduled.js";
package/lib/instance.js CHANGED
@@ -4,13 +4,17 @@ import { systemPromptOf } from "./system-prompt.js";
4
4
  import { compileTools } from "./tools.js";
5
5
 
6
6
  export const AGENT_FILE = "agent.md";
7
- export const ENV_FILE = "env.md";
7
+ export const COMPUTER_FILE = "computer.md";
8
+ // computer.md's old name. A folder that still has it works, with a warning to rename it.
9
+ export const OLD_COMPUTER_FILE = "env.md";
8
10
 
9
- // Reads agent.md and env.md. Returns { agent, env, errors }; a file that can't be read is null
10
- // and has an entry in errors.
11
+ // Reads agent.md and computer.md. Returns { agent, env, errors, warnings }; a file that can't be
12
+ // read is null and has an entry in errors. `env` is computer.md, the agent's environment, and its
13
+ // `file` says which name it was read from.
11
14
  export function readInstance(files) {
12
15
  const names = Object.keys(files).filter((path) => !path.includes("/"));
13
16
  const errors = [];
17
+ const warnings = [];
14
18
  const read = (name) => {
15
19
  try {
16
20
  // Exact names only, so an agent behaves the same on a case-sensitive file system.
@@ -26,7 +30,13 @@ export function readInstance(files) {
26
30
  return null;
27
31
  }
28
32
  };
29
- return { agent: read(AGENT_FILE), env: read(ENV_FILE), errors };
33
+ const agent = read(AGENT_FILE);
34
+ const hasOldName = names.includes(OLD_COMPUTER_FILE);
35
+ const computerFile = hasOldName && !names.includes(COMPUTER_FILE) ? OLD_COMPUTER_FILE : COMPUTER_FILE;
36
+ if (computerFile === OLD_COMPUTER_FILE) warnings.push(`${OLD_COMPUTER_FILE}: this is ${COMPUTER_FILE}'s old name; rename it to ${COMPUTER_FILE}`);
37
+ else if (hasOldName) errors.push(`${OLD_COMPUTER_FILE}: this is ${COMPUTER_FILE}'s old name, and the folder has both; remove ${OLD_COMPUTER_FILE}`);
38
+ const env = read(computerFile);
39
+ return { agent, env: env && { ...env, file: computerFile }, errors, warnings };
30
40
  }
31
41
 
32
42
  // The bodies sent to POST /v1/agents and POST /v1/environments.
@@ -46,3 +56,20 @@ export function agentBody(instance, skills = [], options = {}) {
46
56
  export function envBody({ env }) {
47
57
  return { ...env.data };
48
58
  }
59
+
60
+ // The lock's entry for the environment is under "./computer.md". A lock written before computer.md
61
+ // was renamed has it under "./env.md": environmentEntry finds it either way, and upgradeLock moves
62
+ // it, so the next deploy updates that environment rather than making another.
63
+ export const ENVIRONMENT_KEY = `./${COMPUTER_FILE}`;
64
+ const OLD_ENVIRONMENT_KEY = `./${OLD_COMPUTER_FILE}`;
65
+
66
+ export const environmentEntry = (lock) => lock?.resources?.[ENVIRONMENT_KEY] ?? lock?.resources?.[OLD_ENVIRONMENT_KEY];
67
+
68
+ export function upgradeLock(lock) {
69
+ const resources = lock?.resources;
70
+ if (resources?.[OLD_ENVIRONMENT_KEY] && !resources[ENVIRONMENT_KEY]) {
71
+ resources[ENVIRONMENT_KEY] = resources[OLD_ENVIRONMENT_KEY];
72
+ delete resources[OLD_ENVIRONMENT_KEY];
73
+ }
74
+ return lock;
75
+ }
package/lib/scaffold.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { stringify } from "yaml";
2
- import { AGENT_FILE, ENV_FILE } from "./instance.js";
2
+ import { AGENT_FILE, COMPUTER_FILE } from "./instance.js";
3
3
  import { PREBUILT_TOOLS, TOOLSET, TOOLSET_FILE, TOOLS_DIR } from "./tools.js";
4
4
 
5
5
  export const MODELS = ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"];
@@ -34,7 +34,7 @@ export function scaffold(answers) {
34
34
  : answers.packageManagers ? "limited networking and package manager access" : "limited networking";
35
35
  const files = {
36
36
  [AGENT_FILE]: `---\n${stringify(agent)}---\n\n${answers.system.trim()}\n`,
37
- [ENV_FILE]: `---\n${stringify(env)}---\nCloud container with ${access}.\n`,
37
+ [COMPUTER_FILE]: `---\n${stringify(env)}---\nCloud container with ${access}.\n`,
38
38
  };
39
39
  if (answers.tools) {
40
40
  files[`${TOOLS_DIR}/${TOOLSET_FILE}`] = builtInFile(PREBUILT_TOOLS, PREBUILT_TOOLS, answers.permission);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soft-boy/agentschema",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "description": "Markdown based AI agent schema",
5
5
  "type": "module",
6
6
  "bin": {
package/src/deploy.js CHANGED
@@ -2,7 +2,7 @@ import { join } from "node:path";
2
2
  import Anthropic, { toFile } from "@anthropic-ai/sdk";
3
3
  import { CHANNELS_DIR, readChannels } from "../lib/channels.js";
4
4
  import { checkFiles } from "../lib/check.js";
5
- import { AGENT_FILE, ENV_FILE, agentBody, envBody } from "../lib/instance.js";
5
+ import { AGENT_FILE, ENVIRONMENT_KEY, agentBody, envBody, environmentEntry, upgradeLock } from "../lib/instance.js";
6
6
  import { taskBody, taskKey, taskSettings } from "../lib/scheduled.js";
7
7
  import { skillKey, skillRefs } from "../lib/skills.js";
8
8
  import { AGENTBOOK } from "../lib/tools.js";
@@ -68,11 +68,10 @@ export async function deployFiles({
68
68
  });
69
69
 
70
70
  const steps = [
71
- { file: ENV_FILE, kind: "environment", body: envBody(instance) },
72
- { file: AGENT_FILE, kind: "agent", body: agentBody(instance, refs, checkOptions) },
71
+ { file: instance.env.file, key: ENVIRONMENT_KEY, kind: "environment", body: envBody(instance) },
72
+ { file: AGENT_FILE, key: `./${AGENT_FILE}`, kind: "agent", body: agentBody(instance, refs, checkOptions) },
73
73
  ];
74
74
  for (const step of steps) {
75
- step.key = `./${step.file}`;
76
75
  step.hash = hashBody(step.body);
77
76
  step.entry = lock.resources[step.key];
78
77
  if (step.entry && step.entry.kind !== step.kind) {
@@ -122,7 +121,7 @@ export async function deployFiles({
122
121
  // deployment archived, because a schedule left behind would keep running, and costing money.
123
122
  async function deployScheduled(instance, { client, lock, dryRun, log, saveLock, pendingAgent, pendingVaults }) {
124
123
  const agentEntry = lock.resources[`./${AGENT_FILE}`];
125
- const envEntry = lock.resources[`./${ENV_FILE}`];
124
+ const envEntry = environmentEntry(lock);
126
125
  const agent = { type: "agent", id: agentEntry?.id ?? "pending", version: pendingAgent || !agentEntry ? "pending" : Number(agentEntry.version) };
127
126
  const vaultIds = instance.vaults.map((vault) => lock.resources[vaultKey(vault)]?.id ?? (pendingVaults.includes(vaultKey(vault)) ? `pending:${vault.path}` : null)).filter(Boolean);
128
127
 
@@ -222,6 +221,7 @@ export function prepareLock(previous, client) {
222
221
  const baseURL = client.baseURL;
223
222
  const lock = previous ?? { version: 1, origin: { base_url: baseURL }, resources: {} };
224
223
  lock.resources ??= {};
224
+ upgradeLock(lock);
225
225
  if (lock.origin?.base_url && lock.origin.base_url !== baseURL) {
226
226
  throw new DeployError(
227
227
  `${LOCK_FILE} was written for ${lock.origin.base_url}, but this client uses ${baseURL}`,
package/src/folder.js CHANGED
@@ -2,7 +2,7 @@ import { readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import { CHANNELS_DIR } from "../lib/channels.js";
4
4
  import { editFrontmatter } from "../lib/markdown.js";
5
- import { AGENT_FILE, ENV_FILE } from "../lib/instance.js";
5
+ import { AGENT_FILE, COMPUTER_FILE, OLD_COMPUTER_FILE } from "../lib/instance.js";
6
6
  import { SCHEDULED_DIR } from "../lib/scheduled.js";
7
7
  import { SKILLS_DIR } from "../lib/skills.js";
8
8
  import { SYSTEM_PROMPT_DIR } from "../lib/system-prompt.js";
@@ -10,7 +10,7 @@ import { TOOLS_DIR } from "../lib/tools.js";
10
10
  import { VAULTS_DIR } from "../lib/vaults.js";
11
11
 
12
12
  const FOLDERS = [TOOLS_DIR, SKILLS_DIR, VAULTS_DIR, CHANNELS_DIR, SCHEDULED_DIR, SYSTEM_PROMPT_DIR];
13
- const TOP_LEVEL_FILES = [AGENT_FILE, ENV_FILE];
13
+ const TOP_LEVEL_FILES = [AGENT_FILE, COMPUTER_FILE, OLD_COMPUTER_FILE];
14
14
 
15
15
  // Why `dir` can't be read as an agent folder, or null when it can.
16
16
  export function folderProblem(dir) {
package/src/init.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
2
2
  import { basename, dirname, resolve } from "node:path";
3
- import { AGENT_FILE, ENV_FILE } from "../lib/instance.js";
3
+ import { AGENT_FILE, COMPUTER_FILE } from "../lib/instance.js";
4
4
  import { MODELS, NETWORKING, defaultAnswers, scaffold } from "../lib/scaffold.js";
5
5
  import { TOOLSET_FILE, TOOLS_DIR } from "../lib/tools.js";
6
6
  import { choosePermission } from "./tools-menu.js";
@@ -27,7 +27,7 @@ export async function init(dir, { yes = false, input = process.stdin, output = p
27
27
  }
28
28
 
29
29
  const tools = answers.tools ? `, and ${dir}/${TOOLS_DIR}/${TOOLSET_FILE} with the pre-built tools (set Enabled to false to turn one off)` : "";
30
- output.write(`\nCreated ${dir}/${AGENT_FILE} and ${dir}/${ENV_FILE}${tools}.\n\nNext:\n`);
30
+ output.write(`\nCreated ${dir}/${AGENT_FILE} and ${dir}/${COMPUTER_FILE}${tools}.\n\nNext:\n`);
31
31
  output.write(` agentschema deploy ${dir}\n agentschema run ${dir}\n`);
32
32
  return files;
33
33
  }
package/src/session.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { join } from "node:path";
2
- import { AGENT_FILE, ENV_FILE, agentBody, envBody } from "../lib/instance.js";
2
+ import { AGENT_FILE, agentBody, envBody, environmentEntry } from "../lib/instance.js";
3
3
  import { SYSTEM_PROMPT_DIR } from "../lib/system-prompt.js";
4
4
  import { skillKey, skillRefs } from "../lib/skills.js";
5
5
  import { TOOLS_DIR } from "../lib/tools.js";
@@ -20,7 +20,7 @@ export async function openSession(dir, { client, sessionId }) {
20
20
 
21
21
  const lock = readLock(dir);
22
22
  const agent = lock?.resources?.[`./${AGENT_FILE}`];
23
- const env = lock?.resources?.[`./${ENV_FILE}`];
23
+ const env = environmentEntry(lock);
24
24
  if (!agent || !env) {
25
25
  throw new SessionError(`${dir} hasn't been deployed (no agent or environment in ${LOCK_FILE}); run agentschema deploy first`);
26
26
  }
@@ -34,7 +34,7 @@ export async function openSession(dir, { client, sessionId }) {
34
34
  for (const skill of instance.skills) {
35
35
  if (hashBody(skillFingerprint(skill)) !== lock.resources[skillKey(skill)]?.hash) notes.push(`${skill.path} has changed since the last deploy`);
36
36
  }
37
- if (hashBody(envBody(instance)) !== env.hash) notes.push(`${ENV_FILE} has changed since the last deploy`);
37
+ if (hashBody(envBody(instance)) !== env.hash) notes.push(`${instance.env.file} has changed since the last deploy`);
38
38
  if (notes.length > 0) notes.push(`this session uses the deployed version; run agentschema deploy to pick up the changes`);
39
39
  }
40
40
 
@@ -60,7 +60,7 @@ export async function openSession(dir, { client, sessionId }) {
60
60
  // Returns { session, notes }.
61
61
  export async function startSession({ instance, lock, client, agentVersion, system, title, budget, pathOf = (file) => file }) {
62
62
  const agent = lock?.resources?.[`./${AGENT_FILE}`];
63
- const env = lock?.resources?.[`./${ENV_FILE}`];
63
+ const env = environmentEntry(lock);
64
64
  if (!agent || !env) throw new SessionError("this agent hasn't been deployed (no agent or environment in its lock)");
65
65
 
66
66
  const pinned = { id: agent.id, version: Number(agentVersion ?? agent.version) };
package/src/tools-menu.js CHANGED
@@ -4,7 +4,7 @@ import { stringify } from "yaml";
4
4
  import { check } from "./check.js";
5
5
  import { serviceName } from "./cred-menu.js";
6
6
  import { DeployError } from "./deploy.js";
7
- import { AGENT_FILE, ENV_FILE } from "../lib/instance.js";
7
+ import { AGENT_FILE, COMPUTER_FILE, OLD_COMPUTER_FILE } from "../lib/instance.js";
8
8
  import { builtInFile } from "../lib/scaffold.js";
9
9
  import { updateFrontmatter } from "./folder.js";
10
10
  import { listMcpTools } from "./mcp.js";
@@ -38,7 +38,7 @@ export async function toolsCreate(dir = ".", { io, fetch = globalThis.fetch, log
38
38
  }
39
39
 
40
40
  const after = check(dir);
41
- const related = (m) => m.startsWith(path) || (kind === MCP && (m.startsWith(AGENT_FILE) || m.startsWith(ENV_FILE)));
41
+ const related = (m) => m.startsWith(path) || (kind === MCP && [AGENT_FILE, COMPUTER_FILE, OLD_COMPUTER_FILE].some((file) => m.startsWith(file)));
42
42
  for (const w of after.warnings.filter(related)) log(`warning: ${w}`);
43
43
  for (const e of after.errors.filter(related)) log(`error: ${e}`);
44
44
  if (kind === CUSTOM) log(`\nWrite the tool's code in its ## Code block, then deploy with:\n agentschema deploy ${dir}`);