GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — Update all dependencies by swissconn-ops[bot] · Pull Request #85 · SwissConnection/render-agent-log Conversation
|
| What | Kind | From | To |
|---|---|---|---|
@anthropic-ai/claude-agent-sdk |
dev | 0.3.331 | 0.3.332 |
@biomejs/biome |
dev | 2.6.8 | 2.6.9 |
anthropics/claude-code-action |
action | v1.0.289 | v1.0.290 |
18 more packages in package-lock.json moved with them.
Free with this update
✅ Typecheck against Agent SDK 0.3.332: the renderer handles every message type
✅ A real run of Claude Code 2.1.332: 41 messages, all rendered · run
✅ The wrapper in claude-code-action v1.0.290: every case as expected · run
--- 0.3.331/sdk.d.ts +++ 0.3.332/sdk.d.ts @@ -557,6 +557,8 @@ PreCompactHookInput, PreModelSwitchHookInput, PreModelSwitchHookSpecificOutput, + PreSkillShellCommandHookInput, + PreSkillShellCommandHookSpecificOutput, PreToolUseHookInput, PreToolUseHookSpecificOutput, RewindFilesResult, @@ -1031,7 +1033,7 @@ sessionStore?: SessionStore; }; -export declare const HOOK_EVENTS: readonly ['PreToolUse', 'PostToolUse', 'PostToolUseFailure', 'PostToolBatch', 'Notification', 'UserPromptSubmit', 'UserPromptExpansion', 'SessionStart', 'SessionEnd', 'Stop', 'StopFailure', 'SubagentStart', 'SubagentStop', 'PreCompact', 'PostCompact', 'PreModelSwitch', 'PostModelSwitch', 'PermissionRequest', 'PermissionDenied', 'Setup', 'TeammateIdle', 'TaskCreated', 'TaskCompleted', 'Elicitation', 'ElicitationResult', 'ConfigChange', 'WorktreeCreate', 'WorktreeRemove', 'InstructionsLoaded', 'CwdChanged', 'FileChanged', 'DirectoryAdded', 'MessageDisplay']; +export declare const HOOK_EVENTS: readonly ['PreToolUse', 'PostToolUse', 'PostToolUseFailure', 'PostToolBatch', 'Notification', 'UserPromptSubmit', 'UserPromptExpansion', 'SessionStart', 'SessionEnd', 'Stop', 'StopFailure', 'SubagentStart', 'SubagentStop', 'PreCompact', 'PostCompact', 'PreModelSwitch', 'PostModelSwitch', 'PermissionRequest', 'PermissionDenied', 'Setup', 'TeammateIdle', 'TaskCreated', 'TaskCompleted', 'Elicitation', 'ElicitationResult', 'ConfigChange', 'WorktreeCreate', 'WorktreeRemove', 'InstructionsLoaded', 'CwdChanged', 'FileChanged', 'DirectoryAdded', 'MessageDisplay', 'PreSkillShellCommand']; /** * Hook callback function for responding to events during execution. @@ -1064,9 +1066,9 @@ } -export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'PostToolBatch' | 'Notification' | 'UserPromptSubmit' | 'UserPromptExpansion' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PreModelSwitch' | 'PostModelSwitch' | 'PermissionRequest' | 'PermissionDenied' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged' | 'DirectoryAdded' | 'MessageDisplay'; +export declare type HookEvent = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'PostToolBatch' | 'Notification' | 'UserPromptSubmit' | 'UserPromptExpansion' | 'SessionStart' | 'SessionEnd' | 'Stop' | 'StopFailure' | 'SubagentStart' | 'SubagentStop' | 'PreCompact' | 'PostCompact' | 'PreModelSwitch' | 'PostModelSwitch' | 'PermissionRequest' | 'PermissionDenied' | 'Setup' | 'TeammateIdle' | 'TaskCreated' | 'TaskCompleted' | 'Elicitation' | 'ElicitationResult' | 'ConfigChange' | 'WorktreeCreate' | 'WorktreeRemove' | 'InstructionsLoaded' | 'CwdChanged' | 'FileChanged' | 'DirectoryAdded' | 'MessageDisplay' | 'PreSkillShellCommand'; -export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | PostToolBatchHookInput | PermissionDeniedHookInput | NotificationHookInput | UserPromptSubmitHookInput | UserPromptExpansionHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PreModelSwitchHookInput | PostModelSwitchHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput | DirectoryAddedHookInput | MessageDisplayHookInput; +export declare type HookInput = PreToolUseHookInput | PostToolUseHookInput | PostToolUseFailureHookInput | PostToolBatchHookInput | PermissionDeniedHookInput | NotificationHookInput | UserPromptSubmitHookInput | UserPromptExpansionHookInput | SessionStartHookInput | SessionEndHookInput | StopHookInput | StopFailureHookInput | SubagentStartHookInput | SubagentStopHookInput | PreCompactHookInput | PostCompactHookInput | PreModelSwitchHookInput | PostModelSwitchHookInput | PermissionRequestHookInput | SetupHookInput | TeammateIdleHookInput | TaskCreatedHookInput | TaskCompletedHookInput | ElicitationHookInput | ElicitationResultHookInput | ConfigChangeHookInput | InstructionsLoadedHookInput | WorktreeCreateHookInput | WorktreeRemoveHookInput | CwdChangedHookInput | FileChangedHookInput | DirectoryAddedHookInput | MessageDisplayHookInput | PreSkillShellCommandHookInput; export declare type HookJSONOutput = AsyncHookJSONOutput | SyncHookJSONOutput; @@ -2954,6 +2956,46 @@ permissionDecisionReason?: string; }; +export declare type PreSkillShellCommandHookInput = BaseHookInput & { + hook_event_name: 'PreSkillShellCommand'; + /** + * The shell tool that runs the command: Bash or PowerShell + */ + tool_name: string; + tool_input: { + /** + * The command as it would run, with arguments filled in + */ + command: string; + }; + /** + * Identifies this command. It names no tool call in the transcript. + */ + tool_use_id: string; + /** + * The skill or command whose text holds the shell command + */ + command_name: string; + command_source?: string; + /** + * Who started the load. user: typed, or sent by an SDK host. claude: the Skill tool, or a turn that Claude scheduled. other: anything else, such as a subagent's preload or a channel message, or not known. + */ + invoked_by: 'user' | 'claude' | 'other'; +}; + +export declare type PreSkillShellCommandHookSpecificOutput = { + hookEventName: 'PreSkillShellCommand'; + /** + * allow adds nothing: the command runs unless a hook refuses it. deny, ask and defer all keep it from running. + */ + permissionDecision?: HookPermissionDecision; + permissionDecisionReason?: string; + /** + * Never applied. Any value keeps the command from running. + */ + updatedInput?: Record<string, unknown>; +}; + export declare type PreToolUseHookInput = BaseHookInput & { hook_event_name: 'PreToolUse'; tool_name: string; @@ -3195,9 +3237,14 @@ * Change the permission mode for the current session. * Only available in streaming input mode. * + * Resolves with the permission mode now in effect, which is not always the + * mode asked for: record `mode`, not the argument. Resolves to `undefined` + * where the answer names no mode, or one outside PermissionMode; the argument + * is then only a best guess. Rejects where the mode is refused. + * * @param mode - The new permission mode to set */ - setPermissionMode(mode: PermissionMode): Promise<void>; + setPermissionMode(mode: PermissionMode): Promise<SDKControlSetPermissionModeResponse | undefined>; /** * Pin (or clear, with mode:null) a per-MCP-server permission-mode * override. Tighten-only: only 'default' | 'auto' | null are accepted; @@ -3677,6 +3724,19 @@ * named. */ didNotLoad: false | Array<'profile' | 'registry' | 'file'>; + /** + * There, and `true`, from the first time in this process that a re-read of + * the registry policy which answered found other settings than those in + * force, although `registryPolicyFingerprint` had just returned what it + * returned around the read before. Mostly the host's function missed a + * change; a change between its answer and the read shows so too, and so does + * a policy that one read found gone, even if the next finds it again. It + * stays for the rest of the process. A re-read may end after the call that + * started it has returned, so a later call may be the first to show it. It + * says nothing of what changed. `resolveSettings` sends no event from a + * host's process: a host that wants to count this does so itself. + */ + registryPolicyDifferedFromFingerprint?: true; }; }; @@ -4583,6 +4643,7 @@ */ exitHint: string; }; + /** * Settings files skipped by the merge — their hooks are neither listed nor running. */ @@ -5207,7 +5268,7 @@ */ result_not_for_model?: boolean; /** - * The call is someone else's (a page a host renders), so it is decided as the model's own call to this tool is, except that a slash command's allowed-tools and connector card answers never allow it, even during a turn: permission rules under every spelling, the permission mode, requiresUserInteraction, managed settings, and PreToolUse and PostToolUse hooks, which see the arguments and the result. An ask reaches the host as a can_use_tool control request; where no host can answer, and in dontAsk or plan mode, it is refused. A refused call never reaches the server: on a plain call the error subtype, on a staged call staging error_code=tool_error, each with text starting 'The tool did not run: '. The other refusals of mcp_call come first and keep their own words. A PostToolUse hook's rewrite replaces content and drops structuredContent and _meta. The result stays out of the model's context. Only a CLI that says mcp_call_check_permissions_v1 honours this member: an older one ignores it and runs the tool with no check. Honoured only on the pipes of the host that spawned the process; elsewhere the call is refused. A value that is not a boolean is refused. + * The call is someone else's (a page a host renders), so it is decided as the model's own call to this tool is, except that a slash command's allowed-tools and connector card answers never allow it, even during a turn: permission rules under every spelling, the permission mode, requiresUserInteraction, managed settings, and PreToolUse and PostToolUse hooks, which see the arguments and the result. An agent hook gets no tools. A PreToolUse hook that times out refuses the call, and so do most failures of one. An ask reaches the host as a can_use_tool control request; where no host can answer, and in dontAsk or plan mode, it is refused. A refused call never reaches the server: on a plain call the error subtype, on a staged call staging error_code=tool_error, each with text starting 'The tool did not run: '. The other refusals of mcp_call come first and keep their own words. A PostToolUse hook's rewrite replaces content and drops structuredContent and _meta. The result stays out of the model's context. Only a CLI that says mcp_call_check_permissions_v1 honours this member: an older one ignores it and runs the tool with no check. Honoured only on the pipes of the host that spawned the process; elsewhere the call is refused. A value that is not a boolean is refused. */ check_permissions?: boolean; /** @@ -5455,6 +5516,7 @@ + }; /** @@ -5699,6 +5761,16 @@ }; /** + * Success payload answering set_permission_mode. + */ +export declare type SDKControlSetPermissionModeResponse = { + /** + * The permission mode now in effect, which can differ from the one asked for. `claude -p` names it; other hosts may answer with no payload. + */ + mode?: coreTypes.PermissionMode; +}; + +/** * Stops a running task. */ declare type SDKControlStopTaskRequest = { @@ -6337,7 +6409,7 @@ permission_denials: SDKPermissionDenial[]; /** - * User-initiated sends still waiting in the command queue when this result was produced. Greater than 0 means at least one more user turn (and result) follows without further input, barring cancellation; 0 means none is pending, or the session is ending (end_session or a shutdown latched mid-turn discards the backlog). Queued sends may coalesce into fewer turns, so this counts pending sends, not remaining results. System-generated queue entries are not counted. Absent on fatal startup results and on surfaces without a command queue. + * User-initiated sends still waiting in the command queue or, in a hosted remote session (CLAUDE_CODE_REMOTE), held back before they reach it, when this result was produced. Greater than 0 means at least one more user turn (and result) follows without further input, barring cancellation; 0 means none is pending, or the session is ending (end_session or a shutdown latched mid-turn discards the backlog). Queued sends may coalesce into fewer turns, so this counts pending sends, not remaining results. System-generated queue entries are not counted. Absent on fatal startup results and on surfaces without a command queue. */ queued_turn_count?: number; errors: string[]; @@ -6515,7 +6587,7 @@ permission_denials: SDKPermissionDenial[]; /** - * User-initiated sends still waiting in the command queue when this result was produced. Greater than 0 means at least one more user turn (and result) follows without further input, barring cancellation; 0 means none is pending, or the session is ending (end_session or a shutdown latched mid-turn discards the backlog). Queued sends may coalesce into fewer turns, so this counts pending sends, not remaining results. System-generated queue entries are not counted. Absent on fatal startup results and on surfaces without a command queue. + * User-initiated sends still waiting in the command queue or, in a hosted remote session (CLAUDE_CODE_REMOTE), held back before they reach it, when this result was produced. Greater than 0 means at least one more user turn (and result) follows without further input, barring cancellation; 0 means none is pending, or the session is ending (end_session or a shutdown latched mid-turn discards the backlog). Queued sends may coalesce into fewer turns, so this counts pending sends, not remaining results. System-generated queue entries are not counted. Absent on fatal startup results and on surfaces without a command queue. */ queued_turn_count?: number; structured_output?: unknown; @@ -6800,6 +6872,7 @@ + skip_transcript?: boolean; /** * True for tasks that are not activity (every skip_transcript task, plus every live-update watcher, requested or auto-started); hosts should exclude them from activity indicators. @@ -6836,6 +6909,7 @@ + uuid: UUID; session_id: string; }; @@ -7110,6 +7184,7 @@ + uuid?: UUID; /** * Content the user pasted into the prompt rather than typed: each entry a string or an array of content blocks. The CLI appends the text of each entry after the typed text, in order, and may wrap it in `<pasted_content>` tags. Blocks other than text are ignored; send images and documents in `message.content`. A list of over 1,000 entries and blocks in all is ignored. @@ -7215,6 +7290,7 @@ + uuid: UUID; session_id: string; isReplay: true; @@ -8162,7 +8238,7 @@ */ allowManagedMcpServersOnly?: boolean; /** - * Claude desktop app only. Where your allow list and deny list apply to MCP servers added in the Claude desktop app. "code" (default): Your allow list also governs MCP servers added in the Claude desktop app, in Code tab sessions and the Artifact pane. "all": Your allow list and your deny list also govern MCP servers added in the Claude desktop app, in every tab (including Chat and Cowork). "off": Your allow list doesn't govern MCP servers added in the Claude desktop app. Read only from managed settings. Any other value counts as `all`. Where sources are merged or mixed, `off` counts as `all`. Leave the key out, or set it only in the managed source that holds your list. `deniedMcpServers` applies in Code tab sessions and the Artifact pane with every value, and in every tab with `all`. MCP servers sent to SSH hosts are not governed by these lists in this release. The Claude Code CLI reads nothing from this key, but written alone in a higher managed source it makes that source lead, and Claude Code skips the managed sources beneath it. Write it only beside the list it scopes. + * Claude desktop app only. Where your allow list and deny list apply to MCP servers added in the Claude desktop app. "code" (default): Your allow list also governs MCP servers added in the Claude desktop app, in local Code tab sessions and the Artifact pane. "all": Same as "code". Your allow list and deny list also govern MCP servers in the app's config file (Settings > Developer > Edit config), in every tab (including Chat and Cowork) and when the app sends them to an SSH host. "off": Your allow list doesn't govern MCP servers added in the Claude desktop app. Read only from managed settings. Any other value counts as `all`. Where sources are merged or mixed, `off` counts as `all`. Leave the key out, or set it only in the managed source that holds your list. `deniedMcpServers` applies in local Code tab sessions and the Artifact pane with every value. MCP servers that the app sends to SSH hosts are governed by these lists, and by `strictPluginOnlyCustomization` for MCP, only with `all`, and not by older versions of the app. The Claude Code CLI reads nothing from this key, but written alone in a higher managed source it makes that source lead, and Claude Code skips the managed sources beneath it. Write it only beside the list it scopes. */ desktopMcpServersListScope?: string; /** @@ -10644,7 +10720,7 @@ reason?: string; - hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | PreModelSwitchHookSpecificOutput | PostModelSwitchHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | StopHookSpecificOutput | SubagentStopHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput | MessageDisplayHookSpecificOutput; + hookSpecificOutput?: PreToolUseHookSpecificOutput | UserPromptSubmitHookSpecificOutput | UserPromptExpansionHookSpecificOutput | SessionStartHookSpecificOutput | SetupHookSpecificOutput | PreModelSwitchHookSpecificOutput | PostModelSwitchHookSpecificOutput | SubagentStartHookSpecificOutput | PostToolUseHookSpecificOutput | PostToolUseFailureHookSpecificOutput | PostToolBatchHookSpecificOutput | StopHookSpecificOutput | SubagentStopHookSpecificOutput | PermissionDeniedHookSpecificOutput | NotificationHookSpecificOutput | PermissionRequestHookSpecificOutput | ElicitationHookSpecificOutput | ElicitationResultHookSpecificOutput | CwdChangedHookSpecificOutput | FileChangedHookSpecificOutput | WorktreeCreateHookSpecificOutput | MessageDisplayHookSpecificOutput | PreSkillShellCommandHookSpecificOutput; }; /**
PreSkillShellCommand hook event. Its result renders through the generic hook line we already print: a crafted hook_response came out as · hook PreSkillShellCommand:Bash: error, red.isSynthetic. Our runs send one prompt and inject nothing mid-turn.--fallback-model with a family name. Our workflows pass --model, --allowedTools and --max-turns, never --fallback-model.oat02-. That is Claude Code's own runner; GitHub masks the whole secret, and the renderer leaves secrets alone.GITHUB_OUTPUT when the session ends (#2121), so an output the session wrote itself no longer passes on. The wrapper never touches GITHUB_OUTPUT, and our workflows read only execution_file, which the action writes.setPermissionMode, and comment changes. No message the renderer shows and no tool input or output changed shape.Reviewed by Claude at e933bc5. Renovate moves this PR to the newest versions daily.
Closes #86
To rebuild this PR on the latest main, add the rebase label.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Dependency update #85
There was an error while loading. Please reload this page.