@a5c-ai/extensions-adapter 6.0.1-staging.ffc4f312f8c0 → 6.0.2
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/binTemplates.d.ts +7 -0
- package/dist/binTemplates.d.ts.map +1 -0
- package/dist/binTemplates.js +292 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +299 -0
- package/dist/compiler.d.ts +15 -0
- package/dist/compiler.d.ts.map +1 -0
- package/dist/compiler.js +118 -0
- package/dist/diff.d.ts +9 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +183 -0
- package/dist/emit.d.ts +3 -0
- package/dist/emit.d.ts.map +1 -0
- package/dist/emit.js +42 -0
- package/dist/extension-adapter.d.ts +3 -0
- package/dist/extension-adapter.d.ts.map +1 -0
- package/dist/extension-adapter.js +4 -0
- package/dist/hookRegistration.d.ts +8 -0
- package/dist/hookRegistration.d.ts.map +1 -0
- package/dist/hookRegistration.js +9 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/init.d.ts +17 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/init.js +200 -0
- package/dist/installInstructions.d.ts +3 -0
- package/dist/installInstructions.d.ts.map +1 -0
- package/dist/installInstructions.js +150 -0
- package/dist/installSharedGenerator.d.ts +3 -0
- package/dist/installSharedGenerator.d.ts.map +1 -0
- package/dist/installSharedGenerator.js +229 -0
- package/dist/manifestGenerators.d.ts +10 -0
- package/dist/manifestGenerators.d.ts.map +1 -0
- package/dist/manifestGenerators.js +11 -0
- package/dist/marketplaceGenerator.d.ts +3 -0
- package/dist/marketplaceGenerator.d.ts.map +1 -0
- package/dist/marketplaceGenerator.js +47 -0
- package/dist/mcpConfig.d.ts +69 -0
- package/dist/mcpConfig.d.ts.map +1 -0
- package/dist/mcpConfig.js +115 -0
- package/dist/proxiedHookTemplates.d.ts +10 -0
- package/dist/proxiedHookTemplates.d.ts.map +1 -0
- package/dist/proxiedHookTemplates.js +123 -0
- package/dist/resolve.d.ts +3 -0
- package/dist/resolve.d.ts.map +1 -0
- package/dist/resolve.js +106 -0
- package/dist/schema.d.ts +231 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +340 -0
- package/dist/sdkConfig.d.ts +20 -0
- package/dist/sdkConfig.d.ts.map +1 -0
- package/dist/sdkConfig.js +41 -0
- package/dist/targets/adapters/antigravity.d.ts +33 -0
- package/dist/targets/adapters/antigravity.d.ts.map +1 -0
- package/dist/targets/adapters/antigravity.js +173 -0
- package/dist/targets/adapters/base.d.ts +11 -0
- package/dist/targets/adapters/base.d.ts.map +1 -0
- package/dist/targets/adapters/base.js +19 -0
- package/dist/targets/adapters/claude-code.d.ts +10 -0
- package/dist/targets/adapters/claude-code.d.ts.map +1 -0
- package/dist/targets/adapters/claude-code.js +87 -0
- package/dist/targets/adapters/codex.d.ts +14 -0
- package/dist/targets/adapters/codex.d.ts.map +1 -0
- package/dist/targets/adapters/codex.js +136 -0
- package/dist/targets/adapters/cursor.d.ts +10 -0
- package/dist/targets/adapters/cursor.d.ts.map +1 -0
- package/dist/targets/adapters/cursor.js +63 -0
- package/dist/targets/adapters/gemini.d.ts +10 -0
- package/dist/targets/adapters/gemini.d.ts.map +1 -0
- package/dist/targets/adapters/gemini.js +103 -0
- package/dist/targets/adapters/genty.d.ts +12 -0
- package/dist/targets/adapters/genty.d.ts.map +1 -0
- package/dist/targets/adapters/genty.js +94 -0
- package/dist/targets/adapters/github-copilot.d.ts +10 -0
- package/dist/targets/adapters/github-copilot.d.ts.map +1 -0
- package/dist/targets/adapters/github-copilot.js +66 -0
- package/dist/targets/adapters/hermes.d.ts +13 -0
- package/dist/targets/adapters/hermes.d.ts.map +1 -0
- package/dist/targets/adapters/hermes.js +99 -0
- package/dist/targets/adapters/hooks-utils.d.ts +12 -0
- package/dist/targets/adapters/hooks-utils.d.ts.map +1 -0
- package/dist/targets/adapters/hooks-utils.js +60 -0
- package/dist/targets/adapters/index.d.ts +31 -0
- package/dist/targets/adapters/index.d.ts.map +1 -0
- package/dist/targets/adapters/index.js +75 -0
- package/dist/targets/adapters/interface.d.ts +9 -0
- package/dist/targets/adapters/interface.d.ts.map +1 -0
- package/dist/targets/adapters/interface.js +2 -0
- package/dist/targets/adapters/oh-my-pi.d.ts +12 -0
- package/dist/targets/adapters/oh-my-pi.d.ts.map +1 -0
- package/dist/targets/adapters/oh-my-pi.js +97 -0
- package/dist/targets/adapters/openclaw.d.ts +15 -0
- package/dist/targets/adapters/openclaw.d.ts.map +1 -0
- package/dist/targets/adapters/openclaw.js +170 -0
- package/dist/targets/adapters/opencode.d.ts +11 -0
- package/dist/targets/adapters/opencode.d.ts.map +1 -0
- package/dist/targets/adapters/opencode.js +101 -0
- package/dist/targets/adapters/pi.d.ts +12 -0
- package/dist/targets/adapters/pi.d.ts.map +1 -0
- package/dist/targets/adapters/pi.js +98 -0
- package/dist/targets/index.d.ts +7 -0
- package/dist/targets/index.d.ts.map +1 -0
- package/dist/targets/index.js +79 -0
- package/dist/transform.d.ts +4 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/transform.js +301 -0
- package/dist/transformEmitters.d.ts +8 -0
- package/dist/transformEmitters.d.ts.map +1 -0
- package/dist/transformEmitters.js +350 -0
- package/dist/transformHelpers.d.ts +15 -0
- package/dist/transformHelpers.d.ts.map +1 -0
- package/dist/transformHelpers.js +246 -0
- package/dist/types.d.ts +214 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/utils.d.ts +42 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +187 -0
- package/dist/validate.d.ts +3 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/validate.js +188 -0
- package/dist/verify.d.ts +6 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +294 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxiedHookTemplates.d.ts","sourceRoot":"","sources":["../src/proxiedHookTemplates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAOhD,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAA;CAAE,EAC3I,aAAa,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,MAAM,EAAE,GACtB,MAAM,CAuGR"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// Programmatic extension templates for non-shell-hook targets (Pi, oh-my-pi, etc.)
|
|
2
|
+
function commandNameFromPath(cmdPath) {
|
|
3
|
+
const normalized = cmdPath.replace(/\\/g, '/');
|
|
4
|
+
return normalized.replace(/^.*\//, '').replace(/\.md$/, '');
|
|
5
|
+
}
|
|
6
|
+
export function generateProgrammaticExtension(manifest, targetProfile, commandPaths) {
|
|
7
|
+
const piPackage = targetProfile.packageMetadata?.peerDependencyPackage ?? null;
|
|
8
|
+
const pluginRootEnvVar = targetProfile.pluginRootEnvVarForExtension || 'PLUGIN_ROOT';
|
|
9
|
+
const commandNameSet = new Set();
|
|
10
|
+
const primaryName = manifest.name;
|
|
11
|
+
const excludeNames = new Set([primaryName]);
|
|
12
|
+
if (manifest.skills && Array.isArray(manifest.skills)) {
|
|
13
|
+
for (const skill of manifest.skills) {
|
|
14
|
+
if (!excludeNames.has(skill.name)) {
|
|
15
|
+
commandNameSet.add(skill.name);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (commandPaths) {
|
|
20
|
+
for (const cmdPath of commandPaths) {
|
|
21
|
+
const name = commandNameFromPath(cmdPath);
|
|
22
|
+
if (!excludeNames.has(name)) {
|
|
23
|
+
commandNameSet.add(name);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
const commandNames = Array.from(commandNameSet).sort();
|
|
28
|
+
let sessionStartCall = '';
|
|
29
|
+
if (manifest.hooks) {
|
|
30
|
+
const ssHandler = manifest.hooks.SessionStart;
|
|
31
|
+
if (typeof ssHandler === 'string' && ssHandler !== 'proxy') {
|
|
32
|
+
const jsBridge = ssHandler.replace(/^hooks\//, '').replace(/\.sh$/, '.js');
|
|
33
|
+
sessionStartCall = `\n runProxiedHook("${jsBridge}", {\n event: "session_start",\n cwd: process.cwd(),\n });`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (!piPackage) {
|
|
37
|
+
return `// Programmatic extension for ${targetProfile.displayName}
|
|
38
|
+
// Generated by extensions-adapter compiler
|
|
39
|
+
|
|
40
|
+
import { execSync } from "child_process";
|
|
41
|
+
import * as path from "path";
|
|
42
|
+
|
|
43
|
+
const PLUGIN_ROOT = path.resolve(__dirname, "..");
|
|
44
|
+
|
|
45
|
+
${generateRunProxiedHookFunction(pluginRootEnvVar)}
|
|
46
|
+
|
|
47
|
+
const COMMANDS = [
|
|
48
|
+
${commandNames.map((n) => `"${n}"`).join(', ')}
|
|
49
|
+
] as const;
|
|
50
|
+
|
|
51
|
+
export function activate(api: unknown): void {${sessionStartCall}
|
|
52
|
+
// Register commands via target-specific API
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
return `import type { ExtensionAPI } from "${piPackage}";
|
|
57
|
+
import { execSync } from "child_process";
|
|
58
|
+
import * as path from "path";
|
|
59
|
+
|
|
60
|
+
const PLUGIN_ROOT = path.resolve(__dirname, "..");
|
|
61
|
+
|
|
62
|
+
const COMMANDS = [
|
|
63
|
+
${commandNames.map((n) => `"${n}"`).join(', ')}
|
|
64
|
+
] as const;
|
|
65
|
+
|
|
66
|
+
function toSkillPrompt(name: string, args: string): string {
|
|
67
|
+
return \`/skill:\${name}\${args ? \` \${args}\` : ""}\`;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
${generateRunProxiedHookFunction(pluginRootEnvVar)}
|
|
71
|
+
|
|
72
|
+
export default function activate(pi: ExtensionAPI): void {${sessionStartCall}
|
|
73
|
+
|
|
74
|
+
const forwardPrimary = async (args: unknown) => {
|
|
75
|
+
pi.sendUserMessage(toSkillPrompt("${primaryName}", String(args ?? "").trim()));
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
pi.registerCommand("${primaryName}", {
|
|
79
|
+
description: "Load the ${primaryName} skill",
|
|
80
|
+
handler: forwardPrimary,
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
for (const name of COMMANDS) {
|
|
84
|
+
const forward = async (args: unknown) => {
|
|
85
|
+
pi.sendUserMessage(toSkillPrompt(name, String(args ?? "").trim()));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
pi.registerCommand(name, {
|
|
89
|
+
description: \`Open the \${name} skill\`,
|
|
90
|
+
handler: forward,
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
pi.registerCommand(\`${primaryName}:\${name}\`, {
|
|
94
|
+
description: \`Alias for /\${name}\`,
|
|
95
|
+
handler: forward,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
}
|
|
101
|
+
function generateRunProxiedHookFunction(pluginRootEnvVar) {
|
|
102
|
+
return `function runProxiedHook(
|
|
103
|
+
scriptName: string,
|
|
104
|
+
inputData?: Record<string, unknown>
|
|
105
|
+
): Record<string, unknown> {
|
|
106
|
+
const scriptPath = path.join(PLUGIN_ROOT, "hooks", scriptName);
|
|
107
|
+
try {
|
|
108
|
+
const result = execSync(\`node "\${scriptPath}"\`, {
|
|
109
|
+
input: inputData ? JSON.stringify(inputData) : undefined,
|
|
110
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
111
|
+
timeout: 30000,
|
|
112
|
+
env: {
|
|
113
|
+
...process.env,
|
|
114
|
+
${pluginRootEnvVar}: PLUGIN_ROOT,
|
|
115
|
+
CLAUDE_PLUGIN_ROOT: PLUGIN_ROOT,
|
|
116
|
+
},
|
|
117
|
+
});
|
|
118
|
+
return JSON.parse(result.toString("utf8").trim());
|
|
119
|
+
} catch {
|
|
120
|
+
return {};
|
|
121
|
+
}
|
|
122
|
+
}`;
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EAGd,MAAM,YAAY,CAAC;AAIpB,wBAAgB,OAAO,CACrB,QAAQ,EAAE,iBAAiB,EAC3B,UAAU,EAAE,MAAM,GACjB,aAAa,CAkHf"}
|
package/dist/resolve.js
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// Stage 2: RESOLVE - Load target profile and compute effective manifest
|
|
2
|
+
import { getAllTargets, getTargetProfile } from './targets/index.js';
|
|
3
|
+
import { deepMerge } from './utils.js';
|
|
4
|
+
export function resolve(manifest, targetName) {
|
|
5
|
+
const diagnostics = [];
|
|
6
|
+
// Load target profile
|
|
7
|
+
const targetProfile = getTargetProfile(targetName);
|
|
8
|
+
if (!targetProfile) {
|
|
9
|
+
diagnostics.push({
|
|
10
|
+
level: 'error',
|
|
11
|
+
category: 'compilation',
|
|
12
|
+
message: `Unknown target: ${targetName}`,
|
|
13
|
+
target: targetName,
|
|
14
|
+
suggestion: `Valid targets: ${getAllTargets().join(', ')}`,
|
|
15
|
+
});
|
|
16
|
+
// Return error result
|
|
17
|
+
return {
|
|
18
|
+
effectiveManifest: manifest,
|
|
19
|
+
targetProfile: {
|
|
20
|
+
name: targetName,
|
|
21
|
+
displayName: targetName,
|
|
22
|
+
adapterName: targetName,
|
|
23
|
+
pluginRootEnvVar: null,
|
|
24
|
+
supportedHooks: new Map(),
|
|
25
|
+
commandFormat: 'markdown',
|
|
26
|
+
skillHandling: 'native',
|
|
27
|
+
manifestFormat: 'plugin.json',
|
|
28
|
+
hookRegistrationFormat: null,
|
|
29
|
+
hookRegistrationOutputPath: null,
|
|
30
|
+
hookRegistrationAliasPaths: [],
|
|
31
|
+
harnessManifestPath: null,
|
|
32
|
+
requiredSurfaceFile: null,
|
|
33
|
+
scriptVariants: [],
|
|
34
|
+
npmPublishable: false,
|
|
35
|
+
adapterFamily: 'shell-hook',
|
|
36
|
+
distribution: 'marketplace',
|
|
37
|
+
componentSupport: { agents: 'unsupported', context: 'unsupported' },
|
|
38
|
+
},
|
|
39
|
+
componentSupport: {
|
|
40
|
+
hooks: {},
|
|
41
|
+
commands: 'unsupported',
|
|
42
|
+
skills: 'unsupported',
|
|
43
|
+
agents: 'unsupported',
|
|
44
|
+
context: 'unsupported',
|
|
45
|
+
},
|
|
46
|
+
diagnostics,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
// Apply target overrides
|
|
50
|
+
let effectiveManifest = { ...manifest };
|
|
51
|
+
if (manifest.targets && manifest.targets[targetName]) {
|
|
52
|
+
const override = manifest.targets[targetName];
|
|
53
|
+
const { extraFileSets: _extraFileSets, harnessInstallSurfaceExportSets: _harnessInstallSurfaceExportSets, ...mergeableOverride } = override;
|
|
54
|
+
// Deep merge handles the override, but TypeScript needs to know that
|
|
55
|
+
// the result may include extended fields like npmPackageName and
|
|
56
|
+
// the skills field may temporarily hold the 'derive-from-commands' directive.
|
|
57
|
+
// deepMerge returns Record<string, unknown>, so we cast through unknown
|
|
58
|
+
// back to A5cPluginManifest, as we know the merge preserves required fields.
|
|
59
|
+
effectiveManifest = deepMerge(effectiveManifest, mergeableOverride);
|
|
60
|
+
}
|
|
61
|
+
// Compute component support
|
|
62
|
+
const componentSupport = {
|
|
63
|
+
hooks: {},
|
|
64
|
+
commands: targetProfile.commandFormat === 'none' ? 'unsupported' : targetProfile.commandFormat === 'toml' ? 'toml' : 'native',
|
|
65
|
+
skills: targetProfile.skillHandling === 'native' ? 'native' : targetProfile.skillHandling === 'derived-from-commands' ? 'derived' : 'unsupported',
|
|
66
|
+
agents: targetProfile.componentSupport?.agents ?? 'unsupported',
|
|
67
|
+
context: targetProfile.componentSupport?.context ?? 'unsupported',
|
|
68
|
+
};
|
|
69
|
+
// Determine hook support for each canonical hook
|
|
70
|
+
if (effectiveManifest.hooks) {
|
|
71
|
+
for (const canonicalHook of Object.keys(effectiveManifest.hooks)) {
|
|
72
|
+
const nativeHook = targetProfile.supportedHooks.get(canonicalHook);
|
|
73
|
+
if (nativeHook) {
|
|
74
|
+
componentSupport.hooks[canonicalHook] = 'native';
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
componentSupport.hooks[canonicalHook] = 'unsupported';
|
|
78
|
+
diagnostics.push({
|
|
79
|
+
level: 'warning',
|
|
80
|
+
category: 'compatibility',
|
|
81
|
+
message: `Hook '${canonicalHook}' is not supported by target '${targetName}' — skipping`,
|
|
82
|
+
component: `hooks.${canonicalHook}`,
|
|
83
|
+
target: targetName,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
// Check for skill derivation directive
|
|
89
|
+
if (targetProfile.skillHandling === 'derived-from-commands') {
|
|
90
|
+
const skillsDirective = effectiveManifest.skills;
|
|
91
|
+
if (typeof skillsDirective === 'string' && skillsDirective === 'derive-from-commands') {
|
|
92
|
+
diagnostics.push({
|
|
93
|
+
level: 'info',
|
|
94
|
+
category: 'compilation',
|
|
95
|
+
message: `Target '${targetName}' will derive skills from commands`,
|
|
96
|
+
target: targetName,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
effectiveManifest,
|
|
102
|
+
targetProfile,
|
|
103
|
+
componentSupport,
|
|
104
|
+
diagnostics,
|
|
105
|
+
};
|
|
106
|
+
}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import type { Diagnostic } from './types.js';
|
|
2
|
+
export declare const A5C_PLUGIN_SCHEMA: {
|
|
3
|
+
$schema: string;
|
|
4
|
+
$id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
required: string[];
|
|
8
|
+
properties: {
|
|
9
|
+
name: {
|
|
10
|
+
type: string;
|
|
11
|
+
pattern: string;
|
|
12
|
+
};
|
|
13
|
+
version: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
description: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
author: {
|
|
20
|
+
oneOf: ({
|
|
21
|
+
type: string;
|
|
22
|
+
required?: undefined;
|
|
23
|
+
properties?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
type: string;
|
|
26
|
+
required: string[];
|
|
27
|
+
properties: {
|
|
28
|
+
name: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
email: {
|
|
32
|
+
type: string;
|
|
33
|
+
format: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
})[];
|
|
37
|
+
};
|
|
38
|
+
license: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
repository: {
|
|
42
|
+
type: string;
|
|
43
|
+
properties: {
|
|
44
|
+
type: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
url: {
|
|
48
|
+
type: string;
|
|
49
|
+
format: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
homepage: {
|
|
54
|
+
type: string;
|
|
55
|
+
format: string;
|
|
56
|
+
};
|
|
57
|
+
keywords: {
|
|
58
|
+
type: string;
|
|
59
|
+
items: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
hooks: {
|
|
64
|
+
type: string;
|
|
65
|
+
additionalProperties: {
|
|
66
|
+
type: string[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
commands: {
|
|
70
|
+
oneOf: ({
|
|
71
|
+
type: string;
|
|
72
|
+
items?: undefined;
|
|
73
|
+
} | {
|
|
74
|
+
type: string;
|
|
75
|
+
items: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
})[];
|
|
79
|
+
};
|
|
80
|
+
skills: {
|
|
81
|
+
type: string;
|
|
82
|
+
items: {
|
|
83
|
+
type: string;
|
|
84
|
+
required: string[];
|
|
85
|
+
properties: {
|
|
86
|
+
name: {
|
|
87
|
+
type: string;
|
|
88
|
+
};
|
|
89
|
+
file: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
agents: {
|
|
96
|
+
oneOf: ({
|
|
97
|
+
type: string;
|
|
98
|
+
items?: undefined;
|
|
99
|
+
} | {
|
|
100
|
+
type: string;
|
|
101
|
+
items: {
|
|
102
|
+
type: string;
|
|
103
|
+
};
|
|
104
|
+
})[];
|
|
105
|
+
};
|
|
106
|
+
contextFiles: {
|
|
107
|
+
type: string;
|
|
108
|
+
additionalProperties: {
|
|
109
|
+
type: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
extraFileSets: {
|
|
113
|
+
type: string;
|
|
114
|
+
additionalProperties: {
|
|
115
|
+
type: string;
|
|
116
|
+
additionalProperties: {
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
harnessInstallSurfaceExportSets: {
|
|
122
|
+
type: string;
|
|
123
|
+
additionalProperties: {
|
|
124
|
+
type: string;
|
|
125
|
+
items: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
targets: {
|
|
131
|
+
type: string;
|
|
132
|
+
additionalProperties: {
|
|
133
|
+
type: string;
|
|
134
|
+
properties: {
|
|
135
|
+
npmPackageName: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
type: {
|
|
139
|
+
type: string;
|
|
140
|
+
enum: string[];
|
|
141
|
+
};
|
|
142
|
+
skills: {
|
|
143
|
+
oneOf: ({
|
|
144
|
+
type: string;
|
|
145
|
+
enum: string[];
|
|
146
|
+
} | {
|
|
147
|
+
type: string;
|
|
148
|
+
enum?: undefined;
|
|
149
|
+
})[];
|
|
150
|
+
};
|
|
151
|
+
hooks: {
|
|
152
|
+
type: string;
|
|
153
|
+
additionalProperties: {
|
|
154
|
+
type: string[];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
extraFileSets: {
|
|
158
|
+
type: string;
|
|
159
|
+
items: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
extraFiles: {
|
|
164
|
+
type: string;
|
|
165
|
+
additionalProperties: {
|
|
166
|
+
type: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
templateVars: {
|
|
170
|
+
type: string;
|
|
171
|
+
additionalProperties: {
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
harnessInstallSurfaceExportSets: {
|
|
176
|
+
type: string;
|
|
177
|
+
items: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
additionalProperties: boolean;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
include: {
|
|
186
|
+
type: string;
|
|
187
|
+
items: {
|
|
188
|
+
type: string;
|
|
189
|
+
};
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
hookConfig: {
|
|
193
|
+
type: string;
|
|
194
|
+
properties: {
|
|
195
|
+
proxyAdapter: {
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
matchers: {
|
|
199
|
+
type: string;
|
|
200
|
+
additionalProperties: {
|
|
201
|
+
type: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
sdk: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
hookFilePattern: {
|
|
210
|
+
type: string;
|
|
211
|
+
};
|
|
212
|
+
postInstall: {
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
installSurface: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
installSurfaceExports: {
|
|
219
|
+
type: string;
|
|
220
|
+
items: {
|
|
221
|
+
type: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
additionalProperties: boolean;
|
|
226
|
+
};
|
|
227
|
+
export declare function validate(data: unknown): {
|
|
228
|
+
valid: boolean;
|
|
229
|
+
diagnostics: Diagnostic[];
|
|
230
|
+
};
|
|
231
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmI7B,CAAC;AAcF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,UAAU,EAAE,CAAA;CAAE,CAyMrF"}
|