unoverse 0.1.224 → 0.1.225
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/package.json
CHANGED
|
@@ -57,8 +57,10 @@ export function readOrgName(dir) {
|
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* DOES THIS ORG OFFER ITS AGENTS to other orgs as a team (docs/unoverseCopilot/ORG_BUILDER.md § 0c;
|
|
60
|
-
* owner, 2026-11-15: "should be part of the org yaml, not a switch")? Only `
|
|
61
|
-
* unoverse.yaml says yes; absent, or anything else, is no.
|
|
60
|
+
* owner, 2026-11-15: "should be part of the org yaml, not a switch")? Only `marketplace: true` in its
|
|
61
|
+
* unoverse.yaml says yes; absent, or anything else, is no. The line marks a marketplace org, the same
|
|
62
|
+
* whether its team is added on this universe or installed from a remote marketplace (owner,
|
|
63
|
+
* 2026-11-19, who renamed it from `offerAgents`: "its the same flag, no need for both"). Declared in Git, so it changes by a
|
|
62
64
|
* reviewed commit, and no Agent can write it (unoverse.yaml is outside every org folder).
|
|
63
65
|
*/
|
|
64
66
|
export function readOrgOffersAgents(dir) {
|
|
@@ -66,12 +68,29 @@ export function readOrgOffersAgents(dir) {
|
|
|
66
68
|
if (!existsSync(file))
|
|
67
69
|
return false;
|
|
68
70
|
try {
|
|
69
|
-
return parseYaml(readFileSync(file, "utf8"))?.
|
|
71
|
+
return parseYaml(readFileSync(file, "utf8"))?.marketplace === true;
|
|
70
72
|
}
|
|
71
73
|
catch {
|
|
72
74
|
return false;
|
|
73
75
|
}
|
|
74
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* THE TEAM'S VERSION (docs/unoverseCopilot/ORG_BUILDER.md § 0c, step 2): the one number an org gives
|
|
79
|
+
* its team as a whole, `version: 1.2.3` in its unoverse.yaml, raised by hand in the pull request that
|
|
80
|
+
* releases it. Null when the file gives none, or gives anything that is not three numbers.
|
|
81
|
+
*/
|
|
82
|
+
export function readOrgVersion(dir) {
|
|
83
|
+
const file = join(dir, "unoverse.yaml");
|
|
84
|
+
if (!existsSync(file))
|
|
85
|
+
return null;
|
|
86
|
+
try {
|
|
87
|
+
const version = parseYaml(readFileSync(file, "utf8"))?.version;
|
|
88
|
+
return typeof version === "string" && /^\d+\.\d+\.\d+$/.test(version.trim()) ? version.trim() : null;
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
75
94
|
/** This folder as an org repo, or null. */
|
|
76
95
|
export function orgRepo(dir) {
|
|
77
96
|
const org = readOrgName(dir);
|
|
@@ -1052,6 +1052,36 @@
|
|
|
1052
1052
|
},
|
|
1053
1053
|
"additionalProperties": false
|
|
1054
1054
|
},
|
|
1055
|
+
"ask": {
|
|
1056
|
+
"type": "object",
|
|
1057
|
+
"required": [
|
|
1058
|
+
"schema"
|
|
1059
|
+
],
|
|
1060
|
+
"description": "api/ask.yaml — WHAT THE RUN NOW WAITS ON, recorded after the node settles as the run's open question in the MCP tasks extension's own shape: an `elicitation/create` form (`{ message, requestedSchema }`). A client following the task (`subscriptions/listen`, `notifications/tasks`) reads the step from there and answers it with `tasks/update`.\n\nEvaluated over `output` (the connectors this run emitted) plus the usual roots, as `publish` is, so the question recorded is the step the node actually handed out. A run with no id (a headless evaluation) records nothing.",
|
|
1061
|
+
"properties": {
|
|
1062
|
+
"when": {
|
|
1063
|
+
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1064
|
+
"description": "Record the question when true; false clears the one standing. Absent means always."
|
|
1065
|
+
},
|
|
1066
|
+
"message": {
|
|
1067
|
+
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1068
|
+
"description": "The form's message: the text shown with the question. Absent means an empty message."
|
|
1069
|
+
},
|
|
1070
|
+
"schema": {
|
|
1071
|
+
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1072
|
+
"description": "The form's `requestedSchema`. Must evaluate to a plain object; anything else records nothing and clears the question standing."
|
|
1073
|
+
},
|
|
1074
|
+
"wait": {
|
|
1075
|
+
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1076
|
+
"description": "When true, the node is held on this question until the person answers. Absent means the node waits whenever `answer` is declared."
|
|
1077
|
+
},
|
|
1078
|
+
"answer": {
|
|
1079
|
+
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1080
|
+
"description": "What an accept hands back, with the accepted form's content in scope as `answer`. The node runs again with the value as its next collected input. A decline or a cancel stops the task. Without it the node never waits."
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"additionalProperties": false
|
|
1084
|
+
},
|
|
1055
1085
|
"renderComponents": {
|
|
1056
1086
|
"$ref": "_defs.schema.json#/definitions/expression",
|
|
1057
1087
|
"description": "api/renderComponents.yaml — rows to render as content cards on the CALLER'S LIVE SCREEN, e.g. \"return response.results\". The RUN LANE'S card lane, the same renderer the service channel's per-method `renderComponents` uses: a row carrying a component app (metadata.app) draws its card the moment the node settles. Data-driven, never a model tool.\n\nEvaluated AFTER the events table, over the FULL settled reply (`response` is the final call's payload; `output` and `calls` are also in scope), because a card needs the full row (component uri, images, authored copy) that an events projection strips.\n\nFire-and-forget: a card is a side channel to a screen and must not hold up the graph. With no live session (builder, tests, headless, cron) it no-ops on the missing session id, so a manifest declaring it stays pure wherever it is not wanted, with no flag to juggle."
|
|
@@ -426,6 +426,13 @@ export function lintObjects(designRoot, options = {}) {
|
|
|
426
426
|
if (ch.node) report("error", at, `agent ${name}: the spatial trigger names no node; the Agent is found in its org's Spatial`);
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
429
|
+
// TALKED TO BY A2A (docs/architecture/signal/AGENTS.md § 5a): the platform's own door serves it,
|
|
430
|
+
// so it names no node. Its Agent Card must say a version (A2A § 4.4.1), so its file must.
|
|
431
|
+
if (ch.name === "a2a") {
|
|
432
|
+
if (ch.node) report("error", at, `agent ${name}: the a2a trigger names no node; the platform serves A2A itself`);
|
|
433
|
+
if (typeof doc.version !== "string" || !doc.version.trim()) report("error", at, `agent ${name}: the a2a trigger needs a version in its file, for its Agent Card`);
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
429
436
|
if (!ch.node) report("error", at, `agent ${name}: trigger ${ch.name} names no node`);
|
|
430
437
|
else if (nodes && !nodes.has(ch.node)) report("error", at, `agent ${name}: trigger ${ch.name} names node ${ch.node}, which is not a node here`);
|
|
431
438
|
}
|