@firfi/huly-mcp 0.33.0 → 0.33.1
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.cjs +24 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -167842,13 +167842,24 @@ var parseProject = Schema_exports.decodeUnknown(ProjectSchema);
|
|
|
167842
167842
|
// src/domain/schemas/project-target-preferences.ts
|
|
167843
167843
|
var ProjectTargetPreferenceId = DocId.pipe(Schema_exports.brand("ProjectTargetPreferenceId"));
|
|
167844
167844
|
var TrackerPreferencePropertyKey = NonEmptyString2.pipe(Schema_exports.brand("TrackerPreferencePropertyKey"));
|
|
167845
|
+
var ProjectTargetPreferencePropertyValueSchema = Schema_exports.Unknown.annotations({
|
|
167846
|
+
jsonSchema: {
|
|
167847
|
+
description: "SDK-open target preference property value. Passed through to Huly without narrowing.",
|
|
167848
|
+
anyOf: [
|
|
167849
|
+
{ type: "string" },
|
|
167850
|
+
{ type: "number" },
|
|
167851
|
+
{ type: "boolean" },
|
|
167852
|
+
{ type: "object", additionalProperties: true },
|
|
167853
|
+
{ type: "array", items: {} },
|
|
167854
|
+
{ type: "null" }
|
|
167855
|
+
]
|
|
167856
|
+
}
|
|
167857
|
+
});
|
|
167845
167858
|
var ProjectTargetPreferencePropertySchema = Schema_exports.Struct({
|
|
167846
167859
|
key: TrackerPreferencePropertyKey.annotations({
|
|
167847
167860
|
description: "Low-level tracker target preference property key. Huly stores arbitrary preference keys here."
|
|
167848
167861
|
}),
|
|
167849
|
-
value:
|
|
167850
|
-
description: "SDK-open target preference property value. Passed through to Huly without narrowing."
|
|
167851
|
-
})
|
|
167862
|
+
value: ProjectTargetPreferencePropertyValueSchema
|
|
167852
167863
|
}).annotations({
|
|
167853
167864
|
title: "ProjectTargetPreferenceProperty",
|
|
167854
167865
|
description: "One SDK-open low-level ProjectTargetPreference props entry."
|
|
@@ -175022,7 +175033,7 @@ var makeDiagnosticsScope = Effect_exports.gen(function* () {
|
|
|
175022
175033
|
});
|
|
175023
175034
|
|
|
175024
175035
|
// src/version.ts
|
|
175025
|
-
var VERSION = true ? "0.33.
|
|
175036
|
+
var VERSION = true ? "0.33.1" : "0.0.0-dev";
|
|
175026
175037
|
|
|
175027
175038
|
// src/mcp/tool-output-schema.ts
|
|
175028
175039
|
var toolWarningCodeEnum = [...ToolWarningCodeSchema.literals];
|
|
@@ -195754,7 +195765,6 @@ var buildHulyContext = (config3, registry2, toolsetSummary, runtimeConfig) => ({
|
|
|
195754
195765
|
// src/mcp/input-schema-compat.ts
|
|
195755
195766
|
var ROOT_COMPOSITION_KEYS = /* @__PURE__ */ new Set(["anyOf", "oneOf", "allOf"]);
|
|
195756
195767
|
var isRecord3 = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3);
|
|
195757
|
-
var isObjectSchema = (schema) => "type" in schema && schema.type === "object";
|
|
195758
195768
|
var mergeObjectFields = (sources) => {
|
|
195759
195769
|
const merged = sources.reduce(
|
|
195760
195770
|
(acc, source) => isRecord3(source) ? { ...source, ...acc } : acc,
|
|
@@ -195763,14 +195773,14 @@ var mergeObjectFields = (sources) => {
|
|
|
195763
195773
|
return Object.keys(merged).length > 0 ? merged : void 0;
|
|
195764
195774
|
};
|
|
195765
195775
|
var rootCompositionBranches = (schema) => [...ROOT_COMPOSITION_KEYS].flatMap((key) => {
|
|
195766
|
-
const branches = schema
|
|
195776
|
+
const branches = Reflect.get(schema, key);
|
|
195767
195777
|
return Array.isArray(branches) ? branches.filter(isRecord3) : [];
|
|
195768
195778
|
});
|
|
195769
195779
|
var schemaAndCompositionDescendants = (schema) => [
|
|
195770
195780
|
schema,
|
|
195771
195781
|
...rootCompositionBranches(schema).flatMap(schemaAndCompositionDescendants)
|
|
195772
195782
|
];
|
|
195773
|
-
var mergedSchemaField = (schema, field) => mergeObjectFields(schemaAndCompositionDescendants(schema).map((branch) => branch
|
|
195783
|
+
var mergedSchemaField = (schema, field) => mergeObjectFields(schemaAndCompositionDescendants(schema).map((branch) => Reflect.get(branch, field)));
|
|
195774
195784
|
var toClientCompatibleInputSchema = (schema) => {
|
|
195775
195785
|
const rootFields = Object.fromEntries(
|
|
195776
195786
|
Object.entries(schema).filter(([key]) => key !== "type" && !ROOT_COMPOSITION_KEYS.has(key))
|
|
@@ -196160,16 +196170,13 @@ var createMcpProtocolHandlers = (resolveClients, telemetry, registry2, getHulyCo
|
|
|
196160
196170
|
tools: [
|
|
196161
196171
|
versionToolDefinition,
|
|
196162
196172
|
getHulyContextToolDefinition,
|
|
196163
|
-
...registry2.definitions.
|
|
196164
|
-
|
|
196165
|
-
|
|
196166
|
-
|
|
196167
|
-
|
|
196168
|
-
|
|
196169
|
-
|
|
196170
|
-
annotations: resolveAnnotations(tool)
|
|
196171
|
-
}];
|
|
196172
|
-
})
|
|
196173
|
+
...registry2.definitions.map((tool) => ({
|
|
196174
|
+
name: tool.name,
|
|
196175
|
+
description: tool.description,
|
|
196176
|
+
inputSchema: toClientCompatibleInputSchema(tool.inputSchema),
|
|
196177
|
+
outputSchema: defaultToolOutputSchema,
|
|
196178
|
+
annotations: resolveAnnotations(tool)
|
|
196179
|
+
}))
|
|
196173
196180
|
].map((tool) => ({
|
|
196174
196181
|
...tool,
|
|
196175
196182
|
inputSchema: toProtocolObjectSchema(tool.inputSchema),
|