@aidenhq/sdk 0.5.10 → 0.5.11

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.
@@ -1,5 +1,5 @@
1
1
  export declare const AGENT_FIX = "agent-fix";
2
- export declare const FEATURE_LABEL = "feature-request";
2
+ export declare const DECISION_LABEL = "needs-decision";
3
3
  export declare const BUILD_LABEL = "agent-build";
4
4
  export declare const TRUST_ROLES: readonly ["admin", "maintain", "write"];
5
5
  export declare const TRIAGE: readonly ["off", "new", "new+backlog"];
@@ -23,7 +23,7 @@ export interface MaintainedRepo {
23
23
  security_prs: boolean;
24
24
  /** Whether unlabelled issues are triaged: no, each new one, or each new one and the backlog (default new). */
25
25
  triage: (typeof TRIAGE)[number];
26
- /** Triage feature requests, and build the ones carrying BUILD_LABEL (default off). */
26
+ /** Label issues asking for new or changed behaviour DECISION_LABEL, and act on a trusted collaborator's decision: BUILD_LABEL or a comment (default off). */
27
27
  features: boolean;
28
28
  /** What each verdict does (default label for all three). */
29
29
  actions: Record<(typeof VERDICTS)[number], (typeof ACTIONS)[number]>;
@@ -1,7 +1,7 @@
1
1
  // `maintainer_repos`, the Maintainer's own repo list (issues only; PRs are Ship's): the compiled setting parsed once for github-mcp and the Maintainer page. Each entry's duties are opt-in.
2
2
  export const AGENT_FIX = "agent-fix";
3
- // Fixed feature-flow labels (not per-repo): a feature request awaiting the owner's word, and the owner's word that it may be built. Trust is a collaborator's role (maintainer.ts); the owner's login is an admin.
4
- export const FEATURE_LABEL = "feature-request";
3
+ // Fixed decision-flow labels (not per-repo): an issue asking for new or changed behaviour that waits on a trusted collaborator's decision, and that collaborator's word that it may be built as written. Trust is a collaborator's role (maintainer.ts); the owner's login is an admin.
4
+ export const DECISION_LABEL = "needs-decision";
5
5
  export const BUILD_LABEL = "agent-build";
6
6
  // Roles that may vouch for a label: fixed in code, never wider than write; a repo's `trusted` picks from it (default admin, maintain).
7
7
  export const TRUST_ROLES = ["admin", "maintain", "write"];
@@ -67,7 +67,7 @@ export function parseRepos(raw) {
67
67
  const fix_label = e.fix_label === undefined ? AGENT_FIX : String(e.fix_label);
68
68
  if (!/^[A-Za-z0-9][A-Za-z0-9 ._:-]{0,49}$/.test(fix_label))
69
69
  throw new Error(`${where}: fix_label must be 1-50 letters, digits, spaces or ._:-`);
70
- if ([...Object.values(VERDICT_LABELS), FEATURE_LABEL, BUILD_LABEL].includes(fix_label.toLowerCase()))
70
+ if ([...Object.values(VERDICT_LABELS), DECISION_LABEL, BUILD_LABEL].includes(fix_label.toLowerCase()))
71
71
  throw new Error(`${where}: fix_label ${fix_label} is a label the Maintainer uses for something else`);
72
72
  const trusted = e.trusted === undefined ? DEFAULT_TRUSTED : e.trusted;
73
73
  if (!Array.isArray(trusted) || !trusted.length || trusted.some((r) => !TRUST_ROLES.includes(r)))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aidenhq/sdk",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
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": {