@starlein/paperclip-plugin-company-wizard 0.4.7 → 0.4.9

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/manifest.js +1 -1
  3. package/dist/manifest.js.map +1 -1
  4. package/dist/worker.js +1 -1
  5. package/dist/worker.js.map +1 -1
  6. package/package.json +1 -1
  7. package/templates/modules/architecture-plan/agents/ceo/skills/architecture-plan.bar.md +17 -0
  8. package/templates/modules/architecture-plan/agents/ui-designer/skills/architecture-plan.md +2 -0
  9. package/templates/modules/architecture-plan/agents/ui-designer/skills/design-system.md +4 -3
  10. package/templates/modules/architecture-plan/skills/design-system.md +25 -0
  11. package/templates/modules/brand-identity/agents/ceo/skills/brand-identity.fallback.md +4 -4
  12. package/templates/modules/brand-identity/skills/brand-identity.md +1 -1
  13. package/templates/modules/ci-cd/agents/engineer/skills/ci-cd.fallback.md +2 -1
  14. package/templates/modules/ci-cd/skills/ci-cd.md +13 -2
  15. package/templates/modules/codebase-onboarding/agents/ceo/skills/codebase-audit.fallback.md +10 -0
  16. package/templates/modules/competitive-intel/agents/product-owner/skills/competitive-tracking.fallback.md +19 -0
  17. package/templates/modules/competitive-intel/skills/competitive-tracking.bar.md +11 -0
  18. package/templates/modules/dependency-management/module.meta.json +9 -0
  19. package/templates/modules/dependency-management/skills/dependency-audit.md +8 -5
  20. package/templates/modules/documentation/skills/project-docs.bar.md +13 -0
  21. package/templates/modules/game-design/skills/game-design.bar.md +13 -0
  22. package/templates/modules/github-repo/agents/engineer/skills/git-workflow.md +22 -7
  23. package/templates/modules/github-repo/docs/git-workflow.md +17 -1
  24. package/templates/modules/market-analysis/docs/market-analysis-template.md +17 -0
  25. package/templates/modules/monitoring/agents/engineer/skills/monitoring.fallback.md +1 -1
  26. package/templates/modules/monitoring/skills/monitoring.md +3 -1
  27. package/templates/modules/pr-review/agents/code-reviewer/skills/code-review.md +19 -5
  28. package/templates/modules/pr-review/agents/engineer/skills/pr-workflow.md +20 -4
  29. package/templates/modules/release-management/agents/ceo/skills/release-process.fallback.md +20 -0
  30. package/templates/modules/release-management/module.meta.json +9 -0
  31. package/templates/modules/release-management/skills/release-process.md +7 -5
  32. package/templates/modules/triage/agents/ceo/skills/issue-triage.fallback.md +2 -2
  33. package/templates/modules/website-relaunch/module.meta.json +0 -15
  34. package/templates/roles/ceo/HEARTBEAT.md +1 -1
  35. package/templates/roles/cmo/AGENTS.md +15 -0
  36. package/templates/roles/cmo/HEARTBEAT.md +1 -1
  37. package/templates/roles/code-reviewer/AGENTS.md +2 -2
  38. package/templates/roles/code-reviewer/HEARTBEAT.md +2 -1
  39. package/templates/roles/cto/AGENTS.md +22 -0
  40. package/templates/roles/cto/HEARTBEAT.md +1 -1
  41. package/templates/roles/devops/AGENTS.md +21 -0
  42. package/templates/roles/devops/HEARTBEAT.md +1 -1
  43. package/templates/roles/product-owner/SOUL.md +4 -1
  44. package/templates/roles/qa/HEARTBEAT.md +3 -2
  45. package/templates/roles/security-engineer/AGENTS.md +7 -0
  46. package/templates/roles/technical-writer/AGENTS.md +1 -1
  47. package/templates/roles/ui-designer/HEARTBEAT.md +1 -1
  48. package/templates/roles/ux-researcher/AGENTS.md +21 -0
  49. package/templates/roles/ux-researcher/HEARTBEAT.md +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,55 @@ All notable changes to the Company Wizard plugin are documented here.
4
4
 
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [0.4.9] - 2026-06-22
8
+
9
+ ### Fixed
10
+
11
+ **Roles — structural gaps in secondary and C-suite roles**
12
+ - `devops`, `cto`, `cmo`, `ux-researcher` AGENTS.md: added Working Rules, Collaboration and Handoffs, and Done Bar sections (previously used a thin "Core Principles"-only pattern with no actionable workflow guidance).
13
+ - `code-reviewer` HEARTBEAT.md step 5: replaced generic "move to in_review" with the correct role-specific flow — merge the PR, archive worktree, record `approved`; or on rejection set `in_progress` and reassign to engineer.
14
+ - `qa` HEARTBEAT.md step 5: replaced generic step with pass → mark done / fail → reassign to engineer with reproduction steps.
15
+ - `code-reviewer` AGENTS.md: added rejection flow in step 8; removed duplicate procedure paragraph from `## Principles`.
16
+ - `security-engineer` AGENTS.md: added missing `## Safety Considerations` section.
17
+ - `product-owner` SOUL.md: renamed section heading and added product ownership bullets.
18
+ - `technical-writer` AGENTS.md step 7: clarified that executionPolicy overrides the direct self-close.
19
+ - HEARTBEAT.md title casing fixed: CEO, CTO, CMO, QA Engineer, UI Designer, UX Researcher, DevOps.
20
+
21
+ **Operational modules — heartbeat-scan anti-pattern, bar/skill mismatches, missing fallbacks**
22
+ - `dependency-management` and `release-management`: converted heartbeat-scan "Ongoing" sections to routine-triggered procedures; added `routines[]` to both `module.meta.json` files.
23
+ - `release-management`: added CEO fallback skill scoped to documentation only — explicitly forbids `git push --tags`, `gh release create`, and version bumps.
24
+ - `ci-cd` shared skill: added SHA pinning rule, rollback documentation step, and `## Ongoing Health Checks` section for recurring routine runs.
25
+ - `monitoring` shared skill: added dashboard setup step and runbook requirement rule.
26
+ - `ci-cd` engineer fallback: marked output as provisional; added explicit `docs/CI-CD.md` reference.
27
+ - `monitoring` engineer fallback: "liveness probe" → "liveness and readiness probes".
28
+ - `triage` CEO fallback: `gh issue list` now uses full `--json` form; added `executionWorkspaceSettings` note.
29
+ - `codebase-onboarding` CEO fallback: added "Health Check Refresh" section for follow-up runs.
30
+
31
+ **Product/design modules — critical missing files, duplicate issues, bar gaps**
32
+ - `architecture-plan`: added missing shared `skills/design-system.md` — without it, an engineer acting as primary was silently installed with no design-system skill.
33
+ - `architecture-plan`: added CEO-specific `agents/ceo/skills/architecture-plan.bar.md` with reduced done bar (the shared bar set engineer-level requirements the CEO fallback cannot meet).
34
+ - `architecture-plan` ui-designer contribution skill: added guard clause — wait for `docs/ARCHITECTURE.md` before contributing the UI layer.
35
+ - `architecture-plan` ui-designer design-system skill: added conditional `docs/BRAND-IDENTITY.md` reference.
36
+ - `website-relaunch` module.meta.json: removed 3 duplicate issues (each appeared twice; would have provisioned duplicate board items).
37
+ - `competitive-intel`: added missing `agents/product-owner/skills/competitive-tracking.fallback.md`.
38
+ - Added new bar files: `competitive-intel/skills/competitive-tracking.bar.md`, `documentation/skills/project-docs.bar.md`, `game-design/skills/game-design.bar.md`.
39
+ - `market-analysis` template: added `## User Segments` section.
40
+ - `brand-identity` CEO fallback: fixed inconsistent role name ("designer or PO" → "ui-designer or CMO").
41
+ - `brand-identity` primary skill: added explicit file path for template reference.
42
+
43
+ ---
44
+
45
+ ## [0.4.8] - 2026-06-22
46
+
47
+ ### Fixed
48
+
49
+ - **Merge conflicts no longer leave PRs dangling forever.** When `gh pr merge` fails due to a merge conflict, or `gh pr view` reports `mergeable: CONFLICTING` / `mergeStateStatus: DIRTY`, agents previously had no concrete instructions and left the PR in `in_review` indefinitely. All three relevant skills now include an explicit *Resolving merge conflicts* section: `git fetch && git rebase origin/<base-ref>`, resolve conflict markers, `git push --force-with-lease`, verify `mergeable: MERGEABLE`, retry `gh pr merge`. (`git-workflow.md` skill, `pr-workflow.md` skill, `docs/git-workflow.md`.)
50
+ - **Code Reviewer checks for conflicts before attempting to merge.** The merge gate now runs `gh pr view <number> --json mergeable,mergeStateStatus` before calling `gh pr merge`. If the PR is conflicting or dirty, it immediately records `changes_requested` with a comment routing the issue back to the engineer to rebase — instead of attempting the merge and silently leaving the issue stranded. (`code-review.md`.)
51
+ - **PR Self-Merge flow also guards against dirty merges.** The engineer's self-merge path now checks mergeability before `gh pr merge` and follows the same rebase procedure when conflicting. (`pr-workflow.md`, `git-workflow.md` skill.)
52
+ - **Never leave a conflicting PR without an explicit action.** All skills now state: either resolve the conflict and retry, or leave an issue comment with the exact blocker and (for complex conflicts) escalate to the CEO — do not silently abandon the branch.
53
+
54
+ ---
55
+
7
56
  ## [0.4.7] - 2026-06-22
8
57
 
9
58
  ### Fixed
package/dist/manifest.js CHANGED
@@ -2,7 +2,7 @@
2
2
  var manifest = {
3
3
  id: "starlein.paperclip-plugin-company-wizard",
4
4
  apiVersion: 1,
5
- version: "0.4.7",
5
+ version: "0.4.9",
6
6
  displayName: "Company Wizard",
7
7
  description: "AI-powered wizard to bootstrap agent companies from composable templates",
8
8
  author: "Sascha Pietrowski <sp@speednetwork.de>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/manifest.ts"],
4
- "sourcesContent": ["import type { PaperclipPluginManifestV1 } from '@paperclipai/plugin-sdk';\n\nconst manifest: PaperclipPluginManifestV1 = {\n id: 'starlein.paperclip-plugin-company-wizard',\n apiVersion: 1,\n version: '0.4.7',\n displayName: 'Company Wizard',\n description: 'AI-powered wizard to bootstrap agent companies from composable templates',\n author: 'Sascha Pietrowski <sp@speednetwork.de>',\n categories: ['workspace', 'ui'],\n capabilities: [\n 'companies.read',\n 'issues.create',\n 'issues.read',\n 'issues.update',\n 'goals.create',\n 'goals.read',\n 'agents.read',\n 'projects.read',\n 'plugin.state.read',\n 'plugin.state.write',\n 'secrets.read-ref',\n 'events.subscribe',\n 'ui.page.register',\n 'ui.sidebar.register',\n ],\n instanceConfigSchema: {\n type: 'object',\n properties: {\n companiesDir: {\n type: 'string',\n description:\n 'Directory where assembled company workspaces are written. Auto-detected: ~/instances/default/companies in Docker setups, ~/.paperclip/instances/default/companies otherwise. Rarely needs manual override.',\n },\n templatesPath: {\n type: 'string',\n description:\n 'Path to the templates directory. Auto-detected: ~/plugin-templates in Docker setups, ~/.paperclip/plugin-templates otherwise. Rarely needs manual override.',\n },\n templatesRepoUrl: {\n type: 'string',\n default: 'https://github.com/starlein/paperclip-plugin-company-wizard/tree/main/templates',\n description:\n 'GitHub tree URL for template downloads. The default is correct for most setups \u2014 only change this if using a custom fork.',\n },\n anthropicApiKey: {\n type: 'string',\n description:\n 'Anthropic API key for the AI wizard (e.g. sk-ant-...). Required to use the AI-powered company setup path.',\n },\n paperclipUrl: {\n type: 'string',\n description:\n 'Paperclip instance URL. Defaults to http://localhost:3100 or the PAPERCLIP_PUBLIC_URL env var.',\n },\n paperclipEmail: {\n type: 'string',\n description: 'Board login email (for authenticated instances).',\n },\n paperclipPassword: {\n type: 'string',\n description: 'Board login password (for authenticated instances).',\n },\n },\n },\n entrypoints: {\n worker: './dist/worker.js',\n ui: './dist/ui',\n },\n ui: {\n slots: [\n {\n type: 'page',\n id: 'company-wizard',\n displayName: 'Company Wizard',\n exportName: 'WizardPage',\n routePath: 'company-creator',\n },\n {\n type: 'sidebar',\n id: 'company-wizard-link',\n displayName: 'Create Company',\n exportName: 'SidebarLink',\n },\n ],\n },\n};\n\nexport default manifest;\n"],
4
+ "sourcesContent": ["import type { PaperclipPluginManifestV1 } from '@paperclipai/plugin-sdk';\n\nconst manifest: PaperclipPluginManifestV1 = {\n id: 'starlein.paperclip-plugin-company-wizard',\n apiVersion: 1,\n version: '0.4.9',\n displayName: 'Company Wizard',\n description: 'AI-powered wizard to bootstrap agent companies from composable templates',\n author: 'Sascha Pietrowski <sp@speednetwork.de>',\n categories: ['workspace', 'ui'],\n capabilities: [\n 'companies.read',\n 'issues.create',\n 'issues.read',\n 'issues.update',\n 'goals.create',\n 'goals.read',\n 'agents.read',\n 'projects.read',\n 'plugin.state.read',\n 'plugin.state.write',\n 'secrets.read-ref',\n 'events.subscribe',\n 'ui.page.register',\n 'ui.sidebar.register',\n ],\n instanceConfigSchema: {\n type: 'object',\n properties: {\n companiesDir: {\n type: 'string',\n description:\n 'Directory where assembled company workspaces are written. Auto-detected: ~/instances/default/companies in Docker setups, ~/.paperclip/instances/default/companies otherwise. Rarely needs manual override.',\n },\n templatesPath: {\n type: 'string',\n description:\n 'Path to the templates directory. Auto-detected: ~/plugin-templates in Docker setups, ~/.paperclip/plugin-templates otherwise. Rarely needs manual override.',\n },\n templatesRepoUrl: {\n type: 'string',\n default: 'https://github.com/starlein/paperclip-plugin-company-wizard/tree/main/templates',\n description:\n 'GitHub tree URL for template downloads. The default is correct for most setups \u2014 only change this if using a custom fork.',\n },\n anthropicApiKey: {\n type: 'string',\n description:\n 'Anthropic API key for the AI wizard (e.g. sk-ant-...). Required to use the AI-powered company setup path.',\n },\n paperclipUrl: {\n type: 'string',\n description:\n 'Paperclip instance URL. Defaults to http://localhost:3100 or the PAPERCLIP_PUBLIC_URL env var.',\n },\n paperclipEmail: {\n type: 'string',\n description: 'Board login email (for authenticated instances).',\n },\n paperclipPassword: {\n type: 'string',\n description: 'Board login password (for authenticated instances).',\n },\n },\n },\n entrypoints: {\n worker: './dist/worker.js',\n ui: './dist/ui',\n },\n ui: {\n slots: [\n {\n type: 'page',\n id: 'company-wizard',\n displayName: 'Company Wizard',\n exportName: 'WizardPage',\n routePath: 'company-creator',\n },\n {\n type: 'sidebar',\n id: 'company-wizard-link',\n displayName: 'Create Company',\n exportName: 'SidebarLink',\n },\n ],\n },\n};\n\nexport default manifest;\n"],
5
5
  "mappings": ";AAEA,IAAM,WAAsC;AAAA,EAC1C,IAAI;AAAA,EACJ,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,aAAa;AAAA,EACb,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,YAAY,CAAC,aAAa,IAAI;AAAA,EAC9B,cAAc;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAsB;AAAA,IACpB,MAAM;AAAA,IACN,YAAY;AAAA,MACV,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,aACE;AAAA,MACJ;AAAA,MACA,eAAe;AAAA,QACb,MAAM;AAAA,QACN,aACE;AAAA,MACJ;AAAA,MACA,kBAAkB;AAAA,QAChB,MAAM;AAAA,QACN,SAAS;AAAA,QACT,aACE;AAAA,MACJ;AAAA,MACA,iBAAiB;AAAA,QACf,MAAM;AAAA,QACN,aACE;AAAA,MACJ;AAAA,MACA,cAAc;AAAA,QACZ,MAAM;AAAA,QACN,aACE;AAAA,MACJ;AAAA,MACA,gBAAgB;AAAA,QACd,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,MACA,mBAAmB;AAAA,QACjB,MAAM;AAAA,QACN,aAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF;AAAA,EACA,aAAa;AAAA,IACX,QAAQ;AAAA,IACR,IAAI;AAAA,EACN;AAAA,EACA,IAAI;AAAA,IACF,OAAO;AAAA,MACL;AAAA,QACE,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,aAAa;AAAA,QACb,YAAY;AAAA,QACZ,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,MAAM;AAAA,QACN,IAAI;AAAA,QACJ,aAAa;AAAA,QACb,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,mBAAQ;",
6
6
  "names": []
7
7
  }
package/dist/worker.js CHANGED
@@ -11003,7 +11003,7 @@ var __dirname = path2.dirname(fileURLToPath2(import.meta.url));
11003
11003
  var DEFAULT_TEMPLATES_REPO_URL = "https://github.com/starlein/paperclip-plugin-company-wizard/tree/main/templates";
11004
11004
  var BUNDLED_TEMPLATES_DIR = path2.resolve(__dirname, "..", "templates");
11005
11005
  var PLUGIN_PACKAGE_NAME = "@starlein/paperclip-plugin-company-wizard";
11006
- var CURRENT_PLUGIN_VERSION = "0.4.7";
11006
+ var CURRENT_PLUGIN_VERSION = "0.4.9";
11007
11007
  var NPM_LATEST_URL = "https://registry.npmjs.org/@starlein%2Fpaperclip-plugin-company-wizard/latest";
11008
11008
  function copyDirSync(src, dest) {
11009
11009
  fs2.mkdirSync(dest, { recursive: true });