rungate 0.7.0 → 0.8.1
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/gates/.gate-salt +1 -0
- package/gates/SCHEMA-GUIDE.md +485 -0
- package/gates/ac-quality.test.ts +106 -0
- package/gates/adversarial.test.ts +283 -0
- package/gates/brief-assembler.test.ts +487 -0
- package/gates/brief-assembler.ts +448 -0
- package/gates/bunfig.toml +2 -0
- package/gates/chain.test.ts +91 -0
- package/gates/e2e-smoke.test.ts +234 -0
- package/gates/error-classifier.test.ts +250 -0
- package/gates/error-classifier.ts +99 -0
- package/gates/gate-executor.ts +3071 -0
- package/gates/orchestrator.test.ts +968 -0
- package/gates/orchestrator.ts +827 -0
- package/gates/preload.ts +89 -0
- package/gates/prompts/ac-adversary.md +20 -0
- package/gates/prompts/evidence-validator.md +22 -0
- package/gates/prompts/prove-reproducer.md +53 -0
- package/gates/prompts.sha256 +3 -0
- package/gates/prove.test.ts +164 -0
- package/gates/rook-state.test.ts +108 -0
- package/gates/run-attribution.ts +290 -0
- package/gates/run-gate.ts +163 -0
- package/gates/schema-parity.test.ts +378 -0
- package/gates/schema.ts +1209 -0
- package/gates/self-heal.test.ts +511 -0
- package/gates/self-heal.ts +125 -0
- package/gates/ship-orchestrator.test.ts +399 -0
- package/gates/ship-orchestrator.ts +384 -0
- package/gates/spec-compliance-probe.ts +159 -0
- package/gates/test-fixtures/broken-no-environments.json +110 -0
- package/gates/test-fixtures/consumer-directory-layout.json +90 -0
- package/gates/test-fixtures/valid-standard.json +91 -0
- package/gates/test-utils.ts +43 -0
- package/gates/typecheck-gate.ts +111 -0
- package/gates/witness.ts +349 -0
- package/gates/workflow.test.ts +2018 -0
- package/hooks/ActionVerificationGate.hook.ts +96 -0
- package/hooks/AgentBriefGuard.hook.ts +38 -0
- package/hooks/AgentVerdictCapture.hook.ts +87 -0
- package/hooks/AutoVerifyGate.hook.ts +79 -0
- package/hooks/BashToolGuard.hook.ts +65 -0
- package/hooks/BashWriteGuard.hook.ts +60 -0
- package/hooks/CommitEnforcement.hook.ts +130 -0
- package/hooks/DocHygiene.hook.ts +148 -0
- package/hooks/GateEnforcement.hook.ts +58 -0
- package/hooks/GateResultProtection.hook.ts +95 -0
- package/hooks/HarnessAFKGate.hook.ts +85 -0
- package/hooks/HookCurrency.hook.ts +99 -0
- package/hooks/IssueCloseGuard.hook.ts +149 -0
- package/hooks/MergeGuard.hook.ts +58 -0
- package/hooks/PostCompact.hook.ts +60 -0
- package/hooks/ProjectStateSync.hook.ts +103 -0
- package/hooks/SkillGuard.hook.ts +69 -0
- package/hooks/SpecConformityTrigger.hook.ts +43 -0
- package/hooks/SpecSCGuard.hook.ts +123 -0
- package/hooks/StaleTTLCleanup.hook.ts +141 -0
- package/hooks/TaskCompleted.hook.ts +51 -0
- package/hooks/TeamInit.hook.ts +85 -0
- package/hooks/TestSuiteGuard.hook.ts +70 -0
- package/hooks/TestSuiteRelease.hook.ts +85 -0
- package/hooks/TopLevelCdGuard.hook.ts +108 -0
- package/hooks/VerifyPhaseLock.hook.ts +84 -0
- package/hooks/WorkflowStateGuard.hook.ts +64 -0
- package/hooks/lib/agent-config.json +9 -0
- package/hooks/lib/agentDetection.ts +201 -0
- package/hooks/lib/comment-template.ts +86 -0
- package/hooks/lib/findWorkflow.ts +101 -0
- package/hooks/lib/parseStdin.ts +37 -0
- package/hooks/lib/paths.ts +111 -0
- package/hooks/lib/utils.ts +338 -0
- package/lib/affected-tests.ts +29 -0
- package/lib/bash-write-guard.ts +627 -0
- package/lib/branch-cleanup.ts +279 -7
- package/lib/config-trackable.ts +9 -0
- package/lib/distribution-currency.ts +55 -5
- package/lib/failure-intake.ts +7 -1
- package/lib/gate-enforcement.ts +360 -38
- package/lib/gate-names.ts +72 -0
- package/lib/gate-result-protection.ts +437 -0
- package/lib/generators/code-map.ts +55 -4
- package/lib/generators/types.ts +27 -1
- package/lib/intake-sources.ts +380 -0
- package/lib/js-top-level-code.ts +20 -2
- package/lib/junit-checks.ts +239 -1
- package/lib/late-env-spawn.ts +331 -0
- package/lib/launch-base.ts +128 -5
- package/lib/package-closure.ts +114 -0
- package/lib/paths.ts +96 -3
- package/lib/phase2-decomposition.ts +1 -1
- package/lib/published-artifact.ts +162 -18
- package/lib/sc-id-cross-tree.ts +84 -8
- package/lib/scaffold/ai-review-findings.ts +149 -4
- package/lib/scaffold/ai-review-step.ts +1006 -132
- package/lib/scaffold/defaults.ts +82 -1
- package/lib/scaffold/steps.ts +642 -54
- package/lib/scanner.ts +4 -2
- package/lib/security-verdict.ts +1 -1
- package/lib/shell-path-interpolation.ts +594 -0
- package/lib/text-dependents.ts +875 -0
- package/lib/transcript-checker.ts +6 -0
- package/lib/workflow-security.ts +29 -0
- package/lib/workflow-taint.ts +732 -0
- package/lib/worktree-cleanup.ts +65 -38
- package/lib/worktree-repo.ts +32 -2
- package/package.json +4 -1
- package/scripts/check-installed-hook-currency.ts +825 -0
- package/scripts/generate-code-map.ts +13 -8
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import { existsSync, readFileSync, readdirSync, writeFileSync, statSync } from "fs";
|
|
12
12
|
import { join, basename } from "path";
|
|
13
13
|
import { localCalendarDay } from "../lib/local-calendar-day";
|
|
14
|
+
import { FRESHNESS_NOTICE, directoryTable } from "../lib/generators/code-map";
|
|
14
15
|
import {
|
|
15
16
|
fallowAvailable,
|
|
16
17
|
fallowUnmeasuredNotice,
|
|
@@ -114,7 +115,7 @@ function scanRoutes(): Route[] {
|
|
|
114
115
|
|
|
115
116
|
// ── Directory structure ──────────────────────────────────────
|
|
116
117
|
|
|
117
|
-
interface DirSummary { name: string;
|
|
118
|
+
interface DirSummary { name: string; types: string[] }
|
|
118
119
|
|
|
119
120
|
function scanDirectories(): DirSummary[] {
|
|
120
121
|
const dirs: DirSummary[] = [];
|
|
@@ -128,10 +129,13 @@ function scanDirectories(): DirSummary[] {
|
|
|
128
129
|
if (!statSync(full).isDirectory()) continue;
|
|
129
130
|
const files = readdirSync(full, { recursive: true }).map(String);
|
|
130
131
|
const exts = new Set(files.map(f => f.split(".").pop()).filter((e): e is string => Boolean(e)));
|
|
131
|
-
dirs.push({ name: entry,
|
|
132
|
+
dirs.push({ name: entry, types: [...exts].slice(0, 5) });
|
|
132
133
|
} catch {}
|
|
133
134
|
}
|
|
134
|
-
|
|
135
|
+
// Unsorted. Row order is `directoryTable`'s single decision (#1163) —
|
|
136
|
+
// this used to sort by `fileCount`, which is how the census survived one
|
|
137
|
+
// indirection past being printed.
|
|
138
|
+
return dirs;
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
// ── Component scanning (React) ───────────────────────────────
|
|
@@ -257,7 +261,9 @@ generator: rungate/scripts/generate-code-map.ts
|
|
|
257
261
|
# Code Map — ${pkg.name}
|
|
258
262
|
|
|
259
263
|
Auto-generated architecture snapshot. Re-run \`bun generate-code-map.ts ${projectPath}\` to refresh.
|
|
260
|
-
Regenerate when src/ has commits since scanned-at-sha
|
|
264
|
+
Regenerate when src/ has commits since scanned-at-sha.
|
|
265
|
+
|
|
266
|
+
${FRESHNESS_NOTICE}`);
|
|
261
267
|
|
|
262
268
|
// Summary
|
|
263
269
|
sections.push(`## Summary
|
|
@@ -276,12 +282,11 @@ sections.push(`## Summary
|
|
|
276
282
|
| Module import mappings | ${consumerMappings.length} |
|
|
277
283
|
| Page-component mappings | ${pageMappings.length} |`);
|
|
278
284
|
|
|
279
|
-
// Directory structure
|
|
285
|
+
// Directory structure. No `Files` column, and the order is `directoryTable`'s
|
|
286
|
+
// rather than the scanner's — see `FRESHNESS_NOTICE` and #1163.
|
|
280
287
|
sections.push(`## Directory Structure
|
|
281
288
|
|
|
282
|
-
|
|
283
|
-
|-----------|-------|-------|
|
|
284
|
-
${dirs.map(d => `| ${d.name}/ | ${d.fileCount} | ${d.types.join(", ")} |`).join("\n")}`);
|
|
289
|
+
${directoryTable(dirs)}`);
|
|
285
290
|
|
|
286
291
|
// Routes
|
|
287
292
|
if (routes.length > 0) {
|