feat(coding): add Pi Data Service product tools
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
type PiSubagentScheduler,
|
||||
} from './subagent';
|
||||
import {
|
||||
isPiProductToolName,
|
||||
type PiProductToolName,
|
||||
type PiProductTools,
|
||||
} from './product-tools';
|
||||
@@ -121,7 +122,7 @@ function bridgeRequest(value: unknown): value is BridgeRequest {
|
||||
if (!common) return false;
|
||||
if (value.action === 'subagent.dispatch') return 'request' in value;
|
||||
if (value.action === 'product.invoke') {
|
||||
return typeof value.toolName === 'string' && 'input' in value;
|
||||
return isPiProductToolName(value.toolName) && 'input' in value;
|
||||
}
|
||||
if (value.action === 'changes.bash') return true;
|
||||
if (value.action === 'changes.touched') {
|
||||
|
||||
Reference in New Issue
Block a user