@imdeadpool/guardex 7.0.39 → 7.0.43

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 (85) hide show
  1. package/README.md +85 -16
  2. package/package.json +2 -1
  3. package/skills/gitguardex/SKILL.md +13 -0
  4. package/skills/guardex-merge-skills-to-dev/SKILL.md +59 -0
  5. package/src/agents/cleanup-sessions.js +126 -0
  6. package/src/agents/detect.js +160 -0
  7. package/src/agents/finish.js +172 -0
  8. package/src/agents/inspect.js +189 -0
  9. package/src/agents/launch.js +240 -0
  10. package/src/agents/registry.js +133 -0
  11. package/src/agents/selection-panel.js +571 -0
  12. package/src/agents/sessions.js +151 -0
  13. package/src/agents/start.js +591 -0
  14. package/src/agents/status.js +143 -0
  15. package/src/agents/terminal.js +152 -0
  16. package/src/budget/index.js +343 -0
  17. package/src/ci-init/index.js +265 -0
  18. package/src/cli/args.js +305 -1
  19. package/src/cli/main.js +262 -132
  20. package/src/cockpit/action-runner.js +3 -0
  21. package/src/cockpit/actions.js +80 -0
  22. package/src/cockpit/control.js +1121 -0
  23. package/src/cockpit/index.js +426 -0
  24. package/src/cockpit/keybindings.js +224 -0
  25. package/src/cockpit/kitty-layout.js +549 -0
  26. package/src/cockpit/kitty-tree.js +144 -0
  27. package/src/cockpit/layout.js +224 -0
  28. package/src/cockpit/logs-reader.js +182 -0
  29. package/src/cockpit/menu.js +204 -0
  30. package/src/cockpit/pane-actions.js +597 -0
  31. package/src/cockpit/pane-menu.js +387 -0
  32. package/src/cockpit/projects-finder.js +178 -0
  33. package/src/cockpit/render.js +215 -0
  34. package/src/cockpit/settings-render.js +128 -0
  35. package/src/cockpit/settings.js +124 -0
  36. package/src/cockpit/shortcuts.js +24 -0
  37. package/src/cockpit/sidebar.js +311 -0
  38. package/src/cockpit/state.js +72 -0
  39. package/src/cockpit/theme.js +128 -0
  40. package/src/cockpit/welcome.js +266 -0
  41. package/src/context.js +78 -35
  42. package/src/doctor/index.js +4 -3
  43. package/src/finish/index.js +39 -2
  44. package/src/git/index.js +65 -0
  45. package/src/kitty/command.js +101 -0
  46. package/src/kitty/runtime.js +250 -0
  47. package/src/output/index.js +1 -1
  48. package/src/pr-review.js +241 -0
  49. package/src/scaffold/index.js +19 -0
  50. package/src/submodule/index.js +288 -0
  51. package/src/terminal/index.js +120 -0
  52. package/src/terminal/kitty.js +622 -0
  53. package/src/terminal/tmux.js +126 -0
  54. package/src/tmux/command.js +27 -0
  55. package/src/tmux/session.js +89 -0
  56. package/templates/AGENTS.multiagent-safety.md +421 -37
  57. package/templates/codex/skills/gitguardex/SKILL.md +2 -0
  58. package/templates/githooks/pre-commit +22 -1
  59. package/templates/github/workflows/README.md +87 -0
  60. package/templates/github/workflows/ci-full.yml +55 -0
  61. package/templates/github/workflows/ci.yml +56 -0
  62. package/templates/github/workflows/cr.yml +20 -1
  63. package/templates/scripts/agent-branch-finish.sh +545 -27
  64. package/templates/scripts/agent-branch-start.sh +193 -21
  65. package/templates/scripts/agent-preflight.sh +89 -0
  66. package/templates/scripts/agent-worktree-prune.sh +96 -5
  67. package/templates/scripts/codex-agent.sh +41 -6
  68. package/templates/scripts/openspec/init-plan-workspace.sh +43 -0
  69. package/templates/scripts/review-bot-watch.sh +31 -2
  70. package/templates/scripts/agent-session-state.js +0 -171
  71. package/templates/scripts/install-vscode-active-agents-extension.js +0 -135
  72. package/templates/vscode/guardex-active-agents/README.md +0 -34
  73. package/templates/vscode/guardex-active-agents/extension.js +0 -3782
  74. package/templates/vscode/guardex-active-agents/fileicons/gitguardex-fileicons.json +0 -54
  75. package/templates/vscode/guardex-active-agents/fileicons/icons/agent.svg +0 -5
  76. package/templates/vscode/guardex-active-agents/fileicons/icons/branch.svg +0 -7
  77. package/templates/vscode/guardex-active-agents/fileicons/icons/config.svg +0 -4
  78. package/templates/vscode/guardex-active-agents/fileicons/icons/hook.svg +0 -4
  79. package/templates/vscode/guardex-active-agents/fileicons/icons/openspec.svg +0 -5
  80. package/templates/vscode/guardex-active-agents/fileicons/icons/plan.svg +0 -4
  81. package/templates/vscode/guardex-active-agents/fileicons/icons/spec.svg +0 -5
  82. package/templates/vscode/guardex-active-agents/icon.png +0 -0
  83. package/templates/vscode/guardex-active-agents/media/active-agents-hivemind.svg +0 -14
  84. package/templates/vscode/guardex-active-agents/package.json +0 -169
  85. package/templates/vscode/guardex-active-agents/session-schema.js +0 -1348
@@ -0,0 +1,56 @@
1
+ # Budget-friendly CI default for gitguardex-managed projects.
2
+ #
3
+ # Four trims keep Actions minutes low while agent branches iterate:
4
+ # 1. `concurrency: cancel-in-progress` — rapid pushes to the same ref
5
+ # kill the prior run instead of letting both finish.
6
+ # 2. Job-level `if: pull_request.draft == false` plus the
7
+ # `ready_for_review` PR trigger — draft PRs skip CI, and CI fires
8
+ # automatically the moment the PR is promoted out of draft.
9
+ # 3. `paths-ignore` for docs / openspec / template-only changes —
10
+ # skip CI on changes that don't affect runtime behavior.
11
+ # 4. No `push: main` trigger — branch-protection-required PR runs
12
+ # already cover correctness, and post-merge CI on main is pure
13
+ # duplication. Use `workflow_dispatch` for ad-hoc full runs.
14
+ #
15
+ # Copy this file to `.github/workflows/ci.yml` in your project and
16
+ # replace the placeholder `steps:` block with your build/test/lint
17
+ # commands.
18
+
19
+ name: CI
20
+
21
+ on:
22
+ pull_request:
23
+ branches:
24
+ - main
25
+ types: [opened, reopened, synchronize, ready_for_review]
26
+ paths-ignore:
27
+ - '**/*.md'
28
+ - 'docs/**'
29
+ - 'openspec/**'
30
+ - '.github/ISSUE_TEMPLATE/**'
31
+ - '.github/PULL_REQUEST_TEMPLATE.md'
32
+ - '.changeset/**'
33
+ workflow_dispatch:
34
+
35
+ permissions:
36
+ contents: read
37
+
38
+ concurrency:
39
+ group: ci-${{ github.workflow }}-${{ github.ref }}
40
+ cancel-in-progress: true
41
+
42
+ jobs:
43
+ build:
44
+ if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
45
+ runs-on: ubuntu-latest
46
+ steps:
47
+ - name: Checkout
48
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49
+
50
+ # Replace below with your build/test/lint steps. Examples:
51
+ # - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
52
+ # with: { node-version: '20' }
53
+ # - run: npm ci
54
+ # - run: npm test
55
+ - name: Project verification placeholder
56
+ run: echo "Replace this step with your build/test/lint commands."
@@ -2,14 +2,33 @@ name: Code Review
2
2
 
3
3
  on:
4
4
  pull_request:
5
- types: [opened, reopened, synchronize]
5
+ types: [opened, reopened, synchronize, ready_for_review, labeled]
6
6
 
7
7
  permissions:
8
8
  contents: read
9
9
  pull-requests: write
10
10
 
11
+ # Budget-friendly default for gitguardex-managed projects: cancel
12
+ # superseded runs on the same PR so rapid agent pushes don't fan-out
13
+ # the OpenAI bill.
14
+ concurrency:
15
+ group: cr-${{ github.workflow }}-${{ github.event.pull_request.number }}
16
+ cancel-in-progress: true
17
+
11
18
  jobs:
12
19
  review:
20
+ # Skip on draft PRs and on `agent/*` head branches by default.
21
+ # Agent PRs can opt-in by applying the `needs-review` label —
22
+ # useful for the occasional agent PR that genuinely needs AI
23
+ # eyes (security-sensitive change, public-API redesign, etc.).
24
+ # Human-authored PRs (any non-`agent/*` head branch) always run.
25
+ if: >-
26
+ github.event.pull_request.draft == false &&
27
+ (
28
+ !startsWith(github.event.pull_request.head.ref, 'agent/') ||
29
+ contains(github.event.pull_request.labels.*.name, 'needs-review') ||
30
+ (github.event.action == 'labeled' && github.event.label.name == 'needs-review')
31
+ )
13
32
  runs-on: ubuntu-latest
14
33
  env:
15
34
  OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}