From b07572fed5c79bf0393b0ed18602fd897d588cfa Mon Sep 17 00:00:00 2001 From: Steve Cliff Date: Thu, 12 Feb 2026 10:37:19 +0000 Subject: [PATCH] Released v1 --- .gitignore | 26 + .../skills/openspec-apply-change/SKILL.md | 156 + .../skills/openspec-archive-change/SKILL.md | 114 + .../openspec-bulk-archive-change/SKILL.md | 246 + .../skills/openspec-continue-change/SKILL.md | 118 + .windsurf/skills/openspec-explore/SKILL.md | 290 + .windsurf/skills/openspec-ff-change/SKILL.md | 101 + .windsurf/skills/openspec-new-change/SKILL.md | 74 + .windsurf/skills/openspec-onboard/SKILL.md | 529 + .windsurf/skills/openspec-sync-specs/SKILL.md | 138 + .../skills/openspec-verify-change/SKILL.md | 168 + .windsurf/workflows/opsx-apply.md | 152 + .windsurf/workflows/opsx-archive.md | 157 + .windsurf/workflows/opsx-bulk-archive.md | 242 + .windsurf/workflows/opsx-continue.md | 114 + .windsurf/workflows/opsx-explore.md | 174 + .windsurf/workflows/opsx-ff.md | 94 + .windsurf/workflows/opsx-new.md | 69 + .windsurf/workflows/opsx-onboard.md | 525 + .windsurf/workflows/opsx-sync.md | 134 + .windsurf/workflows/opsx-verify.md | 164 + README.md | 286 + build.sh | 7 + client/boards.go | 98 + client/cards.go | 250 + client/client.go | 164 + client/comments.go | 114 + client/labels.go | 48 + client/projects.go | 43 + client/task_lists.go | 65 + client/tasks.go | 48 + cmd/board.go | 66 + cmd/card.go | 357 + cmd/comment.go | 108 + cmd/label.go | 113 + cmd/project.go | 47 + cmd/root.go | 106 + cmd/status.go | 105 + cmd/task.go | 110 + cmd/task_list.go | 133 + cmd/version.go | 40 + example-skill/SKILL.md | 143 + go.mod | 9 + go.sum | 10 + logging/logging.go | 30 + main.go | 9 + model/types.go | 178 + .../2026-02-09-planka-cli-v1/.openspec.yaml | 2 + .../2026-02-09-planka-cli-v1/design.md | 215 + .../2026-02-09-planka-cli-v1/proposal.md | 35 + .../specs/api-client/spec.md | 195 + .../specs/card-operations/spec.md | 88 + .../specs/cli-commands/spec.md | 188 + .../specs/output-formatting/spec.md | 66 + .../archive/2026-02-09-planka-cli-v1/tasks.md | 133 + .../.openspec.yaml | 2 + .../2026-02-11-add-status-command/design.md | 45 + .../2026-02-11-add-status-command/proposal.md | 30 + .../specs/cli-commands/spec.md | 16 + .../specs/status-command/spec.md | 53 + .../2026-02-11-add-status-command/tasks.md | 17 + .../.openspec.yaml | 2 + .../design.md | 43 + .../proposal.md | 31 + .../specs/api-client/spec.md | 35 + .../specs/cli-commands/spec.md | 22 + .../tasks.md | 20 + openspec/config.yaml | 20 + openspec/specs/api-client/spec.md | 195 + openspec/specs/card-operations/spec.md | 88 + openspec/specs/cli-commands/spec.md | 208 + openspec/specs/output-formatting/spec.md | 66 + openspec/specs/status-command/spec.md | 53 + output/output.go | 239 + reference/planka-api.json | 10538 ++++++++++++++++ release.sh | 21 + test.sh | 380 + 77 files changed, 19518 insertions(+) create mode 100644 .gitignore create mode 100644 .windsurf/skills/openspec-apply-change/SKILL.md create mode 100644 .windsurf/skills/openspec-archive-change/SKILL.md create mode 100644 .windsurf/skills/openspec-bulk-archive-change/SKILL.md create mode 100644 .windsurf/skills/openspec-continue-change/SKILL.md create mode 100644 .windsurf/skills/openspec-explore/SKILL.md create mode 100644 .windsurf/skills/openspec-ff-change/SKILL.md create mode 100644 .windsurf/skills/openspec-new-change/SKILL.md create mode 100644 .windsurf/skills/openspec-onboard/SKILL.md create mode 100644 .windsurf/skills/openspec-sync-specs/SKILL.md create mode 100644 .windsurf/skills/openspec-verify-change/SKILL.md create mode 100644 .windsurf/workflows/opsx-apply.md create mode 100644 .windsurf/workflows/opsx-archive.md create mode 100644 .windsurf/workflows/opsx-bulk-archive.md create mode 100644 .windsurf/workflows/opsx-continue.md create mode 100644 .windsurf/workflows/opsx-explore.md create mode 100644 .windsurf/workflows/opsx-ff.md create mode 100644 .windsurf/workflows/opsx-new.md create mode 100644 .windsurf/workflows/opsx-onboard.md create mode 100644 .windsurf/workflows/opsx-sync.md create mode 100644 .windsurf/workflows/opsx-verify.md create mode 100644 README.md create mode 100755 build.sh create mode 100644 client/boards.go create mode 100644 client/cards.go create mode 100644 client/client.go create mode 100644 client/comments.go create mode 100644 client/labels.go create mode 100644 client/projects.go create mode 100644 client/task_lists.go create mode 100644 client/tasks.go create mode 100644 cmd/board.go create mode 100644 cmd/card.go create mode 100644 cmd/comment.go create mode 100644 cmd/label.go create mode 100644 cmd/project.go create mode 100644 cmd/root.go create mode 100644 cmd/status.go create mode 100644 cmd/task.go create mode 100644 cmd/task_list.go create mode 100644 cmd/version.go create mode 100644 example-skill/SKILL.md create mode 100644 go.mod create mode 100644 go.sum create mode 100644 logging/logging.go create mode 100644 main.go create mode 100644 model/types.go create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/.openspec.yaml create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/design.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/proposal.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/specs/api-client/spec.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/specs/card-operations/spec.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/specs/cli-commands/spec.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/specs/output-formatting/spec.md create mode 100644 openspec/changes/archive/2026-02-09-planka-cli-v1/tasks.md create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/.openspec.yaml create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/design.md create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/proposal.md create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/specs/cli-commands/spec.md create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/specs/status-command/spec.md create mode 100644 openspec/changes/archive/2026-02-11-add-status-command/tasks.md create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/.openspec.yaml create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/design.md create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/proposal.md create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/specs/api-client/spec.md create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/specs/cli-commands/spec.md create mode 100644 openspec/changes/archive/2026-02-11-replace-auth-with-api-key/tasks.md create mode 100644 openspec/config.yaml create mode 100644 openspec/specs/api-client/spec.md create mode 100644 openspec/specs/card-operations/spec.md create mode 100644 openspec/specs/cli-commands/spec.md create mode 100644 openspec/specs/output-formatting/spec.md create mode 100644 openspec/specs/status-command/spec.md create mode 100644 output/output.go create mode 100644 reference/planka-api.json create mode 100755 release.sh create mode 100755 test.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a965f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Binary +/pcli + +# IDE +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db + +# Go +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.test +*.out + +# Environment +.env +.env.local diff --git a/.windsurf/skills/openspec-apply-change/SKILL.md b/.windsurf/skills/openspec-apply-change/SKILL.md new file mode 100644 index 0000000..47d4bc2 --- /dev/null +++ b/.windsurf/skills/openspec-apply-change/SKILL.md @@ -0,0 +1,156 @@ +--- +name: openspec-apply-change +description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. +license: MIT +compatibility: Requires openspec CLI. +metadata: + author: openspec + version: "1.0" + generatedBy: "1.1.1" +--- + +Implement tasks from an OpenSpec change. + +**Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes. + +**Steps** + +1. **Select the change** + + If a name is provided, use it. Otherwise: + - Infer from conversation context if the user mentioned a change + - Auto-select if only one active change exists + - If ambiguous, run `openspec list --json` to get available changes and use the **AskUserQuestion tool** to let the user select + + Always announce: "Using change: " and how to override (e.g., `/opsx:apply `). + +2. **Check status to understand the schema** + ```bash + openspec status --change "" --json + ``` + Parse the JSON to understand: + - `schemaName`: The workflow being used (e.g., "spec-driven") + - Which artifact contains the tasks (typically "tasks" for spec-driven, check status for others) + +3. **Get apply instructions** + + ```bash + openspec instructions apply --change "" --json + ``` + + This returns: + - Context file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs) + - Progress (total, complete, remaining) + - Task list with status + - Dynamic instruction based on current state + + **Handle states:** + - If `state: "blocked"` (missing artifacts): show message, suggest using openspec-continue-change + - If `state: "all_done"`: congratulate, suggest archive + - Otherwise: proceed to implementation + +4. **Read context files** + + Read the files listed in `contextFiles` from the apply instructions output. + The files depend on the schema being used: + - **spec-driven**: proposal, specs, design, tasks + - Other schemas: follow the contextFiles from CLI output + +5. **Show current progress** + + Display: + - Schema being used + - Progress: "N/M tasks complete" + - Remaining tasks overview + - Dynamic instruction from CLI + +6. **Implement tasks (loop until done or blocked)** + + For each pending task: + - Show which task is being worked on + - Make the code changes required + - Keep changes minimal and focused + - Mark task complete in the tasks file: `- [ ]` → `- [x]` + - Continue to next task + + **Pause if:** + - Task is unclear → ask for clarification + - Implementation reveals a design issue → suggest updating artifacts + - Error or blocker encountered → report and wait for guidance + - User interrupts + +7. **On completion or pause, show status** + + Display: + - Tasks completed this session + - Overall progress: "N/M tasks complete" + - If all done: suggest archive + - If paused: explain why and wait for guidance + +**Output During Implementation** + +``` +## Implementing: (schema: ) + +Working on task 3/7: +[...implementation happening...] +✓ Task complete + +Working on task 4/7: +[...implementation happening...] +✓ Task complete +``` + +**Output On Completion** + +``` +## Implementation Complete + +**Change:** +**Schema:** +**Progress:** 7/7 tasks complete ✓ + +### Completed This Session +- [x] Task 1 +- [x] Task 2 +... + +All tasks complete! Ready to archive this change. +``` + +**Output On Pause (Issue Encountered)** + +``` +## Implementation Paused + +**Change:** +**Schema:** +**Progress:** 4/7 tasks complete + +### Issue Encountered + + +**Options:** +1.