@holdpoint/types 0.1.0-alpha.3 → 0.1.0-alpha.5
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/index.d.ts +46 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,18 @@ interface HoldpointConfig {
|
|
|
50
50
|
* Paths are repo-root-relative. Useful for injecting MASTER_PROMPT.md, AGENT_CONTEXT.md, etc.
|
|
51
51
|
*/
|
|
52
52
|
session_context_files?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Per-engine overrides. Values here win over engine defaults — useful when the
|
|
55
|
+
* project IS the holdpoint repo and should invoke the local CLI instead of npx.
|
|
56
|
+
*/
|
|
57
|
+
engines?: {
|
|
58
|
+
claude?: {
|
|
59
|
+
stop_command?: string;
|
|
60
|
+
};
|
|
61
|
+
codex?: {
|
|
62
|
+
stop_command?: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
53
65
|
}
|
|
54
66
|
type CheckStatus = "pass" | "fail" | "skip" | "pending";
|
|
55
67
|
interface CheckResult {
|
|
@@ -72,19 +84,40 @@ interface ValidationResult {
|
|
|
72
84
|
}
|
|
73
85
|
type AgentType = "copilot" | "claude" | "cursor" | "codex" | "unknown";
|
|
74
86
|
type StackType = "typescript" | "python" | "go" | "nextjs" | "fullstack" | "unknown";
|
|
75
|
-
|
|
76
|
-
interface
|
|
77
|
-
|
|
78
|
-
kind: NodeKind;
|
|
87
|
+
/** Result of a single check within a run (cmd or prompt). */
|
|
88
|
+
interface CheckRunResult {
|
|
89
|
+
id: string;
|
|
79
90
|
label: string;
|
|
80
|
-
/**
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
/** "cmd" for automated checks, "prompt" for manual agent checks */
|
|
92
|
+
kind: "cmd" | "prompt";
|
|
93
|
+
/** "pass" | "fail" | "skip" for cmd checks; "shown" for prompt checks displayed to agent */
|
|
94
|
+
status: "pass" | "fail" | "skip" | "shown";
|
|
95
|
+
output?: string;
|
|
96
|
+
exitCode?: number;
|
|
97
|
+
skipReason?: string;
|
|
98
|
+
}
|
|
99
|
+
/** A single holdpoint check run recorded after `holdpoint check` completes. */
|
|
100
|
+
interface CheckRun {
|
|
101
|
+
/** Full HEAD commit SHA, or null if not in a git repo / no commits. */
|
|
102
|
+
sha: string | null;
|
|
103
|
+
/** First 8 chars of sha, or null. */
|
|
104
|
+
shortSha: string | null;
|
|
105
|
+
/** ISO 8601 timestamp. */
|
|
106
|
+
timestamp: string;
|
|
107
|
+
/** Changed files used for trigger matching. Empty array means "all checks ran". */
|
|
108
|
+
files: string[];
|
|
109
|
+
results: CheckRunResult[];
|
|
110
|
+
summary: {
|
|
111
|
+
passed: number;
|
|
112
|
+
failed: number;
|
|
113
|
+
skipped: number;
|
|
114
|
+
shown: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/** Contents of `.holdpoint/check-reports.json` — list of recent check runs. */
|
|
118
|
+
interface CheckReports {
|
|
119
|
+
/** Runs ordered newest-first. Capped at 50 entries. */
|
|
120
|
+
runs: CheckRun[];
|
|
88
121
|
}
|
|
89
122
|
|
|
90
|
-
export type { AgentType,
|
|
123
|
+
export type { AgentType, CheckDef, CheckReports, CheckResult, CheckRun, CheckRunResult, CheckStatus, ConditionDef, ConditionOperator, HoldpointConfig, HoldpointContext, HookEvent, StackType, ValidationError, ValidationResult, WhenScope };
|