@milkenjoyer/toolchain 0.20.0 → 0.22.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/README.md +2 -0
- package/TESTING.md +26 -0
- package/dist/ci-budget-B2AuZ3xa.mjs +80 -0
- package/dist/ci-budget-cli.d.mts +2 -0
- package/dist/ci-budget-cli.mjs +31 -0
- package/dist/ci-budget.d.mts +22 -0
- package/dist/ci-budget.mjs +1 -0
- package/dist/ci-result.d.mts +1 -0
- package/dist/ci-result.mjs +12 -0
- package/dist/{compatible-DIYO9MZf.d.mts → compatible-BKEJ_p20.d.mts} +1 -1
- package/dist/{compatible-D54mCSlT.mjs → compatible-CRaMYpBM.mjs} +2 -2
- package/dist/compatible.d.mts +1 -1
- package/dist/compatible.mjs +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{effect-plugin-BsrW5_nI.mjs → effect-plugin-roghk4W1.mjs} +2 -3
- package/dist/effect-plugin.mjs +1 -1
- package/dist/exceptions-D0yZUk8P.mjs +145 -0
- package/dist/exceptions.mjs +1 -1
- package/dist/foldkit-plugin.mjs +2 -2
- package/dist/formal.d.mts +1 -1
- package/dist/formal.mjs +5 -5
- package/dist/{guard-fFg_0NIp.mjs → guard-n0LC_buo.mjs} +6 -6
- package/dist/guard.d.mts +1 -1
- package/dist/guard.mjs +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.mjs +2 -2
- package/dist/{lint-BJ6SmGk1.mjs → lint-Bx4NP_kA.mjs} +5 -5
- package/dist/lint.mjs +1 -1
- package/dist/{plugin-CwxhPtui.mjs → plugin-DUUAfi92.mjs} +326 -30
- package/dist/plugin.d.mts +5 -0
- package/dist/plugin.mjs +1 -1
- package/dist/proof.mjs +3 -3
- package/dist/renovate-ci-BdVmECgm.mjs +73 -0
- package/dist/renovate-ci.d.mts +10 -0
- package/dist/renovate-ci.mjs +1 -0
- package/dist/{rules-vHmNoAU0.mjs → rules-5qwzfDWJ.mjs} +3 -1
- package/dist/rules.d.mts +2 -0
- package/dist/rules.mjs +1 -1
- package/dist/standard.mjs +6 -6
- package/dist/starts.mjs +4 -2
- package/dist/verdict.d.mts +1 -1
- package/dist/verdict.mjs +2 -2
- package/dist/{verification-FgQFU1YN.d.mts → verification-fnhfrxmy.d.mts} +1 -1
- package/dist/verification.d.mts +1 -1
- package/dist/verification.mjs +1 -1
- package/dist/versions.mjs +1 -1
- package/package.json +13 -1
- package/renovate.json +29 -3
- package/src/ci-budget-cli.ts +39 -0
- package/src/ci-budget.ts +116 -0
- package/src/ci-result.ts +12 -0
- package/src/effect-plugin.ts +0 -1
- package/src/exceptions.ts +132 -0
- package/src/plugin.ts +10 -0
- package/src/renovate-ci.ts +96 -0
- package/src/rules/no-mock-call-mirrors.ts +121 -0
- package/src/rules/no-test-internal-imports.ts +102 -0
- package/src/rules/no-test-timeouts.ts +83 -0
- package/src/rules/no-test-waits.ts +113 -0
- package/src/rules/require-test-quarantine.ts +36 -0
- package/src/rules/test-api.ts +57 -0
- package/src/rules/test-hygiene.test.ts +241 -0
- package/src/rules/test-package.ts +32 -0
- package/src/rules.ts +2 -0
- package/src/shared/member-path.ts +7 -0
- package/src/starts/policy.ts +5 -1
- package/dist/exceptions-Dybl9xpc.mjs +0 -11
- package/dist/{specs-file-NsQF4V7X.mjs → specs-file-Ck9ZOt46.mjs} +1 -1
- package/dist/{syntax-CGEOffZK.mjs → syntax-B3n7lDYJ.mjs} +1 -1
- package/dist/{verification-oAc1Q6I9.mjs → verification-D4Sn2fh5.mjs} +4 -4
- package/dist/{versions-DpRzgSR_.mjs → versions-KbYa8kbF.mjs} +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
Test hygiene rules and quarantine syntax: [TESTING.md](TESTING.md).
|
|
2
|
+
|
|
1
3
|
# Configure pre-push hooks
|
|
2
4
|
|
|
3
5
|
A shared absolute Git hooks path must dispatch through the invoking worktree. `@milkenjoyer/toolchain/hooks` supplies `configurePrePush` to run native Vite+ setup and install that dispatcher as one operation.
|
package/TESTING.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Test hygiene
|
|
2
|
+
|
|
3
|
+
Toolchain 0.22.0 enables these `birbprophet` rules at error in `lint()`. `guard` rejects lowering them outside the shared exact-file exceptions. They apply to `.test`, `.spec` and `.fake` TypeScript/JavaScript files and files inside `test`, `tests` or `__tests__` directories. Timeout/retry configuration is also checked in Vite and Vitest config files. The timeout rule also rejects `--retry` in the containing package's scripts.
|
|
4
|
+
|
|
5
|
+
| Rule | Required repair | Replaces |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| `no-test-timeouts` | Remove per-test timeout arguments, timeout/retry options and `--retry`; fix the slow or flaky test. | Manual checks for timeout and retry overrides. |
|
|
8
|
+
| `no-test-waits` | Await observable completion or use a controlled test clock; remove sleeps, polling, wall-clock measurements and frame waits. | Manual checks for time-based synchronization. |
|
|
9
|
+
| `require-test-quarantine` | Restore the skipped test or name its repair issue immediately above the call. | The unconditional `vitest/no-disabled-tests` and `vitest/warn-todo` bans. |
|
|
10
|
+
| `no-mock-call-mirrors` | Run the local module and assert its observable result instead of its mocked call history. | The unconditional `effect/no-module-mocking` ban. |
|
|
11
|
+
| `no-test-internal-imports` | Use a package export or place the test beside its subject. | Manual checks for cross-directory internal imports. |
|
|
12
|
+
|
|
13
|
+
A quarantine uses a statement, preserving the no-comments rule:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { it } from "@effect/vitest";
|
|
17
|
+
|
|
18
|
+
void "quarantine: #532";
|
|
19
|
+
it.skip("repairs the affected behavior", () => {});
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The issue marker must be on the immediately preceding line. Empty, zero and missing issue numbers fail. Namespaced and renamed test imports are recognized. Correct cases retain normal runner defaults, event completion, controlled clocks, public exported subpaths and colocated internal imports. External SDK mocks remain allowed.
|
|
23
|
+
|
|
24
|
+
Existing agent-kit violations are listed by exact filename and rule in `exceptions.ts`, linked to #532. Remove each exception as that cleanup repairs its file. No directory-wide exemption is shipped.
|
|
25
|
+
|
|
26
|
+
Siglata, vibebattler and OptionHouse need `@milkenjoyer/toolchain` pinned to `0.22.0` or a later compatible release. Their `0.18`/`0.10` pins do not contain these rules. Update the dependency pin after publication; consume the package's preset rather than copying rule files. Siglata #3564 and OptionHouse #1142 own their ongoing ports. Each repo's cleanup campaign owns its existing violations.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
// src/ci-budget.ts
|
|
3
|
+
const Nonnegative = Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0));
|
|
4
|
+
const Cost = Schema.Struct({
|
|
5
|
+
since: Schema.String,
|
|
6
|
+
dollars: Nonnegative
|
|
7
|
+
});
|
|
8
|
+
const Page = Schema.Struct({
|
|
9
|
+
sandboxes: Schema.Array(Schema.Struct({
|
|
10
|
+
id: Schema.String,
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
cost: Cost
|
|
13
|
+
})),
|
|
14
|
+
deletedCost: Cost,
|
|
15
|
+
pageInfo: Schema.Struct({
|
|
16
|
+
hasMore: Schema.Boolean,
|
|
17
|
+
nextCursor: Schema.NullOr(Schema.String)
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
const monthlyCiBudget = (spend) => {
|
|
21
|
+
const dollars = Schema.decodeSync(Nonnegative)(spend.dollars);
|
|
22
|
+
const warning = dollars >= 160 ? `Boat CI month-to-date $${dollars.toFixed(2)} has reached 80% of the $200 monthly budget` : null;
|
|
23
|
+
return dollars >= 200 ? {
|
|
24
|
+
_tag: "Refused",
|
|
25
|
+
reason: `Boat CI month-to-date $${dollars.toFixed(2)} >= $200 monthly CI budget; no CI requested`,
|
|
26
|
+
since: spend.since,
|
|
27
|
+
dollars
|
|
28
|
+
} : {
|
|
29
|
+
_tag: "Allowed",
|
|
30
|
+
dollars,
|
|
31
|
+
warning
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const readMonthlyCiSpend = async ({ boat, now }) => {
|
|
35
|
+
const since = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1)).toISOString();
|
|
36
|
+
const monthly = boat.withPreMiddleware(({ url, init }) => {
|
|
37
|
+
const request = new URL(url);
|
|
38
|
+
request.searchParams.set("include", "cost,deletedCost");
|
|
39
|
+
return Promise.resolve({
|
|
40
|
+
url: request.href,
|
|
41
|
+
init
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
const ids = /* @__PURE__ */ new Set();
|
|
45
|
+
const cursors = /* @__PURE__ */ new Set();
|
|
46
|
+
let cursor;
|
|
47
|
+
let deletedDollars;
|
|
48
|
+
let dollars = 0;
|
|
49
|
+
for (;;) {
|
|
50
|
+
const response = await monthly.sandboxesRaw({
|
|
51
|
+
namePrefix: "ci-",
|
|
52
|
+
include: "cost",
|
|
53
|
+
limit: 200,
|
|
54
|
+
sort: "asc",
|
|
55
|
+
...cursor === void 0 ? {} : { cursor }
|
|
56
|
+
});
|
|
57
|
+
const page = Schema.decodeUnknownSync(Page)(await response.raw.json());
|
|
58
|
+
if (page.deletedCost.since !== since || page.sandboxes.some(({ cost }) => cost.since !== since)) throw new Error("Monthly Boat CI meter changed month; read again");
|
|
59
|
+
if (deletedDollars !== void 0 && deletedDollars !== page.deletedCost.dollars) throw new Error("Monthly Boat CI deleted cost changed during pagination; read again");
|
|
60
|
+
deletedDollars = page.deletedCost.dollars;
|
|
61
|
+
for (const sandbox of page.sandboxes) {
|
|
62
|
+
if (!sandbox.name.startsWith("ci-") || ids.has(sandbox.id)) throw new Error("Monthly Boat CI page contains an unexpected or repeated sandbox");
|
|
63
|
+
ids.add(sandbox.id);
|
|
64
|
+
dollars += sandbox.cost.dollars;
|
|
65
|
+
}
|
|
66
|
+
if (!page.pageInfo.hasMore) break;
|
|
67
|
+
const next = page.pageInfo.nextCursor;
|
|
68
|
+
if (next === null || cursors.has(next)) throw new Error("Monthly Boat CI pagination is incomplete");
|
|
69
|
+
cursors.add(next);
|
|
70
|
+
cursor = next;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
since,
|
|
74
|
+
readAt: now.toISOString(),
|
|
75
|
+
dollars: Schema.decodeSync(Nonnegative)(dollars + deletedDollars),
|
|
76
|
+
deletedDollars,
|
|
77
|
+
sandboxes: ids.size
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export { readMonthlyCiSpend as n, monthlyCiBudget as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { n as readMonthlyCiSpend, t as monthlyCiBudget } from "./ci-budget-B2AuZ3xa.mjs";
|
|
3
|
+
import { BoatApi, Configuration } from "@boatdev/sdk";
|
|
4
|
+
import * as Config from "effect/Config";
|
|
5
|
+
import * as Console from "effect/Console";
|
|
6
|
+
import * as DateTime from "effect/DateTime";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Redacted from "effect/Redacted";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
// src/ci-budget-cli.ts
|
|
11
|
+
var CiMeterUnread = class extends Schema.TaggedError()("CiMeterUnread", {}) {};
|
|
12
|
+
const checkCiBudget = Effect.gen(function* () {
|
|
13
|
+
const key = yield* Config.Redacted("BOAT_API_KEY");
|
|
14
|
+
const boat = new BoatApi(new Configuration({ accessToken: Redacted.value(key) }));
|
|
15
|
+
const now = yield* DateTime.nowAsDate;
|
|
16
|
+
const spend = yield* Effect.tryPromise({
|
|
17
|
+
try: () => readMonthlyCiSpend({
|
|
18
|
+
boat,
|
|
19
|
+
now
|
|
20
|
+
}),
|
|
21
|
+
catch: () => new CiMeterUnread()
|
|
22
|
+
});
|
|
23
|
+
const budget = monthlyCiBudget(spend);
|
|
24
|
+
yield* Console.log({
|
|
25
|
+
...budget,
|
|
26
|
+
spend
|
|
27
|
+
});
|
|
28
|
+
return budget._tag === "Allowed" ? 0 : 1;
|
|
29
|
+
}).pipe(Effect.catch(() => Effect.as(Console.error("Boat CI monthly meter unread; no Boat job admitted"), 1)));
|
|
30
|
+
if (import.meta.main) process.exitCode = await Effect.runPromise(checkCiBudget);
|
|
31
|
+
export { checkCiBudget };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BoatApi } from "@boatdev/sdk";
|
|
2
|
+
export type MonthlyCiSpend = {
|
|
3
|
+
readonly since: string;
|
|
4
|
+
readonly readAt: string;
|
|
5
|
+
readonly dollars: number;
|
|
6
|
+
readonly deletedDollars: number;
|
|
7
|
+
readonly sandboxes: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const monthlyCiBudget: (spend: MonthlyCiSpend) => {
|
|
10
|
+
readonly _tag: "Refused";
|
|
11
|
+
readonly reason: string;
|
|
12
|
+
readonly since: string;
|
|
13
|
+
readonly dollars: number;
|
|
14
|
+
} | {
|
|
15
|
+
readonly _tag: "Allowed";
|
|
16
|
+
readonly dollars: number;
|
|
17
|
+
readonly warning: string | null;
|
|
18
|
+
};
|
|
19
|
+
export declare const readMonthlyCiSpend: ({ boat, now }: {
|
|
20
|
+
readonly boat: BoatApi;
|
|
21
|
+
readonly now: Date;
|
|
22
|
+
}) => Promise<MonthlyCiSpend>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as monthlyCiBudget, n as readMonthlyCiSpend } from "./ci-budget-B2AuZ3xa.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import * as Config from "effect/Config";
|
|
3
|
+
import * as Console from "effect/Console";
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
// src/ci-result.ts
|
|
6
|
+
const result = Effect.gen(function* () {
|
|
7
|
+
const checks = yield* Config.String("CI_RESULT");
|
|
8
|
+
yield* Console.log(`Ready checks: ${checks}`);
|
|
9
|
+
return checks === "success" ? 0 : 1;
|
|
10
|
+
}).pipe(Effect.orElseSucceed(() => 1));
|
|
11
|
+
if (import.meta.main) process.exitCode = await Effect.runPromise(result);
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as Family, t as Catalog } from "./versions-DqZd0jF9.mjs";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
2
3
|
import * as Data from "effect/Data";
|
|
3
4
|
import * as Option from "effect/Option";
|
|
4
|
-
import * as Schema from "effect/Schema";
|
|
5
5
|
declare const VersionManifest: Schema.Struct<{
|
|
6
6
|
readonly dependencies: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
7
7
|
readonly peerDependencies: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c as lead, f as versionOf, i as familyOf, o as fixedBy, r as familyNamed, s as fixedOf, t as catalog, u as ownerOf } from "./versions-
|
|
1
|
+
import { c as lead, f as versionOf, i as familyOf, o as fixedBy, r as familyNamed, s as fixedOf, t as catalog, u as ownerOf } from "./versions-KbYa8kbF.mjs";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
2
3
|
import * as Arr from "effect/Array";
|
|
3
4
|
import * as Data from "effect/Data";
|
|
4
5
|
import { dual } from "effect/Function";
|
|
@@ -6,7 +7,6 @@ import * as HashSet from "effect/HashSet";
|
|
|
6
7
|
import * as Match from "effect/Match";
|
|
7
8
|
import * as Option from "effect/Option";
|
|
8
9
|
import * as R from "effect/Record";
|
|
9
|
-
import * as Schema from "effect/Schema";
|
|
10
10
|
import * as Str from "effect/String";
|
|
11
11
|
import semver from "semver";
|
|
12
12
|
// src/compatible.ts
|
package/dist/compatible.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as VersionManifest, c as describeConflict, d as onLatestLine, f as otherTags, i as Solution, l as fixedRange, n as Packument, o as aliasTarget, p as solve, r as Packuments, s as conflicts, t as Conflict, u as latestOf } from "./compatible-
|
|
1
|
+
import { a as VersionManifest, c as describeConflict, d as onLatestLine, f as otherTags, i as Solution, l as fixedRange, n as Packument, o as aliasTarget, p as solve, r as Packuments, s as conflicts, t as Conflict, u as latestOf } from "./compatible-BKEJ_p20.mjs";
|
|
2
2
|
export { Conflict, Packument, Packuments, Solution, VersionManifest, aliasTarget, conflicts, describeConflict, fixedRange, latestOf, onLatestLine, otherTags, solve };
|
package/dist/compatible.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Conflict, n as Packument, r as Packuments, i as VersionManifest, a as aliasTarget, o as conflicts, s as describeConflict, c as fixedRange, l as latestOf, u as onLatestLine, d as otherTags, f as solve } from "./compatible-
|
|
1
|
+
export { t as Conflict, n as Packument, r as Packuments, i as VersionManifest, a as aliasTarget, o as conflicts, s as describeConflict, c as fixedRange, l as latestOf, u as onLatestLine, d as otherTags, f as solve } from "./compatible-CRaMYpBM.mjs";
|
package/dist/conformance.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readTraces, r as receiptPath, t as FORMAL_TRACES } from "./trace-file-KuPRWgwt.mjs";
|
|
2
|
-
import { readFileSync, writeFileSync } from "node:fs";
|
|
3
2
|
import * as Config from "effect/Config";
|
|
4
3
|
import * as Effect from "effect/Effect";
|
|
4
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { afterAll, expect, test } from "vite-plus/test";
|
|
6
6
|
// src/conformance.ts
|
|
7
7
|
const replayTraces = (name, start) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as memberPropertyName } from "./syntax-
|
|
1
|
+
import { n as memberPropertyName } from "./syntax-B3n7lDYJ.mjs";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
2
3
|
import * as Arr from "effect/Array";
|
|
3
4
|
import * as Option from "effect/Option";
|
|
4
5
|
import * as R from "effect/Record";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
6
|
import upstream from "@mpsuesser/oxlint-plugin-effect";
|
|
7
7
|
import { Diagnostic, Rule, RuleContext } from "effect-oxlint";
|
|
8
8
|
// src/rules/use-temp-file-scoped.ts
|
|
@@ -64,7 +64,6 @@ const kept = [
|
|
|
64
64
|
"avoid-mutable-state",
|
|
65
65
|
"avoid-option-getorthrow",
|
|
66
66
|
"no-chained-type-assertions",
|
|
67
|
-
"no-module-mocking",
|
|
68
67
|
"prefer-redacted-config",
|
|
69
68
|
"require-effect-concurrency",
|
|
70
69
|
"throw-in-effect-gen"
|
package/dist/effect-plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./effect-plugin-
|
|
1
|
+
export { t as default } from "./effect-plugin-roghk4W1.mjs";
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// src/exceptions.ts
|
|
2
|
+
const exceptions = [
|
|
3
|
+
{
|
|
4
|
+
files: [
|
|
5
|
+
"packages/toolchain/tests/renovate-ci.test.ts",
|
|
6
|
+
"packages/toolchain/tests/standard-fixture.ts",
|
|
7
|
+
"plugins/agent-kit/tests/board.test.ts",
|
|
8
|
+
"plugins/agent-kit/tests/codex-usage.test.ts",
|
|
9
|
+
"plugins/agent-kit/tests/kept-clock.test.ts",
|
|
10
|
+
"plugins/agent-kit/tests/kept-clock.ts",
|
|
11
|
+
"plugins/agent-kit/tests/kept-fake.ts",
|
|
12
|
+
"plugins/agent-kit/tests/kept-fixes.test.ts",
|
|
13
|
+
"plugins/agent-kit/tests/kept-plan.test.ts",
|
|
14
|
+
"plugins/agent-kit/tests/kept-relocation.test.ts",
|
|
15
|
+
"plugins/agent-kit/tests/kept-runner.test.ts",
|
|
16
|
+
"plugins/agent-kit/tests/kept.test.ts",
|
|
17
|
+
"plugins/agent-kit/tests/pool-quota.test.ts",
|
|
18
|
+
"plugins/agent-kit/tests/request-ready.test.ts",
|
|
19
|
+
"plugins/agent-kit/tests/wait-ready.test.ts",
|
|
20
|
+
"tests/ready-request.test.ts",
|
|
21
|
+
"tests/repo-guard/check.test.ts"
|
|
22
|
+
],
|
|
23
|
+
rules: ["birbprophet/no-test-waits"],
|
|
24
|
+
issue: "https://github.com/birbprophet/agent-kit/issues/532"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
files: [
|
|
28
|
+
"packages/toolchain/tests/bins-packed.test.ts",
|
|
29
|
+
"packages/toolchain/tests/build.test.ts",
|
|
30
|
+
"packages/toolchain/tests/false-positives.test.ts",
|
|
31
|
+
"packages/toolchain/tests/formal-arithmetic.test.ts",
|
|
32
|
+
"packages/toolchain/tests/formal-proofs.test.ts",
|
|
33
|
+
"packages/toolchain/tests/formal.test.ts",
|
|
34
|
+
"packages/toolchain/tests/hooks.test.ts",
|
|
35
|
+
"packages/toolchain/tests/knip.test.ts",
|
|
36
|
+
"packages/toolchain/tests/rules.test.ts",
|
|
37
|
+
"packages/toolchain/tests/standard-aggregate-ids.test.ts",
|
|
38
|
+
"packages/toolchain/tests/standard-config.test.ts",
|
|
39
|
+
"packages/toolchain/tests/standard-domain-layout.test.ts",
|
|
40
|
+
"packages/toolchain/tests/standard-domain.test.ts",
|
|
41
|
+
"packages/toolchain/tests/standard-infra.test.ts",
|
|
42
|
+
"packages/toolchain/tests/standard-pins.test.ts",
|
|
43
|
+
"packages/toolchain/tests/standard-rules.test.ts",
|
|
44
|
+
"plugins/agent-kit/tests/codex-launch.test.ts",
|
|
45
|
+
"plugins/agent-kit/tests/kept-admission.test.ts",
|
|
46
|
+
"plugins/agent-kit/tests/kept-fixes.test.ts",
|
|
47
|
+
"plugins/agent-kit/tests/kept-relocation.test.ts",
|
|
48
|
+
"plugins/agent-kit/tests/kept-runner.test.ts",
|
|
49
|
+
"plugins/agent-kit/tests/kept.test.ts",
|
|
50
|
+
"tests/no-comments.test.ts",
|
|
51
|
+
"tests/repo-guard/check.test.ts",
|
|
52
|
+
"tests/spawned-commands.test.ts"
|
|
53
|
+
],
|
|
54
|
+
rules: ["birbprophet/no-test-timeouts"],
|
|
55
|
+
issue: "https://github.com/birbprophet/agent-kit/issues/532"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
files: [
|
|
59
|
+
"packages/toolchain/tests/catalog.test.ts",
|
|
60
|
+
"packages/toolchain/tests/ci-budget.test.ts",
|
|
61
|
+
"packages/toolchain/tests/fixtures/formal/formal/counter.conformance.ts",
|
|
62
|
+
"packages/toolchain/tests/fixtures/proofs/formal/add32.proof.ts",
|
|
63
|
+
"packages/toolchain/tests/fixtures/proofs/formal/credits.proof.ts",
|
|
64
|
+
"packages/toolchain/tests/fixtures/proofs/formal/next-below.proof.ts",
|
|
65
|
+
"packages/toolchain/tests/fixtures/proofs/formal/used-percent.proof.ts",
|
|
66
|
+
"packages/toolchain/tests/foldkit-vite.test.ts",
|
|
67
|
+
"packages/toolchain/tests/formal-traces.test.ts",
|
|
68
|
+
"packages/toolchain/tests/hooks-fixture.ts",
|
|
69
|
+
"packages/toolchain/tests/hooks.test.ts",
|
|
70
|
+
"packages/toolchain/tests/renovate-ci.test.ts",
|
|
71
|
+
"packages/toolchain/tests/renovate.test.ts",
|
|
72
|
+
"packages/toolchain/tests/rules.test.ts",
|
|
73
|
+
"packages/toolchain/tests/rules/no-comments.test.ts",
|
|
74
|
+
"packages/toolchain/tests/rules/no-process-env.test.ts",
|
|
75
|
+
"packages/toolchain/tests/rules/prefer-accessible-scene-locators.test.ts",
|
|
76
|
+
"packages/toolchain/tests/rules/require-command-answer-names.test.ts",
|
|
77
|
+
"packages/toolchain/tests/rules/require-past-tense-messages.test.ts",
|
|
78
|
+
"packages/toolchain/tests/rules/use-temp-file-scoped.test.ts",
|
|
79
|
+
"packages/toolchain/tests/solver.test.ts",
|
|
80
|
+
"packages/toolchain/tests/standard-domain.test.ts",
|
|
81
|
+
"packages/toolchain/tests/standard-infra.test.ts",
|
|
82
|
+
"packages/toolchain/tests/standard-pins.test.ts",
|
|
83
|
+
"packages/toolchain/tests/standard.test.ts",
|
|
84
|
+
"packages/toolchain/tests/starts-policy.test.ts",
|
|
85
|
+
"packages/toolchain/tests/verdict.test.ts",
|
|
86
|
+
"packages/toolchain/tests/verification.test.ts",
|
|
87
|
+
"plugins/agent-kit/tests/board.test.ts",
|
|
88
|
+
"plugins/agent-kit/tests/boat-cost.test.ts",
|
|
89
|
+
"plugins/agent-kit/tests/boat-paid.test.ts",
|
|
90
|
+
"plugins/agent-kit/tests/cleanup.test.ts",
|
|
91
|
+
"plugins/agent-kit/tests/codex-launch.test.ts",
|
|
92
|
+
"plugins/agent-kit/tests/codex-usage.test.ts",
|
|
93
|
+
"plugins/agent-kit/tests/disk-policy.test.ts",
|
|
94
|
+
"plugins/agent-kit/tests/fixed-model-quota.test.ts",
|
|
95
|
+
"plugins/agent-kit/tests/free-resets.test.ts",
|
|
96
|
+
"plugins/agent-kit/tests/kept-admission.test.ts",
|
|
97
|
+
"plugins/agent-kit/tests/kept-cli.test.ts",
|
|
98
|
+
"plugins/agent-kit/tests/kept-clock.test.ts",
|
|
99
|
+
"plugins/agent-kit/tests/kept-fake.ts",
|
|
100
|
+
"plugins/agent-kit/tests/kept-fixes.test.ts",
|
|
101
|
+
"plugins/agent-kit/tests/kept-hydration.test.ts",
|
|
102
|
+
"plugins/agent-kit/tests/kept-observation.test.ts",
|
|
103
|
+
"plugins/agent-kit/tests/kept-plan.test.ts",
|
|
104
|
+
"plugins/agent-kit/tests/kept-relocation.test.ts",
|
|
105
|
+
"plugins/agent-kit/tests/kept-runner.test.ts",
|
|
106
|
+
"plugins/agent-kit/tests/kept.test.ts",
|
|
107
|
+
"plugins/agent-kit/tests/pool-order.test.ts",
|
|
108
|
+
"plugins/agent-kit/tests/pool-quota.test.ts",
|
|
109
|
+
"plugins/agent-kit/tests/provider-slots.test.ts",
|
|
110
|
+
"plugins/agent-kit/tests/proxy-quota.test.ts",
|
|
111
|
+
"plugins/agent-kit/tests/queue-fixture.ts",
|
|
112
|
+
"plugins/agent-kit/tests/queue-members.test.ts",
|
|
113
|
+
"plugins/agent-kit/tests/queue-plan.test.ts",
|
|
114
|
+
"plugins/agent-kit/tests/queue-resets.test.ts",
|
|
115
|
+
"plugins/agent-kit/tests/queue-unread.test.ts",
|
|
116
|
+
"plugins/agent-kit/tests/queue-upkeep.test.ts",
|
|
117
|
+
"plugins/agent-kit/tests/queue-usage.test.ts",
|
|
118
|
+
"plugins/agent-kit/tests/queue.test.ts",
|
|
119
|
+
"plugins/agent-kit/tests/request-ready.test.ts",
|
|
120
|
+
"plugins/agent-kit/tests/trust-hooks.test.ts",
|
|
121
|
+
"plugins/agent-kit/tests/unbound-census.test.ts",
|
|
122
|
+
"plugins/agent-kit/tests/wait-ready.test.ts",
|
|
123
|
+
"tests/exact-versions.test.ts",
|
|
124
|
+
"tests/ready-main.test.ts",
|
|
125
|
+
"tests/ready-request.test.ts",
|
|
126
|
+
"tests/spawned-commands.test.ts",
|
|
127
|
+
"tests/standard-plugin-skills.test.ts",
|
|
128
|
+
"tests/toolchain-adoption.test.ts",
|
|
129
|
+
"tests/workflow-policy.test.ts",
|
|
130
|
+
"tests/workflow-shell.test.ts"
|
|
131
|
+
],
|
|
132
|
+
rules: ["birbprophet/no-test-internal-imports"],
|
|
133
|
+
issue: "https://github.com/birbprophet/agent-kit/issues/532"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
files: ["packages/toolchain/src/conformance.ts"],
|
|
137
|
+
rules: [
|
|
138
|
+
"eslint/no-restricted-imports",
|
|
139
|
+
"vitest/no-disabled-tests",
|
|
140
|
+
"vitest/no-conditional-tests"
|
|
141
|
+
],
|
|
142
|
+
issue: "https://github.com/birbprophet/agent-kit/issues/278"
|
|
143
|
+
}
|
|
144
|
+
];
|
|
145
|
+
export { exceptions as t };
|
package/dist/exceptions.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as exceptions } from "./exceptions-
|
|
1
|
+
export { t as exceptions } from "./exceptions-D0yZUk8P.mjs";
|
package/dist/foldkit-plugin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
1
3
|
import * as Arr from "effect/Array";
|
|
2
4
|
import * as R from "effect/Record";
|
|
3
|
-
import * as Schema from "effect/Schema";
|
|
4
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
|
-
import * as Effect from "effect/Effect";
|
|
6
6
|
import { dirname, join } from "node:path";
|
|
7
7
|
import upstream from "@foldkit/oxlint-plugin";
|
|
8
8
|
// src/foldkit-plugin.ts
|
package/dist/formal.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
1
|
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
3
|
import * as Layer from "effect/Layer";
|
|
4
4
|
import { ChildProcessSpawner } from "effect/process";
|
|
5
5
|
import { FileSystem } from "effect/FileSystem";
|
package/dist/formal.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import { n as criticalFindings, t as decode } from "./specs-file-
|
|
2
|
+
import { n as criticalFindings, t as decode } from "./specs-file-Ck9ZOt46.mjs";
|
|
3
3
|
import { i as sorted, r as receiptPath, t as FORMAL_TRACES } from "./trace-file-KuPRWgwt.mjs";
|
|
4
|
-
import * as Data from "effect/Data";
|
|
5
|
-
import * as Option from "effect/Option";
|
|
6
|
-
import * as Schema from "effect/Schema";
|
|
7
4
|
import * as Config from "effect/Config";
|
|
5
|
+
import * as Console from "effect/Console";
|
|
8
6
|
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import * as Data from "effect/Data";
|
|
9
|
+
import * as Option from "effect/Option";
|
|
9
10
|
import { basename, dirname, join, relative } from "node:path";
|
|
10
11
|
import { NodeServices } from "@effect/platform-node";
|
|
11
12
|
import * as Cause from "effect/Cause";
|
|
12
|
-
import * as Console from "effect/Console";
|
|
13
13
|
import * as Exit from "effect/Exit";
|
|
14
14
|
import * as Layer from "effect/Layer";
|
|
15
15
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { d as otherTags, l as latestOf, u as onLatestLine } from "./compatible-
|
|
1
|
+
import { d as otherTags, l as latestOf, u as onLatestLine } from "./compatible-CRaMYpBM.mjs";
|
|
2
2
|
import { i as enforcedTsgoRules } from "./effect-tsgo-D0QfeKGD.mjs";
|
|
3
|
-
import { t as exceptions } from "./exceptions-
|
|
4
|
-
import { a as toolchainScopes, n as effectRules, r as foldkitPreset, t as birbprophetRules } from "./lint-
|
|
5
|
-
import { c as lead, f as versionOf } from "./versions-
|
|
3
|
+
import { t as exceptions } from "./exceptions-D0yZUk8P.mjs";
|
|
4
|
+
import { a as toolchainScopes, n as effectRules, r as foldkitPreset, t as birbprophetRules } from "./lint-Bx4NP_kA.mjs";
|
|
5
|
+
import { c as lead, f as versionOf } from "./versions-KbYa8kbF.mjs";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
6
8
|
import * as Arr from "effect/Array";
|
|
7
9
|
import { dual } from "effect/Function";
|
|
8
10
|
import * as HashSet from "effect/HashSet";
|
|
9
11
|
import * as Option from "effect/Option";
|
|
10
12
|
import * as R from "effect/Record";
|
|
11
|
-
import * as Schema from "effect/Schema";
|
|
12
13
|
import * as Str from "effect/String";
|
|
13
|
-
import * as Effect from "effect/Effect";
|
|
14
14
|
import * as Result from "effect/Result";
|
|
15
15
|
// src/standard/manifest.ts
|
|
16
16
|
const Versions = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed({})));
|
package/dist/guard.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Packuments } from "./compatible-
|
|
1
|
+
import { r as Packuments } from "./compatible-BKEJ_p20.mjs";
|
|
2
2
|
import { t as Exception } from "./exceptions-LNZ022dl.mjs";
|
|
3
3
|
import { t as Catalog } from "./versions-DqZd0jF9.mjs";
|
|
4
4
|
import { OxlintConfig } from "vite-plus/lint";
|
package/dist/guard.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as exactFindings, t as exceptionFindings, n as foldkitViteFindings, r as isFoldkitViteInput, l as manifestRanges, i as pinFindings, a as ruleFindings, o as tagFindings } from "./guard-
|
|
1
|
+
export { c as exactFindings, t as exceptionFindings, n as foldkitViteFindings, r as isFoldkitViteInput, l as manifestRanges, i as pinFindings, a as ruleFindings, o as tagFindings } from "./guard-n0LC_buo.mjs";
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
1
|
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
3
|
import { FileSystem } from "effect/FileSystem";
|
|
4
4
|
import { Path } from "effect/Path";
|
|
5
5
|
export declare const worktreePrePush = "#!/bin/sh\nif ! root=$(git rev-parse --show-toplevel); then\n printf '%s\\n' 'pre-push: could not determine the invoking worktree root' >&2\n exit 1\nfi\nif [ ! -f \"$root/node_modules/.bin/vp\" ] || [ ! -x \"$root/node_modules/.bin/vp\" ]; then\n printf '%s\\n' \"pre-push: missing or nonexecutable $root/node_modules/.bin/vp\" >&2\n exit 1\nfi\nif [ ! -f \"$root/.vite-hooks/pre-push\" ]; then\n printf '%s\\n' \"pre-push: missing $root/.vite-hooks/pre-push\" >&2\n exit 1\nfi\nif ! git -C \"$root\" ls-files --error-unmatch .vite-hooks/pre-push >/dev/null 2>&1; then\n printf '%s\\n' \"pre-push: untracked $root/.vite-hooks/pre-push\" >&2\n exit 1\nfi\nexport PATH=\"$root/node_modules/.bin:$PATH\"\nexec /bin/sh -e \"$root/.vite-hooks/pre-push\" \"$@\"\n";
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
|
+
import * as Arr from "effect/Array";
|
|
3
4
|
import * as Str from "effect/String";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
5
|
import { ChildProcess } from "effect/process";
|
|
6
6
|
import * as Stream from "effect/Stream";
|
|
7
7
|
import { FileSystem } from "effect/FileSystem";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as plugin } from "./effect-plugin-
|
|
1
|
+
import { t as plugin } from "./effect-plugin-roghk4W1.mjs";
|
|
2
2
|
import { n as effectTsgoPlugin, r as effectTsgoRules } from "./effect-tsgo-D0QfeKGD.mjs";
|
|
3
|
-
import { t as exceptions } from "./exceptions-
|
|
4
|
-
import { t as plugin$1 } from "./plugin-
|
|
5
|
-
import { t as staticRules } from "./rules-
|
|
3
|
+
import { t as exceptions } from "./exceptions-D0yZUk8P.mjs";
|
|
4
|
+
import { t as plugin$1 } from "./plugin-DUUAfi92.mjs";
|
|
5
|
+
import { t as staticRules } from "./rules-5qwzfDWJ.mjs";
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
6
7
|
import * as Arr from "effect/Array";
|
|
7
8
|
import * as Option from "effect/Option";
|
|
8
9
|
import * as R from "effect/Record";
|
|
9
|
-
import * as Schema from "effect/Schema";
|
|
10
10
|
import * as Str from "effect/String";
|
|
11
11
|
import foldkitRecommended from "@foldkit/oxlint-plugin/recommended.json" with { type: "json" };
|
|
12
12
|
import ultraciteCore from "ultracite/oxlint/core";
|
package/dist/lint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as birbprophetRules, n as effectRules, r as foldkitPreset, i as lint, a as toolchainScopes } from "./lint-
|
|
1
|
+
export { t as birbprophetRules, n as effectRules, r as foldkitPreset, i as lint, a as toolchainScopes } from "./lint-Bx4NP_kA.mjs";
|