You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Transformation run API response model aligned with OpenAPI `TransformationExecutorOutput` (uses `request` field for transformed payload)
33
+
- CLI adds default `content-type: application/json` when request headers are empty so the transformation engine executes successfully
34
+
35
+
**README rebalance:**
36
+
- Added Sources and destinations subsection (within Manage connections) with examples and link to [REFERENCE.md#sources](REFERENCE.md#sources) and [REFERENCE.md#destinations](REFERENCE.md#destinations)
37
+
- Added Transformations section with examples and link to [REFERENCE.md#transformations](REFERENCE.md#transformations)
38
+
- Added Requests, events, and attempts section with examples and links to [REFERENCE.md#requests](REFERENCE.md#requests), [REFERENCE.md#events](REFERENCE.md#events), [REFERENCE.md#attempts](REFERENCE.md#attempts)
39
+
23
40
## Active Planning Documents
24
41
25
42
-**[`connection-management-status.md`](./connection-management/connection-management-status.md)** - Current implementation status (98% complete)
26
43
-**[`resource-management-implementation.md`](./resource-management-implementation.md)** - Overall resource management plan
27
44
45
+
## Testing and sandbox
46
+
47
+
-**Always run tests** when implementing or changing code (`go test ./pkg/...`, and for CLI changes `go test ./test/acceptance/...`). Do not skip tests to avoid failures.
48
+
- If tests fail due to **TLS/certificate errors**, **network**, or **sandbox** (e.g. `x509`, `operation not permitted`), **prompt the user** and **re-run with elevated permissions** (e.g. `required_permissions: ["all"]`) so tests can pass.
49
+
28
50
## Development Guidelines
29
51
30
52
All CLI development follows the patterns documented in [`AGENTS.md`](../AGENTS.md):
@@ -35,4 +57,4 @@ All CLI development follows the patterns documented in [`AGENTS.md`](../AGENTS.m
35
57
-**Ordered array configurations** - For API arrays with ordering (rules, steps, middleware)
36
58
-**Idempotent upsert pattern** - For declarative resource management with `--dry-run` support
37
59
38
-
Design specifications have been consolidated into `AGENTS.md` as general principles with connection management as concrete examples.
60
+
Design specifications have been consolidated into `AGENTS.md` as general principles with connection management as concrete examples.
Copy file name to clipboardExpand all lines: .plans/connection-management/connection-management-status.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Connection Management Implementation Status
2
2
3
+
## Tests and sandbox
4
+
5
+
-**Always run tests** when implementing or changing code. Do not skip tests to avoid failures.
6
+
- If tests fail due to **TLS/certificate errors**, **network**, or **sandbox** (e.g. `x509`, `operation not permitted`), **prompt the user** and **re-run with elevated permissions** (e.g. `required_permissions: ["all"]`) so tests can pass.
7
+
3
8
## Executive Summary
4
9
5
10
Connection management for the Hookdeck CLI is **98% complete and production-ready**. All core CRUD operations, lifecycle management, comprehensive authentication, rule configuration, and rate limiting have been fully implemented. The remaining 2% consists of optional enhancements (bulk operations, connection count, cloning) that are low priority.
-**Always run tests** when implementing or changing code. Do not skip tests to avoid failures.
50
+
- If tests fail due to **TLS/certificate errors**, **network**, or **sandbox** (e.g. `x509`, `operation not permitted`), **prompt the user** and **re-run with elevated permissions** (e.g. `required_permissions: ["all"]`) so tests can pass.
51
+
43
52
## Background
44
53
45
54
The Hookdeck CLI currently supports limited commands in `@pkg/cmd` with basic project management. This plan outlines implementing comprehensive resource management for projects, connections, sources, destinations, and transformations using the Hookdeck API (https://api.hookdeck.com/2025-07-01/openapi).
@@ -56,6 +65,7 @@ The Hookdeck CLI currently supports limited commands in `@pkg/cmd` with basic pr
56
65
-**Idempotent operations** - `upsert` commands with `--dry-run` support for declarative management
57
66
-**Type-driven validation** - Progressive validation based on `--type` parameters
58
67
-**JSON fallback** - Complex configurations via `--rules`, `--rules-file`, `--config`, `--config-file`
68
+
-**Plural alias for resource commands** - Every resource command group uses singular as primary `Use` and **must** have the plural as an alias (e.g. `source`/`sources`, `connection`/`connections`, `project`/`projects`). See AGENTS.md § Resource command naming and plural alias.
59
69
60
70
All CLI commands must follow these established patterns for consistency across the codebase.
61
71
@@ -66,7 +76,7 @@ All CLI commands must follow these established patterns for consistency across t
66
76
3.**Add source management** - Manage webhook sources with various provider types
67
77
4.**Add destination management** - Manage HTTP, CLI, and Mock API destinations
REFERENCE.md is generated from Cobra command metadata. Run `go run ./tools/generate-reference` after changing commands/flags. README rebalanced with Sources/destinations, Transformations, and Requests/events/attempts sections, each linking to REFERENCE.md subsections.
404
415
405
416
**Content Structure:**
406
417
```markdown
@@ -464,6 +475,8 @@ cmd.Example = ` # List all sources
464
475
465
476
### Phase 5: Testing and Validation
466
477
478
+
**CLI conventions checklist (all phases):** When adding or reviewing a resource command group, ensure it has a **plural alias** (e.g. `source`/`sources`, `connection`/`connections`, `project`/`projects`). See AGENTS.md § Resource command naming and plural alias.
479
+
467
480
#### Task 5.1: Add Command Tests
468
481
**Files to create:**
469
482
-`pkg/cmd/*_test.go` - Unit tests for all commands
0 commit comments