@appsforgood/next-supabase-kit 0.1.7 → 0.2.0
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/BEST_PRACTICE_EVIDENCE.md +1 -1
- package/CHANGELOG.md +17 -0
- package/DOGFOOD.md +12 -1
- package/README.md +33 -4
- package/REPOSITORY_SETTINGS.md +12 -6
- package/SECURITY.md +14 -0
- package/SUPPLY_CHAIN.md +15 -14
- package/UPGRADE.md +14 -4
- package/antigravity/plugin.json +1 -1
- package/assistant-adapters/README.md +3 -0
- package/assistant-adapters/antigravity.md +2 -0
- package/assistant-adapters/claude-code-subagents.md +1 -0
- package/assistant-adapters/codex-agents.md +2 -0
- package/assistant-adapters/cursor-agent-kit.mdc +2 -0
- package/assistant-adapters/cursor-planner.mdc +1 -1
- package/assistant-adapters/orchestrator-runtime.md +39 -0
- package/checklists/frontend-quality.md +1 -0
- package/checklists/ui-detectors.md +6 -0
- package/dist/index.js +1813 -713
- package/dist/index.js.map +1 -1
- package/dist/studio/office/assets/office.css +167 -6
- package/dist/studio/office/assets/office.js +298 -4
- package/dist/studio/wizard/assets/wizard.js +7 -1
- package/examples/next-supabase-installed/.agent-kit/manifest.json +187 -14
- package/examples/next-supabase-installed/audit-output.json +405 -380
- package/package.json +27 -4
- package/prompts/frontend-design-review.md +6 -0
- package/prompts/screenshot-review.md +2 -1
- package/schemas/audit-report-v2.schema.json +71 -0
- package/schemas/audit-report.schema.json +16 -16
- package/schemas/orchestrator.schema.json +167 -0
- package/schemas/runtime-event.schema.json +66 -0
- package/schemas/runtime-run.schema.json +58 -0
- package/schemas/session-event.schema.json +2 -0
- package/templates/next-supabase/.agent-kit/orchestrator.json +48 -0
- package/templates/next-supabase/.agent-kit/runtime/gitignore.template +2 -0
- package/templates/next-supabase/AGENTS.md +2 -0
- package/templates/next-supabase/ASSISTANT_ADAPTERS.md +20 -0
- package/templates/next-supabase/DECISIONS.md +14 -0
- package/templates/next-supabase/DEPLOYMENT.md +4 -0
- package/templates/next-supabase/DESIGN.md +6 -0
- package/templates/next-supabase/DOCS.md +8 -0
- package/templates/next-supabase/MODEL_ROUTING.md +9 -0
- package/templates/next-supabase/QUALITY_GATES.md +5 -1
- package/templates/next-supabase/SECURITY.md +10 -0
- package/templates/next-supabase/SPEC.md +3 -1
- package/templates/next-supabase/STYLE_GUIDE.md +15 -0
- package/templates/next-supabase/TESTING.md +6 -0
- package/templates/next-supabase/UPGRADE.md +1 -0
|
@@ -25,7 +25,7 @@ This repository treats the 100-repo research pass as input, not proof. A practic
|
|
|
25
25
|
| Frontend acceptance needs a repeatable product-quality threshold. | Focused follow-up review of design-system, service-design, component-state, and accessibility guidance showed that good primitives do not prove product-specific quality. | Score significant UI work against user/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, and source safety. | `skills/frontend-product-quality-rubric.md`, `prompts/frontend-product-quality-scorecard.md`, `checklists/frontend-product-quality.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
|
|
26
26
|
| Visual QA needs a path beyond manual taste review. | Follow-up visual-testing review identified Storybook, Playwright screenshots, Chromatic, Argos, Loki, and baseline evidence as repeatable patterns. | Provide visual QA tiers that scale from screenshot review to regression evidence. | `skills/visual-regression-qa.md`, `checklists/visual-regression.md`, `prompts/visual-qa-plan.md`, `templates/next-supabase/TESTING.md`. | Public-readiness tests, `QUALITY_GATES.md` maturity evidence, downstream visual QA artifacts. |
|
|
27
27
|
| Public OSS maintainability needs more than a package tarball. | Repository-health follow-up identified structured intake, ownership, labels, support, and governance as durable signals. | Ship contributor intake, labels, CODEOWNERS, support, conduct, governance, and repository settings guidance. | `.github/ISSUE_TEMPLATE/*`, `.github/pull_request_template.md`, `.github/CODEOWNERS`, `.github/labels.yml`, `SUPPORT.md`, `GOVERNANCE.md`, `REPOSITORY_SETTINGS.md`. | Public-readiness tests, PR labeler workflow, documented branch and repository settings. |
|
|
28
|
-
| Supply-chain trust must be visible before publish. | Supply-chain follow-up identified OIDC publishing, provenance, dependency review, Scorecard, SBOMs, workflow controls, and release gates. | Use Trusted Publishing, avoid long-lived npm publish tokens, generate and attest a CycloneDX SBOM for
|
|
28
|
+
| Supply-chain trust must be visible before publish. | Supply-chain follow-up identified OIDC publishing, provenance, dependency review, Scorecard, SBOMs, workflow controls, and release gates. | Use Trusted Publishing, avoid long-lived npm publish tokens, generate and attest a package-rooted CycloneDX SBOM for every tarball, and verify each public package before creating the source release. | `.github/workflows/release.yml`, `.github/workflows/scorecard.yml`, `.github/workflows/dependency-review.yml`, `SUPPLY_CHAIN.md`, `scripts/release-check.mjs`, `scripts/sbom-check.mjs`. | `npm run release:check`, root/runtime SBOM checks, OpenSSF Scorecard, Dependency Review, npm Trusted Publishing, SBOM attestations, pack dry runs. |
|
|
29
29
|
| Best-practice claims need a maturity model. | Follow-up review showed a green build alone does not prove best-practice readiness. | Separate setup validity from project evidence and best-practice candidacy. | `templates/next-supabase/QUALITY_GATES.md`, `schemas/audit-report.schema.json`, `skills/best-practice-maturity-review.md`, `src/install/audit.ts`. | `agent-kit audit --min-readiness`, audit-report schema validation, install smoke, release check. |
|
|
30
30
|
| Downstream adoption evidence must stay current. | Current read-only dogfood audits of two older installs both produced `11 pass / 20 warn / 7 fail`, proving that later hardening made older installs drift below baseline setup. | Publish a sanitized dogfood summary and keep detailed local-path evidence repo-only. Treat stale dogfood findings as upgrade inputs. | `DOGFOOD.md`, `dogfood/*.md`, `UPGRADE.md`, `agent-kit audit`, `agent-kit update`, `tests/public-readiness.test.ts`. | Public-readiness tests, release check, read-only dogfood audit snapshots, package dry run. |
|
|
31
31
|
| Older installs need a conflict-safe upgrade proof. | Dogfood audits showed both older installs lacked current roster schemas, assistant adapters, maturity gates, upgrade docs, and design critique assets. | Add a deterministic old-install fixture that proves diff previews missing/conflicting assets and update adds missing current assets while preserving customized docs through conflicts. | `tests/update.test.ts`, `src/install/diff.ts`, `src/install/install.ts`, `UPGRADE.md`, `DOGFOOD.md`. | Unit tests, audit report on upgraded fixture, release check. |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
- Ship the leading-harness release: hash-aware manifest v2 updates, audit v2 with SARIF and suppressions, hardened localhost Agent Studio APIs, and optional executable council workflows through `@appsforgood/agent-kit-runtime`. Runtime workflows use validated roster routing, SQLite checkpoints, explicit approval gates, provider and allowlisted MCP adapters, Docker-first tools, isolated Git worktrees, bounded retries/timeouts, cancellation, redacted evidence, and scoped commits. Release automation now publishes and verifies the runtime and root packages with separate SBOM attestations before creating a GitHub release.
|
|
6
|
+
|
|
7
|
+
## 0.1.9
|
|
8
|
+
|
|
9
|
+
- Added explicit anti-slop UI rules for frontend work, including accent-border cards, gradient-as-design, card soup, fake dashboard proof, vague SaaS sayings, decorative credibility, oversized glass panels, ornamental icon walls, filler sections, and inaccessible decorative state styling.
|
|
10
|
+
- Extended installed template design guidance, UI detectors, frontend quality checklist, and review prompts with concrete best-practice replacements for generic AI-looking UI patterns.
|
|
11
|
+
|
|
12
|
+
## 0.1.8
|
|
13
|
+
|
|
14
|
+
- Added `tests/setup-server-api.test.ts` for full setup-server API route coverage (PATCH state, context import, checklists, design/messaging drafts, apply, agentic-level refresh, oversized body, 404) plus wizard draft edge cases.
|
|
15
|
+
- Moved `readJsonBody` to `src/studio/shared.ts` for reuse; setup-server validates invalid `completeSection` ids with 400.
|
|
16
|
+
- Added Playwright UI screenshot smoke (`scripts/smoke-ui-screens.mjs`, `npm run smoke:ui-screens`, Playwright 1.55.1) with dedicated Ubuntu CI job uploading `artifacts/ui-screens/` (not in `release:check`).
|
|
17
|
+
- Completed Agent Studio Milestone 8: `POST /api/sessions/:id/note` and `/render` on studio serve, session picker, note form, and render button in live office UI; SSE broadcast for notes.
|
|
18
|
+
- Updated `TESTING.md`, `QUALITY_GATES.md`, `DOCS.md`, `ROADMAP.md`, and `DECISIONS.md` for studio serve endpoints, UI smoke, and runtime adapter references.
|
|
19
|
+
|
|
3
20
|
## 0.1.7
|
|
4
21
|
|
|
5
22
|
- Added **Workflow Commands** section to README and docs site: lifecycle diagram, 12 core + 8 UI slash commands, council table, skills-by-phase grouping, and explicit separation from package CLI commands.
|
package/DOGFOOD.md
CHANGED
|
@@ -34,6 +34,17 @@ Mode: read-only audit; no downstream files were modified.
|
|
|
34
34
|
- Assistant adapters and upgrade lifecycle still need real activation/dogfood evidence after publication.
|
|
35
35
|
- Reference-led design critique still needs a real UI change dogfood pass with screenshots or equivalent visual evidence.
|
|
36
36
|
|
|
37
|
+
## 2026-07-04 Publish @0.1.8 Snapshot
|
|
38
|
+
|
|
39
|
+
Date: 2026-07-04
|
|
40
|
+
CLI source: local `dist/index.js` after `npm run release:check`
|
|
41
|
+
|
|
42
|
+
- Setup-server API route coverage (`tests/setup-server-api.test.ts`), Playwright UI screenshot smoke (`smoke:ui-screens`, Playwright 1.55.1), and Agent Studio Milestone 8 completion (note/render POST endpoints, session picker, live office controls).
|
|
43
|
+
- `readJsonBody` shared between setup and studio servers; oversized bodies return 400 without dropping the connection; studio SSE broadcasts notes.
|
|
44
|
+
- Dedicated Ubuntu CI job for UI screenshots; not part of `release:check` matrix.
|
|
45
|
+
- Local verification: `release:check` green (150 tests, setup-server.ts 86% statements), `smoke:ui-screens` produced 4 PNGs.
|
|
46
|
+
- Published `@appsforgood/next-supabase-kit@0.1.8`; `publish:verify` passed against live registry.
|
|
47
|
+
|
|
37
48
|
## 2026-07-04 Publish @0.1.7 Snapshot
|
|
38
49
|
|
|
39
50
|
Date: 2026-07-04
|
|
@@ -172,5 +183,5 @@ Scope: README/docs discoverability + three new Antigravity adapters
|
|
|
172
183
|
| Canonical index | `prompts/lifecycle-command-index.md` for delivery commands (parallel to `prompts/ui-command-index.md`) |
|
|
173
184
|
| New adapters | `/spec`, `/test`, `/review` in `antigravity/commands/` (20 total native commands) |
|
|
174
185
|
| Roster | `testing` and `code-review` workflows; planning triggers for spec keywords |
|
|
175
|
-
|
|
|
186
|
+
| Historical scope | `/build`, `/webperf`, `/code-simplify`, and `/build auto` were deferred in this 0.1.7 review; the later runtime ships bounded roster workflows rather than cloning those command semantics |
|
|
176
187
|
| Verification | `npm test`, `agent-kit adapter validate antigravity` after build |
|
package/README.md
CHANGED
|
@@ -18,12 +18,14 @@ This is not just a prompt bundle. A project gets machine-readable agent routing,
|
|
|
18
18
|
|
|
19
19
|
It also includes a local Agent Studio workflow: project context, durable human corrections, append-only session events, and rendered Markdown transcripts that work without a database, web server, background daemon, or separate model API key.
|
|
20
20
|
|
|
21
|
+
Projects that need executable council workflows can add the optional `@appsforgood/agent-kit-runtime` package. It compiles the same roster into checkpointed LangGraph runs with provider/MCP adapters, risk approvals, Docker-first mutation isolation, Git worktrees, and redacted evidence.
|
|
22
|
+
|
|
21
23
|
## Quick Start
|
|
22
24
|
|
|
23
|
-
Use
|
|
25
|
+
Use the current stable package in a Next.js + Supabase project:
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
|
-
npx @appsforgood/next-supabase-kit@
|
|
28
|
+
npx @appsforgood/next-supabase-kit@latest init --stack next-supabase --setup --open
|
|
27
29
|
npx @appsforgood/next-supabase-kit audit
|
|
28
30
|
npx @appsforgood/next-supabase-kit audit --min-readiness baseline-setup
|
|
29
31
|
```
|
|
@@ -42,6 +44,16 @@ npx @appsforgood/next-supabase-kit init --activate cursor --activate antigravity
|
|
|
42
44
|
npx @appsforgood/next-supabase-kit adapter validate all
|
|
43
45
|
```
|
|
44
46
|
|
|
47
|
+
Optional executable orchestration:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install --save-dev @appsforgood/agent-kit-runtime
|
|
51
|
+
agent-kit orchestrate validate
|
|
52
|
+
agent-kit orchestrate plan "Describe the goal"
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`.agent-kit/orchestrator.json` is installed disabled. Configure verified provider model IDs and `env:` or `keychain:` credential references before enabling it.
|
|
56
|
+
|
|
45
57
|
The installer preserves existing docs. If a file already exists and differs from the template, the new version is written to `.agent-kit/conflicts/` for review.
|
|
46
58
|
|
|
47
59
|
### See It In Action
|
|
@@ -91,7 +103,7 @@ Twenty slash commands map to the delivery lifecycle. Each one activates the righ
|
|
|
91
103
|
SETUP → SPEC/PLAN → BUILD → VERIFY → REVIEW → SHIP
|
|
92
104
|
```
|
|
93
105
|
|
|
94
|
-
**Workflow commands** (`/setup`, `/spec`, …) are
|
|
106
|
+
**Workflow commands** (`/setup`, `/spec`, …) are instruction adapters. **Package CLI** commands (`agent-kit init`, `audit`, `session`, `orchestrate`, …) are documented under [CLI Reference](#cli-reference) below. Cursor loads rules and skills from `init`; Antigravity gets native slash commands from `init --activate antigravity`. Only `agent-kit orchestrate` is evidence that the executable checkpointed council ran. See `ASSISTANT_ADAPTERS.md` for per-IDE setup.
|
|
95
107
|
|
|
96
108
|
### Core lifecycle commands
|
|
97
109
|
|
|
@@ -279,6 +291,23 @@ agent-kit session render
|
|
|
279
291
|
agent-kit session close --status complete
|
|
280
292
|
```
|
|
281
293
|
|
|
294
|
+
### Optional orchestrator
|
|
295
|
+
|
|
296
|
+
| Command | Purpose |
|
|
297
|
+
| --- | --- |
|
|
298
|
+
| `orchestrate validate` | Validate runtime config, roster references, and bounds without provider calls |
|
|
299
|
+
| `orchestrate plan <goal...>` | Compile the offline workflow sequence and approval envelope |
|
|
300
|
+
| `orchestrate run <goal...>` | Start a checkpointed run in an isolated worktree |
|
|
301
|
+
| `orchestrate approve <run-id>` | Approve the current gate and resume |
|
|
302
|
+
| `orchestrate resume <run-id> --decision ...` | Explicitly approve or reject a gate |
|
|
303
|
+
| `orchestrate status [run-id]` | Read persisted run state |
|
|
304
|
+
| `orchestrate cancel <run-id>` | Cancel a paused or local in-process run |
|
|
305
|
+
| `orchestrate export <run-id>` | Render redacted run evidence as Markdown |
|
|
306
|
+
| `provider probe`, `mcp probe` | Explicitly test configured external adapters |
|
|
307
|
+
| `credential set`, `credential delete` | Manage OS-keychain references without CLI value flags |
|
|
308
|
+
|
|
309
|
+
The runtime may create one approved scoped commit on `agent-kit/<run-id>`. It never merges, pushes, opens a pull request, deploys, or applies migrations. See [RUNTIME_ORCHESTRATION_SCOPE.md](RUNTIME_ORCHESTRATION_SCOPE.md) and [packages/runtime/README.md](packages/runtime/README.md).
|
|
310
|
+
|
|
282
311
|
### Corrections
|
|
283
312
|
|
|
284
313
|
| Command | Purpose |
|
|
@@ -458,7 +487,7 @@ Release expectations:
|
|
|
458
487
|
- Dependency Review, CodeQL, OpenSSF Scorecard, Dependabot, SBOM validation, and SBOM attestation.
|
|
459
488
|
- Post-publish verification with `npm run publish:verify`.
|
|
460
489
|
|
|
461
|
-
The package
|
|
490
|
+
The public package identities are `@appsforgood/next-supabase-kit` and `@appsforgood/agent-kit-runtime`. Every release must pass `npm run release:check`. The OIDC workflow publishes runtime before root when needed, attests separate package-rooted SBOMs, verifies both packages from the public registry, and only then creates the matching GitHub release. Registry metadata is the source of truth for the latest published versions.
|
|
462
491
|
|
|
463
492
|
## Repository Health
|
|
464
493
|
|
package/REPOSITORY_SETTINGS.md
CHANGED
|
@@ -30,14 +30,19 @@ Create environment `npm-publish` with:
|
|
|
30
30
|
|
|
31
31
|
- Required reviewers enabled.
|
|
32
32
|
- Prevent self-review enabled where available.
|
|
33
|
-
- Deployment branches restricted to `main
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- Any fallback npm token secrets deleted after Trusted Publishing is confirmed.
|
|
33
|
+
- Deployment branches restricted to `main`.
|
|
34
|
+
- No npm package-write token secrets. Automated publication must fail closed when Trusted Publishing is unavailable.
|
|
35
|
+
- Required reviewers should protect manual non-dry-run dispatches without preventing the normal version-PR merge path.
|
|
37
36
|
|
|
38
|
-
The
|
|
37
|
+
Under **Actions > General > Workflow permissions**, allow GitHub Actions to create pull requests. The version workflow has job-scoped `contents: write` and `pull-requests: write` permissions and uses that setting only to open or update the Changesets version PR.
|
|
38
|
+
|
|
39
|
+
Create this npm Trusted Publisher for each of these package names:
|
|
40
|
+
|
|
41
|
+
- `@appsforgood/next-supabase-kit`
|
|
42
|
+
- `@appsforgood/agent-kit-runtime`
|
|
43
|
+
|
|
44
|
+
Each trusted publisher must match:
|
|
39
45
|
|
|
40
|
-
- Package: `@appsforgood/next-supabase-kit`
|
|
41
46
|
- Provider: GitHub Actions
|
|
42
47
|
- Repository: `lukey662/agentsandskills`
|
|
43
48
|
- Workflow: `release.yml`
|
|
@@ -54,6 +59,7 @@ Enable:
|
|
|
54
59
|
- Dependabot security updates.
|
|
55
60
|
- Code scanning alerts.
|
|
56
61
|
- Secret scanning where available.
|
|
62
|
+
- Push protection for detected secrets where available.
|
|
57
63
|
|
|
58
64
|
## Issues, Discussions, And Labels
|
|
59
65
|
|
package/SECURITY.md
CHANGED
|
@@ -16,6 +16,20 @@ Report vulnerabilities through a private security advisory or by contacting the
|
|
|
16
16
|
- Never overwrite downstream project files unless the user passes an explicit force flag.
|
|
17
17
|
- Redact secrets before writing logs, findings, summaries, or prompts.
|
|
18
18
|
- Do not copy third-party source code from research targets into this package.
|
|
19
|
+
- Keep npm lifecycle scripts deny-by-default where possible; pin reviewed approvals for required native/build packages and deny optional scripts that are not needed.
|
|
20
|
+
|
|
21
|
+
## Optional Runtime Threat Model
|
|
22
|
+
|
|
23
|
+
- Treat model output, repository files, MCP metadata, MCP output, and provider error text as untrusted input.
|
|
24
|
+
- Accept credential references only from environment variables or the OS keychain. Never persist resolved values.
|
|
25
|
+
- Reject provider/MCP redirects, embedded URL credentials, unsafe protocols, non-allowlisted MCP hosts, and private or special-use DNS results unless private access is explicit.
|
|
26
|
+
- Require explicit host opt-in and approval for Cursor and stdio MCP. Use argv spawning with no shell and a minimal environment.
|
|
27
|
+
- Reject path traversal, symlink escapes, Git internals, environment files, private keys, package-manager credentials, and runtime evidence paths from model file tools.
|
|
28
|
+
- Block worktree creation when sensitive filenames are tracked. Run the full audit before enabling runtime execution because filename checks do not replace content secret scanning.
|
|
29
|
+
- Keep Docker network off by default and require approval before configured network access. Resolve reviewed local images to immutable IDs.
|
|
30
|
+
- Never authorize an MCP action solely from server annotations or model intent. Empty tool allowlists expose nothing.
|
|
31
|
+
- Redact run records and event logs recursively. Redaction is defense in depth, not permission to send secrets or customer data to a provider.
|
|
32
|
+
- Never auto-merge, push, open pull requests, deploy, or apply migrations.
|
|
19
33
|
|
|
20
34
|
## Downstream Security Defaults
|
|
21
35
|
|
package/SUPPLY_CHAIN.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Supply Chain Security
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The root kit and optional runtime are intended for public npm distribution. Release integrity is part of the product, not an optional operations detail.
|
|
4
4
|
|
|
5
5
|
## Publish Identity
|
|
6
6
|
|
|
7
|
-
- Public
|
|
8
|
-
- Publish path: GitHub Actions release workflow through npm Trusted Publishing
|
|
9
|
-
- Authentication:
|
|
7
|
+
- Public packages: `@appsforgood/next-supabase-kit` and `@appsforgood/agent-kit-runtime`.
|
|
8
|
+
- Publish path: GitHub Actions release workflow through npm Trusted Publishing.
|
|
9
|
+
- Authentication: short-lived GitHub OIDC identity only; automated publishing has no npm token fallback.
|
|
10
10
|
- Environment: `npm-publish`.
|
|
11
|
-
-
|
|
11
|
+
- Each npm package must have its own Trusted Publisher scoped to repository `lukey662/agentsandskills`, workflow `release.yml`, environment `npm-publish`, and allowed action `npm publish`.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The workflow removes inherited npm token variables, supplies a token-free npm configuration, and requires the GitHub OIDC request context before publishing. A missing or incorrect package-level Trusted Publisher fails closed instead of switching authentication modes. Successful publication carries npm provenance tied to that workflow identity.
|
|
14
14
|
|
|
15
|
-
The release workflow
|
|
15
|
+
The release workflow creates separate root/runtime tarballs and package-rooted CycloneDX SBOMs, uploads them as release evidence, and attests each SBOM against its exact tarball. Runtime publishes before root when both are new. Both public packages are verified before the matching GitHub release, so a partial npm publish cannot create an apparently successful source release.
|
|
16
16
|
|
|
17
17
|
## Release Gates
|
|
18
18
|
|
|
@@ -22,16 +22,16 @@ Before publish:
|
|
|
22
22
|
- `npm run release:check`
|
|
23
23
|
- Public release review
|
|
24
24
|
|
|
25
|
-
`npm run release:check` validates JSON assets, typechecks, tests, builds, runs install smoke, runs dependency audit, validates SBOM generation, and performs package dry
|
|
25
|
+
`npm run release:check` validates JSON assets, typechecks both workspaces, tests, builds both packages, runs install smoke, runs dependency audit, validates SBOM generation, and performs root/runtime package dry runs. The install smoke also inspects packaged public files for forbidden private-package text.
|
|
26
26
|
|
|
27
27
|
`npm run sbom:check` validates that the lockfile-derived CycloneDX SBOM can be generated, includes runtime dependencies, and has no unresolved required dependency links. Optional platform-specific dependency links may be skipped when npm records optional package edges that are not present for the current install target.
|
|
28
28
|
|
|
29
29
|
After publish:
|
|
30
30
|
|
|
31
31
|
- `npm view @appsforgood/next-supabase-kit@<version> version`
|
|
32
|
-
- `
|
|
33
|
-
-
|
|
34
|
-
- `
|
|
32
|
+
- `npm view @appsforgood/agent-kit-runtime@<version> version`
|
|
33
|
+
- Clean install and import of `@appsforgood/agent-kit-runtime`
|
|
34
|
+
- Clean install of both packages followed by root `doctor`, `init`, `audit --json` with zero failures, and `orchestrate validate --json`
|
|
35
35
|
|
|
36
36
|
The release workflow and `npm run publish:verify` both use `scripts/post-publish-verify.mjs` for this post-publish verification path.
|
|
37
37
|
|
|
@@ -39,7 +39,7 @@ The release workflow and `npm run publish:verify` both use `scripts/post-publish
|
|
|
39
39
|
|
|
40
40
|
- CI verifies package behavior on push and pull request.
|
|
41
41
|
- Dependency Review blocks pull requests that introduce moderate or worse known vulnerabilities.
|
|
42
|
-
- Dependabot proposes npm and GitHub Actions updates.
|
|
42
|
+
- Dependabot proposes npm and GitHub Actions updates; workflow actions remain pinned to immutable commit SHAs with reviewed version comments.
|
|
43
43
|
- CodeQL scans JavaScript/TypeScript code.
|
|
44
44
|
- OpenSSF Scorecard publishes repository security posture as code-scanning evidence.
|
|
45
45
|
- CODEOWNERS identifies default review ownership for source, templates, schemas, and workflows.
|
|
@@ -47,9 +47,10 @@ The release workflow and `npm run publish:verify` both use `scripts/post-publish
|
|
|
47
47
|
|
|
48
48
|
## Maintainer Rules
|
|
49
49
|
|
|
50
|
-
- Do not use
|
|
50
|
+
- Do not use npm publish tokens for automation. Maintainer-local OTP publishing is an explicit recovery operation, not a workflow fallback.
|
|
51
51
|
- Do not publish from unreviewed branches or untrusted workflow changes.
|
|
52
52
|
- Treat workflow edits as release-risk changes requiring security and maintainer review.
|
|
53
|
-
-
|
|
53
|
+
- Keep package-write token secrets absent from repository and environment configuration.
|
|
54
54
|
- Keep package contents free of secrets, private downstream data, and copied third-party source.
|
|
55
55
|
- Keep SBOM generation and attestation in the shared release path; do not publish an unattested tarball when the workflow is available.
|
|
56
|
+
- Keep `allowScripts` approvals version-pinned to reviewed required native/build packages. Explicitly deny optional package scripts that are not needed.
|
package/UPGRADE.md
CHANGED
|
@@ -13,13 +13,13 @@ This file defines how maintainers and downstream projects should upgrade Agent K
|
|
|
13
13
|
|
|
14
14
|
Before publishing a new package version:
|
|
15
15
|
|
|
16
|
-
1. Update
|
|
16
|
+
1. Update changesets plus root/runtime changelogs with user-visible changes, migration notes, and deprecations.
|
|
17
17
|
2. Update `ROADMAP.md` and `BEST_PRACTICE_EVIDENCE.md` when a research finding becomes enforced behavior.
|
|
18
18
|
3. Run `npm run release:check`.
|
|
19
19
|
4. Run `agent-kit package validate` from the source repository when runtime adapter or package assets changed.
|
|
20
|
-
5. Confirm
|
|
21
|
-
6. Publish through npm Trusted Publishing.
|
|
22
|
-
7. Verify public
|
|
20
|
+
5. Confirm root and runtime pack dry runs include only public-safe files.
|
|
21
|
+
6. Publish runtime then root through npm Trusted Publishing with separate SBOM attestations.
|
|
22
|
+
7. Verify public runtime import plus root `doctor`, `init`, `audit`, and `orchestrate validate`.
|
|
23
23
|
|
|
24
24
|
## Downstream Upgrade Checklist
|
|
25
25
|
|
|
@@ -33,6 +33,16 @@ npx @appsforgood/next-supabase-kit@latest adapter validate antigravity
|
|
|
33
33
|
npx @appsforgood/next-supabase-kit@latest audit --min-readiness baseline-setup
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
Projects using executable orchestration should also upgrade the optional runtime deliberately:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install --save-dev @appsforgood/agent-kit-runtime@latest
|
|
40
|
+
agent-kit orchestrate validate
|
|
41
|
+
agent-kit orchestrate plan "Upgrade verification"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Review `.agent-kit/orchestrator.json` conflict proposals, schema changes, provider capability declarations, MCP/host/private-network exceptions, Docker image availability, native `better-sqlite3` install policy, and checkpoint compatibility before enabling runs. Finish or cancel paused runs before changing runtime versions.
|
|
45
|
+
|
|
36
46
|
The package includes an older-install regression fixture that exercises this path. The fixture proves update preserves customized docs, writes conflict templates, installs new current baseline docs and `.agent-kit/` assets, then audits with zero failures.
|
|
37
47
|
|
|
38
48
|
`agent-kit diff` includes an upgrade preview. Review `preview.wouldCreate`, `preview.wouldWriteConflicts`, `agentRoster`, `modelRouting`, and `libraryFolders.missing` before running update so the branch owner knows which files will be created, which local docs will be preserved through conflicts, and which `.agent-kit/` assets will be refreshed.
|
package/antigravity/plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "agent-kit-next-supabase",
|
|
4
4
|
"displayName": "Agent Kit Next/Supabase",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.8",
|
|
6
6
|
"description": "Runtime commands and portable skills for the Agent Kit Next/Supabase council workflow.",
|
|
7
7
|
"homepage": "https://github.com/lukey662/agentsandskills",
|
|
8
8
|
"sourceOfTruth": [
|
|
@@ -22,8 +22,11 @@ Adapters should point back to those files. Do not maintain separate policy, secu
|
|
|
22
22
|
- `cursor-agent-kit.mdc`: Cursor project-rule template.
|
|
23
23
|
- `claude-code-subagents.md`: Claude Code project subagent template guidance.
|
|
24
24
|
- `antigravity.md`: Antigravity plugin, command, runtime skill, and validation guidance.
|
|
25
|
+
- `orchestrator-runtime.md`: executable LangGraph runtime, approvals, sandbox, provider, MCP, worktree, and evidence guidance.
|
|
25
26
|
- `model-selection/`: dated setup examples for Codex, Claude Code, Cursor, and GitHub Copilot model routing.
|
|
26
27
|
|
|
27
28
|
## Activation Rule
|
|
28
29
|
|
|
29
30
|
Record active tool surfaces in `ASSISTANT_ADAPTERS.md`. A project is not best-practice ready simply because adapter templates exist; the team must document which tools are active, how model selection is handled, whether enforcement is enforced/partial/advisory/manual, and what evidence proves the canonical council instructions loaded.
|
|
31
|
+
|
|
32
|
+
IDE adapters are not execution evidence. Claim an orchestrated run only when `agent-kit orchestrate status`, runtime JSONL evidence, and the SQLite checkpointed workflow confirm it.
|
|
@@ -19,6 +19,8 @@ This adapter packages Agent Kit as native Antigravity-style plugin assets while
|
|
|
19
19
|
|
|
20
20
|
Runtime command files must wrap those files. Do not fork role definitions, security policy, frontend quality rules, release gates, or session evidence rules into command prompts.
|
|
21
21
|
|
|
22
|
+
Antigravity commands are instruction adapters. They do not replace or prove execution by `@appsforgood/agent-kit-runtime`; use `agent-kit orchestrate status` and exported run evidence for that claim.
|
|
23
|
+
|
|
22
24
|
## Activation
|
|
23
25
|
|
|
24
26
|
```bash
|
|
@@ -35,3 +35,4 @@ Start with the Planner workflow. For core changes, hand off to Lead Architect. F
|
|
|
35
35
|
- Document active subagents and verification evidence in `ASSISTANT_ADAPTERS.md`.
|
|
36
36
|
- Record model-selection evidence and limitations in `ASSISTANT_ADAPTERS.md`.
|
|
37
37
|
- Avoid giving a subagent broader tool access than its role needs.
|
|
38
|
+
- Treat Claude subagents as instruction adapters. Use `agent-kit orchestrate ...` and its run evidence when the task requires the executable checkpointed council.
|
|
@@ -49,3 +49,5 @@ Record in `ASSISTANT_ADAPTERS.md`:
|
|
|
49
49
|
- Any known limitations or manual invocation steps.
|
|
50
50
|
|
|
51
51
|
Run `agent-kit adapter validate codex` after activation.
|
|
52
|
+
|
|
53
|
+
Codex custom agents are instruction adapters. Use `agent-kit orchestrate validate`, `plan`, `run`, and `status` when a task requires the executable checkpointed council; do not infer graph execution from a delegated IDE thread.
|
|
@@ -26,6 +26,8 @@ Use `AGENTS.md`, `AGENT_ROSTER.md`, `.agent-kit/agent-roster.json`, `MODEL_ROUTI
|
|
|
26
26
|
|
|
27
27
|
Run `agent-kit audit --min-readiness baseline-setup` for setup validity. Use `agent-kit audit --min-readiness best-practice-candidate` only when project-specific evidence has replaced starter placeholders.
|
|
28
28
|
|
|
29
|
+
This Cursor rule is an instruction adapter, not proof that the executable council ran. Use `agent-kit orchestrate validate` and `agent-kit orchestrate status` for runtime evidence. A Cursor executor route additionally requires `cursor.enabled`, `sandbox.allowHostMutations`, an isolated worktree, and explicit host-mutation approval.
|
|
30
|
+
|
|
29
31
|
## Model Selection
|
|
30
32
|
|
|
31
33
|
Use Cursor's active model picker or team model policy with the profile in `MODEL_ROUTING.md`. Treat this rule as advisory unless the active Cursor environment provides enforceable model controls.
|
|
@@ -11,4 +11,4 @@ When a request is ambiguous, planning-oriented, roadmap-related, or spans multip
|
|
|
11
11
|
|
|
12
12
|
Delegate to the `@planner` subagent in `.cursor/agents/planner.md` when the task needs isolated planning context.
|
|
13
13
|
|
|
14
|
-
Read project context,
|
|
14
|
+
Read `AGENTS.md`, `.agent-kit/agent-roster.json`, `MODEL_ROUTING.md`, project context, and active corrections before choosing a workflow.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Orchestrator Runtime Adapter
|
|
2
|
+
|
|
3
|
+
`@appsforgood/agent-kit-runtime` is the optional executable layer for the Agent Kit council. IDE rules, subagents, slash commands, and model-routing documents remain instruction adapters; they do not imply that a checkpointed graph ran.
|
|
4
|
+
|
|
5
|
+
## Activation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save-dev @appsforgood/agent-kit-runtime
|
|
9
|
+
agent-kit orchestrate validate
|
|
10
|
+
agent-kit orchestrate plan "Describe the goal"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Edit `.agent-kit/orchestrator.json`, add provider credential references such as `env:OPENAI_API_KEY` or `keychain:team-openai`, configure at least one deterministic model alias, and set `enabled` to `true` only after validation passes.
|
|
14
|
+
|
|
15
|
+
## Execution Contract
|
|
16
|
+
|
|
17
|
+
- Roster workflows compile to explicit, bounded LangGraph nodes.
|
|
18
|
+
- Runs pause at plan, network, worktree-write, host-execution, and final-commit gates when applicable.
|
|
19
|
+
- Mutations occur in an isolated Git worktree. Agent Kit may create one scoped commit after approval; it never merges, pushes, or opens a pull request.
|
|
20
|
+
- Docker is the default mutation command boundary. Network access is off unless configured and approved.
|
|
21
|
+
- Provider and remote MCP requests reject redirects, embedded credentials, non-allowlisted hosts, and private or special-use addresses unless private access is explicitly configured.
|
|
22
|
+
- Stdio MCP servers execute on the host only when both `allowHostExecution` and `sandbox.allowHostMutations` are enabled and the host gate is approved.
|
|
23
|
+
- Run checkpoints live in `.agent-kit/runtime/runtime.sqlite`; redacted run records and JSONL evidence live under `.agent-kit/runtime/runs/` and are ignored by Git.
|
|
24
|
+
|
|
25
|
+
## Cursor Executor
|
|
26
|
+
|
|
27
|
+
Set an agent route to `cursor` only when Cursor CLI execution is intentionally required. The runtime invokes argv directly inside the isolated worktree, with no shell, a bounded timeout, minimal inherited environment, and an explicit host-mutation approval. Provider-backed model agents remain the default.
|
|
28
|
+
|
|
29
|
+
## Verification
|
|
30
|
+
|
|
31
|
+
Record:
|
|
32
|
+
|
|
33
|
+
- `agent-kit orchestrate validate --json`
|
|
34
|
+
- the offline `orchestrate plan` output
|
|
35
|
+
- provider and MCP probe results, without credentials
|
|
36
|
+
- run ID, approval decisions, scoped commit, and exported evidence
|
|
37
|
+
- Docker image ID and any private-network or host-execution exception rationale
|
|
38
|
+
|
|
39
|
+
Use `agent-kit studio serve` to inspect and decide paused runs in the local Studio UI.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
- Frontend product-quality scorecard is at least adequate before release.
|
|
10
10
|
- Visual direction fits the domain.
|
|
11
11
|
- No generic AI-site gradient/card defaults.
|
|
12
|
+
- No accent-border cards, glow rails, neon strokes, gradient borders, oversized glass panels, ornamental icon walls, fake dashboard proof, decorative credibility badges, vague SaaS sayings, or layout filler sections unless documented as a brand-system exception.
|
|
12
13
|
- Navigation is clear and predictable.
|
|
13
14
|
- Loading, empty, error, disabled, and success states exist.
|
|
14
15
|
- Mobile layout is designed, not incidental.
|
|
@@ -60,10 +60,16 @@ Use this deterministic checklist for UI audit, polish, layout cleanup, responsiv
|
|
|
60
60
|
| Detector | Blocker Signal | Major Signal |
|
|
61
61
|
| --- | --- | --- |
|
|
62
62
|
| Generic SaaS styling | First screen could fit another product by changing logo and headline | Visual direction relies on common cards, gradients, fake dashboards, or vague claims |
|
|
63
|
+
| Accent-border card styling | Cards, callouts, alerts, panels, or status messages rely on thick, high-contrast, one-sided colored borders, glow rails, neon strokes, or gradient borders as the main state cue | Accent borders add decoration where restrained 1px full-border surfaces, subtle background tint, clear labels, icons, and semantic state text would communicate better |
|
|
64
|
+
| Gradient-as-design | Gradient hero, gradient text, abstract blobs, or glow backgrounds substitute for a product-specific first screen | Gradients are present without a tokenized role, brand rationale, or product-specific content support |
|
|
65
|
+
| Card soup | The screen is mostly decorative cards and the primary workflow is unclear | Repeated cards could become a table, list, timeline, form, split pane, or workflow-specific grouped section |
|
|
63
66
|
| Missing content fingerprint | UI hides missing product decisions behind placeholders | Real nouns, records, actions, or edge cases are too sparse |
|
|
64
67
|
| Weak visual identity | No product-specific density, typography, imagery, or interaction point of view | Direction is coherent but category-generic |
|
|
65
68
|
| Unsafe reference use | Copy, assets, layout signature, or brand identity appear copied | References are cited without lessons and anti-copy notes |
|
|
66
69
|
| Fake or unsupported proof | Fake metrics or claims imply unavailable capability | Proof exists but is not tied to actual product behavior |
|
|
70
|
+
| Vague SaaS sayings | Copy could apply to any product and hides what the user can actually do | Phrases like "supercharge your workflow", "unlock insights", "seamless collaboration", or "AI-powered productivity" are not grounded in concrete actions, nouns, constraints, or outcomes |
|
|
71
|
+
| Decorative credibility | Badges, pills, stars, awards, or "trusted by" placeholders imply proof that does not exist | Credibility elements are decorative and should be replaced with real proof, integration names, security posture, support details, or removed |
|
|
72
|
+
| Filler sections | Marketing sections replace the requested app or tool workflow on the first screen | "Features", "benefits", or "how it works" sections are generic and should be replaced with the actual usable workflow or domain-specific hierarchy |
|
|
67
73
|
|
|
68
74
|
## Evidence Requirements
|
|
69
75
|
|