@genesislcap/ai-assistant 15.83.0 → 15.84.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write-outcome.d.ts","sourceRoot":"","sources":["../../../src/genesis/write-outcome.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS;AACX;;;;GAIG;GACD,SAAS;AACX,0EAA0E;GACxE,iBAAiB;AACnB,+EAA+E;GAC7E,gBAAgB;AAClB,6CAA6C;GAC3C,WAAW;AACb,4FAA4F;GAC1F,MAAM;AACR,kDAAkD;GAChD,gBAAgB;AAClB;;;;GAIG;GACD,aAAa;AACf,wFAAwF;GACtF,QAAQ;AACV;;;;;GAKG;GACD,SAAS,CAAC;AAEd,gBAAgB;AAChB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,gFAAgF;IAChF,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3C,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;
|
|
1
|
+
{"version":3,"file":"write-outcome.d.ts","sourceRoot":"","sources":["../../../src/genesis/write-outcome.ts"],"names":[],"mappings":"AAQA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AACvD;;;;;;;;;;;;;;;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KAAK,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,KAC/C,mBAKD,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,KAAG,mBAIpD,CAAC"}
|
|
@@ -8,7 +8,13 @@ import { readsRow } from './write-op';
|
|
|
8
8
|
* service", "STATUS_CODE": "404 Not Found"}`.
|
|
9
9
|
*/
|
|
10
10
|
const NOT_MAPPED = 404;
|
|
11
|
-
const isNotMapped = (error) => {
|
|
11
|
+
const isNotMapped = (error) => {
|
|
12
|
+
var _a;
|
|
13
|
+
return String(error.CODE) === String(NOT_MAPPED) ||
|
|
14
|
+
String((_a = error.STATUS_CODE) !== null && _a !== void 0 ? _a : '').startsWith(String(NOT_MAPPED));
|
|
15
|
+
};
|
|
16
|
+
// The router's own statuses: numbers on the wire, digit strings once comms has normalised them.
|
|
17
|
+
const isStatusCode = (code) => /^\d+$/.test(String(code !== null && code !== void 0 ? code : ''));
|
|
12
18
|
/**
|
|
13
19
|
* A server error's own words, when they can be shown.
|
|
14
20
|
*
|
|
@@ -232,9 +238,7 @@ export function mapWriteReply(reply, { mode, op }) {
|
|
|
232
238
|
if (errors.some(isNotMapped)) {
|
|
233
239
|
return Object.assign(Object.assign({ status: 'unavailable' }, withFields), { message: `Not available: ${joined(errors)}` });
|
|
234
240
|
}
|
|
235
|
-
const numeric = [
|
|
236
|
-
...new Set(errors.map((error) => error.CODE).filter((code) => typeof code === 'number')),
|
|
237
|
-
];
|
|
241
|
+
const numeric = [...new Set(errors.map((error) => error.CODE).filter(isStatusCode))];
|
|
238
242
|
return Object.assign(Object.assign({}, writeOutcomeUnknown(`The app answered ${namedType !== null && namedType !== void 0 ? namedType : 'with a failure'}${numeric.length ? ` with code ${numeric.join(', ')}` : ''}, which does not say whether this was written, so whether this was written is unknown.`)), (warnings ? { warnings } : {}));
|
|
239
243
|
}
|
|
240
244
|
// Everything from here is an EVENT_NACK: the HANDLER's own answer. It is read as "not written"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/ai-assistant",
|
|
3
3
|
"description": "Genesis AI Assistant micro-frontend",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.84.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -92,31 +92,31 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@genesislcap/foundation-comms": "15.
|
|
96
|
-
"@genesislcap/foundation-testing": "15.
|
|
97
|
-
"@genesislcap/genx": "15.
|
|
98
|
-
"@genesislcap/ts-builder": "15.
|
|
99
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
100
|
-
"@genesislcap/vite-builder": "15.
|
|
101
|
-
"@genesislcap/webpack-builder": "15.
|
|
95
|
+
"@genesislcap/foundation-comms": "15.84.0",
|
|
96
|
+
"@genesislcap/foundation-testing": "15.84.0",
|
|
97
|
+
"@genesislcap/genx": "15.84.0",
|
|
98
|
+
"@genesislcap/ts-builder": "15.84.0",
|
|
99
|
+
"@genesislcap/uvu-playwright-builder": "15.84.0",
|
|
100
|
+
"@genesislcap/vite-builder": "15.84.0",
|
|
101
|
+
"@genesislcap/webpack-builder": "15.84.0",
|
|
102
102
|
"@types/dompurify": "^3.0.5",
|
|
103
103
|
"@types/marked": "^5.0.2",
|
|
104
104
|
"esbuild": "0.25.12"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@genesislcap/foundation-ai": "15.
|
|
108
|
-
"@genesislcap/foundation-logger": "15.
|
|
109
|
-
"@genesislcap/foundation-notifications": "15.
|
|
110
|
-
"@genesislcap/foundation-redux": "15.
|
|
111
|
-
"@genesislcap/foundation-ui": "15.
|
|
112
|
-
"@genesislcap/foundation-utils": "15.
|
|
113
|
-
"@genesislcap/rapid-design-system": "15.
|
|
114
|
-
"@genesislcap/web-core": "15.
|
|
107
|
+
"@genesislcap/foundation-ai": "15.84.0",
|
|
108
|
+
"@genesislcap/foundation-logger": "15.84.0",
|
|
109
|
+
"@genesislcap/foundation-notifications": "15.84.0",
|
|
110
|
+
"@genesislcap/foundation-redux": "15.84.0",
|
|
111
|
+
"@genesislcap/foundation-ui": "15.84.0",
|
|
112
|
+
"@genesislcap/foundation-utils": "15.84.0",
|
|
113
|
+
"@genesislcap/rapid-design-system": "15.84.0",
|
|
114
|
+
"@genesislcap/web-core": "15.84.0",
|
|
115
115
|
"dompurify": "^3.3.1",
|
|
116
116
|
"marked": "^17.0.3"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
|
-
"@genesislcap/foundation-comms": "^15.
|
|
119
|
+
"@genesislcap/foundation-comms": "^15.84.0"
|
|
120
120
|
},
|
|
121
121
|
"peerDependenciesMeta": {
|
|
122
122
|
"@genesislcap/foundation-comms": {
|