@echomem/mcp 1.4.62 → 1.4.63
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/v1-contract.js +36 -18
- package/package.json +2 -2
package/dist/v1-contract.js
CHANGED
|
@@ -67,6 +67,24 @@ export function resolveCanonicalToolName(toolName) {
|
|
|
67
67
|
return legacyAliasToCanonical[toolName] ?? toolName;
|
|
68
68
|
}
|
|
69
69
|
export const TOOL_DESCRIPTION_BYTE_LIMIT = 2_000;
|
|
70
|
+
// One source of truth per workspace-ticket enum. Both the zod validator and the
|
|
71
|
+
// published JSON schema are derived from these arrays, so a value added to one
|
|
72
|
+
// can never go missing from the other. test/schema-parity.test.mjs guards it.
|
|
73
|
+
export const WORKSPACE_TICKET_REVIEW_OPERATIONS = [
|
|
74
|
+
"review",
|
|
75
|
+
"find_candidates",
|
|
76
|
+
"acknowledge",
|
|
77
|
+
"propose",
|
|
78
|
+
];
|
|
79
|
+
export const WORKSPACE_TICKET_ACTIONS = [
|
|
80
|
+
"assign_existing",
|
|
81
|
+
"update_current",
|
|
82
|
+
"create_new",
|
|
83
|
+
"create_unbound",
|
|
84
|
+
"unassign_current",
|
|
85
|
+
];
|
|
86
|
+
export const WORKSPACE_TICKET_EDGE_KINDS = ["sequential", "branch"];
|
|
87
|
+
export const WORKSPACE_TICKET_REVIEW_OUTCOMES = ["keep", "ignore"];
|
|
70
88
|
const READ_ONLY_TOOL_NAMES = new Set([
|
|
71
89
|
canonicalToolNames.search,
|
|
72
90
|
"search_memories_by_description_semantic",
|
|
@@ -374,24 +392,24 @@ export const linkWorkspaceTicketSessionSchema = z.object({
|
|
|
374
392
|
export const reviewWorkspaceTicketSessionSchema = z.object({
|
|
375
393
|
...triggerMetadataSchema,
|
|
376
394
|
...workspaceSelectorSchema,
|
|
377
|
-
operation: z.enum(
|
|
395
|
+
operation: z.enum(WORKSPACE_TICKET_REVIEW_OPERATIONS).optional().default("review"),
|
|
378
396
|
memoryThreshold: z.number().int().min(1).max(100).optional().default(8),
|
|
379
397
|
outcomeSummary: z.string().trim().min(10).max(600).optional(),
|
|
380
398
|
limit: z.number().int().min(3).max(12).optional(),
|
|
381
|
-
outcome: z.enum(
|
|
399
|
+
outcome: z.enum(WORKSPACE_TICKET_REVIEW_OUTCOMES).optional(),
|
|
382
400
|
reviewedThroughAt: z.string().trim().min(1).optional(),
|
|
383
401
|
expectedTicketId: z.string().uuid().nullable().optional(),
|
|
384
402
|
expectedTicketVersion: z.number().int().positive().nullable().optional(),
|
|
385
403
|
expectedActiveTicketId: z.string().uuid().nullable().optional(),
|
|
386
404
|
expectedActiveTicketVersion: z.number().int().positive().nullable().optional(),
|
|
387
|
-
action: z.enum(
|
|
405
|
+
action: z.enum(WORKSPACE_TICKET_ACTIONS).optional(),
|
|
388
406
|
ticketId: z.string().uuid().optional(),
|
|
389
407
|
expectedVersion: z.number().int().positive().optional(),
|
|
390
408
|
title: z.string().trim().min(1).max(240).optional(),
|
|
391
409
|
description: z.string().max(20_000).optional(),
|
|
392
410
|
ownerId: z.string().uuid().optional(),
|
|
393
411
|
parentId: z.string().uuid().nullable().optional(),
|
|
394
|
-
edgeKind: z.enum(
|
|
412
|
+
edgeKind: z.enum(WORKSPACE_TICKET_EDGE_KINDS).optional(),
|
|
395
413
|
phaseName: z.string().trim().min(1).max(240).optional(),
|
|
396
414
|
phaseStartsAt: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable().optional(),
|
|
397
415
|
phaseEndsAt: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).nullable().optional(),
|
|
@@ -407,7 +425,7 @@ const workspaceTicketReviewTimestampSchema = z.string().trim().min(1).refine((va
|
|
|
407
425
|
export const acknowledgeWorkspaceTicketReviewSchema = z.object({
|
|
408
426
|
...triggerMetadataSchema,
|
|
409
427
|
workspaceId: z.string().uuid(),
|
|
410
|
-
outcome: z.enum(
|
|
428
|
+
outcome: z.enum(WORKSPACE_TICKET_REVIEW_OUTCOMES),
|
|
411
429
|
reviewedThroughAt: workspaceTicketReviewTimestampSchema,
|
|
412
430
|
expectedTicketId: z.string().uuid().nullable().optional(),
|
|
413
431
|
expectedTicketVersion: z.number().int().positive().nullable().optional(),
|
|
@@ -436,14 +454,14 @@ export const recordWorkspaceTicketProposalSchema = z.object({
|
|
|
436
454
|
reviewedThroughAt: workspaceTicketReviewTimestampSchema,
|
|
437
455
|
expectedActiveTicketId: z.string().uuid().nullable().optional(),
|
|
438
456
|
expectedActiveTicketVersion: z.number().int().positive().nullable().optional(),
|
|
439
|
-
action: z.enum(
|
|
457
|
+
action: z.enum(WORKSPACE_TICKET_ACTIONS),
|
|
440
458
|
ticketId: z.string().uuid().optional(),
|
|
441
459
|
expectedVersion: z.number().int().positive().optional(),
|
|
442
460
|
title: z.string().trim().min(1).max(240).optional(),
|
|
443
461
|
description: z.string().max(20_000).optional(),
|
|
444
462
|
ownerId: z.string().uuid().optional(),
|
|
445
463
|
parentId: z.string().uuid().nullable().optional(),
|
|
446
|
-
edgeKind: z.enum(
|
|
464
|
+
edgeKind: z.enum(WORKSPACE_TICKET_EDGE_KINDS).optional(),
|
|
447
465
|
phaseName: z.string().trim().min(1).max(240).optional(),
|
|
448
466
|
phaseStartsAt: workspaceTicketPhaseDateSchema.nullable().optional(),
|
|
449
467
|
phaseEndsAt: workspaceTicketPhaseDateSchema.nullable().optional(),
|
|
@@ -513,14 +531,14 @@ export const applyWorkspaceTicketActionSchema = z.object({
|
|
|
513
531
|
workspaceId: z.string().uuid(),
|
|
514
532
|
proposalId: z.string().uuid(),
|
|
515
533
|
confirmed: z.literal(true),
|
|
516
|
-
action: z.enum(
|
|
534
|
+
action: z.enum(WORKSPACE_TICKET_ACTIONS),
|
|
517
535
|
ticketId: z.string().uuid().optional(),
|
|
518
536
|
expectedVersion: z.number().int().positive().optional(),
|
|
519
537
|
title: z.string().trim().min(1).max(240).optional(),
|
|
520
538
|
description: z.string().max(20_000).optional(),
|
|
521
539
|
ownerId: z.string().uuid().optional(),
|
|
522
540
|
parentId: z.string().uuid().nullable().optional(),
|
|
523
|
-
edgeKind: z.enum(
|
|
541
|
+
edgeKind: z.enum(WORKSPACE_TICKET_EDGE_KINDS).optional(),
|
|
524
542
|
phaseName: z.string().trim().min(1).max(240).optional(),
|
|
525
543
|
phaseStartsAt: workspaceTicketPhaseDateSchema.nullable().optional(),
|
|
526
544
|
phaseEndsAt: workspaceTicketPhaseDateSchema.nullable().optional(),
|
|
@@ -867,7 +885,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
867
885
|
properties: {
|
|
868
886
|
operation: {
|
|
869
887
|
type: "string",
|
|
870
|
-
enum: [
|
|
888
|
+
enum: [...WORKSPACE_TICKET_REVIEW_OPERATIONS],
|
|
871
889
|
default: "review",
|
|
872
890
|
},
|
|
873
891
|
workspaceId: {
|
|
@@ -889,7 +907,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
889
907
|
},
|
|
890
908
|
outcomeSummary: { type: "string", minLength: 10, maxLength: 600 },
|
|
891
909
|
limit: { type: "integer", minimum: 3, maximum: 12, default: 8 },
|
|
892
|
-
outcome: { type: "string", enum: [
|
|
910
|
+
outcome: { type: "string", enum: [...WORKSPACE_TICKET_REVIEW_OUTCOMES] },
|
|
893
911
|
reviewedThroughAt: { type: "string" },
|
|
894
912
|
expectedTicketId: {
|
|
895
913
|
type: ["string", "null"],
|
|
@@ -913,7 +931,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
913
931
|
},
|
|
914
932
|
action: {
|
|
915
933
|
type: "string",
|
|
916
|
-
enum: [
|
|
934
|
+
enum: [...WORKSPACE_TICKET_ACTIONS],
|
|
917
935
|
description: "Required for operation=propose: the single recommended ticket action.",
|
|
918
936
|
},
|
|
919
937
|
ticketId: { type: "string", format: "uuid" },
|
|
@@ -922,7 +940,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
922
940
|
description: { type: "string", maxLength: 20000 },
|
|
923
941
|
ownerId: { type: "string", format: "uuid" },
|
|
924
942
|
parentId: { type: ["string", "null"], format: "uuid" },
|
|
925
|
-
edgeKind: { type: "string", enum: [
|
|
943
|
+
edgeKind: { type: "string", enum: [...WORKSPACE_TICKET_EDGE_KINDS] },
|
|
926
944
|
phaseName: { type: "string", minLength: 1, maxLength: 240 },
|
|
927
945
|
phaseStartsAt: { type: ["string", "null"], pattern: "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
928
946
|
phaseEndsAt: { type: ["string", "null"], pattern: "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
@@ -982,7 +1000,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
982
1000
|
expectedActiveTicketVersion: { type: ["integer", "null"], minimum: 1 },
|
|
983
1001
|
action: {
|
|
984
1002
|
type: "string",
|
|
985
|
-
enum: [
|
|
1003
|
+
enum: [...WORKSPACE_TICKET_ACTIONS],
|
|
986
1004
|
},
|
|
987
1005
|
ticketId: { type: "string", format: "uuid" },
|
|
988
1006
|
expectedVersion: { type: "integer", minimum: 1 },
|
|
@@ -1000,7 +1018,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
1000
1018
|
},
|
|
1001
1019
|
edgeKind: {
|
|
1002
1020
|
type: "string",
|
|
1003
|
-
enum: [
|
|
1021
|
+
enum: [...WORKSPACE_TICKET_EDGE_KINDS],
|
|
1004
1022
|
description: "Execution flow from parentId, separate from the address. Omit for the default branch (parallel work under the parent); use sequential only for the parent's single next step.",
|
|
1005
1023
|
},
|
|
1006
1024
|
phaseName: { type: "string", minLength: 1, maxLength: 240 },
|
|
@@ -1026,7 +1044,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
1026
1044
|
type: "object",
|
|
1027
1045
|
properties: {
|
|
1028
1046
|
workspaceId: { type: "string", format: "uuid" },
|
|
1029
|
-
outcome: { type: "string", enum: [
|
|
1047
|
+
outcome: { type: "string", enum: [...WORKSPACE_TICKET_REVIEW_OUTCOMES] },
|
|
1030
1048
|
reviewedThroughAt: {
|
|
1031
1049
|
type: "string",
|
|
1032
1050
|
description: "Copy the exact reviewedThroughAt value returned by review_workspace_ticket_session.",
|
|
@@ -1070,7 +1088,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
1070
1088
|
},
|
|
1071
1089
|
action: {
|
|
1072
1090
|
type: "string",
|
|
1073
|
-
enum: [
|
|
1091
|
+
enum: [...WORKSPACE_TICKET_ACTIONS],
|
|
1074
1092
|
},
|
|
1075
1093
|
ticketId: {
|
|
1076
1094
|
type: "string",
|
|
@@ -1101,7 +1119,7 @@ export function listToolSpecs(opts = {}) {
|
|
|
1101
1119
|
},
|
|
1102
1120
|
edgeKind: {
|
|
1103
1121
|
type: "string",
|
|
1104
|
-
enum: [
|
|
1122
|
+
enum: [...WORKSPACE_TICKET_EDGE_KINDS],
|
|
1105
1123
|
description: "Copy exactly from the pending proposal.",
|
|
1106
1124
|
},
|
|
1107
1125
|
phaseName: { type: "string", minLength: 1, maxLength: 240 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@echomem/mcp",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.63",
|
|
4
4
|
"description": "EchoMem MCP bridge for cross-agent memory, local history import, and recall",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test:config-safety": "npm run build && node test/config-safety.test.mjs",
|
|
37
37
|
"test:billing-ui": "npm run build && node test/setup-ui.test.mjs billing",
|
|
38
38
|
"test:mcp-control": "npm run build && node test/mcp-control.test.mjs",
|
|
39
|
-
"test": "npm run build && node test/source-session.test.mjs && node test/cowork-ticket-session.test.mjs && node test/ticket-review-format.test.mjs && node test/source-session-hook.test.mjs && node test/local-data-paths.test.mjs && node test/crypto.test.mjs && node test/integration.test.mjs && node test/onboarding-resilience.test.mjs && node test/local-auth.test.mjs && node test/retrieval-only.test.mjs && node test/no-restart.test.mjs && node test/canonical-golden.test.mjs && node test/tools.test.mjs && node test/workspace-selector.test.mjs && node test/group-map.test.mjs && node test/update-check.test.mjs && node test/headless-runtime.test.mjs && node test/claude-code-config.test.mjs && node test/config-safety.test.mjs && node test/mcp-control.test.mjs && node test/delete.test.mjs && node test/low-touch-tools.test.mjs && node test/migrate.test.mjs && node test/restart-recovery.test.mjs && node test/save-checkpoint-hook.test.mjs && node test/durable-entry.test.mjs && node test/durable-reexec.test.mjs && node test/doctor.test.mjs && node test/environment-matrix.test.mjs",
|
|
39
|
+
"test": "npm run build && node test/source-session.test.mjs && node test/cowork-ticket-session.test.mjs && node test/ticket-review-format.test.mjs && node test/schema-parity.test.mjs && node test/source-session-hook.test.mjs && node test/local-data-paths.test.mjs && node test/crypto.test.mjs && node test/integration.test.mjs && node test/onboarding-resilience.test.mjs && node test/local-auth.test.mjs && node test/retrieval-only.test.mjs && node test/no-restart.test.mjs && node test/canonical-golden.test.mjs && node test/tools.test.mjs && node test/workspace-selector.test.mjs && node test/group-map.test.mjs && node test/update-check.test.mjs && node test/headless-runtime.test.mjs && node test/claude-code-config.test.mjs && node test/config-safety.test.mjs && node test/mcp-control.test.mjs && node test/delete.test.mjs && node test/low-touch-tools.test.mjs && node test/migrate.test.mjs && node test/restart-recovery.test.mjs && node test/save-checkpoint-hook.test.mjs && node test/durable-entry.test.mjs && node test/durable-reexec.test.mjs && node test/doctor.test.mjs && node test/environment-matrix.test.mjs",
|
|
40
40
|
"prepack": "npm run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|