@zeph-to/hook-sdk 1.5.1 → 1.5.2

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/README.md CHANGED
@@ -63,7 +63,7 @@ zeph notify --title "Hello" --json
63
63
  | `--title <text>` | Push title |
64
64
  | `--body <text>` | Push body |
65
65
  | `--url <url>` | URL to include |
66
- | `--type <type>` | Push type: `note`, `link`, `file` |
66
+ | `--type <type>` | Push type: `note`, `link`, `file`, `hook` |
67
67
  | `--priority <p>` | Priority: `low`, `normal`, `high`, `urgent` |
68
68
  | `--device <id>` | Target device ID |
69
69
 
@@ -154,7 +154,7 @@ await hook.dismissAll();
154
154
  | `title` | `string?` | Push title |
155
155
  | `body` | `string?` | Push body |
156
156
  | `url` | `string?` | URL to include |
157
- | `type` | `'note' \| 'link' \| 'file'?` | Push type (default: `note`) |
157
+ | `type` | `'note' \| 'link' \| 'file' \| 'hook'?` | Push type (default: `hook`) |
158
158
  | `priority` | `'low' \| 'normal' \| 'high' \| 'urgent'?` | Priority (default: `normal`) |
159
159
  | `targetDeviceId` | `string?` | Send to specific device |
160
160
 
@@ -1,7 +1,6 @@
1
1
  export declare const CURSOR_HOOKS: string;
2
2
  export declare const CURSOR_RULE = "---\ndescription: \"Zeph notification rules\"\nalwaysApply: true\n---\n\nWhen you complete a coding task, call the zeph_notify MCP tool with a brief summary.\nUse zeph_prompt for user decisions (2-4 options). Use zeph_input for free-form text.\nDo not notify for trivial operations (file reads, simple searches).\n";
3
3
  export declare const WINDSURF_HOOKS: string;
4
- export declare const WINDSURF_RULE = "When you complete a coding task, call the zeph_notify MCP tool with a brief summary.\nUse zeph_prompt for user decisions (2-4 options). Use zeph_input for free-form text.\nDo not notify for trivial operations (file reads, simple searches).\n";
5
4
  export declare const GEMINI_HOOKS: {
6
5
  hooks: {
7
6
  AfterAgent: {
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,QAOd,CAAC;AAEZ,eAAO,MAAM,WAAW,+TAQvB,CAAC;AAIF,eAAO,MAAM,cAAc,QAOhB,CAAC;AAEZ,eAAO,MAAM,aAAa,sPAGzB,CAAC;AAIF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAYxB,CAAC;AAIF,eAAO,MAAM,WAAW,QAQb,CAAC;AAIZ,eAAO,MAAM,aAAa,QASf,CAAC;AAIZ,eAAO,MAAM,UAAU,sPAGtB,CAAC"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,QAOd,CAAC;AAEZ,eAAO,MAAM,WAAW,+TAQvB,CAAC;AAIF,eAAO,MAAM,cAAc,QAOhB,CAAC;AAIZ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;CAYxB,CAAC;AAIF,eAAO,MAAM,WAAW,QAQb,CAAC;AAIZ,eAAO,MAAM,aAAa,QASf,CAAC;AAIZ,eAAO,MAAM,UAAU,sPAGtB,CAAC"}
package/dist/templates.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // ── Hook & Rule templates for each agent ─────────────────────────
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CLINE_RULE = exports.COPILOT_HOOKS = exports.CODEX_HOOKS = exports.GEMINI_HOOKS = exports.WINDSURF_RULE = exports.WINDSURF_HOOKS = exports.CURSOR_RULE = exports.CURSOR_HOOKS = void 0;
4
+ exports.CLINE_RULE = exports.COPILOT_HOOKS = exports.CODEX_HOOKS = exports.GEMINI_HOOKS = exports.WINDSURF_HOOKS = exports.CURSOR_RULE = exports.CURSOR_HOOKS = void 0;
5
5
  const NOTIFY_CMD = 'npx @zeph-to/hook-sdk notify --title "Task done" 2>/dev/null || true';
6
6
  // ── Cursor ───────────────────────────────────────────────────────
7
7
  exports.CURSOR_HOOKS = JSON.stringify({
@@ -30,10 +30,6 @@ exports.WINDSURF_HOOKS = JSON.stringify({
30
30
  }],
31
31
  },
32
32
  }, null, 2);
33
- exports.WINDSURF_RULE = `When you complete a coding task, call the zeph_notify MCP tool with a brief summary.
34
- Use zeph_prompt for user decisions (2-4 options). Use zeph_input for free-form text.
35
- Do not notify for trivial operations (file reads, simple searches).
36
- `;
37
33
  // ── Gemini ───────────────────────────────────────────────────────
38
34
  exports.GEMINI_HOOKS = {
39
35
  hooks: {
package/dist/types.d.ts CHANGED
@@ -16,12 +16,6 @@ export interface NotifyResult {
16
16
  fileKey?: string;
17
17
  autoFile?: boolean;
18
18
  }
19
- export interface FileAttachment {
20
- fileKey: string;
21
- fileName: string;
22
- fileSize: number;
23
- fileType: string;
24
- }
25
19
  export interface UploadRequestResult {
26
20
  fileId: string;
27
21
  fileKey: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACzC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE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1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeph-to/hook-sdk",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Zeph push notification SDK + CLI — zero dependencies",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",