@orgloop/connector-claude-code 0.1.0 → 0.1.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 +17 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,12 +14,19 @@ npm install @orgloop/connector-claude-code
|
|
|
14
14
|
sources:
|
|
15
15
|
- id: claude-code
|
|
16
16
|
connector: "@orgloop/connector-claude-code"
|
|
17
|
-
config:
|
|
17
|
+
config:
|
|
18
|
+
secret: "${CLAUDE_CODE_WEBHOOK_SECRET}" # optional — HMAC-SHA256 validation
|
|
19
|
+
buffer_dir: "/tmp/orgloop-claude-code" # optional — persist events to disk
|
|
18
20
|
poll:
|
|
19
21
|
interval: "30s" # how often to drain received webhook events
|
|
20
22
|
```
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
### Config options
|
|
25
|
+
|
|
26
|
+
| Field | Type | Required | Description |
|
|
27
|
+
|-------|------|----------|-------------|
|
|
28
|
+
| `secret` | `string` | no | HMAC-SHA256 secret for validating incoming webhook signatures. Supports `${ENV_VAR}` syntax |
|
|
29
|
+
| `buffer_dir` | `string` | no | Directory for buffering received events to disk (JSONL). If set, events survive engine restarts |
|
|
23
30
|
|
|
24
31
|
## Events emitted
|
|
25
32
|
|
|
@@ -107,9 +114,15 @@ routes:
|
|
|
107
114
|
```
|
|
108
115
|
This registers a post-exit hook in Claude Code's settings that sends session data to OrgLoop.
|
|
109
116
|
|
|
117
|
+
## Environment Variables
|
|
118
|
+
|
|
119
|
+
| Variable | Required | Description |
|
|
120
|
+
|----------|----------|-------------|
|
|
121
|
+
| `CLAUDE_CODE_WEBHOOK_SECRET` | No | HMAC-SHA256 secret for validating incoming webhook signatures |
|
|
122
|
+
|
|
110
123
|
## Limitations / known issues
|
|
111
124
|
|
|
112
125
|
- **Push-based, not polling** -- Unlike the GitHub and Linear connectors, this connector does not poll an external API. It waits for inbound webhook requests. If the hook is not installed or fails silently, no events will be generated.
|
|
113
|
-
- **
|
|
114
|
-
- **
|
|
126
|
+
- **HMAC validation optional** -- If `secret` is configured, signatures are validated via `X-Hub-Signature-256` or `X-Signature` headers. Without it, any POST is accepted.
|
|
127
|
+
- **Event buffer** -- By default, events are held in memory until the next `poll()` drains them. Configure `buffer_dir` to persist events to disk and survive engine restarts.
|
|
115
128
|
- **Only POST accepted** -- Non-POST requests receive a 405 response.
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orgloop/connector-claude-code",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "OrgLoop Claude Code connector — hook-based exit notifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@orgloop/sdk": "0.1.
|
|
9
|
+
"@orgloop/sdk": "0.1.2"
|
|
10
10
|
},
|
|
11
11
|
"orgloop": {
|
|
12
12
|
"type": "connector",
|