fix(catalog): align Letta and Grok facts with official documentation
Re-verified all fifteen provider hook contracts against first-party documentation on 2026-07-21; thirteen match exactly. Letta: the harness-hook page moved to /reference/deprecated/hooks and is vendor-deprecated in favor of Mods. The shipped contract remains live and functional; record the current URL and the documented PostToolUseFailure event the SDK adapters already register. Grok: xAI documents the hook stdin payload non-exhaustively with only hookEventName, sessionId, cwd, workspaceRoot, toolName, and toolInput. Drop the recorded toolUseId/toolResult field claims, which appear nowhere in official documentation.
This commit is contained in:
1 parent
f01fd92946
commit
060a072f1f
3 files changed
+12
-11
No files matched your search
@@ -335,13 +335,13 @@ test('high-drift providers retain their verified hook contracts', async () => {
|
||||
source_url: 'https://moonshotai.github.io/kimi-cli/en/customization/hooks.html',
|
||||
},
|
||||
]);
|
||||
// xAI documents the stdin payload non-exhaustively: only hookEventName,
|
||||
// sessionId, cwd, workspaceRoot, toolName, and toolInput are published.
|
||||
// Undocumented field names must not be asserted as provider facts.
|
||||
assert.deepEqual(providers.get('grok').event_fields, {
|
||||
name: 'toolName',
|
||||
input: 'toolInput',
|
||||
session: 'sessionId',
|
||||
call_id: 'toolUseId',
|
||||
output: 'toolResult',
|
||||
error: 'toolResult',
|
||||
});
|
||||
assert.deepEqual(providers.get('grok').config_paths, [
|
||||
'$GROK_HOME/hooks/*.json',
|
||||
|
||||
Reference in new issue
Block a user