@a1st/aix-schema 0.1.0 → 0.2.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/schema.json CHANGED
@@ -1455,32 +1455,150 @@
1455
1455
  "properties": {
1456
1456
  "matcher": {
1457
1457
  "type": "string",
1458
- "description": "Pattern to match (regex supported, editor-specific)"
1458
+ "description": "Pattern to match (regex or pipe-separated literal, editor-specific)."
1459
+ },
1460
+ "sequential": {
1461
+ "type": "boolean",
1462
+ "description": "Run hooks in this group sequentially instead of in parallel (Gemini)."
1463
+ },
1464
+ "description": {
1465
+ "type": "string",
1466
+ "description": "Free-form description for the group."
1459
1467
  },
1460
1468
  "hooks": {
1461
1469
  "type": "array",
1462
1470
  "items": {
1463
1471
  "type": "object",
1464
1472
  "properties": {
1473
+ "type": {
1474
+ "type": "string",
1475
+ "enum": ["command", "http", "mcp_tool", "prompt", "agent"],
1476
+ "description": "Action handler kind (default: \"command\")."
1477
+ },
1465
1478
  "command": {
1466
1479
  "type": "string",
1467
- "description": "Shell command to execute"
1480
+ "description": "Shell command to execute."
1481
+ },
1482
+ "bash": {
1483
+ "type": "string",
1484
+ "description": "Bash command (macOS / Linux)."
1485
+ },
1486
+ "powershell": {
1487
+ "type": "string",
1488
+ "description": "PowerShell command (Windows)."
1489
+ },
1490
+ "shell": {
1491
+ "type": "string",
1492
+ "enum": ["bash", "powershell"],
1493
+ "description": "Shell selector when only one of `command` / `bash` / `powershell` is set."
1468
1494
  },
1469
1495
  "timeout": {
1470
1496
  "type": "number",
1471
1497
  "exclusiveMinimum": 0,
1472
- "description": "Timeout in seconds"
1498
+ "description": "Timeout in seconds. Adapters convert to native units (e.g. milliseconds)."
1473
1499
  },
1474
1500
  "show_output": {
1475
1501
  "type": "boolean",
1476
- "description": "Whether to show command output in UI"
1502
+ "description": "Whether to surface command output in the editor UI (Windsurf-specific)."
1477
1503
  },
1478
1504
  "working_directory": {
1479
1505
  "type": "string",
1480
- "description": "Working directory for the command"
1506
+ "description": "Working directory for the command. Interchangeable with `cwd`; the strategy decides which native key to emit (Windsurf uses `working_directory`; Copilot, Gemini, and Claude Code use `cwd`)."
1507
+ },
1508
+ "cwd": {
1509
+ "type": "string",
1510
+ "description": "Working directory for the command. Interchangeable with `working_directory`."
1511
+ },
1512
+ "env": {
1513
+ "type": "object",
1514
+ "additionalProperties": {
1515
+ "type": "string"
1516
+ },
1517
+ "description": "Environment variables to set when running the command."
1518
+ },
1519
+ "async": {
1520
+ "type": "boolean",
1521
+ "description": "Run the command in the background without blocking the agent."
1522
+ },
1523
+ "async_rewake": {
1524
+ "type": "boolean",
1525
+ "description": "Run async; on exit code 2, wake the agent with stderr/stdout context."
1526
+ },
1527
+ "if": {
1528
+ "type": "string",
1529
+ "description": "Permission-rule expression (Claude Code) gating execution."
1530
+ },
1531
+ "status_message": {
1532
+ "type": "string",
1533
+ "description": "Custom spinner message while the hook runs (Claude Code)."
1534
+ },
1535
+ "once": {
1536
+ "type": "boolean",
1537
+ "description": "Run once per session, then unregister (Claude Code skill / agent frontmatter)."
1538
+ },
1539
+ "url": {
1540
+ "type": "string",
1541
+ "description": "URL to POST hook input to (Claude Code HTTP)."
1542
+ },
1543
+ "headers": {
1544
+ "type": "object",
1545
+ "additionalProperties": {
1546
+ "type": "string"
1547
+ },
1548
+ "description": "Additional HTTP headers, with env-var interpolation (Claude Code HTTP)."
1549
+ },
1550
+ "allowed_env_vars": {
1551
+ "type": "array",
1552
+ "items": {
1553
+ "type": "string"
1554
+ },
1555
+ "description": "Env-var allowlist for header interpolation (Claude Code HTTP)."
1556
+ },
1557
+ "mcp_server": {
1558
+ "type": "string",
1559
+ "description": "Configured MCP server name (Claude Code mcp_tool)."
1560
+ },
1561
+ "mcp_tool": {
1562
+ "type": "string",
1563
+ "description": "Tool name on the MCP server (Claude Code mcp_tool)."
1564
+ },
1565
+ "mcp_input": {
1566
+ "type": "object",
1567
+ "additionalProperties": {},
1568
+ "description": "Arguments for the MCP tool, with `${tool_input.x}` substitution (Claude Code)."
1569
+ },
1570
+ "prompt": {
1571
+ "type": "string",
1572
+ "description": "Prompt text (Claude Code, Cursor, Copilot)."
1573
+ },
1574
+ "model": {
1575
+ "type": "string",
1576
+ "description": "Model override for prompt / agent hooks."
1577
+ },
1578
+ "description": {
1579
+ "type": "string",
1580
+ "description": "Free-form description for logs / UI."
1581
+ },
1582
+ "name": {
1583
+ "type": "string",
1584
+ "description": "Friendly identifier for logs and CLI commands."
1585
+ },
1586
+ "fail_closed": {
1587
+ "type": "boolean",
1588
+ "description": "Block the action when the hook itself fails (Cursor)."
1589
+ },
1590
+ "loop_limit": {
1591
+ "anyOf": [
1592
+ {
1593
+ "type": "integer"
1594
+ },
1595
+ {
1596
+ "type": "null"
1597
+ }
1598
+ ],
1599
+ "description": "Max auto-triggered follow-ups for stop-style events (Cursor)."
1481
1600
  }
1482
1601
  },
1483
- "required": ["command"],
1484
1602
  "additionalProperties": false,
1485
1603
  "description": "Hook action configuration"
1486
1604
  },
@@ -1494,8 +1612,18 @@
1494
1612
  },
1495
1613
  "propertyNames": {
1496
1614
  "enum": [
1615
+ "session_start",
1616
+ "session_end",
1617
+ "setup",
1618
+ "pre_prompt",
1619
+ "user_prompt_expansion",
1497
1620
  "pre_tool_use",
1498
1621
  "post_tool_use",
1622
+ "post_tool_use_failure",
1623
+ "post_tool_batch",
1624
+ "pre_tool_selection",
1625
+ "permission_request",
1626
+ "permission_denied",
1499
1627
  "pre_file_read",
1500
1628
  "post_file_read",
1501
1629
  "pre_file_write",
@@ -1504,17 +1632,33 @@
1504
1632
  "post_command",
1505
1633
  "pre_mcp_tool",
1506
1634
  "post_mcp_tool",
1507
- "pre_prompt",
1508
- "pre_compact",
1509
- "post_compact",
1635
+ "pre_tab_file_read",
1636
+ "post_tab_file_edit",
1637
+ "pre_model_request",
1638
+ "post_model_response",
1639
+ "pre_response_chunk",
1640
+ "pre_agent",
1641
+ "post_agent",
1642
+ "post_response",
1643
+ "post_response_with_transcript",
1644
+ "agent_stop",
1510
1645
  "subagent_start",
1511
1646
  "subagent_stop",
1647
+ "subagent_idle",
1648
+ "pre_compact",
1649
+ "post_compact",
1512
1650
  "task_created",
1513
1651
  "task_completed",
1514
1652
  "worktree_setup",
1515
- "session_start",
1516
- "session_end",
1517
- "agent_stop"
1653
+ "worktree_remove",
1654
+ "instructions_loaded",
1655
+ "config_change",
1656
+ "cwd_changed",
1657
+ "file_changed",
1658
+ "notification",
1659
+ "elicitation",
1660
+ "elicitation_result",
1661
+ "error_occurred"
1518
1662
  ]
1519
1663
  },
1520
1664
  "description": "Lifecycle hooks for AI agent events"