@inf-monkeys-tech/monkeys 1.1.21 → 1.1.23
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/lib/contracts/agent-native-runtime.d.ts +56 -0
- package/lib/contracts/agent-native-runtime.d.ts.map +1 -0
- package/lib/contracts/agent-native-runtime.js +47 -0
- package/lib/contracts/agent-native-runtime.js.map +1 -0
- package/lib/contracts/declarative-control-http.d.ts +78 -0
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control.d.ts +12 -0
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +41 -8
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +24 -0
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/contracts/index.d.ts +31 -30
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/page-expression.d.ts +2 -1
- package/lib/contracts/page-expression.d.ts.map +1 -1
- package/lib/contracts/page-expression.js +1 -1
- package/lib/contracts/page-expression.js.map +1 -1
- package/lib/esm/contracts/index.mjs +2525 -2452
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +2525 -2452
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +28 -5
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +28 -5
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/overlay-node.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +19 -0
- package/lib/json-schema/page.schema.json +19 -0
- package/lib/json-schema/render-node.schema.json +1 -0
- package/lib/json-schema/render-tree.schema.json +1 -0
- package/lib/runtime/page-expression.d.ts +1 -1
- package/lib/runtime/page-expression.d.ts.map +1 -1
- package/lib/schemas/index.d.ts +3 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6926,7 +6926,7 @@ var PageMemberSchema = z5.string().min(1).max(256).refine(
|
|
|
6926
6926
|
"Unsafe Page member."
|
|
6927
6927
|
);
|
|
6928
6928
|
var PageValuePathSchema = z5.array(PageMemberSchema).max(16);
|
|
6929
|
-
var PageExpressionRootSchema = z5.enum(["state", "model", "bindings", "scope", "intent", "result", "actions"]);
|
|
6929
|
+
var PageExpressionRootSchema = z5.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions"]);
|
|
6930
6930
|
var PageOperatorSchema = z5.enum([
|
|
6931
6931
|
"add",
|
|
6932
6932
|
"subtract",
|
|
@@ -9034,6 +9034,9 @@ var QueryBindingSchema = z8.object({
|
|
|
9034
9034
|
draftRetention: z8.object({
|
|
9035
9035
|
identityParameters: z8.array(ContractIdentifierSchema).min(1).max(32)
|
|
9036
9036
|
}).strict().optional(),
|
|
9037
|
+
queryRetention: z8.object({
|
|
9038
|
+
identityParameters: z8.array(ContractIdentifierSchema).max(32)
|
|
9039
|
+
}).strict().optional(),
|
|
9037
9040
|
resultStateBindings: z8.array(QueryResultStateBindingSchema).max(32).optional(),
|
|
9038
9041
|
execution: z8.enum(["server", "local-state"]).default("server"),
|
|
9039
9042
|
pagination: z8.enum(["none", "cursor", "offset"]),
|
|
@@ -9057,6 +9060,18 @@ var QueryBindingSchema = z8.object({
|
|
|
9057
9060
|
});
|
|
9058
9061
|
}
|
|
9059
9062
|
}
|
|
9063
|
+
if (value.queryRetention) {
|
|
9064
|
+
const names = value.queryRetention.identityParameters;
|
|
9065
|
+
if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
|
|
9066
|
+
(name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
|
|
9067
|
+
)) {
|
|
9068
|
+
context.addIssue({
|
|
9069
|
+
code: "custom",
|
|
9070
|
+
path: ["queryRetention"],
|
|
9071
|
+
message: "Query retention requires distinct declared Server query identity parameters."
|
|
9072
|
+
});
|
|
9073
|
+
}
|
|
9074
|
+
}
|
|
9060
9075
|
if (value.targetProjection) {
|
|
9061
9076
|
if (value.targetProjection.schemaRevisionRef.kind !== "schema")
|
|
9062
9077
|
context.addIssue({
|
|
@@ -10313,7 +10328,7 @@ var ResolvedPageSchema = z8.object({
|
|
|
10313
10328
|
});
|
|
10314
10329
|
payloadPorts.add(binding.port);
|
|
10315
10330
|
for (const read of collectPageExpressionReads(binding.expression)) {
|
|
10316
|
-
if (read.root === "actions" || read.root === "result" || read.root === "state" && !stateIds.has(read.path[0] ?? "") || read.root === "bindings" && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10331
|
+
if (read.root === "actions" || read.root === "result" || read.root === "state" && !stateIds.has(read.path[0] ?? "") || (read.root === "bindings" || read.root === "queries") && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10317
10332
|
(candidate) => candidate.bindingId === read.path[0]
|
|
10318
10333
|
))
|
|
10319
10334
|
context.addIssue({
|
|
@@ -10398,7 +10413,7 @@ var ResolvedPageSchema = z8.object({
|
|
|
10398
10413
|
value.renderTree.nodes.forEach((node, index) => {
|
|
10399
10414
|
if (!node.repeat) return;
|
|
10400
10415
|
for (const read of collectPageExpressionReads(node.repeat.source)) {
|
|
10401
|
-
if (read.root === "actions" || read.root === "intent" || read.root === "result" || read.root === "model" || read.root === "state" && !stateIds.has(read.path[0] ?? "") || read.root === "bindings" && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10416
|
+
if (read.root === "actions" || read.root === "intent" || read.root === "result" || read.root === "model" || read.root === "state" && !stateIds.has(read.path[0] ?? "") || (read.root === "bindings" || read.root === "queries") && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10402
10417
|
(binding) => binding.bindingId === read.path[0]
|
|
10403
10418
|
))
|
|
10404
10419
|
context.addIssue({
|
|
@@ -10455,7 +10470,15 @@ var ResolvedPageSchema = z8.object({
|
|
|
10455
10470
|
});
|
|
10456
10471
|
const checkScopedReads = (reads, scopes, path) => {
|
|
10457
10472
|
for (const read of reads) {
|
|
10458
|
-
|
|
10473
|
+
if (read.root === "queries" && (!read.path[0] || ![...value.ontologyBindings, ...queryBindings].some(
|
|
10474
|
+
(binding) => binding.bindingId === read.path[0]
|
|
10475
|
+
) || read.path.length !== 2 || !["status", "hasData", "errorCode"].includes(read.path[1] ?? "")))
|
|
10476
|
+
context.addIssue({
|
|
10477
|
+
code: "custom",
|
|
10478
|
+
path,
|
|
10479
|
+
message: "Query lifecycle expressions require a declared binding and may read only status, hasData, or errorCode."
|
|
10480
|
+
});
|
|
10481
|
+
const owner = read.root === "state" ? stateDefinitions.find((state) => state.stateId === read.path[0])?.scopeNodeId : read.root === "bindings" ? queryOwners.get(read.path[0]) : read.root === "queries" ? queryOwners.get(read.path[0]) : read.root === "actions" ? actionOwners.get(read.path[0]) : void 0;
|
|
10459
10482
|
const pendingAggregate = read.root === "actions" && read.path.length === 2 && read.path[1] === "pending" && actionScopes.has(read.path[0]) && [...scopes].every(
|
|
10460
10483
|
(scope) => actionScopes.get(read.path[0]).has(scope)
|
|
10461
10484
|
);
|
|
@@ -10814,7 +10837,7 @@ var ResolvedPageSchema = z8.object({
|
|
|
10814
10837
|
message: "Property expressions must reference a declared Page state."
|
|
10815
10838
|
});
|
|
10816
10839
|
}
|
|
10817
|
-
if (expression.root === "bindings" && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10840
|
+
if ((expression.root === "bindings" || expression.root === "queries") && ![...value.ontologyBindings, ...queryBindings].some(
|
|
10818
10841
|
(candidate) => candidate.bindingId === expression.path[0]
|
|
10819
10842
|
)) {
|
|
10820
10843
|
context.addIssue({
|