@aidenhq/sdk 0.5.16 → 0.5.18
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/dist/assets/page-kit.css +9 -0
- package/dist/src/tiers.d.ts +5 -1
- package/dist/src/tiers.js +10 -5
- package/package.json +1 -1
package/dist/assets/page-kit.css
CHANGED
|
@@ -139,4 +139,13 @@ select.pick { width: auto; max-width: 100%; }
|
|
|
139
139
|
.mp-empty { padding: 14px 12px; color: var(--soft); }
|
|
140
140
|
.mp-foot { padding: 6px 12px; border-top: 1px solid var(--line); background: var(--color-background-secondary, transparent); font-size: var(--fs-xs); color: var(--soft); }
|
|
141
141
|
@media (max-width: 560px) { .mp-id { display: none; } .mp-opt { padding-block: 10px; } }
|
|
142
|
+
/* Phones: long values wrap instead of cutting or scrolling sideways. */
|
|
143
|
+
@media (max-width: 560px) {
|
|
144
|
+
.md pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
|
|
145
|
+
.tag { white-space: normal; overflow-wrap: anywhere; }
|
|
146
|
+
.chip > span { white-space: normal; overflow-wrap: anywhere; }
|
|
147
|
+
.chip { height: auto; min-height: 18px; }
|
|
148
|
+
body .ctl .seg { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); grid-auto-columns: auto; }
|
|
149
|
+
body .ctl .seg button { height: auto; min-height: 30px; padding-block: 4px; white-space: normal; overflow: visible; text-overflow: clip; }
|
|
150
|
+
}
|
|
142
151
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } button:not(:disabled):active { transform: none; } }
|
package/dist/src/tiers.d.ts
CHANGED
|
@@ -15,7 +15,11 @@ export declare const MANIFESTS: string[];
|
|
|
15
15
|
export declare const PROSE: string[];
|
|
16
16
|
/** Rule files a folder's AGENTS.md links to (`modules/AGENTS.md`): a change to one steers an agent as much as the guide does. */
|
|
17
17
|
export declare const FOLDER_RULES: string[];
|
|
18
|
-
/**
|
|
18
|
+
/** Agent handbooks and the review's own rules: what the product's agents do, so any change to one is sensitive. */
|
|
19
|
+
export declare const AGENT_RULES: string[];
|
|
20
|
+
/** A repo's developer guidance: a change to one is standard (trivial only in a sandbox repo, as everything there), sensitive only through the rest of its PR. */
|
|
21
|
+
export declare const DEV_GUIDES: string[];
|
|
22
|
+
/** The files that steer an agent (a reviewer reads them as guidance): never reviewed as prose. */
|
|
19
23
|
export declare const INSTRUCTIONS: string[];
|
|
20
24
|
export declare const SENSITIVE: string[];
|
|
21
25
|
export type Facts = {
|
package/dist/src/tiers.js
CHANGED
|
@@ -17,10 +17,14 @@ const RISKY = ["auth", "secur", "token", "session", "permission"].flatMap((w) =>
|
|
|
17
17
|
export const PROSE = ["docs/**/*.md", "docs/**/*.rst"]; // not mdx: it can run code
|
|
18
18
|
/** Rule files a folder's AGENTS.md links to (`modules/AGENTS.md`): a change to one steers an agent as much as the guide does. */
|
|
19
19
|
export const FOLDER_RULES = ["modules/agent-anatomy.md", "modules/teammates.md"];
|
|
20
|
-
/**
|
|
21
|
-
export const
|
|
20
|
+
/** Agent handbooks and the review's own rules: what the product's agents do, so any change to one is sensitive. */
|
|
21
|
+
export const AGENT_RULES = ["**/AGENTS.md", "**/AGENTS.override.md", "**/REVIEW.md", ...FOLDER_RULES];
|
|
22
|
+
/** A repo's developer guidance: a change to one is standard (trivial only in a sandbox repo, as everything there), sensitive only through the rest of its PR. */
|
|
23
|
+
export const DEV_GUIDES = ["**/CLAUDE.md", "docs/conventions-*.md"];
|
|
24
|
+
/** The files that steer an agent (a reviewer reads them as guidance): never reviewed as prose. */
|
|
25
|
+
export const INSTRUCTIONS = [...AGENT_RULES, ...DEV_GUIDES];
|
|
22
26
|
export const SENSITIVE = [
|
|
23
|
-
".github/**", "**/Dockerfile*", "**/package.json", ...
|
|
27
|
+
".github/**", "**/Dockerfile*", "**/package.json", ...AGENT_RULES, "**/.codex/**", "**/codex.toml", ...RISKY,
|
|
24
28
|
...LOCKS, "**/.eslintrc*", "**/eslint.config.*", "**/.oxlintrc*", "**/oxlint.config.*", "**/oxlint-plugin.*", "**/oxlint-suppressions.json", "**/vitest.config.*", "**/jest.config.*", "**/tsconfig*.json", "**/CODEOWNERS",
|
|
25
29
|
"**/migrations/**", "**/*.tf", "infra/**", "**/.env*", "**/config/**", "**/docker-compose*",
|
|
26
30
|
];
|
|
@@ -48,13 +52,14 @@ export const CONDITIONS = [...COUNTS, ...GLOBS, "author", "repo_class"];
|
|
|
48
52
|
export const DEFAULT_RULES = [
|
|
49
53
|
{ when: { repo_class: "critical" }, tier: "sensitive" },
|
|
50
54
|
{ when: { author: "bot", only_paths: [...MANIFESTS, ...LOCKS] }, tier: "skip" },
|
|
51
|
-
{ when: { paths:
|
|
52
|
-
{ when: { author: "member", only_paths: PROSE }, tier: "standard" },
|
|
55
|
+
{ when: { paths: AGENT_RULES }, tier: "sensitive" },
|
|
56
|
+
{ when: { author: "member", only_paths: [...PROSE, ...DEV_GUIDES] }, tier: "standard" },
|
|
53
57
|
{ when: { paths: SENSITIVE }, tier: "sensitive" },
|
|
54
58
|
{ when: { author: "outsider" }, tier: "sensitive" },
|
|
55
59
|
{ when: { repo_class: "sandbox" }, tier: "trivial" },
|
|
56
60
|
{ when: { lines_max: 0 }, tier: "sensitive" },
|
|
57
61
|
{ when: { lines_min: 600 }, tier: "sensitive" },
|
|
62
|
+
{ when: { paths: DEV_GUIDES }, tier: "standard" },
|
|
58
63
|
{ when: { author: "member", lines_max: 10, files_max: 20 }, tier: "trivial" },
|
|
59
64
|
{ tier: "standard" },
|
|
60
65
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aidenhq/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "The shared code of AidenHQ modules: contract types, engine IO, the caller check and fence, write executors, the reviewer side, the judges' models and call, the source writer and the vendor MCP pass-through.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|