@firfi/huly-mcp 0.44.3 → 0.44.4
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 +35 -48
- package/package.json +5 -2
package/dist/index.cjs
CHANGED
|
@@ -55084,9 +55084,9 @@ var require_predicate = __commonJS({
|
|
|
55084
55084
|
}
|
|
55085
55085
|
});
|
|
55086
55086
|
|
|
55087
|
-
// node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55087
|
+
// node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/metrics.js
|
|
55088
55088
|
var require_metrics = __commonJS({
|
|
55089
|
-
"node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55089
|
+
"node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/metrics.js"(exports2, module2) {
|
|
55090
55090
|
"use strict";
|
|
55091
55091
|
var __defProp2 = Object.defineProperty;
|
|
55092
55092
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -55380,9 +55380,9 @@ var require_metrics = __commonJS({
|
|
|
55380
55380
|
}
|
|
55381
55381
|
});
|
|
55382
55382
|
|
|
55383
|
-
// node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55383
|
+
// node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/context.js
|
|
55384
55384
|
var require_context = __commonJS({
|
|
55385
|
-
"node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55385
|
+
"node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/context.js"(exports2, module2) {
|
|
55386
55386
|
"use strict";
|
|
55387
55387
|
var __defProp2 = Object.defineProperty;
|
|
55388
55388
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -55712,9 +55712,9 @@ var require_context = __commonJS({
|
|
|
55712
55712
|
}
|
|
55713
55713
|
});
|
|
55714
55714
|
|
|
55715
|
-
// node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55715
|
+
// node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/index.js
|
|
55716
55716
|
var require_lib6 = __commonJS({
|
|
55717
|
-
"node_modules/.pnpm/@hcengineering+measurements@0.7.
|
|
55717
|
+
"node_modules/.pnpm/@hcengineering+measurements@0.7.423/node_modules/@hcengineering/measurements/lib/index.js"(exports2, module2) {
|
|
55718
55718
|
"use strict";
|
|
55719
55719
|
var __defProp2 = Object.defineProperty;
|
|
55720
55720
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -161952,7 +161952,7 @@ var INTERNAL_ERROR_PREFIX = {
|
|
|
161952
161952
|
};
|
|
161953
161953
|
var mapDomainErrorToMcp = (error2, warnings = []) => {
|
|
161954
161954
|
if (INVALID_PARAMS_TAGS.has(error2._tag)) {
|
|
161955
|
-
return createErrorResponse(error2.message, McpErrorCode.InvalidParams,
|
|
161955
|
+
return createErrorResponse(error2.message, McpErrorCode.InvalidParams, error2._tag, warnings);
|
|
161956
161956
|
}
|
|
161957
161957
|
const prefix = INTERNAL_ERROR_PREFIX[error2._tag];
|
|
161958
161958
|
const message = prefix !== void 0 ? `${prefix}: ${error2.message}` : error2.message;
|
|
@@ -175995,7 +175995,7 @@ var HulyAuthError = class extends Schema_exports.TaggedError()(
|
|
|
175995
175995
|
};
|
|
175996
175996
|
|
|
175997
175997
|
// src/version.ts
|
|
175998
|
-
var VERSION = true ? "0.44.
|
|
175998
|
+
var VERSION = true ? "0.44.4" : "0.0.0-dev";
|
|
175999
175999
|
|
|
176000
176000
|
// src/mcp/json-schema-refs.ts
|
|
176001
176001
|
var isJsonObject = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3);
|
|
@@ -179339,51 +179339,14 @@ var mergeCoveredUpdateEntries = (entries2) => mergeUpdateEntries(entries2.map((e
|
|
|
179339
179339
|
|
|
179340
179340
|
// src/huly/operations/contacts-shared.ts
|
|
179341
179341
|
var import_core12 = __toESM(require_lib7(), 1);
|
|
179342
|
-
|
|
179343
|
-
// src/utils/assertions.ts
|
|
179344
|
-
var AssertionError = class extends Error {
|
|
179345
|
-
_tag = "AssertionError";
|
|
179346
|
-
constructor(message) {
|
|
179347
|
-
super(message);
|
|
179348
|
-
this.name = "AssertionError";
|
|
179349
|
-
}
|
|
179350
|
-
};
|
|
179351
|
-
var assertExists = (value3, message) => {
|
|
179352
|
-
if (value3 === null || value3 === void 0) {
|
|
179353
|
-
throw new AssertionError(message ?? "Expected value to exist");
|
|
179354
|
-
}
|
|
179355
|
-
return value3;
|
|
179356
|
-
};
|
|
179357
|
-
var isExistent = (value3) => value3 !== null && value3 !== void 0;
|
|
179358
|
-
var assertAt = (arr, index, message) => {
|
|
179359
|
-
return assertExists(arr[index], message ?? `Expected array item at index ${index}`);
|
|
179360
|
-
};
|
|
179361
|
-
var isNonEmpty7 = (arr) => arr.length > 0;
|
|
179362
|
-
var isSingle2 = (arr) => arr.length === 1;
|
|
179363
|
-
var isPair = (arr) => arr.length === 2;
|
|
179364
|
-
|
|
179365
|
-
// src/huly/operations/contacts-shared.ts
|
|
179366
179342
|
var isEmailIdentifier = Schema_exports.is(Email);
|
|
179367
179343
|
var findPersonById = (client, personId) => client.findOne(
|
|
179368
179344
|
contact.class.Person,
|
|
179369
179345
|
{ _id: toRef(personId) }
|
|
179370
179346
|
);
|
|
179371
|
-
var findPersonByEmail = (client, email3) =>
|
|
179372
|
-
|
|
179373
|
-
|
|
179374
|
-
{
|
|
179375
|
-
value: email3,
|
|
179376
|
-
provider: contact.channelProvider.Email
|
|
179377
|
-
}
|
|
179378
|
-
);
|
|
179379
|
-
if (!isNonEmpty7(channels)) {
|
|
179380
|
-
return void 0;
|
|
179381
|
-
}
|
|
179382
|
-
const channel = channels[0];
|
|
179383
|
-
return yield* client.findOne(
|
|
179384
|
-
contact.class.Person,
|
|
179385
|
-
{ _id: toRef(channel.attachedTo) }
|
|
179386
|
-
);
|
|
179347
|
+
var findPersonByEmail = (client, email3) => Option_exports.match(Schema_exports.decodeUnknownOption(Email)(email3), {
|
|
179348
|
+
onNone: () => Effect_exports.succeed(void 0),
|
|
179349
|
+
onSome: (parsedEmail) => findPersonByExactEmail(client, parsedEmail)
|
|
179387
179350
|
});
|
|
179388
179351
|
var batchGetEmailsForPersons = (client, personIds) => Effect_exports.gen(function* () {
|
|
179389
179352
|
if (personIds.length === 0) {
|
|
@@ -179530,6 +179493,30 @@ var findPersonByEmailOrName = (client, emailOrName) => Effect_exports.gen(functi
|
|
|
179530
179493
|
|
|
179531
179494
|
// src/huly/operations/spaces-shared.ts
|
|
179532
179495
|
var import_core13 = __toESM(require_lib7(), 1);
|
|
179496
|
+
|
|
179497
|
+
// src/utils/assertions.ts
|
|
179498
|
+
var AssertionError = class extends Error {
|
|
179499
|
+
_tag = "AssertionError";
|
|
179500
|
+
constructor(message) {
|
|
179501
|
+
super(message);
|
|
179502
|
+
this.name = "AssertionError";
|
|
179503
|
+
}
|
|
179504
|
+
};
|
|
179505
|
+
var assertExists = (value3, message) => {
|
|
179506
|
+
if (value3 === null || value3 === void 0) {
|
|
179507
|
+
throw new AssertionError(message ?? "Expected value to exist");
|
|
179508
|
+
}
|
|
179509
|
+
return value3;
|
|
179510
|
+
};
|
|
179511
|
+
var isExistent = (value3) => value3 !== null && value3 !== void 0;
|
|
179512
|
+
var assertAt = (arr, index, message) => {
|
|
179513
|
+
return assertExists(arr[index], message ?? `Expected array item at index ${index}`);
|
|
179514
|
+
};
|
|
179515
|
+
var isNonEmpty7 = (arr) => arr.length > 0;
|
|
179516
|
+
var isSingle2 = (arr) => arr.length === 1;
|
|
179517
|
+
var isPair = (arr) => arr.length === 2;
|
|
179518
|
+
|
|
179519
|
+
// src/huly/operations/spaces-shared.ts
|
|
179533
179520
|
var spaceClass = toClassRef(core.class.Space);
|
|
179534
179521
|
var sortStrings = (values4) => [...values4].sort();
|
|
179535
179522
|
var uniqueSorted = (values4) => sortStrings([...new Set(values4)]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firfi/huly-mcp",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.4",
|
|
4
4
|
"description": "Huly MCP: feature-complete MCP server for Huly integration",
|
|
5
5
|
"mcpName": "io.github.dearlordylord/huly-mcp",
|
|
6
6
|
"type": "module",
|
|
@@ -106,6 +106,8 @@
|
|
|
106
106
|
"@types/ws": "^8.18.1",
|
|
107
107
|
"@typescript-eslint/parser": "^8.54.0",
|
|
108
108
|
"@vitest/coverage-v8": "latest",
|
|
109
|
+
"ajv": "^8.20.0",
|
|
110
|
+
"ajv-formats": "^3.0.1",
|
|
109
111
|
"effect": "^3.19.15",
|
|
110
112
|
"esbuild": "^0.27.2",
|
|
111
113
|
"eslint": "^9.39.2",
|
|
@@ -139,13 +141,14 @@
|
|
|
139
141
|
"lint:fix": "find src packages scripts test -name '*.ts' -print0 | xargs -0 eslint --fix",
|
|
140
142
|
"format": "find src packages scripts test -name '*.ts' -print0 | xargs -0 eslint --fix --rule '@effect/dprint: error'",
|
|
141
143
|
"check-format": "find src packages scripts test -name '*.ts' -print0 | xargs -0 eslint --rule '@effect/dprint: error'",
|
|
142
|
-
"check-all": "pnpm build && pnpm typecheck && pnpm verify-schema-boundaries && pnpm circular && pnpm verify-registry-metadata && pnpm verify-cli-integration-coverage && pnpm verify-sdk-parity && pnpm verify-readme && pnpm lint && pnpm test:coverage",
|
|
144
|
+
"check-all": "pnpm build && pnpm typecheck && pnpm verify-schema-boundaries && pnpm circular && pnpm verify-registry-metadata && pnpm verify-registry-schema && pnpm verify-cli-integration-coverage && pnpm verify-sdk-parity && pnpm verify-readme && pnpm lint && pnpm test:coverage",
|
|
143
145
|
"circular": "madge --extensions ts --circular src packages/huly-cli/src",
|
|
144
146
|
"integration:cli": "bash scripts/integration_test_cli.sh",
|
|
145
147
|
"local-release": "bash scripts/local_release.sh",
|
|
146
148
|
"verify-version": "node -e \"const v=require('./package.json').version; const d=require('fs').readFileSync('dist/index.cjs','utf8'); if(!d.includes('\\\"'+v+'\\\"'))throw new Error('dist version mismatch: expected '+v)\"",
|
|
147
149
|
"verify-cli-integration-coverage": "pnpm dlx tsx@4.21.0 scripts/verify-cli-integration-coverage.ts",
|
|
148
150
|
"verify-registry-metadata": "node scripts/sync-registry-metadata.mjs --check",
|
|
151
|
+
"verify-registry-schema": "node scripts/verify-registry-schema.mjs",
|
|
149
152
|
"verify-schema-boundaries": "node scripts/verify-schema-boundaries.mjs",
|
|
150
153
|
"verify-sdk-parity": "node scripts/audit-sdk-parity.mjs",
|
|
151
154
|
"smoke:http-no-config": "node scripts/smoke-http-no-config.mjs",
|