@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
|
@@ -7462,7 +7462,7 @@ var PageMemberSchema = z2.string().min(1).max(256).refine(
|
|
|
7462
7462
|
"Unsafe Page member."
|
|
7463
7463
|
);
|
|
7464
7464
|
var PageValuePathSchema = z2.array(PageMemberSchema).max(16);
|
|
7465
|
-
var PageExpressionRootSchema = z2.enum(["state", "model", "bindings", "scope", "intent", "result", "actions"]);
|
|
7465
|
+
var PageExpressionRootSchema = z2.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions"]);
|
|
7466
7466
|
var PageOperatorSchema = z2.enum([
|
|
7467
7467
|
"add",
|
|
7468
7468
|
"subtract",
|
|
@@ -12169,6 +12169,9 @@ var QueryBindingSchema = z13.object({
|
|
|
12169
12169
|
draftRetention: z13.object({
|
|
12170
12170
|
identityParameters: z13.array(ContractIdentifierSchema).min(1).max(32)
|
|
12171
12171
|
}).strict().optional(),
|
|
12172
|
+
queryRetention: z13.object({
|
|
12173
|
+
identityParameters: z13.array(ContractIdentifierSchema).max(32)
|
|
12174
|
+
}).strict().optional(),
|
|
12172
12175
|
resultStateBindings: z13.array(QueryResultStateBindingSchema).max(32).optional(),
|
|
12173
12176
|
execution: z13.enum(["server", "local-state"]).default("server"),
|
|
12174
12177
|
pagination: z13.enum(["none", "cursor", "offset"]),
|
|
@@ -12192,6 +12195,18 @@ var QueryBindingSchema = z13.object({
|
|
|
12192
12195
|
});
|
|
12193
12196
|
}
|
|
12194
12197
|
}
|
|
12198
|
+
if (value.queryRetention) {
|
|
12199
|
+
const names = value.queryRetention.identityParameters;
|
|
12200
|
+
if (value.execution !== "server" || new Set(names).size !== names.length || names.some(
|
|
12201
|
+
(name) => !Object.prototype.hasOwnProperty.call(value.parameters, name)
|
|
12202
|
+
)) {
|
|
12203
|
+
context.addIssue({
|
|
12204
|
+
code: "custom",
|
|
12205
|
+
path: ["queryRetention"],
|
|
12206
|
+
message: "Query retention requires distinct declared Server query identity parameters."
|
|
12207
|
+
});
|
|
12208
|
+
}
|
|
12209
|
+
}
|
|
12195
12210
|
if (value.targetProjection) {
|
|
12196
12211
|
if (value.targetProjection.schemaRevisionRef.kind !== "schema")
|
|
12197
12212
|
context.addIssue({
|
|
@@ -13448,7 +13463,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
13448
13463
|
});
|
|
13449
13464
|
payloadPorts.add(binding.port);
|
|
13450
13465
|
for (const read of collectPageExpressionReads(binding.expression)) {
|
|
13451
|
-
if (read.root === "actions" || read.root === "result" || read.root === "state" && !stateIds.has(read.path[0] ?? "") || read.root === "bindings" && ![...value.ontologyBindings, ...queryBindings].some(
|
|
13466
|
+
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(
|
|
13452
13467
|
(candidate) => candidate.bindingId === read.path[0]
|
|
13453
13468
|
))
|
|
13454
13469
|
context.addIssue({
|
|
@@ -13533,7 +13548,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
13533
13548
|
value.renderTree.nodes.forEach((node, index) => {
|
|
13534
13549
|
if (!node.repeat) return;
|
|
13535
13550
|
for (const read of collectPageExpressionReads(node.repeat.source)) {
|
|
13536
|
-
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(
|
|
13551
|
+
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(
|
|
13537
13552
|
(binding) => binding.bindingId === read.path[0]
|
|
13538
13553
|
))
|
|
13539
13554
|
context.addIssue({
|
|
@@ -13590,7 +13605,15 @@ var ResolvedPageSchema = z13.object({
|
|
|
13590
13605
|
});
|
|
13591
13606
|
const checkScopedReads = (reads, scopes, path) => {
|
|
13592
13607
|
for (const read of reads) {
|
|
13593
|
-
|
|
13608
|
+
if (read.root === "queries" && (!read.path[0] || ![...value.ontologyBindings, ...queryBindings].some(
|
|
13609
|
+
(binding) => binding.bindingId === read.path[0]
|
|
13610
|
+
) || read.path.length !== 2 || !["status", "hasData", "errorCode"].includes(read.path[1] ?? "")))
|
|
13611
|
+
context.addIssue({
|
|
13612
|
+
code: "custom",
|
|
13613
|
+
path,
|
|
13614
|
+
message: "Query lifecycle expressions require a declared binding and may read only status, hasData, or errorCode."
|
|
13615
|
+
});
|
|
13616
|
+
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;
|
|
13594
13617
|
const pendingAggregate = read.root === "actions" && read.path.length === 2 && read.path[1] === "pending" && actionScopes.has(read.path[0]) && [...scopes].every(
|
|
13595
13618
|
(scope) => actionScopes.get(read.path[0]).has(scope)
|
|
13596
13619
|
);
|
|
@@ -13949,7 +13972,7 @@ var ResolvedPageSchema = z13.object({
|
|
|
13949
13972
|
message: "Property expressions must reference a declared Page state."
|
|
13950
13973
|
});
|
|
13951
13974
|
}
|
|
13952
|
-
if (expression.root === "bindings" && ![...value.ontologyBindings, ...queryBindings].some(
|
|
13975
|
+
if ((expression.root === "bindings" || expression.root === "queries") && ![...value.ontologyBindings, ...queryBindings].some(
|
|
13953
13976
|
(candidate) => candidate.bindingId === expression.path[0]
|
|
13954
13977
|
)) {
|
|
13955
13978
|
context.addIssue({
|