@inupedia/spotlight-client 0.2.12 → 0.2.14
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/node/capabilities/canonicalJson.d.ts +7 -0
- package/dist/node/capabilities/canonicalJson.d.ts.map +1 -0
- package/dist/node/capabilities/canonicalJson.js +122 -0
- package/dist/node/capabilities/capabilityArtifact.d.ts +13 -0
- package/dist/node/capabilities/capabilityArtifact.d.ts.map +1 -0
- package/dist/node/capabilities/capabilityArtifact.js +31 -0
- package/dist/node/capabilities/capabilityArtifactError.d.ts +7 -0
- package/dist/node/capabilities/capabilityArtifactError.d.ts.map +1 -0
- package/dist/node/capabilities/capabilityArtifactError.js +19 -0
- package/dist/node/capabilities/capabilityArtifactTypes.d.ts +32 -0
- package/dist/node/capabilities/capabilityArtifactTypes.d.ts.map +1 -0
- package/dist/node/capabilities/capabilityArtifactTypes.js +1 -0
- package/dist/node/capabilities/capabilityFileMap.d.ts +17 -0
- package/dist/node/capabilities/capabilityFileMap.d.ts.map +1 -0
- package/dist/node/capabilities/capabilityFileMap.js +235 -0
- package/dist/node/capabilities/deterministicGzip.d.ts +2 -0
- package/dist/node/capabilities/deterministicGzip.d.ts.map +1 -0
- package/dist/node/capabilities/deterministicGzip.js +51 -0
- package/dist/node/capabilities/deterministicTar.d.ts +6 -0
- package/dist/node/capabilities/deterministicTar.d.ts.map +1 -0
- package/dist/node/capabilities/deterministicTar.js +137 -0
- package/dist/node/capabilities/skillDirectoryLoader.d.ts +24 -0
- package/dist/node/capabilities/skillDirectoryLoader.d.ts.map +1 -0
- package/dist/node/capabilities/skillDirectoryLoader.js +308 -0
- package/dist/node/capabilities/skillFileValidator.d.ts +8 -0
- package/dist/node/capabilities/skillFileValidator.d.ts.map +1 -1
- package/dist/node/capabilities/skillFileValidator.js +46 -26
- package/dist/node/capabilities/toolManifest.d.ts +12 -0
- package/dist/node/capabilities/toolManifest.d.ts.map +1 -0
- package/dist/node/capabilities/toolManifest.js +111 -0
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +6 -0
- package/dist/vite/capabilityBuild.d.ts +9 -0
- package/dist/vite/capabilityBuild.d.ts.map +1 -0
- package/dist/vite/capabilityBuild.js +141 -0
- package/dist/vite/capabilityBuildTypes.d.ts +29 -0
- package/dist/vite/capabilityBuildTypes.d.ts.map +1 -0
- package/dist/vite/capabilityBuildTypes.js +1 -0
- package/dist/vite/capabilityDevMiddleware.d.ts +5 -0
- package/dist/vite/capabilityDevMiddleware.d.ts.map +1 -0
- package/dist/vite/capabilityDevMiddleware.js +40 -0
- package/dist/vite/capabilityVirtualModule.d.ts +11 -0
- package/dist/vite/capabilityVirtualModule.d.ts.map +1 -0
- package/dist/vite/capabilityVirtualModule.js +43 -0
- package/dist/vite/capabilityVirtualModuleTypes.d.ts +12 -0
- package/dist/vite/capabilityVirtualModuleTypes.d.ts.map +1 -0
- package/dist/vite/capabilityVirtualModuleTypes.js +1 -0
- package/dist/vite/index.d.ts +4 -0
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +3 -0
- package/dist/vite/spotlightCapabilities.d.ts +4 -0
- package/dist/vite/spotlightCapabilities.d.ts.map +1 -0
- package/dist/vite/spotlightCapabilities.js +165 -0
- package/package.json +8 -6
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { isProxy } from "node:util/types";
|
|
3
|
+
import { canonicalizeJson, compareUtf16 } from "./canonicalJson.js";
|
|
4
|
+
import { CapabilityArtifactError } from "./capabilityArtifactError.js";
|
|
5
|
+
const TOOL_FIELDS = new Set([
|
|
6
|
+
"name",
|
|
7
|
+
"version",
|
|
8
|
+
"description",
|
|
9
|
+
"inputSchema",
|
|
10
|
+
"outputSchema",
|
|
11
|
+
"maxOutputBytes",
|
|
12
|
+
"sideEffect",
|
|
13
|
+
"replayPolicy",
|
|
14
|
+
"riskLevel",
|
|
15
|
+
"requiresConfirmation",
|
|
16
|
+
]);
|
|
17
|
+
const SIDE_EFFECTS = new Set(["none", "ui", "external"]);
|
|
18
|
+
const REPLAY_POLICIES = new Set(["safe", "idempotency-key", "never"]);
|
|
19
|
+
const RISK_LEVELS = new Set(["low", "medium", "high"]);
|
|
20
|
+
function sha256(bytes) {
|
|
21
|
+
return `sha256:${createHash("sha256").update(bytes).digest("hex")}`;
|
|
22
|
+
}
|
|
23
|
+
function compareTools(left, right) {
|
|
24
|
+
return compareUtf16(left.name, right.name) || compareUtf16(left.version, right.version);
|
|
25
|
+
}
|
|
26
|
+
function invalidTool(message) {
|
|
27
|
+
throw new CapabilityArtifactError("ARTIFACT_TOOL_INVALID", message);
|
|
28
|
+
}
|
|
29
|
+
function isPlainObject(value) {
|
|
30
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
const prototype = Object.getPrototypeOf(value);
|
|
34
|
+
return prototype === Object.prototype || prototype === null;
|
|
35
|
+
}
|
|
36
|
+
function validateToolDescriptor(value) {
|
|
37
|
+
canonicalizeJson(value);
|
|
38
|
+
if (!isPlainObject(value)) {
|
|
39
|
+
invalidTool("Tool descriptor must be a plain JSON object");
|
|
40
|
+
}
|
|
41
|
+
const unknownFields = Object.keys(value)
|
|
42
|
+
.filter((field) => !TOOL_FIELDS.has(field))
|
|
43
|
+
.sort(compareUtf16);
|
|
44
|
+
if (unknownFields.length > 0) {
|
|
45
|
+
invalidTool(`Unknown Tool descriptor fields: ${unknownFields.join(", ")}`);
|
|
46
|
+
}
|
|
47
|
+
const tool = value;
|
|
48
|
+
if (typeof tool.name !== "string" || tool.name.trim().length === 0) {
|
|
49
|
+
invalidTool("Tool name must be a non-empty string");
|
|
50
|
+
}
|
|
51
|
+
if (typeof tool.version !== "string" || tool.version.trim().length === 0) {
|
|
52
|
+
invalidTool(`Tool ${tool.name} version must be a non-empty string`);
|
|
53
|
+
}
|
|
54
|
+
if (typeof tool.description !== "string" ||
|
|
55
|
+
tool.description.trim().length === 0) {
|
|
56
|
+
invalidTool(`Tool ${tool.name} description must be a non-empty string`);
|
|
57
|
+
}
|
|
58
|
+
if (!isPlainObject(tool.inputSchema)) {
|
|
59
|
+
invalidTool(`Tool ${tool.name} inputSchema must be a JSON object`);
|
|
60
|
+
}
|
|
61
|
+
if (tool.outputSchema !== undefined && !isPlainObject(tool.outputSchema)) {
|
|
62
|
+
invalidTool(`Tool ${tool.name} outputSchema must be a JSON object`);
|
|
63
|
+
}
|
|
64
|
+
if (tool.maxOutputBytes !== undefined &&
|
|
65
|
+
(!Number.isSafeInteger(tool.maxOutputBytes) || tool.maxOutputBytes <= 0)) {
|
|
66
|
+
invalidTool(`Tool ${tool.name} maxOutputBytes must be a positive safe integer`);
|
|
67
|
+
}
|
|
68
|
+
if (typeof tool.sideEffect !== "string" || !SIDE_EFFECTS.has(tool.sideEffect)) {
|
|
69
|
+
invalidTool(`Tool ${tool.name} has an invalid sideEffect`);
|
|
70
|
+
}
|
|
71
|
+
if (typeof tool.replayPolicy !== "string" ||
|
|
72
|
+
!REPLAY_POLICIES.has(tool.replayPolicy)) {
|
|
73
|
+
invalidTool(`Tool ${tool.name} has an invalid replayPolicy`);
|
|
74
|
+
}
|
|
75
|
+
if (tool.riskLevel !== undefined &&
|
|
76
|
+
(typeof tool.riskLevel !== "string" || !RISK_LEVELS.has(tool.riskLevel))) {
|
|
77
|
+
invalidTool(`Tool ${tool.name} has an invalid riskLevel`);
|
|
78
|
+
}
|
|
79
|
+
if (tool.requiresConfirmation !== undefined &&
|
|
80
|
+
typeof tool.requiresConfirmation !== "boolean") {
|
|
81
|
+
invalidTool(`Tool ${tool.name} requiresConfirmation must be boolean`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export function buildToolManifestV1(tools) {
|
|
85
|
+
if (isProxy(tools) || !Array.isArray(tools)) {
|
|
86
|
+
invalidTool("Tool collection must be an array");
|
|
87
|
+
}
|
|
88
|
+
canonicalizeJson(tools);
|
|
89
|
+
for (const tool of tools)
|
|
90
|
+
validateToolDescriptor(tool);
|
|
91
|
+
const sortedTools = [...tools].sort(compareTools);
|
|
92
|
+
for (let index = 1; index < sortedTools.length; index += 1) {
|
|
93
|
+
const previous = sortedTools[index - 1];
|
|
94
|
+
const current = sortedTools[index];
|
|
95
|
+
if (previous?.name === current?.name &&
|
|
96
|
+
previous.version === current.version) {
|
|
97
|
+
throw new CapabilityArtifactError("ARTIFACT_TOOL_DUPLICATE", `Duplicate Tool identity: ${current.name}@${current.version}`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const candidate = {
|
|
101
|
+
schemaVersion: "spotlight.tool-manifest/1",
|
|
102
|
+
tools: sortedTools,
|
|
103
|
+
};
|
|
104
|
+
const bytes = canonicalizeJson(candidate);
|
|
105
|
+
const manifest = JSON.parse(new TextDecoder().decode(bytes));
|
|
106
|
+
return {
|
|
107
|
+
manifest,
|
|
108
|
+
bytes,
|
|
109
|
+
digest: sha256(bytes),
|
|
110
|
+
};
|
|
111
|
+
}
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export { joinSkillScriptPath, type SkillScriptRunResult, } from "../skillScriptPath.js";
|
|
2
2
|
export { createNodeSkillScriptRunner } from "./skillScriptRunner.js";
|
|
3
3
|
export { DEFAULT_SKILL_ROOTS, scanProjectSkills, type ScanProjectSkillsOptions, type ScannedSkill, type SkillRootInput, type SkillScanDiagnostic, type SkillScanMode, type SkillScanResult, } from "./capabilities/skillScanner.js";
|
|
4
|
+
export { CAPABILITY_SKILL_LIMITS_V1, CapabilitySkillLoadErrorV1, loadCanonicalSkillsV1, type CapabilitySkillLoadErrorCodeV1, type LoadCanonicalSkillsInputV1, type LoadedCanonicalSkillsV1, } from "./capabilities/skillDirectoryLoader.js";
|
|
4
5
|
export { validateAgentSkillMarkdown, type AgentSkillDiagnostic, type AgentSkillDiagnosticCode, type AgentSkillDiagnosticSeverity, type AgentSkillValidationResult, type ValidatedAgentSkill, type ValidateAgentSkillMarkdownInput, } from "./capabilities/skillValidator.js";
|
|
5
6
|
export { validateScannedSkill, type ValidateScannedSkillInput, } from "./capabilities/skillFileValidator.js";
|
|
7
|
+
export { buildCapabilityArtifactV1, type CapabilityArtifactBuildV1, } from "./capabilities/capabilityArtifact.js";
|
|
8
|
+
export { buildCapabilityFileMapV1, computeArtifactDigestV1, type BuiltCapabilityFileMapV1, } from "./capabilities/capabilityFileMap.js";
|
|
9
|
+
export { CAPABILITY_ARTIFACT_ERROR_CODES, CapabilityArtifactError, type CapabilityArtifactErrorCode, } from "./capabilities/capabilityArtifactError.js";
|
|
10
|
+
export type { CanonicalSkillFileInputV1, CanonicalSkillInputV1, CapabilityArtifactInputV1, CapabilityFileManifestEntryV1, CapabilityFileManifestV1, CapabilityPayloadFileV1, } from "./capabilities/capabilityArtifactTypes.js";
|
|
11
|
+
export { canonicalizeJson, compareUtf16, type CanonicalJsonValue, } from "./capabilities/canonicalJson.js";
|
|
12
|
+
export { buildToolManifestV1, type BuiltToolManifestV1, type ToolManifestV1, } from "./capabilities/toolManifest.js";
|
|
6
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,qBAAqB,EACrB,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,GAC7B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,yBAAyB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,+BAA+B,EAC/B,uBAAuB,EACvB,KAAK,2BAA2B,GACjC,MAAM,2CAA2C,CAAC;AACnD,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,KAAK,kBAAkB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,gCAAgC,CAAC"}
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { joinSkillScriptPath, } from "../skillScriptPath.js";
|
|
2
2
|
export { createNodeSkillScriptRunner } from "./skillScriptRunner.js";
|
|
3
3
|
export { DEFAULT_SKILL_ROOTS, scanProjectSkills, } from "./capabilities/skillScanner.js";
|
|
4
|
+
export { CAPABILITY_SKILL_LIMITS_V1, CapabilitySkillLoadErrorV1, loadCanonicalSkillsV1, } from "./capabilities/skillDirectoryLoader.js";
|
|
4
5
|
export { validateAgentSkillMarkdown, } from "./capabilities/skillValidator.js";
|
|
5
6
|
export { validateScannedSkill, } from "./capabilities/skillFileValidator.js";
|
|
7
|
+
export { buildCapabilityArtifactV1, } from "./capabilities/capabilityArtifact.js";
|
|
8
|
+
export { buildCapabilityFileMapV1, computeArtifactDigestV1, } from "./capabilities/capabilityFileMap.js";
|
|
9
|
+
export { CAPABILITY_ARTIFACT_ERROR_CODES, CapabilityArtifactError, } from "./capabilities/capabilityArtifactError.js";
|
|
10
|
+
export { canonicalizeJson, compareUtf16, } from "./capabilities/canonicalJson.js";
|
|
11
|
+
export { buildToolManifestV1, } from "./capabilities/toolManifest.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CapabilityPluginBuildResultV1, SpotlightCapabilitiesOptionsV1, SpotlightCapabilityProjectBuildV1 } from "./capabilityBuildTypes.js";
|
|
2
|
+
export type { CapabilityBuildInfoV1, CapabilityPluginBuildResultV1, SpotlightCapabilitiesOptionsV1, SpotlightCapabilityProjectBuildV1, } from "./capabilityBuildTypes.js";
|
|
3
|
+
export declare function buildViteCapabilitiesV1(input: {
|
|
4
|
+
root: string;
|
|
5
|
+
command: "serve" | "build";
|
|
6
|
+
project: SpotlightCapabilityProjectBuildV1;
|
|
7
|
+
options?: SpotlightCapabilitiesOptionsV1;
|
|
8
|
+
}): Promise<CapabilityPluginBuildResultV1>;
|
|
9
|
+
//# sourceMappingURL=capabilityBuild.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityBuild.d.ts","sourceRoot":"","sources":["../../src/vite/capabilityBuild.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,EAClC,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,2BAA2B,CAAC;AAyFnC,wBAAsB,uBAAuB,CAAC,KAAK,EAAE;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;IAC3B,OAAO,EAAE,iCAAiC,CAAC;IAC3C,OAAO,CAAC,EAAE,8BAA8B,CAAC;CAC1C,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA6FzC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { resolve, sep } from "node:path";
|
|
2
|
+
import { isProxy } from "node:util/types";
|
|
3
|
+
import { buildCapabilityArtifactV1, buildToolManifestV1, CapabilityArtifactError, loadCanonicalSkillsV1, scanProjectSkills, } from "../node/index.js";
|
|
4
|
+
import { validateSkillContent } from "../node/capabilities/skillFileValidator.js";
|
|
5
|
+
const PROJECT_FIELDS = new Set(["projectId", "tools"]);
|
|
6
|
+
function invalidInput(message) {
|
|
7
|
+
throw new CapabilityArtifactError("ARTIFACT_INPUT_INVALID", message);
|
|
8
|
+
}
|
|
9
|
+
function validateProject(value) {
|
|
10
|
+
if (value === null ||
|
|
11
|
+
typeof value !== "object" ||
|
|
12
|
+
Array.isArray(value) ||
|
|
13
|
+
isProxy(value)) {
|
|
14
|
+
invalidInput("Capability project must be a plain object");
|
|
15
|
+
}
|
|
16
|
+
const prototype = Object.getPrototypeOf(value);
|
|
17
|
+
if (prototype !== Object.prototype && prototype !== null) {
|
|
18
|
+
invalidInput("Capability project must be a plain object");
|
|
19
|
+
}
|
|
20
|
+
const keys = Reflect.ownKeys(value);
|
|
21
|
+
if (keys.length !== PROJECT_FIELDS.size ||
|
|
22
|
+
keys.some((key) => typeof key !== "string" || !PROJECT_FIELDS.has(key))) {
|
|
23
|
+
invalidInput("Capability project own fields must be exactly projectId and tools");
|
|
24
|
+
}
|
|
25
|
+
const readDataField = (field) => {
|
|
26
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, field);
|
|
27
|
+
if (!descriptor?.enumerable || !("value" in descriptor)) {
|
|
28
|
+
invalidInput(`Capability project field ${field} must be an enumerable data property`);
|
|
29
|
+
}
|
|
30
|
+
return descriptor.value;
|
|
31
|
+
};
|
|
32
|
+
const projectId = readDataField("projectId");
|
|
33
|
+
const tools = readDataField("tools");
|
|
34
|
+
if (typeof projectId !== "string" || projectId.trim().length === 0) {
|
|
35
|
+
invalidInput("Capability projectId must be a non-empty string");
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
projectId,
|
|
39
|
+
tools: tools,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function throwDiagnostic(diagnostic) {
|
|
43
|
+
const message = "message" in diagnostic
|
|
44
|
+
? diagnostic.message
|
|
45
|
+
: `Skill scan failed with ${diagnostic.code}`;
|
|
46
|
+
throw Object.assign(new Error(message), diagnostic);
|
|
47
|
+
}
|
|
48
|
+
function freezeDiagnostic(diagnostic) {
|
|
49
|
+
if ("candidates" in diagnostic) {
|
|
50
|
+
const candidates = [...diagnostic.candidates];
|
|
51
|
+
Object.freeze(candidates);
|
|
52
|
+
return Object.freeze({
|
|
53
|
+
code: diagnostic.code,
|
|
54
|
+
severity: diagnostic.severity,
|
|
55
|
+
name: diagnostic.name,
|
|
56
|
+
...(diagnostic.selected === undefined
|
|
57
|
+
? {}
|
|
58
|
+
: { selected: diagnostic.selected }),
|
|
59
|
+
candidates,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return Object.freeze({
|
|
63
|
+
code: diagnostic.code,
|
|
64
|
+
severity: diagnostic.severity,
|
|
65
|
+
message: diagnostic.message,
|
|
66
|
+
skillFile: diagnostic.skillFile,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
export async function buildViteCapabilitiesV1(input) {
|
|
70
|
+
const project = validateProject(input.project);
|
|
71
|
+
const toolManifest = buildToolManifestV1(project.tools);
|
|
72
|
+
const frontendBuildId = input.options?.frontendBuildId;
|
|
73
|
+
if (input.command === "build" &&
|
|
74
|
+
(frontendBuildId === undefined || frontendBuildId.trim().length === 0)) {
|
|
75
|
+
invalidInput("Production capability builds require frontendBuildId");
|
|
76
|
+
}
|
|
77
|
+
const mode = input.command === "build" ? "strict" : "compat";
|
|
78
|
+
const scan = await scanProjectSkills({
|
|
79
|
+
projectRoot: input.root,
|
|
80
|
+
mode,
|
|
81
|
+
skillRoots: input.options?.skillRoots,
|
|
82
|
+
});
|
|
83
|
+
const scanErrorDiagnostic = scan.diagnostics.find((diagnostic) => diagnostic.severity === "error");
|
|
84
|
+
if (scanErrorDiagnostic)
|
|
85
|
+
throwDiagnostic(scanErrorDiagnostic);
|
|
86
|
+
const loaded = await loadCanonicalSkillsV1({
|
|
87
|
+
projectRoot: input.root,
|
|
88
|
+
skills: scan.skills,
|
|
89
|
+
});
|
|
90
|
+
const loadedByName = new Map(loaded.skills.map((skill) => [skill.name, skill]));
|
|
91
|
+
const validation = await Promise.all(scan.skills.map(async (skill) => {
|
|
92
|
+
const loadedSkill = loadedByName.get(skill.name);
|
|
93
|
+
if (!loadedSkill) {
|
|
94
|
+
invalidInput(`Loaded Skill snapshot is missing ${skill.name}`);
|
|
95
|
+
}
|
|
96
|
+
const skillFile = loadedSkill.files.find((file) => file.relativePath === "SKILL.md");
|
|
97
|
+
if (!skillFile) {
|
|
98
|
+
invalidInput(`Loaded Skill ${skill.name} is missing SKILL.md`);
|
|
99
|
+
}
|
|
100
|
+
const files = new Map(loadedSkill.files.map((file) => [file.relativePath, file.bytes]));
|
|
101
|
+
return validateSkillContent({
|
|
102
|
+
skill,
|
|
103
|
+
markdown: Buffer.from(skillFile.bytes).toString("utf8"),
|
|
104
|
+
mode,
|
|
105
|
+
skillRoot: resolve(input.root, skill.directory),
|
|
106
|
+
async readReference(relativePath) {
|
|
107
|
+
const snapshotPath = relativePath.split(sep).join("/");
|
|
108
|
+
return files.get(snapshotPath);
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}));
|
|
112
|
+
const diagnostics = [
|
|
113
|
+
...scan.diagnostics,
|
|
114
|
+
...validation.flatMap((result) => result.diagnostics),
|
|
115
|
+
].map(freezeDiagnostic);
|
|
116
|
+
const errorDiagnostic = diagnostics.find((diagnostic) => diagnostic.severity === "error");
|
|
117
|
+
if (errorDiagnostic)
|
|
118
|
+
throwDiagnostic(errorDiagnostic);
|
|
119
|
+
const artifact = buildCapabilityArtifactV1({
|
|
120
|
+
skills: loaded.skills,
|
|
121
|
+
tools: toolManifest.manifest.tools,
|
|
122
|
+
});
|
|
123
|
+
const buildInfo = Object.freeze({
|
|
124
|
+
schemaVersion: "spotlight.capability-build-info/1",
|
|
125
|
+
projectId: project.projectId,
|
|
126
|
+
frontendBuildId: input.command === "build"
|
|
127
|
+
? frontendBuildId
|
|
128
|
+
: `dev:${artifact.artifactDigest}`,
|
|
129
|
+
artifactVersion: artifact.artifactVersion,
|
|
130
|
+
artifactDigest: artifact.artifactDigest,
|
|
131
|
+
manifestDigest: artifact.manifestDigest,
|
|
132
|
+
toolManifestDigest: artifact.toolManifestDigest,
|
|
133
|
+
byteLength: artifact.byteLength,
|
|
134
|
+
});
|
|
135
|
+
return {
|
|
136
|
+
buildInfo,
|
|
137
|
+
archive: artifact.archive,
|
|
138
|
+
watchedFiles: Object.freeze([...loaded.watchedFiles]),
|
|
139
|
+
diagnostics: Object.freeze([...diagnostics]),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FrontendToolDescriptorV1 } from "@inupedia/spotlight-protocol";
|
|
2
|
+
import type { SkillRootInput, SkillScanDiagnostic } from "../node/capabilities/skillScanner.js";
|
|
3
|
+
import type { AgentSkillDiagnostic } from "../node/capabilities/skillValidator.js";
|
|
4
|
+
export interface SpotlightCapabilityProjectBuildV1 {
|
|
5
|
+
projectId: string;
|
|
6
|
+
tools: readonly FrontendToolDescriptorV1[];
|
|
7
|
+
}
|
|
8
|
+
export interface SpotlightCapabilitiesOptionsV1 {
|
|
9
|
+
skillRoots?: readonly SkillRootInput[];
|
|
10
|
+
frontendBuildId?: string;
|
|
11
|
+
devRuntimeUpload?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface CapabilityBuildInfoV1 {
|
|
14
|
+
schemaVersion: "spotlight.capability-build-info/1";
|
|
15
|
+
projectId: string;
|
|
16
|
+
frontendBuildId: string;
|
|
17
|
+
artifactVersion: "spotlight.capability-artifact/1";
|
|
18
|
+
artifactDigest: string;
|
|
19
|
+
manifestDigest: string;
|
|
20
|
+
toolManifestDigest: string;
|
|
21
|
+
byteLength: number;
|
|
22
|
+
}
|
|
23
|
+
export interface CapabilityPluginBuildResultV1 {
|
|
24
|
+
buildInfo: Readonly<CapabilityBuildInfoV1>;
|
|
25
|
+
archive: Uint8Array;
|
|
26
|
+
watchedFiles: readonly string[];
|
|
27
|
+
diagnostics: readonly (SkillScanDiagnostic | AgentSkillDiagnostic)[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=capabilityBuildTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityBuildTypes.d.ts","sourceRoot":"","sources":["../../src/vite/capabilityBuildTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,WAAW,iCAAiC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,wBAAwB,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,8BAA8B;IAC7C,UAAU,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,mCAAmC,CAAC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,iCAAiC,CAAC;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAC3C,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,oBAAoB,CAAC,EAAE,CAAC;CACtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from "node:http";
|
|
2
|
+
import type { CapabilityPluginBuildResultV1 } from "./capabilityBuildTypes.js";
|
|
3
|
+
export type CapabilityDevMiddlewareV1 = (request: IncomingMessage, response: ServerResponse, next: () => void) => void;
|
|
4
|
+
export declare function createCapabilityDevMiddlewareV1(currentResult: () => Readonly<CapabilityPluginBuildResultV1>): CapabilityDevMiddlewareV1;
|
|
5
|
+
//# sourceMappingURL=capabilityDevMiddleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityDevMiddleware.d.ts","sourceRoot":"","sources":["../../src/vite/capabilityDevMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEjE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAK/E,MAAM,MAAM,yBAAyB,GAAG,CACtC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,IAAI,KACb,IAAI,CAAC;AAEV,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,QAAQ,CAAC,6BAA6B,CAAC,GAC3D,yBAAyB,CAgD3B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const ROUTE_PREFIX = "/@spotlight/capability-artifacts/";
|
|
2
|
+
const DIGEST_PATTERN = /^sha256:[a-f0-9]{64}$/;
|
|
3
|
+
export function createCapabilityDevMiddlewareV1(currentResult) {
|
|
4
|
+
return (request, response, next) => {
|
|
5
|
+
const url = request.url ?? "";
|
|
6
|
+
if (!url.startsWith(ROUTE_PREFIX)) {
|
|
7
|
+
next();
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const requestedDigest = url.slice(ROUTE_PREFIX.length);
|
|
11
|
+
if (!DIGEST_PATTERN.test(requestedDigest)) {
|
|
12
|
+
response.statusCode = 404;
|
|
13
|
+
response.end();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const method = request.method ?? "GET";
|
|
17
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
18
|
+
response.statusCode = 405;
|
|
19
|
+
response.setHeader("Allow", "GET, HEAD");
|
|
20
|
+
response.end();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const result = currentResult();
|
|
24
|
+
if (requestedDigest !== result.buildInfo.artifactDigest) {
|
|
25
|
+
response.statusCode = 404;
|
|
26
|
+
response.end();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
response.statusCode = 200;
|
|
30
|
+
response.setHeader("Content-Type", "application/gzip");
|
|
31
|
+
response.setHeader("Content-Length", String(result.archive.byteLength));
|
|
32
|
+
response.setHeader("Cache-Control", "no-store");
|
|
33
|
+
response.setHeader("X-Content-Type-Options", "nosniff");
|
|
34
|
+
if (method === "HEAD") {
|
|
35
|
+
response.end();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
response.end(Buffer.from(result.archive.buffer, result.archive.byteOffset, result.archive.byteLength));
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CapabilityBuildInfoV1 } from "./capabilityBuildTypes.js";
|
|
2
|
+
export declare const SPOTLIGHT_CAPABILITIES_MODULE_ID: "virtual:spotlight/capabilities";
|
|
3
|
+
export declare const RESOLVED_SPOTLIGHT_CAPABILITIES_MODULE_ID: "\0virtual:spotlight/capabilities";
|
|
4
|
+
export interface CapabilityVirtualModuleV1 {
|
|
5
|
+
canonicalBuildInfoJson: string;
|
|
6
|
+
source: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function buildCapabilityVirtualModuleV1(buildInfo: Readonly<CapabilityBuildInfoV1>, options?: Readonly<{
|
|
9
|
+
runtimeUpload?: boolean;
|
|
10
|
+
}>): Readonly<CapabilityVirtualModuleV1>;
|
|
11
|
+
//# sourceMappingURL=capabilityVirtualModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityVirtualModule.d.ts","sourceRoot":"","sources":["../../src/vite/capabilityVirtualModule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,gCAAgC,EAC3C,gCAAyC,CAAC;AAC5C,eAAO,MAAM,yCAAyC,EACpD,kCAA2C,CAAC;AAE9C,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB;AAyCD,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAC1C,OAAO,GAAE,QAAQ,CAAC;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAM,GAClD,QAAQ,CAAC,yBAAyB,CAAC,CAQrC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { canonicalizeJson } from "../node/capabilities/canonicalJson.js";
|
|
2
|
+
export const SPOTLIGHT_CAPABILITIES_MODULE_ID = "virtual:spotlight/capabilities";
|
|
3
|
+
export const RESOLVED_SPOTLIGHT_CAPABILITIES_MODULE_ID = "\0virtual:spotlight/capabilities";
|
|
4
|
+
function disabledProviderSource() {
|
|
5
|
+
return `export async function openUploadStream() {
|
|
6
|
+
const error = new Error("Runtime capability Artifact upload is disabled.");
|
|
7
|
+
Object.defineProperty(error, "code", {
|
|
8
|
+
value: "ARTIFACT_RUNTIME_UPLOAD_DISABLED",
|
|
9
|
+
enumerable: true,
|
|
10
|
+
});
|
|
11
|
+
throw error;
|
|
12
|
+
}`;
|
|
13
|
+
}
|
|
14
|
+
function developmentProviderSource(buildInfo) {
|
|
15
|
+
const digest = JSON.stringify(buildInfo.artifactDigest);
|
|
16
|
+
const path = JSON.stringify(`/@spotlight/capability-artifacts/${buildInfo.artifactDigest}`);
|
|
17
|
+
return `export async function openUploadStream() {
|
|
18
|
+
const response = await fetch(${path}, {
|
|
19
|
+
method: "GET",
|
|
20
|
+
cache: "no-store",
|
|
21
|
+
credentials: "same-origin",
|
|
22
|
+
});
|
|
23
|
+
if (!response.ok) {
|
|
24
|
+
throw new Error("Unable to open capability Artifact stream.");
|
|
25
|
+
}
|
|
26
|
+
if (response.body == null) {
|
|
27
|
+
throw new Error("Capability Artifact response has no stream body.");
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
digest: ${digest},
|
|
31
|
+
byteLength: capabilityBuildInfo.byteLength,
|
|
32
|
+
contentType: "application/gzip",
|
|
33
|
+
stream: response.body,
|
|
34
|
+
};
|
|
35
|
+
}`;
|
|
36
|
+
}
|
|
37
|
+
export function buildCapabilityVirtualModuleV1(buildInfo, options = {}) {
|
|
38
|
+
const canonicalBuildInfoJson = new TextDecoder().decode(canonicalizeJson(buildInfo));
|
|
39
|
+
return Object.freeze({
|
|
40
|
+
canonicalBuildInfoJson,
|
|
41
|
+
source: `export const capabilityBuildInfo = Object.freeze(${canonicalBuildInfoJson});\n\n${options.runtimeUpload === true ? developmentProviderSource(buildInfo) : disabledProviderSource()}\n`,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare module "virtual:spotlight/capabilities" {
|
|
2
|
+
import type { CapabilityBuildInfoV1 } from "@inupedia/spotlight-client/vite";
|
|
3
|
+
interface ArtifactUploadStreamV1 {
|
|
4
|
+
digest: string;
|
|
5
|
+
byteLength: number;
|
|
6
|
+
contentType: "application/gzip";
|
|
7
|
+
stream: ReadableStream<Uint8Array>;
|
|
8
|
+
}
|
|
9
|
+
const capabilityBuildInfo: Readonly<CapabilityBuildInfoV1>;
|
|
10
|
+
function openUploadStream(): Promise<ArtifactUploadStreamV1>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=capabilityVirtualModuleTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilityVirtualModuleTypes.d.ts","sourceRoot":"","sources":["../../src/vite/capabilityVirtualModuleTypes.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,gCAAgC,CAAC;IAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;IAE7E,UAAiB,sBAAsB;QACrC,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,kBAAkB,CAAC;QAChC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;KACpC;IAEM,MAAM,mBAAmB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IAElE,SAAgB,gBAAgB,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { SpotlightAgentIocOptions } from "./spotlightAgentIoc.js";
|
|
2
|
+
import "./capabilityVirtualModuleTypes.js";
|
|
2
3
|
export type { SpotlightAgentIocOptions };
|
|
4
|
+
export { spotlightCapabilities } from "./spotlightCapabilities.js";
|
|
5
|
+
export type { CapabilityBuildInfoV1, CapabilityPluginBuildResultV1, SpotlightCapabilitiesOptionsV1, SpotlightCapabilityProjectBuildV1, } from "./capabilityBuildTypes.js";
|
|
6
|
+
export { RESOLVED_SPOTLIGHT_CAPABILITIES_MODULE_ID, SPOTLIGHT_CAPABILITIES_MODULE_ID, } from "./capabilityVirtualModule.js";
|
|
3
7
|
export { transformSpotlightAgentIoc, default, } from "./spotlightAgentIoc.js";
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/vite/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,YAAY,EAAE,wBAAwB,EAAE,CAAC;AAEzC,OAAO,EACL,0BAA0B,EAC1B,OAAO,GACR,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vite/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,mCAAmC,CAAC;AAE3C,YAAY,EAAE,wBAAwB,EAAE,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EACV,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yCAAyC,EACzC,gCAAgC,GACjC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,0BAA0B,EAC1B,OAAO,GACR,MAAM,wBAAwB,CAAC"}
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
+
import "./capabilityVirtualModuleTypes.js";
|
|
2
|
+
export { spotlightCapabilities } from "./spotlightCapabilities.js";
|
|
3
|
+
export { RESOLVED_SPOTLIGHT_CAPABILITIES_MODULE_ID, SPOTLIGHT_CAPABILITIES_MODULE_ID, } from "./capabilityVirtualModule.js";
|
|
1
4
|
export { transformSpotlightAgentIoc, default, } from "./spotlightAgentIoc.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
import { type SpotlightCapabilitiesOptionsV1, type SpotlightCapabilityProjectBuildV1 } from "./capabilityBuild.js";
|
|
3
|
+
export declare function spotlightCapabilities(project: SpotlightCapabilityProjectBuildV1, options?: SpotlightCapabilitiesOptionsV1): Plugin;
|
|
4
|
+
//# sourceMappingURL=spotlightCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spotlightCapabilities.d.ts","sourceRoot":"","sources":["../../src/vite/spotlightCapabilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAiC,MAAM,MAAM,CAAC;AAKlE,OAAO,EAGL,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACvC,MAAM,sBAAsB,CAAC;AAuB9B,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,iCAAiC,EAC1C,OAAO,CAAC,EAAE,8BAA8B,GACvC,MAAM,CAoKR"}
|