fmea-api-mcp-server 1.1.63 → 1.1.65
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/data/changelog/1.1.63.json +11 -0
- package/data/changelog/1.1.64.json +10 -0
- package/data/changelog/next.json +785 -18
- package/data/endpoint-lookup.json +1 -1
- package/data/enums.json +4 -3
- package/data/search-index.oxy +1 -1
- package/dist/index.js +1 -1
- package/dist/intents.js +1 -1
- package/dist/services/search/OramaSearchService.js +4 -1
- package/dist/synonyms.js +4 -2
- package/dist/utils/ScoreCalculator.js +7 -2
- package/endpoints/v2/action-status/core.json +59 -0
- package/endpoints/v2/classification-excel/core.json +1 -1
- package/endpoints/v2/classifications/core.json +110 -458
- package/endpoints/v2/condition-library-excel/core.json +220 -2
- package/endpoints/v2/division-excel/core.json +1 -1
- package/endpoints/v2/divisions/core.json +214 -238
- package/endpoints/v2/documents/core.json +203 -9
- package/endpoints/v2/evaluation/core.json +433 -663
- package/endpoints/v2/evaluation-excel/core.json +1 -1
- package/endpoints/v2/failure-mode-library/core.json +189 -0
- package/endpoints/v2/failure-mode-library-excel/core.json +289 -0
- package/endpoints/v2/fourm/core.json +3 -3
- package/endpoints/v2/high-items/core.json +1 -1
- package/endpoints/v2/notice-excel/core.json +1 -1
- package/endpoints/v2/notices/core.json +4 -4
- package/endpoints/v2/process-symbol-excel/core.json +63 -4
- package/endpoints/v2/process-symbols/core.json +2 -2
- package/endpoints/v2/projects/core.json +26 -2
- package/endpoints/v2/scoring/core.json +34 -137
- package/endpoints/v2/synonym-excel/core.json +101 -8
- package/endpoints/v2/synonyms/core.json +58 -176
- package/endpoints/v2/templates/core.json +1 -157
- package/endpoints/v2/user-excel/core.json +1 -1
- package/endpoints/v2/users/core.json +42 -0
- package/endpoints/v2/worksheet-template-excel/core.json +1 -1
- package/endpoints/v2/worksheets/core.json +2 -2
- package/endpoints/v2/worksheets/excel.json +1 -1
- package/package.json +1 -1
- package/endpoints/v2/fm-checkpoint/core.json +0 -363
package/dist/index.js
CHANGED
package/dist/intents.js
CHANGED
|
@@ -13,7 +13,7 @@ export const ACTION_KEYWORDS = {
|
|
|
13
13
|
'MONITOR': ['monitor', 'track', 'audit', 'inspect', 'history', 'logs', 'usage', 'metrics', 'stats'],
|
|
14
14
|
// CRUD
|
|
15
15
|
'create': ['create', 'add', 'new', 'make', 'generate', 'register'],
|
|
16
|
-
'update': ['update', 'edit', 'change', 'modify', 'save', 'set', 'reset', 'password', 'refresh', 'approve', 'reject'],
|
|
16
|
+
'update': ['update', 'edit', 'change', 'modify', 'save', 'set', 'reset', 'password', 'refresh', 'approve', 'reject', 'rename'],
|
|
17
17
|
'delete': ['delete', 'remove', 'drop', 'erase'],
|
|
18
18
|
'list': ['list', 'get', 'show', 'fetch', 'all', 'view', 'files', 'status', 'check'],
|
|
19
19
|
};
|
|
@@ -207,7 +207,10 @@ export class OramaSearchService {
|
|
|
207
207
|
});
|
|
208
208
|
// [Final Plan] Intent-Based Thresholding
|
|
209
209
|
let THRESHOLD_SCORE = 0.05; // Default (Loose)
|
|
210
|
-
if (intent.resource) {
|
|
210
|
+
if (intent.resource && intent.action) {
|
|
211
|
+
THRESHOLD_SCORE = 0.08; // [R41] Both resource+action detected: same as action-only (related-resource cases need this)
|
|
212
|
+
}
|
|
213
|
+
else if (intent.resource) {
|
|
211
214
|
THRESHOLD_SCORE = 0.2;
|
|
212
215
|
}
|
|
213
216
|
else if (intent.action) {
|
package/dist/synonyms.js
CHANGED
|
@@ -55,7 +55,8 @@ export const RESOURCE_ALIASES = {
|
|
|
55
55
|
'evaluation': ['evaluation', 'evaluation criteria', 'assessment', 'rating criteria', 'grading'], // [R27] Evaluation criteria resource — removed 'scoring criteria' (now dedicated resource [R30])
|
|
56
56
|
'significance-criteria': ['significance criteria', 'significance', 'sod threshold', 'rpn threshold', 'severity occurrence detection', 'sod criteria', 'sod', 'rpn', 'sod rpn'], // [R27] [R33] Added SOD/RPN shorthand
|
|
57
57
|
'classification': ['classification', 'classification group', 'classification item', 'symbol', 'label group', 'risk classification', 'project classification'], // [R28] [R29] Classification groups and items
|
|
58
|
-
'
|
|
58
|
+
'failure-mode-library': ['failure mode library', 'fm library', 'fm-library', 'failure library'], // [R41] Failure mode library
|
|
59
|
+
'fm-checkpoint': ['fm checkpoint', 'failure mode checkpoint', 'checkpoint', 'checklist', 'check item'], // [R30] FM Checkpoint tree management (legacy)
|
|
59
60
|
'scoring-criteria': ['scoring criteria', 'scoring', 'score criteria', 'completeness scoring', 'scoring tree'], // [R30] Scoring criteria tree management
|
|
60
61
|
'process-symbol': ['process symbol', 'process symbols', 'flow chart symbol', 'flowchart symbol', 'process flow'], // [R30] Process flow chart symbols
|
|
61
62
|
'additional-info': ['additional info', 'additional information', 'extra info', 'supplementary info', 'custom field', 'custom attribute', 'form field'], // [R31] Additional info template management
|
|
@@ -117,7 +118,8 @@ export const SYNONYM_GROUPS = {
|
|
|
117
118
|
"backup": ["export", "dump", "snapshot", "data"],
|
|
118
119
|
"download": ["get", "fetch", "retrieve", "export", "pull"],
|
|
119
120
|
"copy": ["duplicate", "clone", "replicate", "mirror"],
|
|
120
|
-
"move": ["transfer", "relocate", "
|
|
121
|
+
"move": ["transfer", "relocate", "shift", "migrate"],
|
|
122
|
+
"rename": ["update name", "change name", "modify name", "edit name"], // [R35] rename -> update action
|
|
121
123
|
// Auth / Security (New)
|
|
122
124
|
"auth": ["authentication", "login", "signin", "verify", "check", "token", "credential"],
|
|
123
125
|
"authenticate": ["auth", "login", "signin", "api key", "credential", "client"], // [R22] authenticate -> api-key
|
|
@@ -49,9 +49,12 @@ export class ScoreCalculator {
|
|
|
49
49
|
// A. Action Intent Scoring
|
|
50
50
|
if (intent.action && docAction !== 'other') {
|
|
51
51
|
// Compatible Actions: List implies Read (viewing items), Export implies Read, Import implies Create
|
|
52
|
+
// [R41] Snapshot PUT endpoints use 'update' actionType but accept create/delete intents
|
|
52
53
|
const isCompatible = (intent.action === 'list' && docAction === 'read')
|
|
53
54
|
|| (intent.action === 'export' && docAction === 'read') // [R19] Download/export is a form of read
|
|
54
|
-
|| (intent.action === 'import' && docAction === 'create')
|
|
55
|
+
|| (intent.action === 'import' && docAction === 'create') // [R19] Import is a form of create
|
|
56
|
+
|| (intent.action === 'create' && docAction === 'update') // [R41] Snapshot create via PUT (full-sync)
|
|
57
|
+
|| (intent.action === 'delete' && docAction === 'update'); // [R41] Snapshot delete via PUT (full-sync)
|
|
55
58
|
if (intent.action === docAction) {
|
|
56
59
|
score += ScoreCalculator.ACTION_MATCH_BOOST;
|
|
57
60
|
}
|
|
@@ -70,7 +73,9 @@ export class ScoreCalculator {
|
|
|
70
73
|
if (intent.action && docAction !== 'other' && intent.action !== docAction) {
|
|
71
74
|
const isCompatible = (intent.action === 'list' && docAction === 'read')
|
|
72
75
|
|| (intent.action === 'export' && docAction === 'read') // [R19]
|
|
73
|
-
|| (intent.action === 'import' && docAction === 'create')
|
|
76
|
+
|| (intent.action === 'import' && docAction === 'create') // [R19]
|
|
77
|
+
|| (intent.action === 'create' && docAction === 'update') // [R41] Snapshot create via PUT
|
|
78
|
+
|| (intent.action === 'delete' && docAction === 'update'); // [R41] Snapshot delete via PUT
|
|
74
79
|
if (!isCompatible) {
|
|
75
80
|
applyResourceBoost = false;
|
|
76
81
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"category": "Action Status",
|
|
3
|
+
"version": "v2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"endpoints": [
|
|
6
|
+
{
|
|
7
|
+
"path": "/api/v2/template/action-status",
|
|
8
|
+
"method": "PUT",
|
|
9
|
+
"operationId": "saveSnapshot_4",
|
|
10
|
+
"summary": "Save action status snapshot",
|
|
11
|
+
"description": "Saves the full snapshot for action statuses and returns the latest full list. This is the main JSON save path and omitted items are deleted.",
|
|
12
|
+
"tags": [
|
|
13
|
+
"Template"
|
|
14
|
+
],
|
|
15
|
+
"parameters": [],
|
|
16
|
+
"requestBody": {
|
|
17
|
+
"content": {
|
|
18
|
+
"application/json": {
|
|
19
|
+
"schema": {
|
|
20
|
+
"required": [
|
|
21
|
+
"items"
|
|
22
|
+
],
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"required": [
|
|
29
|
+
"title"
|
|
30
|
+
],
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"id": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"title": {
|
|
37
|
+
"maxLength": 30,
|
|
38
|
+
"minLength": 0,
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"responses": {
|
|
50
|
+
"default": {
|
|
51
|
+
"description": "default response",
|
|
52
|
+
"content": {
|
|
53
|
+
"application/json": {}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"method": "GET",
|
|
9
9
|
"operationId": "export_3",
|
|
10
10
|
"summary": "Export classification groups and items to Excel",
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Helper export that writes classification groups and items to an XLSX file and returns a download URI. The main admin snapshot source remains GET /api/v2/classifications. Supports optional keyword search filter on group title or item title. Requires admin permission.",
|
|
12
12
|
"tags": [
|
|
13
13
|
"ClassificationExcel"
|
|
14
14
|
],
|