GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — commitwork/schema/agent-surface.schema.json at main · Portll/commitwork

Expand file tree

/

agent-surface.schema.json

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
60 lines (60 loc) · 2.82 KB
/

agent-surface.schema.json

Copy path

File metadata and controls

60 lines (60 loc) · 2.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "schema/agent-surface.schema.json",
"title": "agent-surface",
"description": "manifests/agent-surface.json — the operator-local agent surface commitwork installs and toggles: PreToolUse/Stop hooks, MCP servers and launch programs. A declaration read by bin/agent-surface.mjs; applying stays a human act. Every entry carries `why`, so a surface with no stated reason cannot be registered.",
"type": "object",
"required": ["hooks", "mcp", "launch"],
"additionalProperties": false,
"properties": {
"$comment": { "type": "string", "minLength": 1 },
"hooks": {
"type": "object",
"description": "Keyed by the hook's registry name.",
"additionalProperties": {
"type": "object",
"required": ["kind", "event", "matcher", "command", "why"],
"additionalProperties": false,
"properties": {
"kind": { "const": "hook" },
"event": { "type": "string", "minLength": 1, "description": "The harness lifecycle event the hook is attached to (PreToolUse, Stop, ...)." },
"matcher": { "type": "string", "minLength": 1, "description": "The tool-name matcher the harness applies before running the hook." },
"command": { "type": "string", "minLength": 1, "description": "The command line, with $CW_ROOT for this checkout." },
"selftest": { "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 }, "description": "argv that proves the hook is live." },
"selftestExpect": { "type": "string", "minLength": 1, "description": "The word the selftest must print." },
"why": { "type": "string", "minLength": 1 }
}
}
},
"mcp": {
"type": "object",
"description": "Keyed by the MCP server's registered name.",
"additionalProperties": {
"type": "object",
"required": ["kind", "command", "args", "why"],
"additionalProperties": false,
"properties": {
"kind": { "const": "mcp" },
"command": { "type": "string", "minLength": 1 },
"args": { "type": "array", "items": { "type": "string", "minLength": 1 } },
"why": { "type": "string", "minLength": 1 }
}
}
},
"launch": {
"type": "object",
"description": "Keyed by the launch program's short name.",
"additionalProperties": {
"type": "object",
"required": ["kind", "plist", "why"],
"additionalProperties": false,
"properties": {
"kind": { "const": "launch" },
"plist": { "type": "string", "minLength": 1, "description": "The LaunchAgent label." },
"probe": { "type": "string", "minLength": 1, "description": "A URL that answers when the program is up." },
"why": { "type": "string", "minLength": 1 }
}
}
}
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.