cc-hooks-ts 2.1.145 → 2.1.149
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/dist/index.d.mts +41 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { AgentInput, AgentOutput, AskUserQuestionInput, AskUserQuestionOutput, BashInput, BashOutput, EnterWorktreeInput, EnterWorktreeOutput, ExitPlanModeInput, ExitPlanModeOutput, ExitWorktreeInput, ExitWorktreeOutput, FileEditInput, FileEditOutput, FileReadInput, FileReadOutput, FileWriteInput, FileWriteOutput, GlobInput, GlobOutput, GrepInput, GrepOutput, ListMcpResourcesInput, ListMcpResourcesOutput, McpInput, McpOutput, NotebookEditInput, NotebookEditOutput, ReadMcpResourceInput, ReadMcpResourceOutput, TaskOutputInput, TaskStopInput, TaskStopOutput, TodoWriteInput, TodoWriteOutput, WebFetchInput, WebFetchOutput, WebSearchInput, WebSearchOutput } from "@anthropic-ai/claude-agent-sdk/sdk-tools";
|
|
2
|
+
import { AgentInput, AgentOutput, AskUserQuestionInput, AskUserQuestionOutput, BashInput, BashOutput, CronCreateInput, CronCreateOutput, CronDeleteInput, CronDeleteOutput, CronListInput, CronListOutput, EnterPlanModeInput, EnterPlanModeOutput, EnterWorktreeInput, EnterWorktreeOutput, ExitPlanModeInput, ExitPlanModeOutput, ExitWorktreeInput, ExitWorktreeOutput, FileEditInput, FileEditOutput, FileReadInput, FileReadOutput, FileWriteInput, FileWriteOutput, GlobInput, GlobOutput, GrepInput, GrepOutput, ListMcpResourcesInput, ListMcpResourcesOutput, McpInput, McpOutput, MonitorInput, MonitorOutput, NotebookEditInput, NotebookEditOutput, PushNotificationInput, PushNotificationOutput, REPLInput, REPLOutput, ReadMcpResourceInput, ReadMcpResourceOutput, RemoteTriggerInput, RemoteTriggerOutput, ScheduleWakeupInput, ScheduleWakeupOutput, TaskOutputInput, TaskStopInput, TaskStopOutput, TodoWriteInput, TodoWriteOutput, WebFetchInput, WebFetchOutput, WebSearchInput, WebSearchOutput, WorkflowInput, WorkflowOutput } from "@anthropic-ai/claude-agent-sdk/sdk-tools";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/types.d.ts
|
|
5
5
|
type Awaitable<T> = Promise<T> | T;
|
|
@@ -1417,10 +1417,26 @@ interface ToolSchema {
|
|
|
1417
1417
|
input: BashInput;
|
|
1418
1418
|
response: BashOutput;
|
|
1419
1419
|
};
|
|
1420
|
+
CronCreate: {
|
|
1421
|
+
input: CronCreateInput;
|
|
1422
|
+
response: CronCreateOutput;
|
|
1423
|
+
};
|
|
1424
|
+
CronDelete: {
|
|
1425
|
+
input: CronDeleteInput;
|
|
1426
|
+
response: CronDeleteOutput;
|
|
1427
|
+
};
|
|
1428
|
+
CronList: {
|
|
1429
|
+
input: CronListInput;
|
|
1430
|
+
response: CronListOutput;
|
|
1431
|
+
};
|
|
1420
1432
|
Edit: {
|
|
1421
1433
|
input: FileEditInput;
|
|
1422
1434
|
response: FileEditOutput;
|
|
1423
1435
|
};
|
|
1436
|
+
EnterPlanMode: {
|
|
1437
|
+
input: EnterPlanModeInput;
|
|
1438
|
+
response: EnterPlanModeOutput;
|
|
1439
|
+
};
|
|
1424
1440
|
EnterWorktree: {
|
|
1425
1441
|
input: EnterWorktreeInput;
|
|
1426
1442
|
response: EnterWorktreeOutput;
|
|
@@ -1449,10 +1465,18 @@ interface ToolSchema {
|
|
|
1449
1465
|
input: McpInput;
|
|
1450
1466
|
response: McpOutput;
|
|
1451
1467
|
};
|
|
1468
|
+
Monitor: {
|
|
1469
|
+
input: MonitorInput;
|
|
1470
|
+
response: MonitorOutput;
|
|
1471
|
+
};
|
|
1452
1472
|
NotebookEdit: {
|
|
1453
1473
|
input: NotebookEditInput;
|
|
1454
1474
|
response: NotebookEditOutput;
|
|
1455
1475
|
};
|
|
1476
|
+
PushNotification: {
|
|
1477
|
+
input: PushNotificationInput;
|
|
1478
|
+
response: PushNotificationOutput;
|
|
1479
|
+
};
|
|
1456
1480
|
Read: {
|
|
1457
1481
|
input: FileReadInput;
|
|
1458
1482
|
response: FileReadOutput;
|
|
@@ -1461,6 +1485,18 @@ interface ToolSchema {
|
|
|
1461
1485
|
input: ReadMcpResourceInput;
|
|
1462
1486
|
response: ReadMcpResourceOutput;
|
|
1463
1487
|
};
|
|
1488
|
+
RemoteTrigger: {
|
|
1489
|
+
input: RemoteTriggerInput;
|
|
1490
|
+
response: RemoteTriggerOutput;
|
|
1491
|
+
};
|
|
1492
|
+
REPL: {
|
|
1493
|
+
input: REPLInput;
|
|
1494
|
+
response: REPLOutput;
|
|
1495
|
+
};
|
|
1496
|
+
ScheduleWakeup: {
|
|
1497
|
+
input: ScheduleWakeupInput;
|
|
1498
|
+
response: ScheduleWakeupOutput;
|
|
1499
|
+
};
|
|
1464
1500
|
Skill: {
|
|
1465
1501
|
input: {
|
|
1466
1502
|
args?: string;
|
|
@@ -1502,6 +1538,10 @@ interface ToolSchema {
|
|
|
1502
1538
|
input: WebSearchInput;
|
|
1503
1539
|
response: WebSearchOutput;
|
|
1504
1540
|
};
|
|
1541
|
+
Workflow: {
|
|
1542
|
+
input: WorkflowInput;
|
|
1543
|
+
response: WorkflowOutput;
|
|
1544
|
+
};
|
|
1505
1545
|
Write: {
|
|
1506
1546
|
input: FileWriteInput;
|
|
1507
1547
|
response: FileWriteOutput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-hooks-ts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.149",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Write claude code hooks with type safety",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vitest": "4.1.2"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.149",
|
|
66
66
|
"get-stdin": "10.0.0",
|
|
67
67
|
"valibot": "^1.3.0"
|
|
68
68
|
},
|