@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.
- package/README.md +85 -16
- package/package.json +2 -1
- package/skills/gitguardex/SKILL.md +13 -0
- package/skills/guardex-merge-skills-to-dev/SKILL.md +59 -0
- package/src/agents/cleanup-sessions.js +126 -0
- package/src/agents/detect.js +160 -0
- package/src/agents/finish.js +172 -0
- package/src/agents/inspect.js +189 -0
- package/src/agents/launch.js +240 -0
- package/src/agents/registry.js +133 -0
- package/src/agents/selection-panel.js +571 -0
- package/src/agents/sessions.js +151 -0
- package/src/agents/start.js +591 -0
- package/src/agents/status.js +143 -0
- package/src/agents/terminal.js +152 -0
- package/src/budget/index.js +343 -0
- package/src/ci-init/index.js +265 -0
- package/src/cli/args.js +305 -1
- package/src/cli/main.js +262 -132
- package/src/cockpit/action-runner.js +3 -0
- package/src/cockpit/actions.js +80 -0
- package/src/cockpit/control.js +1121 -0
- package/src/cockpit/index.js +426 -0
- package/src/cockpit/keybindings.js +224 -0
- package/src/cockpit/kitty-layout.js +549 -0
- package/src/cockpit/kitty-tree.js +144 -0
- package/src/cockpit/layout.js +224 -0
- package/src/cockpit/logs-reader.js +182 -0
- package/src/cockpit/menu.js +204 -0
- package/src/cockpit/pane-actions.js +597 -0
- package/src/cockpit/pane-menu.js +387 -0
- package/src/cockpit/projects-finder.js +178 -0
- package/src/cockpit/render.js +215 -0
- package/src/cockpit/settings-render.js +128 -0
- package/src/cockpit/settings.js +124 -0
- package/src/cockpit/shortcuts.js +24 -0
- package/src/cockpit/sidebar.js +311 -0
- package/src/cockpit/state.js +72 -0
- package/src/cockpit/theme.js +128 -0
- package/src/cockpit/welcome.js +266 -0
- package/src/context.js +78 -35
- package/src/doctor/index.js +4 -3
- package/src/finish/index.js +39 -2
- package/src/git/index.js +65 -0
- package/src/kitty/command.js +101 -0
- package/src/kitty/runtime.js +250 -0
- package/src/output/index.js +1 -1
- package/src/pr-review.js +241 -0
- package/src/scaffold/index.js +19 -0
- package/src/submodule/index.js +288 -0
- package/src/terminal/index.js +120 -0
- package/src/terminal/kitty.js +622 -0
- package/src/terminal/tmux.js +126 -0
- package/src/tmux/command.js +27 -0
- package/src/tmux/session.js +89 -0
- package/templates/AGENTS.multiagent-safety.md +421 -37
- package/templates/codex/skills/gitguardex/SKILL.md +2 -0
- package/templates/githooks/pre-commit +22 -1
- package/templates/github/workflows/README.md +87 -0
- package/templates/github/workflows/ci-full.yml +55 -0
- package/templates/github/workflows/ci.yml +56 -0
- package/templates/github/workflows/cr.yml +20 -1
- package/templates/scripts/agent-branch-finish.sh +545 -27
- package/templates/scripts/agent-branch-start.sh +193 -21
- package/templates/scripts/agent-preflight.sh +89 -0
- package/templates/scripts/agent-worktree-prune.sh +96 -5
- package/templates/scripts/codex-agent.sh +41 -6
- package/templates/scripts/openspec/init-plan-workspace.sh +43 -0
- package/templates/scripts/review-bot-watch.sh +31 -2
- package/templates/scripts/agent-session-state.js +0 -171
- package/templates/scripts/install-vscode-active-agents-extension.js +0 -135
- package/templates/vscode/guardex-active-agents/README.md +0 -34
- package/templates/vscode/guardex-active-agents/extension.js +0 -3782
- package/templates/vscode/guardex-active-agents/fileicons/gitguardex-fileicons.json +0 -54
- package/templates/vscode/guardex-active-agents/fileicons/icons/agent.svg +0 -5
- package/templates/vscode/guardex-active-agents/fileicons/icons/branch.svg +0 -7
- package/templates/vscode/guardex-active-agents/fileicons/icons/config.svg +0 -4
- package/templates/vscode/guardex-active-agents/fileicons/icons/hook.svg +0 -4
- package/templates/vscode/guardex-active-agents/fileicons/icons/openspec.svg +0 -5
- package/templates/vscode/guardex-active-agents/fileicons/icons/plan.svg +0 -4
- package/templates/vscode/guardex-active-agents/fileicons/icons/spec.svg +0 -5
- package/templates/vscode/guardex-active-agents/icon.png +0 -0
- package/templates/vscode/guardex-active-agents/media/active-agents-hivemind.svg +0 -14
- package/templates/vscode/guardex-active-agents/package.json +0 -169
- 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 }}
|