@vibe-engineer/adapter-pi 0.1.0 → 0.2.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/dist/capabilities/index.d.ts +180 -2
- package/dist/capabilities/index.js +30 -2
- package/dist/chunk-BUGDS7N5.js +1591 -0
- package/dist/{chunk-PJHJYGIJ.js → chunk-IEE5KD5L.js} +371 -207
- package/dist/{chunk-VXZJPOEE.js → chunk-QEXU5LD2.js} +692 -119
- package/dist/create-consumption/index.js +3 -3
- package/dist/generated-file-manifest/index.js +3 -3
- package/dist/schema/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-RC3EILIE.js +0 -243
|
@@ -1,4 +1,182 @@
|
|
|
1
|
-
import { AdapterCapabilityMatrix, AdapterCapability, ValidationResult } from '../schema/index.js';
|
|
1
|
+
import { EvidenceRecord, AdapterCapabilityMatrix, AdapterCapability, ValidationResult } from '../schema/index.js';
|
|
2
|
+
|
|
3
|
+
declare const HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION: "vibe-harness-adapter-contract/v1";
|
|
4
|
+
declare const HARNESS_GENERATED_FILE_MANIFEST_SCHEMA_VERSION: "vibe-harness-generated-file-manifest/v1";
|
|
5
|
+
declare const HARNESS_ADAPTER_REGISTRY_SCHEMA_VERSION: "vibe-harness-adapter-registry/v1";
|
|
6
|
+
declare const SUPPORTED_HARNESS_ADAPTER_IDS: readonly ["pi", "claude-code", "codex"];
|
|
7
|
+
type HarnessAdapterId = (typeof SUPPORTED_HARNESS_ADAPTER_IDS)[number];
|
|
8
|
+
type HarnessCapabilitySupport = "ready" | "blocked" | "unsupported" | "pending-live";
|
|
9
|
+
type HarnessUnsupportedFeaturePolicy = "block";
|
|
10
|
+
type HarnessContextFile = "AGENTS.md" | "CLAUDE.md";
|
|
11
|
+
type HarnessContractSurfaceId = "contextFiles" | "nativeSkills" | "nativeCommands" | "promptTemplates" | "hooks" | "plugins" | "mcp" | "agents" | "planMode" | "invocation" | "structuredOutput" | "verificationRunner" | "securityTrustPolicy";
|
|
12
|
+
interface HarnessEvidenceRef {
|
|
13
|
+
readonly path: string;
|
|
14
|
+
readonly description: string;
|
|
15
|
+
}
|
|
16
|
+
interface HarnessCapabilityDeclaration {
|
|
17
|
+
readonly support: HarnessCapabilitySupport;
|
|
18
|
+
readonly evidence: EvidenceRecord;
|
|
19
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
20
|
+
readonly summary: string;
|
|
21
|
+
readonly downstreamConsequence: string;
|
|
22
|
+
}
|
|
23
|
+
interface HarnessCapabilityMatrix {
|
|
24
|
+
readonly schemaVersion: typeof HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION;
|
|
25
|
+
readonly adapterId: HarnessAdapterId;
|
|
26
|
+
readonly displayName: string;
|
|
27
|
+
readonly capabilities: Record<HarnessContractSurfaceId, HarnessCapabilityDeclaration>;
|
|
28
|
+
}
|
|
29
|
+
interface HarnessGeneratedFileFamily {
|
|
30
|
+
readonly familyId: string;
|
|
31
|
+
readonly pathPatterns: readonly string[];
|
|
32
|
+
readonly support: HarnessCapabilitySupport;
|
|
33
|
+
readonly producedByLane: "I-15A-create-import-cli-ux-selected-harness" | "future-adapter-lane";
|
|
34
|
+
readonly writer: "writeGeneratedArtifacts" | "writePiHarnessAssets" | "future-runner" | "none";
|
|
35
|
+
readonly reason: string;
|
|
36
|
+
readonly evidence: EvidenceRecord;
|
|
37
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
38
|
+
readonly noFallbackToPi: true;
|
|
39
|
+
}
|
|
40
|
+
interface HarnessGeneratedFileManifest {
|
|
41
|
+
readonly schemaVersion: typeof HARNESS_GENERATED_FILE_MANIFEST_SCHEMA_VERSION;
|
|
42
|
+
readonly adapterId: HarnessAdapterId;
|
|
43
|
+
readonly adapterCapabilityVersion: typeof HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION;
|
|
44
|
+
readonly families: readonly HarnessGeneratedFileFamily[];
|
|
45
|
+
readonly noFallbackToPi: true;
|
|
46
|
+
}
|
|
47
|
+
interface HarnessAssetWriterPlan {
|
|
48
|
+
readonly strategy: "pi-native-assets-and-context" | "claude-native-assets-and-context" | "codex-native-assets-and-context";
|
|
49
|
+
readonly contextFiles: readonly HarnessContextFile[];
|
|
50
|
+
readonly nativeAssetFamilies: readonly string[];
|
|
51
|
+
readonly blockedAssetFamilies: readonly string[];
|
|
52
|
+
readonly unsupportedFeaturePolicy: HarnessUnsupportedFeaturePolicy;
|
|
53
|
+
readonly noFallbackToPi: true;
|
|
54
|
+
}
|
|
55
|
+
interface HarnessInvocationModel {
|
|
56
|
+
readonly support: HarnessCapabilitySupport;
|
|
57
|
+
readonly binary: "pi" | "claude" | "codex";
|
|
58
|
+
readonly nonInteractiveCommand: readonly string[];
|
|
59
|
+
readonly interactiveCommand: readonly string[];
|
|
60
|
+
readonly projectRootFlag: string | null;
|
|
61
|
+
readonly requiresGitRepository: boolean;
|
|
62
|
+
readonly missingRuntimeDiagnostic: string;
|
|
63
|
+
readonly evidence: EvidenceRecord;
|
|
64
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
65
|
+
}
|
|
66
|
+
interface HarnessStructuredOutputStrategy {
|
|
67
|
+
readonly support: HarnessCapabilitySupport;
|
|
68
|
+
readonly strategy: "json-event-parse-and-adapter-validation" | "native-json-schema" | "native-output-schema";
|
|
69
|
+
readonly schemaFlag: string | null;
|
|
70
|
+
readonly finalMessageCarrier: string;
|
|
71
|
+
readonly failClosedWhenMissing: true;
|
|
72
|
+
readonly evidence: EvidenceRecord;
|
|
73
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
74
|
+
}
|
|
75
|
+
interface HarnessVerificationRunnerInvocation {
|
|
76
|
+
readonly support: HarnessCapabilitySupport;
|
|
77
|
+
readonly recommendedCommand: readonly string[];
|
|
78
|
+
readonly defaultPermissionMode: string;
|
|
79
|
+
readonly expectedStructuredOutput: HarnessStructuredOutputStrategy["strategy"];
|
|
80
|
+
readonly unavailableRuntimeBehavior: "blocked-missing-prerequisite";
|
|
81
|
+
readonly evidence: EvidenceRecord;
|
|
82
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
83
|
+
}
|
|
84
|
+
interface HarnessSecurityTrustPolicy {
|
|
85
|
+
readonly support: HarnessCapabilitySupport;
|
|
86
|
+
readonly projectTrustRequired: boolean;
|
|
87
|
+
readonly projectContextAutoload: readonly HarnessContextFile[];
|
|
88
|
+
readonly sandbox: string;
|
|
89
|
+
readonly permissionModel: string;
|
|
90
|
+
readonly credentials: "no-credentials-required" | "operator-auth-required";
|
|
91
|
+
readonly destructiveOperations: "forbidden" | "approval-required";
|
|
92
|
+
readonly externalIntegrations: "disabled-by-default" | "unknown-blocked";
|
|
93
|
+
readonly trustBoundary: string;
|
|
94
|
+
readonly evidence: EvidenceRecord;
|
|
95
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
96
|
+
}
|
|
97
|
+
interface HarnessUnsupportedFeatureBehavior {
|
|
98
|
+
readonly policy: HarnessUnsupportedFeaturePolicy;
|
|
99
|
+
readonly diagnosticCode: "UNSUPPORTED_HARNESS_FEATURE";
|
|
100
|
+
readonly message: string;
|
|
101
|
+
readonly blockedFamilies: readonly string[];
|
|
102
|
+
}
|
|
103
|
+
interface HarnessWitnessPlan {
|
|
104
|
+
readonly configWitnesses: readonly string[];
|
|
105
|
+
readonly createWitnesses: readonly string[];
|
|
106
|
+
readonly importWitnesses: readonly string[];
|
|
107
|
+
readonly negativeWitnesses: readonly string[];
|
|
108
|
+
readonly liveRuntimeWitness: "not-run" | "pending-live";
|
|
109
|
+
}
|
|
110
|
+
type HarnessHandoffStepId = "task" | "plan" | "build" | "ship";
|
|
111
|
+
interface HarnessHandoffInstruction {
|
|
112
|
+
readonly stepId: HarnessHandoffStepId;
|
|
113
|
+
readonly inputArtifact: string;
|
|
114
|
+
readonly outputArtifact: string;
|
|
115
|
+
readonly nativeCommand: string | null;
|
|
116
|
+
readonly promptInstruction: string;
|
|
117
|
+
readonly persistenceRule: string;
|
|
118
|
+
readonly handoffRule: string;
|
|
119
|
+
readonly unsupportedNativeAssetNote: string | null;
|
|
120
|
+
}
|
|
121
|
+
interface HarnessRuntimePrerequisiteDiagnostic {
|
|
122
|
+
readonly diagnosticCode: "HARNESS_RUNTIME_UNAVAILABLE";
|
|
123
|
+
readonly classification: "missing_prerequisite";
|
|
124
|
+
readonly binary: HarnessInvocationModel["binary"];
|
|
125
|
+
readonly versionCommand: readonly string[];
|
|
126
|
+
readonly authPrerequisite: string;
|
|
127
|
+
readonly liveProbePolicy: "not-run-by-create-import";
|
|
128
|
+
readonly unavailableRuntimeBehavior: HarnessVerificationRunnerInvocation["unavailableRuntimeBehavior"];
|
|
129
|
+
readonly message: string;
|
|
130
|
+
readonly missingBinaryMessage: string;
|
|
131
|
+
readonly missingAuthMessage: string;
|
|
132
|
+
readonly noFallbackToPi: true;
|
|
133
|
+
}
|
|
134
|
+
type HarnessRendererExtensionPointId = "renderPiSkill" | "renderClaudeCodeSkillOrCommand" | "renderCodexSkillOrCommand";
|
|
135
|
+
interface HarnessRendererExtensionPoint {
|
|
136
|
+
readonly rendererId: HarnessRendererExtensionPointId;
|
|
137
|
+
readonly adapterId: HarnessAdapterId;
|
|
138
|
+
readonly support: HarnessCapabilitySupport;
|
|
139
|
+
readonly outputKind: "pi-skill" | "claude-code-skill-or-command" | "codex-skill-or-command";
|
|
140
|
+
readonly generatedAssetFamilies: readonly string[];
|
|
141
|
+
readonly blockedAssetFamilies: readonly string[];
|
|
142
|
+
readonly summary: string;
|
|
143
|
+
readonly implementationBoundary: string;
|
|
144
|
+
readonly noFallbackToPi: true;
|
|
145
|
+
readonly evidence: EvidenceRecord;
|
|
146
|
+
readonly evidenceRefs: readonly HarnessEvidenceRef[];
|
|
147
|
+
}
|
|
148
|
+
interface HarnessAdapter {
|
|
149
|
+
readonly id: HarnessAdapterId;
|
|
150
|
+
readonly displayName: string;
|
|
151
|
+
readonly capabilityMatrix: HarnessCapabilityMatrix;
|
|
152
|
+
readonly generatedFileManifest: HarnessGeneratedFileManifest;
|
|
153
|
+
readonly assetWriter: HarnessAssetWriterPlan;
|
|
154
|
+
readonly invocationModel: HarnessInvocationModel;
|
|
155
|
+
readonly structuredOutput: HarnessStructuredOutputStrategy;
|
|
156
|
+
readonly verificationRunnerInvocation: HarnessVerificationRunnerInvocation;
|
|
157
|
+
readonly securityTrustPolicy: HarnessSecurityTrustPolicy;
|
|
158
|
+
readonly rendererExtensionPoints: readonly HarnessRendererExtensionPoint[];
|
|
159
|
+
readonly unsupportedFeatureBehavior: HarnessUnsupportedFeatureBehavior;
|
|
160
|
+
readonly handoffInstructions: readonly HarnessHandoffInstruction[];
|
|
161
|
+
readonly runtimePrerequisiteDiagnostic: HarnessRuntimePrerequisiteDiagnostic;
|
|
162
|
+
readonly witnessPlan: HarnessWitnessPlan;
|
|
163
|
+
readonly createImportSelectable: true;
|
|
164
|
+
}
|
|
165
|
+
declare const HARNESS_RENDERER_EXTENSION_POINTS: readonly [HarnessRendererExtensionPoint, HarnessRendererExtensionPoint, HarnessRendererExtensionPoint];
|
|
166
|
+
declare const renderPiSkill: () => HarnessRendererExtensionPoint;
|
|
167
|
+
declare const renderClaudeCodeSkillOrCommand: () => HarnessRendererExtensionPoint;
|
|
168
|
+
declare const renderCodexSkillOrCommand: () => HarnessRendererExtensionPoint;
|
|
169
|
+
declare const HARNESS_ADAPTERS: readonly [HarnessAdapter, HarnessAdapter, HarnessAdapter];
|
|
170
|
+
declare const HARNESS_ADAPTER_REGISTRY: {
|
|
171
|
+
readonly schemaVersion: "vibe-harness-adapter-registry/v1";
|
|
172
|
+
readonly supportedAdapterIds: readonly ["pi", "claude-code", "codex"];
|
|
173
|
+
readonly adapters: readonly [HarnessAdapter, HarnessAdapter, HarnessAdapter];
|
|
174
|
+
readonly rendererExtensionPoints: readonly [HarnessRendererExtensionPoint, HarnessRendererExtensionPoint, HarnessRendererExtensionPoint];
|
|
175
|
+
};
|
|
176
|
+
declare const isSupportedHarnessAdapterId: (value: string) => value is HarnessAdapterId;
|
|
177
|
+
declare const getHarnessAdapter: (adapterId: string) => HarnessAdapter | undefined;
|
|
178
|
+
declare const listHarnessAdapters: () => readonly HarnessAdapter[];
|
|
179
|
+
declare const getHarnessAdapterRegistry: () => typeof HARNESS_ADAPTER_REGISTRY;
|
|
2
180
|
|
|
3
181
|
declare const PI_ADAPTER_ID: "pi";
|
|
4
182
|
declare const PI_ADAPTER_CAPABILITY_SCHEMA_VERSION: "pi-adapter-capability-matrix/v1";
|
|
@@ -9,4 +187,4 @@ declare const validatePiAdapterCapabilityMatrix: (value: unknown) => ValidationR
|
|
|
9
187
|
declare const getAdapterCapabilityById: (matrix: AdapterCapabilityMatrix, adapterId: string) => AdapterCapability | undefined;
|
|
10
188
|
declare const isAdapterManifestSelectable: (matrix: AdapterCapabilityMatrix, adapterId: string) => boolean;
|
|
11
189
|
|
|
12
|
-
export { PI_ADAPTER_CAPABILITY_MATRIX, PI_ADAPTER_CAPABILITY_SCHEMA_VERSION, PI_ADAPTER_ID, VIBE_ENGINEER_SKILLS, getAdapterCapabilityById, getPiAdapterCapabilityMatrix, isAdapterManifestSelectable, validatePiAdapterCapabilityMatrix };
|
|
190
|
+
export { HARNESS_ADAPTERS, HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION, HARNESS_ADAPTER_REGISTRY, HARNESS_ADAPTER_REGISTRY_SCHEMA_VERSION, HARNESS_GENERATED_FILE_MANIFEST_SCHEMA_VERSION, HARNESS_RENDERER_EXTENSION_POINTS, type HarnessAdapter, type HarnessAdapterId, type HarnessAssetWriterPlan, type HarnessCapabilityDeclaration, type HarnessCapabilityMatrix, type HarnessCapabilitySupport, type HarnessContextFile, type HarnessContractSurfaceId, type HarnessEvidenceRef, type HarnessGeneratedFileFamily, type HarnessGeneratedFileManifest, type HarnessHandoffInstruction, type HarnessHandoffStepId, type HarnessInvocationModel, type HarnessRendererExtensionPoint, type HarnessRendererExtensionPointId, type HarnessRuntimePrerequisiteDiagnostic, type HarnessSecurityTrustPolicy, type HarnessStructuredOutputStrategy, type HarnessUnsupportedFeatureBehavior, type HarnessUnsupportedFeaturePolicy, type HarnessVerificationRunnerInvocation, type HarnessWitnessPlan, PI_ADAPTER_CAPABILITY_MATRIX, PI_ADAPTER_CAPABILITY_SCHEMA_VERSION, PI_ADAPTER_ID, SUPPORTED_HARNESS_ADAPTER_IDS, VIBE_ENGINEER_SKILLS, getAdapterCapabilityById, getHarnessAdapter, getHarnessAdapterRegistry, getPiAdapterCapabilityMatrix, isAdapterManifestSelectable, isSupportedHarnessAdapterId, listHarnessAdapters, renderClaudeCodeSkillOrCommand, renderCodexSkillOrCommand, renderPiSkill, validatePiAdapterCapabilityMatrix };
|
|
@@ -1,21 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
+
HARNESS_ADAPTERS,
|
|
3
|
+
HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION,
|
|
4
|
+
HARNESS_ADAPTER_REGISTRY,
|
|
5
|
+
HARNESS_ADAPTER_REGISTRY_SCHEMA_VERSION,
|
|
6
|
+
HARNESS_GENERATED_FILE_MANIFEST_SCHEMA_VERSION,
|
|
7
|
+
HARNESS_RENDERER_EXTENSION_POINTS,
|
|
2
8
|
PI_ADAPTER_CAPABILITY_MATRIX,
|
|
3
9
|
PI_ADAPTER_CAPABILITY_SCHEMA_VERSION,
|
|
4
10
|
PI_ADAPTER_ID,
|
|
11
|
+
SUPPORTED_HARNESS_ADAPTER_IDS,
|
|
5
12
|
VIBE_ENGINEER_SKILLS,
|
|
6
13
|
getAdapterCapabilityById,
|
|
14
|
+
getHarnessAdapter,
|
|
15
|
+
getHarnessAdapterRegistry,
|
|
7
16
|
getPiAdapterCapabilityMatrix,
|
|
8
17
|
isAdapterManifestSelectable,
|
|
18
|
+
isSupportedHarnessAdapterId,
|
|
19
|
+
listHarnessAdapters,
|
|
20
|
+
renderClaudeCodeSkillOrCommand,
|
|
21
|
+
renderCodexSkillOrCommand,
|
|
22
|
+
renderPiSkill,
|
|
9
23
|
validatePiAdapterCapabilityMatrix
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
24
|
+
} from "../chunk-BUGDS7N5.js";
|
|
25
|
+
import "../chunk-QEXU5LD2.js";
|
|
12
26
|
export {
|
|
27
|
+
HARNESS_ADAPTERS,
|
|
28
|
+
HARNESS_ADAPTER_CONTRACT_SCHEMA_VERSION,
|
|
29
|
+
HARNESS_ADAPTER_REGISTRY,
|
|
30
|
+
HARNESS_ADAPTER_REGISTRY_SCHEMA_VERSION,
|
|
31
|
+
HARNESS_GENERATED_FILE_MANIFEST_SCHEMA_VERSION,
|
|
32
|
+
HARNESS_RENDERER_EXTENSION_POINTS,
|
|
13
33
|
PI_ADAPTER_CAPABILITY_MATRIX,
|
|
14
34
|
PI_ADAPTER_CAPABILITY_SCHEMA_VERSION,
|
|
15
35
|
PI_ADAPTER_ID,
|
|
36
|
+
SUPPORTED_HARNESS_ADAPTER_IDS,
|
|
16
37
|
VIBE_ENGINEER_SKILLS,
|
|
17
38
|
getAdapterCapabilityById,
|
|
39
|
+
getHarnessAdapter,
|
|
40
|
+
getHarnessAdapterRegistry,
|
|
18
41
|
getPiAdapterCapabilityMatrix,
|
|
19
42
|
isAdapterManifestSelectable,
|
|
43
|
+
isSupportedHarnessAdapterId,
|
|
44
|
+
listHarnessAdapters,
|
|
45
|
+
renderClaudeCodeSkillOrCommand,
|
|
46
|
+
renderCodexSkillOrCommand,
|
|
47
|
+
renderPiSkill,
|
|
20
48
|
validatePiAdapterCapabilityMatrix
|
|
21
49
|
};
|