mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-28 10:44:21 +01:00
feat: improve interactivity by predict sessions
This commit is contained in:
@@ -23,13 +23,17 @@ export class ClaudeCodeExecutor {
|
||||
);
|
||||
}
|
||||
|
||||
public get features() {
|
||||
public get version() {
|
||||
return this.claudeCodeVersion?.version;
|
||||
}
|
||||
|
||||
public get availableFeatures() {
|
||||
return {
|
||||
enableToolApproval:
|
||||
canUseTool:
|
||||
this.claudeCodeVersion?.greaterThanOrEqual(
|
||||
new ClaudeCodeVersion({ major: 1, minor: 0, patch: 82 }),
|
||||
) ?? false,
|
||||
extractUuidFromSDKMessage:
|
||||
uuidOnSDKMessage:
|
||||
this.claudeCodeVersion?.greaterThanOrEqual(
|
||||
new ClaudeCodeVersion({ major: 1, minor: 0, patch: 86 }),
|
||||
) ?? false,
|
||||
@@ -44,7 +48,7 @@ export class ClaudeCodeExecutor {
|
||||
options: {
|
||||
pathToClaudeCodeExecutable: this.pathToClaudeCodeExecutable,
|
||||
...baseOptions,
|
||||
...(this.features.enableToolApproval ? { canUseTool } : {}),
|
||||
...(this.availableFeatures.canUseTool ? { canUseTool } : {}),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user