@unoverse-platform/studio 0.1.109 → 0.1.110
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/bin/studio.mjs +3 -3
- package/local/authoring.ts +2 -2
- package/local/catalog.ts +8 -4
- package/local/design-home.d.mts +2 -0
- package/local/design-home.mjs +11 -0
- package/local/plugin.ts +51 -22
- package/local/sample-identity/brand.yaml +1 -1
- package/local/sample-identity/organisation.yaml +1 -1
- package/local/sample-identity/purpose.yaml +1 -1
- package/local/sample-identity/story.yaml +1 -1
- package/local/scaffold.mjs +20 -4
- package/local/source.ts +13 -7
- package/package.json +1 -1
- package/screens/DesignSystemView.tsx +1 -1
- package/screens/EmptyLibrary.tsx +1 -1
- package/screens/PromptBlocksView.tsx +1 -1
- package/src/App.tsx +5 -5
- package/vendor/base/src/definitions/load/assets.ts +2 -2
- package/vendor/base/src/definitions/registry/catalog.ts +1 -1
- package/vendor/base/src/definitions/registry/homes.ts +15 -5
- package/vendor/base/src/definitions/registry/objects.ts +1 -1
- package/vendor/base/src/definitions/registry/orgDocuments.ts +2 -2
- package/vendor/base/src/definitions/registry/orgPack.ts +3 -2
- package/vendor/base/src/definitions/registry/pipelines.ts +1 -1
- package/vendor/base/src/definitions/theme.ts +5 -6
- package/vendor/base/src/items/baseVersion.ts +1 -1
- package/vendor/base/src/items/collect.ts +1 -1
- package/vendor/base/src/lint/design/file.mjs +2 -2
- package/vendor/base/src/lint/design/index.d.mts +6 -0
- package/vendor/base/src/lint/design/index.mjs +45 -17
- package/vendor/base/src/lint/design/vocabulary.mjs +2 -2
- package/vendor/base/src/lint/nodes/blocks.mjs +3 -3
- package/vendor/base/src/lint/nodes/node.mjs +1 -1
- package/vendor/base/src/lint/objects/index.d.mts +6 -0
- package/vendor/base/src/lint/objects/index.mjs +27 -6
- package/vendor/base/src/lint/prompts/index.d.mts +6 -0
- package/vendor/base/src/lint/prompts/index.mjs +8 -3
- package/vendor/base/src/paths.ts +65 -20
- package/vendor/base/src/plugins/discovery.ts +1 -1
- package/vendor/base/src/plugins/loader.ts +5 -7
|
@@ -39,7 +39,7 @@ function scanPluginDir(dir: string, scopes: string[]): string[] {
|
|
|
39
39
|
return plugins;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/** The marketplace tier's node packages (
|
|
42
|
+
/** The marketplace tier's node packages (packages/marketplace/definitions/nodes). */
|
|
43
43
|
export function discoverNodesHome(): string[] {
|
|
44
44
|
return scanPluginDir(NODES_HOME, ["@unoverse-platform/"]);
|
|
45
45
|
}
|
|
@@ -7,7 +7,7 @@ import * as path from "path";
|
|
|
7
7
|
import { execSync } from "child_process";
|
|
8
8
|
import { pathToFileURL } from "url";
|
|
9
9
|
import { getNodeRegistry, getPluginNodeMap, deleteNode } from "../registry.js";
|
|
10
|
-
import { PACKAGES_PATH,
|
|
10
|
+
import { PACKAGES_PATH, PLUGINS_DIR, NODES_HOME } from "../paths.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Resolve a package directory's entry file from its package.json.
|
|
@@ -87,18 +87,16 @@ export async function loadPlugin(pluginName: string, api: any): Promise<string[]
|
|
|
87
87
|
|
|
88
88
|
try {
|
|
89
89
|
const shortName = pluginName.replace(/@[^/]+\//, "");
|
|
90
|
-
// Resolution order: the in-Unoverse node home wins, then legacy /packages,
|
|
91
|
-
//
|
|
90
|
+
// Resolution order: the in-Unoverse node home wins, then legacy /packages, then the
|
|
91
|
+
// bare npm specifier. (A `packages-marketplace` folder was searched third until the
|
|
92
|
+
// marketplace tier took that setting's name; no checkout or image had one.)
|
|
92
93
|
const homePath = path.join(NODES_HOME, shortName);
|
|
93
94
|
const pkgPath = path.join(PACKAGES_PATH, shortName);
|
|
94
|
-
const mktPath = path.join(MARKETPLACE_PATH, shortName);
|
|
95
95
|
const resolvedPath = fs.existsSync(homePath)
|
|
96
96
|
? homePath
|
|
97
97
|
: fs.existsSync(pkgPath)
|
|
98
98
|
? pkgPath
|
|
99
|
-
:
|
|
100
|
-
? mktPath
|
|
101
|
-
: pluginName;
|
|
99
|
+
: pluginName;
|
|
102
100
|
|
|
103
101
|
const pkg = await importPluginModule(resolvedPath);
|
|
104
102
|
const plugin = pkg.default || pkg;
|