unoverse 0.1.205 → 0.1.207
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/lint.mjs +15 -1
- package/operator/ansible/playbooks/install.yml +1 -1
- package/operator/docker-compose.yml +32 -4
- package/operator/lib/check.sh +2 -2
- package/operator/lib/db-verify.sh +22 -4
- package/package.json +1 -1
- package/vendor/base/items/collect.js +30 -26
- package/vendor/base/items/publish.js +30 -6
- package/vendor/base/lint/context.mjs +17 -0
- package/vendor/base/lint/design/file.mjs +199 -2
- package/vendor/base/lint/design/index.mjs +66 -73
- package/vendor/base/lint/design/vocabulary.mjs +5 -2
- package/vendor/base/lint/design/walk.mjs +14 -4
- package/vendor/base/lint/nodes/_schema/_defs.schema.json +1 -1
- package/vendor/base/lint/nodes/_schema/api.schema.json +60 -1
- package/vendor/base/lint/nodes/_schema/audio.schema.json +27 -4
- package/vendor/base/lint/nodes/_schema/config.schema.json +3 -2
- package/vendor/base/lint/nodes/_schema/credential.schema.json +88 -4
- package/vendor/base/lint/nodes/_schema/interface.schema.json +57 -0
- package/vendor/base/lint/nodes/_schema/node.schema.json +59 -12
- package/vendor/base/lint/nodes/_schema/package.schema.json +4 -0
- package/vendor/base/lint/nodes/blocks.mjs +6 -2
- package/vendor/base/lint/nodes/index.mjs +5 -0
- package/vendor/base/lint/nodes/node.mjs +157 -7
- package/vendor/base/lint/objects/_schema/objects/dataset.schema.json +84 -0
- package/vendor/base/lint/objects/_schema/objects/make.schema.json +95 -0
- package/vendor/base/lint/objects/_schema/objects/object.schema.json +266 -0
- package/vendor/base/lint/objects/_schema/objects/props.schema.json +243 -0
- package/vendor/base/lint/objects/_schema/objects/service.schema.json +109 -0
- package/vendor/base/lint/objects/_schema/objects/test.schema.json +76 -0
- package/vendor/base/lint/objects/_schema/pipelines/config.schema.json +6 -0
- package/vendor/base/lint/objects/_schema/pipelines/interface.schema.json +6 -0
- package/vendor/base/lint/objects/_schema/pipelines/pipeline.schema.json +161 -0
- package/vendor/base/lint/objects/_schema/pipelines/test.schema.json +42 -0
- package/vendor/base/lint/objects/index.mjs +324 -0
- package/vendor/base/lint/objects/rules.mjs +446 -0
- package/vendor/base/lint/prompts/index.mjs +198 -0
package/lib/lint.mjs
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* It exists because the gate used to be reachable only by deploying (2026-09-05): the
|
|
10
10
|
* first place a developer met a lint error was halfway through shipping.
|
|
11
11
|
*/
|
|
12
|
+
import { existsSync } from "node:fs";
|
|
13
|
+
import { join } from "node:path";
|
|
12
14
|
import { findWorkspace, designHome } from "./workspace.mjs";
|
|
13
15
|
|
|
14
16
|
const c = { dim: "\x1b[2m", red: "\x1b[31m", green: "\x1b[32m", yellow: "\x1b[33m", bold: "\x1b[1m", off: "\x1b[0m" };
|
|
@@ -50,10 +52,22 @@ export async function lint(args, importBase) {
|
|
|
50
52
|
console.error(`\n ${c.red}✗${c.off} ${designRoot} holds no projects\n`);
|
|
51
53
|
process.exit(1);
|
|
52
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* THE MARKETPLACE TIER IS LINTABLE (2026-09-18). It is not a project (`listProjects`
|
|
57
|
+
* excludes it, rightly: a publish of "marketplace" is the platform owner's release, not
|
|
58
|
+
* a deploy), but it holds skills, blocks, objects and nodes that the same rules apply
|
|
59
|
+
* to, and until now the universal tier was the one place with no gate at all.
|
|
60
|
+
*/
|
|
61
|
+
const marketplaceHere = existsSync(join(designRoot, "marketplace"));
|
|
53
62
|
let project = positional;
|
|
63
|
+
if (project === "marketplace" && marketplaceHere) {
|
|
64
|
+
console.log(`\n ${c.bold}lint marketplace${c.off}\n`);
|
|
65
|
+
const { errors } = await lintProject({ lintForPublish, designRoot, project });
|
|
66
|
+
process.exit(errors.length ? 1 : 0);
|
|
67
|
+
}
|
|
54
68
|
if (!project) {
|
|
55
69
|
if (projects.length > 1) {
|
|
56
|
-
console.error(`\n several projects here. Say which:\n\n unoverse lint <project>\n\n Found: ${projects.join(", ")}\n`);
|
|
70
|
+
console.error(`\n several projects here. Say which:\n\n unoverse lint <project>\n\n Found: ${projects.join(", ")}${marketplaceHere ? ", marketplace" : ""}\n`);
|
|
57
71
|
process.exit(1);
|
|
58
72
|
}
|
|
59
73
|
project = projects[0];
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
vars:
|
|
23
23
|
gravity_dir: /opt/gravity
|
|
24
|
-
core_services: "unoverse memory canvas umap" # server + workflow + mcp-server retired — unoverse serves :4101 (engine in-process), the public :4105 API, and native MCP (:4105/mcp, :4106/mcp internal)
|
|
24
|
+
core_services: "unoverse memory canvas umap documents" # server + workflow + mcp-server retired — unoverse serves :4101 (engine in-process), the public :4105 API, and native MCP (:4105/mcp, :4106/mcp internal)
|
|
25
25
|
|
|
26
26
|
pre_tasks:
|
|
27
27
|
- name: "[1/10] Check current system"
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
# canvas, umap, memory. Code protected, pulled as images.
|
|
8
8
|
#
|
|
9
9
|
# LAYER 2: PLATFORM-DEV MOUNTS (monorepo only — sync-starter strips them)
|
|
10
|
-
# - apps/unoverse/nodes — node manifests
|
|
11
10
|
# - apps/unoverse/design — design (components, templates, styles)
|
|
12
11
|
# - apps/unoverse/prompts — behavior (skills + blocks)
|
|
13
12
|
# In a STARTER/customer universe these folders do not exist: authoring is
|
|
@@ -164,6 +163,30 @@ services:
|
|
|
164
163
|
logging: *default-logging
|
|
165
164
|
restart: unless-stopped
|
|
166
165
|
|
|
166
|
+
# Document service - Python, reads a file into its structure (text, tables as rows,
|
|
167
|
+
# figures, lists, dates, provenance). docs/unoverse/data/documents/README.md.
|
|
168
|
+
#
|
|
169
|
+
# REACHED AS http://documents:5002 OVER THE DOCKER NETWORK BY THE MARKETPLACE NODES that
|
|
170
|
+
# name it (ParseDocument, RenderDocument, InventoryFolder), through the host on their
|
|
171
|
+
# credential; the engine never learns a URL for it. NOT PUBLISHED, no `ports:` block, for
|
|
172
|
+
# the same reason umap has none (above). Same auth rules: refuses to boot enabled without
|
|
173
|
+
# OIDC, or disabled in production.
|
|
174
|
+
#
|
|
175
|
+
# Parsing is CPU-bound and a worker holds the layout models: DOCUMENTS_WORKERS is the one
|
|
176
|
+
# knob, two by default. The models are baked into the image (no egress, instant boot); the
|
|
177
|
+
# parse cache is a volume so an unchanged file in a re-read pack is a lookup.
|
|
178
|
+
documents:
|
|
179
|
+
image: registry.digitalocean.com/gravity-repo/documents:latest
|
|
180
|
+
environment:
|
|
181
|
+
- AUTH_ENABLED=${AUTH_ENABLED:-true}
|
|
182
|
+
- AUTH_ISSUER=${AUTH_ISSUER}
|
|
183
|
+
- AUTH_AUDIENCE=${AUTH_AUDIENCE}
|
|
184
|
+
- DOCUMENTS_WORKERS=${DOCUMENTS_WORKERS:-2}
|
|
185
|
+
volumes:
|
|
186
|
+
- documents_cache:/app/cache
|
|
187
|
+
logging: *default-logging
|
|
188
|
+
restart: unless-stopped
|
|
189
|
+
|
|
167
190
|
# Unoverse - node plane (author·distribute·execute): the relocated node runtime +
|
|
168
191
|
# workbench + MCP. TWO listeners:
|
|
169
192
|
# :4105 = PUBLIC (MCP + workbench), JWT-gated — published below.
|
|
@@ -259,6 +282,10 @@ services:
|
|
|
259
282
|
- CREDENTIAL_ENCRYPTION_KEY=${CREDENTIAL_ENCRYPTION_KEY:-}
|
|
260
283
|
- REDIS_NAMESPACE=${REDIS_NAMESPACE:-}
|
|
261
284
|
- UMAP_SERVICE_URL=http://umap:5001
|
|
285
|
+
# The document service, reached the same way: the engine proxies the marketplace's
|
|
286
|
+
# document nodes to it (routes/documents.ts), because a node call must be https or
|
|
287
|
+
# loopback and this service is neither.
|
|
288
|
+
- DOCUMENTS_SERVICE_URL=http://documents:5002
|
|
262
289
|
# Agent nodes POST conversation turns to the memory server (ingestConversationTurn).
|
|
263
290
|
# Without this the code falls back to http://localhost:4104 — nothing inside THIS
|
|
264
291
|
# container — so every ingest silently fails (fire-and-forget) and memory never
|
|
@@ -270,7 +297,7 @@ services:
|
|
|
270
297
|
- PLUGINS_DIR=/app/plugins
|
|
271
298
|
# Dev-editable folders are mounted over the image below; NODE_PATH resolves
|
|
272
299
|
# their hoisted deps from the local workspace node_modules. The plugins dir is
|
|
273
|
-
# also on NODE_PATH so locally-built component nodes (
|
|
300
|
+
# also on NODE_PATH so locally-built component nodes (design/marketplace/nodes/*, which
|
|
274
301
|
# live OUTSIDE /app/plugins) can resolve @unoverse-platform/plugin-base — the only
|
|
275
302
|
# copy carrying a built dist. Without this the runtime hits MODULE_NOT_FOUND and
|
|
276
303
|
# the nodes show "Package not installed".
|
|
@@ -281,10 +308,10 @@ services:
|
|
|
281
308
|
# a `unoverse_base:/app/base` volume here between 2026-08-30 and 2026-09-03, holding a
|
|
282
309
|
# base the entrypoint installed from npm at startup. Both are gone: base is compiled in
|
|
283
310
|
# from the workspace, so the image and its runtime cannot disagree.
|
|
284
|
-
# ── Platform-dev mounts (monorepo only; sync-starter strips these
|
|
311
|
+
# ── Platform-dev mounts (monorepo only; sync-starter strips these two
|
|
285
312
|
# lines from the starter's copy — a customer universe serves what the DB
|
|
286
313
|
# says). Local edits are picked up on restart; design/prompts are data, no build.
|
|
287
|
-
- ./apps/unoverse/design:/app/apps/unoverse/design #
|
|
314
|
+
- ./apps/unoverse/design:/app/apps/unoverse/design # every authored kind: components, templates, styles, skills, blocks, nodes
|
|
288
315
|
- ./node_modules:/app/host_node_modules # Hoisted deps for locally-built nodes
|
|
289
316
|
healthcheck:
|
|
290
317
|
# Ready = internal runtime port up (nodes are loaded into memory BEFORE it binds).
|
|
@@ -398,4 +425,5 @@ services:
|
|
|
398
425
|
|
|
399
426
|
volumes:
|
|
400
427
|
umap_models:
|
|
428
|
+
documents_cache: # parsed replies by content hash plus parser version
|
|
401
429
|
unoverse_plugins: # Marketplace-installed node packages (persisted across restarts)
|
package/operator/lib/check.sh
CHANGED
|
@@ -60,7 +60,7 @@ cmd_check() {
|
|
|
60
60
|
local pass=0 total=0
|
|
61
61
|
|
|
62
62
|
# 1. Services
|
|
63
|
-
for svc in unoverse canvas umap memory; do
|
|
63
|
+
for svc in unoverse canvas umap documents memory; do
|
|
64
64
|
total=$((total + 1))
|
|
65
65
|
local status
|
|
66
66
|
status=$(docker compose -f "$ROOT/docker-compose.yml" ps --format '{{.Status}}' "$svc" 2>/dev/null | head -1)
|
|
@@ -95,7 +95,7 @@ cmd_check() {
|
|
|
95
95
|
fi
|
|
96
96
|
|
|
97
97
|
# 2. Health endpoints
|
|
98
|
-
for endpoint in 4105:unoverse 4101:engine 5001:umap 4104:memory; do
|
|
98
|
+
for endpoint in 4105:unoverse 4101:engine 5001:umap 5002:documents 4104:memory; do
|
|
99
99
|
local port="${endpoint%%:*}" name="${endpoint##*:}"
|
|
100
100
|
total=$((total + 1))
|
|
101
101
|
local code
|
|
@@ -41,7 +41,8 @@ cmd_db_verify() {
|
|
|
41
41
|
workflow_executions: [
|
|
42
42
|
"execution_id", "workflow_id", "status", "start_time", "end_time",
|
|
43
43
|
"duration", "error", "result", "created_at", "was_from_cache", "source",
|
|
44
|
-
"user_id"
|
|
44
|
+
"user_id", "task_ref", "state_ciphertext", "wake", "wake_at",
|
|
45
|
+
"expires_at", "snapshot_id"
|
|
45
46
|
],
|
|
46
47
|
node_traces: [
|
|
47
48
|
"trace_id", "execution_id", "node_id", "node_type", "start_time",
|
|
@@ -66,7 +67,7 @@ cmd_db_verify() {
|
|
|
66
67
|
"metadata", "created_at", "updated_at", "embedding_original"
|
|
67
68
|
],
|
|
68
69
|
memories: [
|
|
69
|
-
"id", "user_id", "workflow_id", "memory_id", "content",
|
|
70
|
+
"id", "user_id", "org", "workflow_id", "memory_id", "content",
|
|
70
71
|
"source_conversation_id", "created_at", "updated_at", "type",
|
|
71
72
|
"domain", "certainty", "reinforcement_count", "last_reinforced",
|
|
72
73
|
"supports", "contradicts", "supersedes"
|
|
@@ -90,7 +91,7 @@ cmd_db_verify() {
|
|
|
90
91
|
],
|
|
91
92
|
dictionary_need_states: [
|
|
92
93
|
"universal_id", "content_hash", "title", "description", "object_type",
|
|
93
|
-
"
|
|
94
|
+
"related_needs", "source_url", "source_id", "umap_x", "umap_y", "umap_z",
|
|
94
95
|
"umap_cluster_id", "color_hex", "needs_umap_update", "created_at",
|
|
95
96
|
"updated_at", "workflow_id", "key_need", "metadata", "embedding_original",
|
|
96
97
|
"cluster_distance", "org"
|
|
@@ -120,6 +121,16 @@ cmd_db_verify() {
|
|
|
120
121
|
"chunk_id", "need_id", "similarity_score", "rank", "match_type",
|
|
121
122
|
"created_at", "workflow_id", "org"
|
|
122
123
|
],
|
|
124
|
+
dictionary_links: [
|
|
125
|
+
"from_id", "to_id", "name", "type", "org", "provenance", "created_at"
|
|
126
|
+
],
|
|
127
|
+
dictionary_faces: [
|
|
128
|
+
"parent_id", "part_id", "kind", "org", "embedding", "face_hash", "updated_at"
|
|
129
|
+
],
|
|
130
|
+
dictionary_pieces: [
|
|
131
|
+
"parent_id", "part_id", "part_no", "kind", "org", "title", "page_from", "page_to",
|
|
132
|
+
"text", "content_hash", "split_version", "words", "updated_at"
|
|
133
|
+
],
|
|
123
134
|
dictionary_ingestion_configs: [
|
|
124
135
|
"id", "name", "description", "connector_type", "connector_config",
|
|
125
136
|
"main_category", "workflow_id", "created_at", "updated_at",
|
|
@@ -130,6 +141,12 @@ cmd_db_verify() {
|
|
|
130
141
|
"config", "extraction_config", "started_at", "completed_at",
|
|
131
142
|
"progress", "error", "created_at", "org"
|
|
132
143
|
],
|
|
144
|
+
dictionary_ingestion_inbox: [
|
|
145
|
+
"id", "org", "source", "source_url", "source_id", "job_id", "suggested", "yields",
|
|
146
|
+
"content", "content_hash", "provenance", "priority", "state", "claimed_at", "claimed_by",
|
|
147
|
+
"attempts", "error", "result", "progress", "created_at", "updated_at",
|
|
148
|
+
"item_key", "read_hash", "read_with", "runs"
|
|
149
|
+
],
|
|
133
150
|
goals: [
|
|
134
151
|
"goal_id", "user_id", "workflow_id", "status", "description",
|
|
135
152
|
"acceptance_criteria", "budget", "goal_state", "created_workflow_ids",
|
|
@@ -142,7 +159,8 @@ cmd_db_verify() {
|
|
|
142
159
|
"goal_id", "agent_id", "agent_name", "state", "updated_at"
|
|
143
160
|
],
|
|
144
161
|
orgs: [
|
|
145
|
-
"slug", "name", "settings", "website", "logo", "
|
|
162
|
+
"slug", "name", "settings", "website", "logo", "memory_config",
|
|
163
|
+
"created_at", "updated_at"
|
|
146
164
|
],
|
|
147
165
|
knowledge_docs: [
|
|
148
166
|
"id", "workflow_id", "title", "doc_type", "sections", "version",
|
package/package.json
CHANGED
|
@@ -35,13 +35,9 @@ function designSystemDir(designRoot) {
|
|
|
35
35
|
const onDisk = join(designRoot, "marketplace");
|
|
36
36
|
if (existsSync(onDisk))
|
|
37
37
|
return onDisk;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
join(designRoot, "..", "plugins", "node_modules", "@unoverse-platform", "marketplace", "definitions"),
|
|
42
|
-
])
|
|
43
|
-
if (existsSync(c))
|
|
44
|
-
return c;
|
|
38
|
+
const bundled = join(designRoot, "..", "plugins", "node_modules", "@unoverse-platform", "marketplace", "definitions");
|
|
39
|
+
if (existsSync(bundled))
|
|
40
|
+
return bundled;
|
|
45
41
|
return onDisk; // nothing found: the version will hash to an empty set, which is honest
|
|
46
42
|
}
|
|
47
43
|
/** Every project a developer could publish, by name. */
|
|
@@ -98,7 +94,11 @@ export function collectProject(designRoot, project) {
|
|
|
98
94
|
// Apps keep their bare ids: those are org-qualified by convention
|
|
99
95
|
// (`<org>-chat`). docs/unoverse/UNOVERSE_COMPONENT_ORGS.md.
|
|
100
96
|
// `identity` (2026-09-05): the org's four documents, `<org>/brand` like a component.
|
|
101
|
-
|
|
97
|
+
// `agent` (2026-09-06): a workflow listed for the map, design/<org>/agents/<name>.yaml, `<org>/<name>`.
|
|
98
|
+
// `object` and `pipeline` (2026-09-09): an org's own kinds beside the marketplace masters
|
|
99
|
+
// (docs/unoverse/data/objects/README.md 4e, docs/unoverse/data/pipelines/README.md layer 1), `<org>/<name>` like a
|
|
100
|
+
// component, since two orgs may each write a `deal`.
|
|
101
|
+
const QUALIFIED_KINDS = new Set(["component", "skill", "template", "identity", "agent", "object", "pipeline"]);
|
|
102
102
|
const add = (kind, name, definition) => items.push({
|
|
103
103
|
kind,
|
|
104
104
|
name: QUALIFIED_KINDS.has(kind) ? `${project}/${name}` : name,
|
|
@@ -125,7 +125,13 @@ export function collectProject(designRoot, project) {
|
|
|
125
125
|
// IDENTITY (owner ruling 2026-09-05): design/<org>/identity/<doc>/ publishes as kind
|
|
126
126
|
// `identity`, the same walk as a component folder, so it reaches the registry, the
|
|
127
127
|
// spatial catalogue and the map through the one publish path everything else takes.
|
|
128
|
-
|
|
128
|
+
// AGENT (owner ruling 2026-09-06): design/<org>/agents/<name>.yaml, a single file like an atom,
|
|
129
|
+
// publishes as kind `agent` so it reaches the registry, the catalogue and the map.
|
|
130
|
+
// OBJECT and PIPELINE (owner ruling 2026-09-09): design/<org>/objects/<name>/ and
|
|
131
|
+
// design/<org>/pipelines/<name>/, folders like a component, publish as their own kinds so
|
|
132
|
+
// an org's custom object and its own source reach the engine that positions its rows and
|
|
133
|
+
// the inbox that collects for it. The marketplace's own go through designSystemItems().
|
|
134
|
+
for (const [dir, kind] of [["components", "component"], ["apps", "app"], ["templates", "template"], ["atoms", "atom"], ["identity", "identity"], ["agents", "agent"], ["objects", "object"], ["pipelines", "pipeline"]]) {
|
|
129
135
|
const home = join(root, dir);
|
|
130
136
|
if (!existsSync(home))
|
|
131
137
|
continue;
|
|
@@ -195,22 +201,20 @@ export function collectProject(designRoot, project) {
|
|
|
195
201
|
};
|
|
196
202
|
walk(blocksHome);
|
|
197
203
|
}
|
|
198
|
-
// nodes/ — THE
|
|
199
|
-
// marketplace stores a node (core/items/catalogue.ts) so
|
|
200
|
-
// on the same path as disk: the raw files, plus the
|
|
201
|
-
// credential shapes resolve against. The name is the
|
|
202
|
-
// workflow stores that identity and nothing else.
|
|
204
|
+
// nodes/ — THE PROJECT'S NODE PACKAGES, design/<org>/nodes/<package>/, one row per
|
|
205
|
+
// node, shaped exactly as the marketplace stores a node (core/items/catalogue.ts) so
|
|
206
|
+
// the row source composes them on the same path as disk: the raw files, plus the
|
|
207
|
+
// package envelope their $refs and credential shapes resolve against. The name is the
|
|
208
|
+
// node's `type`, bare: a saved workflow stores that identity and nothing else.
|
|
203
209
|
//
|
|
204
|
-
// Until 2026-09-05 deploy never looked
|
|
205
|
-
// components and skills and silently left every node behind.
|
|
206
|
-
//
|
|
207
|
-
//
|
|
208
|
-
//
|
|
209
|
-
//
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
const nodesHome = join(designRoot, "..", "nodes");
|
|
213
|
-
if (existsSync(nodesHome) && !existsSync(join(designRoot, "marketplace"))) {
|
|
210
|
+
// Until 2026-09-05 deploy never looked at nodes at all, so `deploy studio` shipped a
|
|
211
|
+
// developer's components and skills and silently left every node behind. Until
|
|
212
|
+
// 2026-09-08 it looked at a `nodes/` folder beside design/ while every org already
|
|
213
|
+
// kept its nodes INSIDE its project, so the same nodes were left behind again. Org
|
|
214
|
+
// nodes are org-scoped like skills; the marketplace tier's own nodes sit under
|
|
215
|
+
// design/marketplace/, which is never collected.
|
|
216
|
+
const nodesHome = join(root, "nodes");
|
|
217
|
+
if (existsSync(nodesHome)) {
|
|
214
218
|
for (const pkg of collectNodePackages(nodesHome)) {
|
|
215
219
|
for (const raw of pkg.nodes) {
|
|
216
220
|
const type = nodeType(raw.files["node.yaml"]);
|
|
@@ -226,9 +230,9 @@ export function collectProject(designRoot, project) {
|
|
|
226
230
|
}
|
|
227
231
|
return items;
|
|
228
232
|
}
|
|
229
|
-
/** The
|
|
233
|
+
/** The project's node packages, read the way the platform reads its own. */
|
|
230
234
|
function collectNodePackages(nodesHome) {
|
|
231
|
-
return readDiskPackages(nodesHome)
|
|
235
|
+
return readDiskPackages(nodesHome);
|
|
232
236
|
}
|
|
233
237
|
/** `type:` off a node.yaml: the one scalar the row is named by. Unparseable means none. */
|
|
234
238
|
function nodeType(nodeYaml) {
|
|
@@ -27,17 +27,41 @@ export async function lintForPublish(designRoot, project) {
|
|
|
27
27
|
const { lintDefinitions } = await import("../lint/design/index.mjs");
|
|
28
28
|
const result = lintDefinitions(designRoot);
|
|
29
29
|
/**
|
|
30
|
-
* NODES TOO. A
|
|
31
|
-
* Studio Nodes screen reads), and until 2026-09-05 this gate never looked
|
|
32
|
-
* node with an events row out of order or a host missing from
|
|
33
|
-
* cleanly as a correct one. The node linter is the same
|
|
34
|
-
* runs. A
|
|
30
|
+
* NODES TOO. A project keeps its node packages at design/<project>/nodes/ (the same
|
|
31
|
+
* folder the Studio Nodes screen reads), and until 2026-09-05 this gate never looked
|
|
32
|
+
* at nodes at all: a node with an events row out of order or a host missing from
|
|
33
|
+
* allowedHosts deployed as cleanly as a correct one. The node linter is the same
|
|
34
|
+
* library the platform's own CI runs. A project with no nodes/ folder has nothing to
|
|
35
|
+
* lint and is not an error.
|
|
35
36
|
*/
|
|
36
|
-
const nodesHome = join(designRoot,
|
|
37
|
+
const nodesHome = join(designRoot, project, "nodes");
|
|
37
38
|
if (existsSync(nodesHome)) {
|
|
38
39
|
const { lintNodes } = await import("../lint/nodes/index.mjs");
|
|
39
40
|
result.problems.push(...lintNodes(nodesHome).problems);
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* OBJECTS AND PIPELINES TOO (objects README 9a, 2026-09-10). They live under
|
|
44
|
+
* design/<tier>/objects and /pipelines, folders neither linter above enumerates, and a
|
|
45
|
+
* home not enumerated is a home where every rule is off, silently. The objects linter
|
|
46
|
+
* walks every tier of the design root, like the design linter; the project filter below
|
|
47
|
+
* keeps this project's findings.
|
|
48
|
+
*/
|
|
49
|
+
{
|
|
50
|
+
const { lintObjects } = await import("../lint/objects/index.mjs");
|
|
51
|
+
result.problems.push(...lintObjects(designRoot).problems);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* SKILLS AND PROMPT BLOCKS TOO (2026-09-18). They live under design/<tier>/skills and
|
|
55
|
+
* /blocks, and nothing read them before publish: a SKILL.md whose frontmatter did not
|
|
56
|
+
* parse (a bare colon in the description) was published, and the run-time loaders then
|
|
57
|
+
* dropped it with one console line, so it was absent from every list and nobody was
|
|
58
|
+
* told. The prompts linter walks every tier, like the objects linter; the project filter
|
|
59
|
+
* below keeps this project's findings.
|
|
60
|
+
*/
|
|
61
|
+
{
|
|
62
|
+
const { lintPrompts } = await import("../lint/prompts/index.mjs");
|
|
63
|
+
result.problems.push(...lintPrompts(designRoot).problems);
|
|
64
|
+
}
|
|
41
65
|
/**
|
|
42
66
|
* SCOPED TO THE PROJECT BEING DEPLOYED, on paths that may be relative. The old
|
|
43
67
|
* check looked for "/design/" with a leading slash, which a relative path never
|
|
@@ -20,6 +20,21 @@ export const derivedKinds = new Map();
|
|
|
20
20
|
/** Credential name -> where it was declared, for cross-package collision rules. */
|
|
21
21
|
export const allCredentials = new Map();
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* ATTACHMENTS, and the config fields every other node declares.
|
|
25
|
+
*
|
|
26
|
+
* An attachment clips onto a node whose configSchema has every field it sets, so "can this
|
|
27
|
+
* attachment ever clip onto anything?" cannot be answered while reading the attachment: its
|
|
28
|
+
* host may be in a package that has not been read yet, or in no package at all. Both halves
|
|
29
|
+
* are collected here and checked once at the end of the run (node.mjs lintAttachments).
|
|
30
|
+
*
|
|
31
|
+
* The alternative was making the author declare the host, which is the `accepts:` list the
|
|
32
|
+
* whole design exists to avoid.
|
|
33
|
+
*/
|
|
34
|
+
export const attachments = new Map();
|
|
35
|
+
/** Node label -> the set of config field names it declares. */
|
|
36
|
+
export const configFields = new Map();
|
|
37
|
+
|
|
23
38
|
/** Where this run is reading. Set by lintNodes(), read by rel() and the loaders. */
|
|
24
39
|
export const state = { nodesHome: "", schemaDir: "", schemas: {} };
|
|
25
40
|
|
|
@@ -29,6 +44,8 @@ export function reset(nodesHome, schemaDir) {
|
|
|
29
44
|
refCounts.clear();
|
|
30
45
|
derivedKinds.clear();
|
|
31
46
|
allCredentials.clear();
|
|
47
|
+
attachments.clear();
|
|
48
|
+
configFields.clear();
|
|
32
49
|
state.nodesHome = nodesHome;
|
|
33
50
|
state.schemaDir = schemaDir;
|
|
34
51
|
state.schemas = {};
|
|
@@ -85,8 +85,44 @@ function checkDiscoveryMeta(report, file, json, kind, docs) {
|
|
|
85
85
|
report("warn", file, `discovery manifest has no "category". Name the domain of the job, never the implementation (${docs})`);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* AN AGENT FILE (docs.unoverse.ai/design/tasks, 2026-09-06): a workflow with no interface,
|
|
90
|
+
* listed for the map. The discovery meta answers to the same rules as every manifest,
|
|
91
|
+
* because the Agent is ranked against what a PERSON said. The door is three fields, always:
|
|
92
|
+
* a canvas, its Input Trigger, and the node whose output is the result; a door missing at
|
|
93
|
+
* run time fails the customer, not the author. The face is optional and defaults to the
|
|
94
|
+
* shared agent-card; when named, it must be a component that resolves.
|
|
95
|
+
*/
|
|
96
|
+
function checkAgentFile(report, file, json, componentNames) {
|
|
97
|
+
const docs = "docs.unoverse.ai/design/tasks";
|
|
98
|
+
if (json.type !== "agent") report("error", file, `agent file must declare "type: agent" (${docs})`);
|
|
99
|
+
const key = basename(file).replace(/\.(json|ya?ml)$/, "");
|
|
100
|
+
if (typeof json.name !== "string" || !json.name.trim()) report("error", file, `agent file missing "name" (${docs})`);
|
|
101
|
+
else {
|
|
102
|
+
if (json.name !== key) report("error", file, `agent "name: ${json.name}" must equal the file name "${key}" (${docs})`);
|
|
103
|
+
if (!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(json.name)) report("error", file, `agent name "${json.name}" must be kebab-case: it is the tool's name on the wire (${docs})`);
|
|
104
|
+
}
|
|
105
|
+
checkDiscoveryMeta(report, file, json, "agent", docs);
|
|
106
|
+
const door = ["workflow", "trigger", "output"].filter((k) => typeof json[k] === "string" && json[k].trim());
|
|
107
|
+
if (door.length < 3)
|
|
108
|
+
report("error", file, `agent door is three fields, always: workflow, trigger and output. Present: ${door.join(", ") || "none"} (${docs})`);
|
|
109
|
+
const app = typeof json.app === "string" ? json.app.trim() : "";
|
|
110
|
+
if (app) {
|
|
111
|
+
if (!/^unoverse:\/\/components\//.test(app))
|
|
112
|
+
report("error", file, `agent "app: ${app}" must be a component URI: the face while it runs (${docs})`);
|
|
113
|
+
else if (componentNames && componentNames.size && !componentNames.has(app.split("/").pop().toLowerCase()))
|
|
114
|
+
report("error", file, `agent face "${app}" does not resolve: no such component in this project or the design system (${docs})`);
|
|
115
|
+
}
|
|
116
|
+
if (json.instructions !== undefined && typeof json.instructions !== "string")
|
|
117
|
+
report("error", file, `agent "instructions" must be a string: what to do (${docs})`);
|
|
118
|
+
if (json.skills !== undefined && !(Array.isArray(json.skills) && json.skills.every((x) => typeof x === "string" && x.trim())))
|
|
119
|
+
report("error", file, `agent "skills" must be a list of skill names (${docs})`);
|
|
120
|
+
if (json.message !== undefined && typeof json.message !== "string")
|
|
121
|
+
report("error", file, `agent "message" must be a string: what the face says while it runs (${docs})`);
|
|
122
|
+
}
|
|
123
|
+
|
|
88
124
|
export function makeLintFile(ctx) {
|
|
89
|
-
const { report, walkNode, isFixture, isHook, isPropsExtract, isManifest, isAppPath, isTemplatePart, defRoot, componentNamesForFile, DS, orgDirs, RX, readText } = ctx;
|
|
125
|
+
const { report, walkNode, isFixture, isHook, isPropsExtract, isManifest, isAppPath, isTemplatePart, isAgentPath, defRoot, componentNamesForFile, placeNames, DS, orgDirs, RX, readText } = ctx;
|
|
90
126
|
|
|
91
127
|
function checkStateOrder(order, rootFolder, file, includeLayouts = false) {
|
|
92
128
|
if (!Array.isArray(order)) return;
|
|
@@ -115,6 +151,39 @@ function checkStateOrder(order, rootFolder, file, includeLayouts = false) {
|
|
|
115
151
|
// one folder grammar — while a manifest-held tree remains the legacy read, so
|
|
116
152
|
// both call sites validate identically).
|
|
117
153
|
function checkAppTree(json, root, file) {
|
|
154
|
+
// PREVIEW NAMES RESOLVE (docs.unoverse.ai/design/apps, ruled 2026-09-10). Studio seeds a
|
|
155
|
+
// picked state from its `preview` list by looking each name up among the components and
|
|
156
|
+
// templates the org can see, by bare name, and a name it cannot find seeds NOTHING and says
|
|
157
|
+
// nothing: the state's tab looks dead and nobody is told why (observed live: an app said
|
|
158
|
+
// `alpha/deal` where the component is `deal`). So the name is checked here, where
|
|
159
|
+
// the file is written, against the same set: the marketplace's and this org's own.
|
|
160
|
+
{
|
|
161
|
+
const comps = componentNamesForFile ? componentNamesForFile(file) : null;
|
|
162
|
+
const walkStates = (states, path) => {
|
|
163
|
+
if (!states || typeof states !== "object" || Array.isArray(states)) return;
|
|
164
|
+
for (const [name, entry] of Object.entries(states)) {
|
|
165
|
+
if (!entry || typeof entry !== "object") continue;
|
|
166
|
+
const where = path ? `${path}.${name}` : name;
|
|
167
|
+
if (Array.isArray(entry.preview)) {
|
|
168
|
+
for (const item of entry.preview) {
|
|
169
|
+
const raw = typeof item === "string" ? item : item && typeof item === "object" && !Array.isArray(item) ? Object.keys(item)[0] : undefined;
|
|
170
|
+
if (typeof raw !== "string" || !raw) continue;
|
|
171
|
+
// THE HASH NAMES THE STATE IT OPENS IN (STATE_MODEL rule 3, ruled 2026-09-09; owner
|
|
172
|
+
// 2026-09-11: a preview is written `deal#grid`). The name is what is checked; the
|
|
173
|
+
// state after the hash is the component's own to declare.
|
|
174
|
+
const ref = raw.split("#")[0];
|
|
175
|
+
if (ref.includes("/"))
|
|
176
|
+
report("error", file, `state "${where}" preview names "${ref}" with an org prefix. Studio seeds a preview by the component's bare name ("${ref.split("/").pop()}"); a prefixed name resolves to nothing and the state's tab shows nothing (docs.unoverse.ai/design/apps)`);
|
|
177
|
+
else if (comps && !comps.has(ref.toLowerCase()))
|
|
178
|
+
report("error", file, `state "${where}" preview names "${ref}", which is no component or template this org can see (design/marketplace/, this org's components/ and templates/). Studio would seed nothing and the state's tab would show nothing (docs.unoverse.ai/design/apps)`);
|
|
179
|
+
}
|
|
180
|
+
} else if (entry.preview !== undefined && (typeof entry.preview !== "object" || entry.preview === null))
|
|
181
|
+
report("error", file, `state "${where}" preview must be a list of component names, or an object of app-state mock data (docs.unoverse.ai/design/apps)`);
|
|
182
|
+
walkStates(entry.states, where);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
walkStates(json?.states, "");
|
|
186
|
+
}
|
|
118
187
|
if (json.states !== undefined) {
|
|
119
188
|
if (!json.states || typeof json.states !== "object" || Array.isArray(json.states)) {
|
|
120
189
|
report("error", file, `manifest "states" must be an object — the template tree: { <base>: { states: {…} }, <reaction>: {}, … } (STATE_MODEL §5)`);
|
|
@@ -190,6 +259,94 @@ function checkAppTree(json, root, file) {
|
|
|
190
259
|
} else checkStateOrder(json.stateOrder, root, file, /* includeLayouts */ true);
|
|
191
260
|
}
|
|
192
261
|
|
|
262
|
+
// ── an app's places (docs/unoverse/design/screen/UNOVERSE_SCREEN.md §2.2) ──
|
|
263
|
+
// An app that declares places is drawn from the screen document, which replaces a task with the
|
|
264
|
+
// next one and steps aside what a turn did not touch. An app that declares none runs the old
|
|
265
|
+
// render pipeline, where nothing replaces anything: a voice call stacked three tasks, and a
|
|
266
|
+
// comparison it built never reached the screen (2026-09-12). So the lint says which an app is,
|
|
267
|
+
// and holds a places app to the places its org's interfaces name.
|
|
268
|
+
function checkAppPlaces(json, root, file) {
|
|
269
|
+
const files = [];
|
|
270
|
+
const collect = (dir) => {
|
|
271
|
+
if (!existsSync(dir)) return;
|
|
272
|
+
for (const e of readdirSync(dir, { withFileTypes: true })) {
|
|
273
|
+
const f = join(dir, e.name);
|
|
274
|
+
if (e.isDirectory()) collect(f);
|
|
275
|
+
else if (isDefFile(e.name)) files.push(f);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
collect(join(root, "layouts"));
|
|
279
|
+
collect(join(root, "components"));
|
|
280
|
+
const places = new Set();
|
|
281
|
+
const claims = [];
|
|
282
|
+
const walk = (n, f) => {
|
|
283
|
+
if (Array.isArray(n)) return n.forEach((c) => walk(c, f));
|
|
284
|
+
if (!n || typeof n !== "object") return;
|
|
285
|
+
if (n.type === "Place" && typeof n.name === "string") places.add(n.name);
|
|
286
|
+
if (n.type === "ComponentSlot" && n.select?.where?.field === "state") claims.push(relative(root, f));
|
|
287
|
+
for (const v of Object.values(n)) walk(v, f);
|
|
288
|
+
};
|
|
289
|
+
for (const f of files) {
|
|
290
|
+
try {
|
|
291
|
+
walk(parseDef(readFileSync(f, "utf8"), f), f);
|
|
292
|
+
} catch {
|
|
293
|
+
/* an unreadable file is reported by its own lint */
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// THE MANIFEST'S `layout:` NAMES THE BASE STATE. Pointing it at a state the app no longer has
|
|
297
|
+
// leaves the app with no drawing at all: it loads, and nothing is placed (2026-09-12).
|
|
298
|
+
const manifest = defPath(root, "manifest");
|
|
299
|
+
if (manifest) {
|
|
300
|
+
try {
|
|
301
|
+
const m = parseDef(readFileSync(manifest, "utf8"), manifest);
|
|
302
|
+
const names = json.states && typeof json.states === "object" && !Array.isArray(json.states) ? Object.keys(json.states) : [];
|
|
303
|
+
if (m && typeof m.layout === "string" && names.length && !names.includes(m.layout))
|
|
304
|
+
report("error", file, `manifest.yaml says layout: ${m.layout}, which is no state of this app (${names.join(", ")}). The app would load with no drawing. Delete the line: the first state is the base (docs.unoverse.ai/design/apps)`);
|
|
305
|
+
} catch {
|
|
306
|
+
/* reported by its own lint */
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if (!places.size) {
|
|
310
|
+
report("warn", file, `app declares no Place, so it runs the old render pipeline: nothing replaces an open task and nothing steps aside when the conversation moves on. Declare its places in the layout, as sab-chat does (UNOVERSE_SCREEN.md §2.2)`);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
const states = json.states && typeof json.states === "object" && !Array.isArray(json.states) ? Object.keys(json.states) : [];
|
|
314
|
+
if (states.length > 1)
|
|
315
|
+
report("error", file, `app declares places and ${states.length} states (${states.join(", ")}). An app with places has one arrangement: its places open and close as the screen fills them, so a state per surface is the old ladder and draws nothing (UNOVERSE_SCREEN.md §2.2)`);
|
|
316
|
+
for (const f of new Set(claims))
|
|
317
|
+
report("error", file, `${f} claims interfaces by state (a ComponentSlot with select.where on state), the old reaction surface. In an app with places the screen decides what is shown; draw it in a Place (UNOVERSE_SCREEN.md §2.2)`);
|
|
318
|
+
// THE PLACES THIS ORG'S INTERFACES NAME. An interface whose state names a place this app lacks
|
|
319
|
+
// lands in the conversation, which a voice app does not draw at all.
|
|
320
|
+
const org = basename(dirname(root)) === "apps" ? dirname(dirname(root)) : null;
|
|
321
|
+
if (!org) return;
|
|
322
|
+
const named = new Map();
|
|
323
|
+
const statesOf = (st, where) => {
|
|
324
|
+
if (!st || typeof st !== "object" || Array.isArray(st)) return;
|
|
325
|
+
for (const [n, e] of Object.entries(st)) {
|
|
326
|
+
if (!e || typeof e !== "object") continue;
|
|
327
|
+
if (typeof e.place === "string" && e.place !== "chat" && !named.has(e.place)) named.set(e.place, `${where} (state "${n}")`);
|
|
328
|
+
statesOf(e.states, where);
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
for (const kind of ["components", "templates"]) {
|
|
332
|
+
const dir = join(org, kind);
|
|
333
|
+
if (!existsSync(dir)) continue;
|
|
334
|
+
for (const e of readdirSync(dir, { withFileTypes: true })) {
|
|
335
|
+
if (!e.isDirectory()) continue;
|
|
336
|
+
const f = defPath(join(dir, e.name), e.name);
|
|
337
|
+
if (!f) continue;
|
|
338
|
+
try {
|
|
339
|
+
statesOf(parseDef(readFileSync(f, "utf8"), f)?.states, `${kind}/${e.name}`);
|
|
340
|
+
} catch {
|
|
341
|
+
/* reported by its own lint */
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
for (const [place, by] of named)
|
|
346
|
+
if (!places.has(place))
|
|
347
|
+
report("error", file, `${by} is shown in place "${place}", which this app does not declare, so here it would land in the conversation. Declare a Place named "${place}" (this app has: ${[...places].sort().join(", ")}) (UNOVERSE_SCREEN.md §2.3)`);
|
|
348
|
+
}
|
|
349
|
+
|
|
193
350
|
// ── lint one file ──
|
|
194
351
|
function lintFile(file) {
|
|
195
352
|
// `readText` is disk unless the caller supplied an overlay for this path (index.mjs).
|
|
@@ -200,7 +357,8 @@ function lintFile(file) {
|
|
|
200
357
|
// Exempt: `appWidth` — the HOST-facing outer width (state-owned sizing, docs.unoverse.ai/design/apps).
|
|
201
358
|
// It is raw CSS the embed host applies to the app panel ("min(50vw, 760px)", "360px"),
|
|
202
359
|
// never a style the SDK resolves — token law governs the inside, not the envelope.
|
|
203
|
-
|
|
360
|
+
// An Agent file carries URIs and ids, never a style, so the token law has nothing to judge.
|
|
361
|
+
if (!isFixture(file) && !isHook(file) && !isManifest(file) && !(isAgentPath && isAgentPath(file)))
|
|
204
362
|
src.split("\n").forEach((line, i) => {
|
|
205
363
|
/**
|
|
206
364
|
* THE RULE JUDGES CODE, NEVER COMMENTARY. A comment explaining a contrast
|
|
@@ -236,6 +394,44 @@ function lintFile(file) {
|
|
|
236
394
|
if (isFixture(file)) return; // legacy fixture, unused: don't choke
|
|
237
395
|
if (isHook(file)) return; // a lifecycle hook: calls + a projection, not a UI tree
|
|
238
396
|
if (isPropsExtract(file)) return; // the envelope's props map, composed there — not a UI tree
|
|
397
|
+
if (isAgentPath && isAgentPath(file)) { // an Agent: a workflow listed for the map, not a UI tree
|
|
398
|
+
checkAgentFile(report, file, json, componentNamesForFile ? componentNamesForFile(file) : null);
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// ONE WORD (UNOVERSE_STATE_MODEL §5, "One word: `state`"): a step is a state, so a state tree
|
|
403
|
+
// carries no second name (`on:`), and a step's name is never a face's name.
|
|
404
|
+
if (!isAppPath(file) && json && typeof json === "object" && !Array.isArray(json) && json.states && typeof json.states === "object" && !Array.isArray(json.states)) {
|
|
405
|
+
const faces = new Set(Object.keys(json.states));
|
|
406
|
+
for (const [face, entry] of Object.entries(json.states)) {
|
|
407
|
+
if (!entry || typeof entry !== "object" || Array.isArray(entry)) continue;
|
|
408
|
+
if (entry.on !== undefined)
|
|
409
|
+
report("error", file, `state "${face}" names its steps with "on: ${entry.on}". A step is a state: drop "on:" and write state everywhere, Switch on: state, field: state, key: state (UNOVERSE_STATE_MODEL §5). Arrangement picked by data is a Switch in the layout, not a state`);
|
|
410
|
+
if (entry.states && typeof entry.states === "object" && !Array.isArray(entry.states))
|
|
411
|
+
for (const step of Object.keys(entry.states))
|
|
412
|
+
if (faces.has(step)) report("error", file, `state "${face}" has a step named "${step}", which is also a face. With one word, state, a name means one thing: rename the step (UNOVERSE_STATE_MODEL §5)`);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// A STATE'S PLACE (UNOVERSE_SCREEN.md §2.3) is `chat` or a Place some app declares. A name no
|
|
417
|
+
// app has sends the interface to the conversation without a word, so it is refused here.
|
|
418
|
+
if (placeNames && !isAppPath(file) && json && typeof json === "object" && !Array.isArray(json) && json.states && typeof json.states === "object") {
|
|
419
|
+
const known = placeNames();
|
|
420
|
+
const walkPlaces = (states, path) => {
|
|
421
|
+
for (const [name, entry] of Object.entries(states)) {
|
|
422
|
+
if (!entry || typeof entry !== "object" || Array.isArray(entry)) continue;
|
|
423
|
+
const where = path ? `${path}.${name}` : name;
|
|
424
|
+
if (entry.place !== undefined && known.size > 0) {
|
|
425
|
+
if (typeof entry.place !== "string")
|
|
426
|
+
report("error", file, `state "${where}" place must be a place name: chat, or a Place an app declares (UNOVERSE_SCREEN.md §2.3)`);
|
|
427
|
+
else if (entry.place !== "chat" && !known.has(entry.place))
|
|
428
|
+
report("error", file, `state "${where}" names place "${entry.place}", which no app declares. An interface in this state would land in the conversation instead. Use chat or one of: ${[...known].sort().join(", ")} (UNOVERSE_SCREEN.md §2.3)`);
|
|
429
|
+
}
|
|
430
|
+
if (entry.states && typeof entry.states === "object" && !Array.isArray(entry.states)) walkPlaces(entry.states, where);
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
walkPlaces(json.states, "");
|
|
434
|
+
}
|
|
239
435
|
|
|
240
436
|
if (isManifest(file)) {
|
|
241
437
|
const root = dirname(file);
|
|
@@ -424,6 +620,7 @@ function lintFile(file) {
|
|
|
424
620
|
// APP envelope: the states tree lives HERE (one folder grammar) — validate it
|
|
425
621
|
// exactly as the legacy manifest-held tree was.
|
|
426
622
|
if (declared === "app") checkAppTree(json, root, file);
|
|
623
|
+
if (declared === "app") checkAppPlaces(json, root, file);
|
|
427
624
|
if (json.root) walkNode(json.root, file, root);
|
|
428
625
|
|
|
429
626
|
// ── the contained-microapp discipline (mirrors microapp-structure.test.ts) ──
|