@ai-matrx/agents 0.43.18 → 0.43.20
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/CHANGELOG.md +13 -0
- package/dist/content-transfer/index.cjs +26 -10
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.js +26 -10
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs +26 -10
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js +26 -10
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/generated/api-types.cjs.map +1 -1
- package/dist/generated/api-types.d.cts +16 -0
- package/dist/generated/api-types.d.ts +16 -0
- package/dist/index.cjs +75 -74
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -74
- package/dist/index.js.map +1 -1
- package/dist/{keys.generated-BzkXY1sO.d.cts → keys.generated-BuyboLUH.d.cts} +4 -4
- package/dist/{keys.generated-BzkXY1sO.d.ts → keys.generated-BuyboLUH.d.ts} +4 -4
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +2 -2
- package/dist/mandates/index.d.ts +2 -2
- package/dist/mandates/index.js +2 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/matrx/index.cjs +75 -74
- package/dist/matrx/index.cjs.map +1 -1
- package/dist/matrx/index.d.cts +1 -1
- package/dist/matrx/index.d.ts +1 -1
- package/dist/matrx/index.js +75 -74
- package/dist/matrx/index.js.map +1 -1
- package/dist/portable/index.cjs +26 -10
- package/dist/portable/index.cjs.map +1 -1
- package/dist/portable/index.js +26 -10
- package/dist/portable/index.js.map +1 -1
- package/dist/portable/mcp.cjs +24 -10
- package/dist/portable/mcp.cjs.map +1 -1
- package/dist/portable/mcp.js +24 -10
- package/dist/portable/mcp.js.map +1 -1
- package/dist/react/index.cjs +60 -46
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +60 -46
- package/dist/react/index.js.map +1 -1
- package/generated/api-types.ts +16 -0
- package/mandates/snapshots/keys.0.43.19.json +653 -0
- package/mandates/snapshots/keys.0.43.20.json +653 -0
- package/package.json +3 -3
|
@@ -120544,6 +120544,7 @@ interface components {
|
|
|
120544
120544
|
created_by?: string | null;
|
|
120545
120545
|
/** Shared */
|
|
120546
120546
|
shared?: boolean | null;
|
|
120547
|
+
start_wait?: components["schemas"]["RunStartWait"] | null;
|
|
120547
120548
|
/** Result */
|
|
120548
120549
|
result?: {
|
|
120549
120550
|
[key: string]: unknown;
|
|
@@ -120634,6 +120635,21 @@ interface components {
|
|
|
120634
120635
|
} & {
|
|
120635
120636
|
[key: string]: unknown;
|
|
120636
120637
|
};
|
|
120638
|
+
/**
|
|
120639
|
+
* RunStartWait
|
|
120640
|
+
* @description A pending run that should have started by now, and why it has not.
|
|
120641
|
+
*/
|
|
120642
|
+
RunStartWait: {
|
|
120643
|
+
/**
|
|
120644
|
+
* Reason
|
|
120645
|
+
* @enum {string}
|
|
120646
|
+
*/
|
|
120647
|
+
reason: "backlog" | "never_queued" | "no_worker";
|
|
120648
|
+
/** Says */
|
|
120649
|
+
says: string;
|
|
120650
|
+
/** Waiting Seconds */
|
|
120651
|
+
waiting_seconds: number;
|
|
120652
|
+
};
|
|
120637
120653
|
/** RunStep */
|
|
120638
120654
|
RunStep: {
|
|
120639
120655
|
/** Node Id */
|
|
@@ -120544,6 +120544,7 @@ interface components {
|
|
|
120544
120544
|
created_by?: string | null;
|
|
120545
120545
|
/** Shared */
|
|
120546
120546
|
shared?: boolean | null;
|
|
120547
|
+
start_wait?: components["schemas"]["RunStartWait"] | null;
|
|
120547
120548
|
/** Result */
|
|
120548
120549
|
result?: {
|
|
120549
120550
|
[key: string]: unknown;
|
|
@@ -120634,6 +120635,21 @@ interface components {
|
|
|
120634
120635
|
} & {
|
|
120635
120636
|
[key: string]: unknown;
|
|
120636
120637
|
};
|
|
120638
|
+
/**
|
|
120639
|
+
* RunStartWait
|
|
120640
|
+
* @description A pending run that should have started by now, and why it has not.
|
|
120641
|
+
*/
|
|
120642
|
+
RunStartWait: {
|
|
120643
|
+
/**
|
|
120644
|
+
* Reason
|
|
120645
|
+
* @enum {string}
|
|
120646
|
+
*/
|
|
120647
|
+
reason: "backlog" | "never_queued" | "no_worker";
|
|
120648
|
+
/** Says */
|
|
120649
|
+
says: string;
|
|
120650
|
+
/** Waiting Seconds */
|
|
120651
|
+
waiting_seconds: number;
|
|
120652
|
+
};
|
|
120637
120653
|
/** RunStep */
|
|
120638
120654
|
RunStep: {
|
|
120639
120655
|
/** Node Id */
|
package/dist/index.cjs
CHANGED
|
@@ -950,80 +950,6 @@ function projectWorkflowNodeEvent(current, event) {
|
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
// matrx/transport.ts
|
|
954
|
-
var MatrxApiError = class extends Error {
|
|
955
|
-
name = "MatrxApiError";
|
|
956
|
-
/** HTTP status of the failed response. */
|
|
957
|
-
status;
|
|
958
|
-
/** Machine code from the server body (`code`, or `detail.code`), when present. */
|
|
959
|
-
code;
|
|
960
|
-
/** The parsed server error body, verbatim (undefined when unparsable). */
|
|
961
|
-
serverDetail;
|
|
962
|
-
/** The request path the failure came from (server-relative). */
|
|
963
|
-
path;
|
|
964
|
-
constructor(args) {
|
|
965
|
-
super(
|
|
966
|
-
args.message ?? extractMatrxErrorMessage(args.serverDetail) ?? `HTTP ${args.status}`
|
|
967
|
-
);
|
|
968
|
-
this.status = args.status;
|
|
969
|
-
this.path = args.path;
|
|
970
|
-
this.serverDetail = args.serverDetail;
|
|
971
|
-
this.code = extractMatrxErrorCode(args.serverDetail);
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
function isRecord3(value) {
|
|
975
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
976
|
-
}
|
|
977
|
-
function nonBlankString(value) {
|
|
978
|
-
return typeof value === "string" && value.trim() ? value : void 0;
|
|
979
|
-
}
|
|
980
|
-
function extractMatrxErrorMessage(serverDetail) {
|
|
981
|
-
if (!isRecord3(serverDetail)) return void 0;
|
|
982
|
-
const userMessage = nonBlankString(serverDetail.user_message);
|
|
983
|
-
if (userMessage) return userMessage;
|
|
984
|
-
const message = nonBlankString(serverDetail.message);
|
|
985
|
-
if (message) return message;
|
|
986
|
-
if (Array.isArray(serverDetail.details)) {
|
|
987
|
-
const messages = serverDetail.details.map((entry) => {
|
|
988
|
-
if (!isRecord3(entry)) return void 0;
|
|
989
|
-
const detailMessage = nonBlankString(entry.message);
|
|
990
|
-
if (!detailMessage) return void 0;
|
|
991
|
-
const field = nonBlankString(entry.field);
|
|
992
|
-
return field ? `${field}: ${detailMessage}` : detailMessage;
|
|
993
|
-
}).filter((m) => typeof m === "string");
|
|
994
|
-
if (messages.length > 0) return messages.join("; ");
|
|
995
|
-
}
|
|
996
|
-
const detail = serverDetail.detail;
|
|
997
|
-
if (isRecord3(detail)) {
|
|
998
|
-
const detailMessage = nonBlankString(detail.message) ?? nonBlankString(detail.user_message);
|
|
999
|
-
if (detailMessage) return detailMessage;
|
|
1000
|
-
}
|
|
1001
|
-
if (typeof detail === "string" && detail.trim()) return detail;
|
|
1002
|
-
if (Array.isArray(detail)) {
|
|
1003
|
-
const messages = detail.map(
|
|
1004
|
-
(entry) => isRecord3(entry) ? nonBlankString(entry.msg) : void 0
|
|
1005
|
-
).filter((m) => typeof m === "string");
|
|
1006
|
-
if (messages.length > 0) return messages.join("; ");
|
|
1007
|
-
}
|
|
1008
|
-
return void 0;
|
|
1009
|
-
}
|
|
1010
|
-
function extractMatrxErrorCode(serverDetail) {
|
|
1011
|
-
if (!isRecord3(serverDetail)) return null;
|
|
1012
|
-
const topLevel = nonBlankString(serverDetail.code);
|
|
1013
|
-
if (topLevel) return topLevel;
|
|
1014
|
-
const detail = serverDetail.detail;
|
|
1015
|
-
if (isRecord3(detail)) {
|
|
1016
|
-
const nested = nonBlankString(detail.code);
|
|
1017
|
-
if (nested) return nested;
|
|
1018
|
-
}
|
|
1019
|
-
return null;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
// matrx/client.ts
|
|
1023
|
-
var import_data = require("@ai-matrx/data");
|
|
1024
|
-
var import_data2 = require("@ai-matrx/data");
|
|
1025
|
-
var import_net2 = require("@ai-matrx/data/net");
|
|
1026
|
-
|
|
1027
953
|
// matrx/backend-errors.ts
|
|
1028
954
|
var BackendApiError = class extends Error {
|
|
1029
955
|
/** Machine-readable error code */
|
|
@@ -1329,6 +1255,81 @@ function statusToCode(status) {
|
|
|
1329
1255
|
}
|
|
1330
1256
|
}
|
|
1331
1257
|
|
|
1258
|
+
// matrx/transport.ts
|
|
1259
|
+
var MatrxApiError = class extends Error {
|
|
1260
|
+
name = "MatrxApiError";
|
|
1261
|
+
/** HTTP status of the failed response. */
|
|
1262
|
+
status;
|
|
1263
|
+
/** Machine code from the server body (`code`, or `detail.code`), when present. */
|
|
1264
|
+
code;
|
|
1265
|
+
/** The parsed server error body, verbatim (undefined when unparsable). */
|
|
1266
|
+
serverDetail;
|
|
1267
|
+
/** The request path the failure came from (server-relative). */
|
|
1268
|
+
path;
|
|
1269
|
+
constructor(args) {
|
|
1270
|
+
super(
|
|
1271
|
+
args.message ?? extractMatrxErrorMessage(args.serverDetail) ?? `HTTP ${args.status}`
|
|
1272
|
+
);
|
|
1273
|
+
this.status = args.status;
|
|
1274
|
+
this.path = args.path;
|
|
1275
|
+
this.serverDetail = args.serverDetail;
|
|
1276
|
+
this.code = extractMatrxErrorCode(args.serverDetail);
|
|
1277
|
+
}
|
|
1278
|
+
};
|
|
1279
|
+
function isRecord3(value) {
|
|
1280
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1281
|
+
}
|
|
1282
|
+
function nonBlankString(value) {
|
|
1283
|
+
return typeof value === "string" && value.trim() ? value : void 0;
|
|
1284
|
+
}
|
|
1285
|
+
function extractMatrxErrorMessage(serverDetail) {
|
|
1286
|
+
if (!isRecord3(serverDetail)) return void 0;
|
|
1287
|
+
const candidates = [];
|
|
1288
|
+
const push = (value) => {
|
|
1289
|
+
if (value) candidates.push(value);
|
|
1290
|
+
};
|
|
1291
|
+
push(nonBlankString(serverDetail.user_message));
|
|
1292
|
+
push(nonBlankString(serverDetail.message));
|
|
1293
|
+
if (Array.isArray(serverDetail.details)) {
|
|
1294
|
+
const messages = serverDetail.details.map((entry) => {
|
|
1295
|
+
if (!isRecord3(entry)) return void 0;
|
|
1296
|
+
const detailMessage = nonBlankString(entry.message);
|
|
1297
|
+
if (!detailMessage) return void 0;
|
|
1298
|
+
const field = nonBlankString(entry.field);
|
|
1299
|
+
return field ? `${field}: ${detailMessage}` : detailMessage;
|
|
1300
|
+
}).filter((m) => typeof m === "string");
|
|
1301
|
+
if (messages.length > 0) push(messages.join("; "));
|
|
1302
|
+
}
|
|
1303
|
+
const detail = serverDetail.detail;
|
|
1304
|
+
if (isRecord3(detail)) {
|
|
1305
|
+
push(nonBlankString(detail.message) ?? nonBlankString(detail.user_message));
|
|
1306
|
+
}
|
|
1307
|
+
if (typeof detail === "string" && detail.trim()) push(detail);
|
|
1308
|
+
if (Array.isArray(detail)) {
|
|
1309
|
+
const messages = detail.map(
|
|
1310
|
+
(entry) => isRecord3(entry) ? nonBlankString(entry.msg) : void 0
|
|
1311
|
+
).filter((m) => typeof m === "string");
|
|
1312
|
+
if (messages.length > 0) push(messages.join("; "));
|
|
1313
|
+
}
|
|
1314
|
+
return candidates.find((c) => !isGenericUserMessage(c)) ?? candidates[0];
|
|
1315
|
+
}
|
|
1316
|
+
function extractMatrxErrorCode(serverDetail) {
|
|
1317
|
+
if (!isRecord3(serverDetail)) return null;
|
|
1318
|
+
const topLevel = nonBlankString(serverDetail.code);
|
|
1319
|
+
if (topLevel) return topLevel;
|
|
1320
|
+
const detail = serverDetail.detail;
|
|
1321
|
+
if (isRecord3(detail)) {
|
|
1322
|
+
const nested = nonBlankString(detail.code);
|
|
1323
|
+
if (nested) return nested;
|
|
1324
|
+
}
|
|
1325
|
+
return null;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
// matrx/client.ts
|
|
1329
|
+
var import_data = require("@ai-matrx/data");
|
|
1330
|
+
var import_data2 = require("@ai-matrx/data");
|
|
1331
|
+
var import_net2 = require("@ai-matrx/data/net");
|
|
1332
|
+
|
|
1332
1333
|
// matrx/org-context.ts
|
|
1333
1334
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
1334
1335
|
var OrganizationContextError = class extends Error {
|