@synergenius/flow-weaver 0.21.7 → 0.21.10
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/dist/cli/commands/market.js +1 -1
- package/dist/cli/flow-weaver.mjs +5 -5
- package/dist/generated-version.d.ts +1 -1
- package/dist/generated-version.js +1 -1
- package/dist/marketplace/registry.d.ts +1 -1
- package/dist/marketplace/registry.js +2 -2
- package/dist/marketplace/validator.js +2 -2
- package/docs/reference/marketplace.md +2 -2
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ export async function marketInitCommand(name, options = {}) {
|
|
|
56
56
|
type: 'module',
|
|
57
57
|
main: './dist/index.js',
|
|
58
58
|
types: './dist/index.d.ts',
|
|
59
|
-
keywords: ['
|
|
59
|
+
keywords: ['flow-weaver-marketplace-pack', 'flow-weaver', shortName],
|
|
60
60
|
flowWeaver: {
|
|
61
61
|
type: 'marketplace-pack',
|
|
62
62
|
engineVersion: '>=0.1.0',
|
package/dist/cli/flow-weaver.mjs
CHANGED
|
@@ -9671,7 +9671,7 @@ var VERSION;
|
|
|
9671
9671
|
var init_generated_version = __esm({
|
|
9672
9672
|
"src/generated-version.ts"() {
|
|
9673
9673
|
"use strict";
|
|
9674
|
-
VERSION = "0.21.
|
|
9674
|
+
VERSION = "0.21.10";
|
|
9675
9675
|
}
|
|
9676
9676
|
});
|
|
9677
9677
|
|
|
@@ -35422,7 +35422,7 @@ var init_registry = __esm({
|
|
|
35422
35422
|
"src/marketplace/registry.ts"() {
|
|
35423
35423
|
"use strict";
|
|
35424
35424
|
init_esm5();
|
|
35425
|
-
MARKETPLACE_KEYWORD = "
|
|
35425
|
+
MARKETPLACE_KEYWORD = "flow-weaver-marketplace-pack";
|
|
35426
35426
|
NPM_SEARCH_URL = "https://registry.npmjs.org/-/v1/search";
|
|
35427
35427
|
PACK_NAME_RE = /^(@[^/]+\/)?flow-weaver-pack-.+$/;
|
|
35428
35428
|
}
|
|
@@ -88622,7 +88622,7 @@ function issue2(code, severity, message) {
|
|
|
88622
88622
|
return { code, severity, message };
|
|
88623
88623
|
}
|
|
88624
88624
|
var PACK_NAME_RE2 = /^(@[^/]+\/)?flow-weaver-pack-.+$/;
|
|
88625
|
-
var MARKETPLACE_KEYWORD2 = "
|
|
88625
|
+
var MARKETPLACE_KEYWORD2 = "flow-weaver-marketplace-pack";
|
|
88626
88626
|
function validatePackageJson(pkg, directory) {
|
|
88627
88627
|
const issues = [];
|
|
88628
88628
|
const name = pkg.name;
|
|
@@ -92754,7 +92754,7 @@ async function marketInitCommand(name, options = {}) {
|
|
|
92754
92754
|
type: "module",
|
|
92755
92755
|
main: "./dist/index.js",
|
|
92756
92756
|
types: "./dist/index.d.ts",
|
|
92757
|
-
keywords: ["
|
|
92757
|
+
keywords: ["flow-weaver-marketplace-pack", "flow-weaver", shortName],
|
|
92758
92758
|
flowWeaver: {
|
|
92759
92759
|
type: "marketplace-pack",
|
|
92760
92760
|
engineVersion: ">=0.1.0"
|
|
@@ -93115,7 +93115,7 @@ function displayInstalledPackage(pkg) {
|
|
|
93115
93115
|
// src/cli/index.ts
|
|
93116
93116
|
init_logger();
|
|
93117
93117
|
init_error_utils();
|
|
93118
|
-
var version2 = true ? "0.21.
|
|
93118
|
+
var version2 = true ? "0.21.10" : "0.0.0-dev";
|
|
93119
93119
|
var program2 = new Command();
|
|
93120
93120
|
program2.name("flow-weaver").description("Flow Weaver Annotations - Compile and validate workflow files").option("-v, --version", "Output the current version").option("--no-color", "Disable colors").option("--color", "Force colors").on("option:version", () => {
|
|
93121
93121
|
logger.banner(version2);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.21.
|
|
1
|
+
export declare const VERSION = "0.21.10";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Registry integration — npm search API + local package scanning.
|
|
3
3
|
*
|
|
4
4
|
* Uses the npm registry search endpoint filtered by the
|
|
5
|
-
* `
|
|
5
|
+
* `flow-weaver-marketplace-pack` keyword for discovery, and scans
|
|
6
6
|
* `node_modules/` for locally installed packages.
|
|
7
7
|
*/
|
|
8
8
|
import type { TMarketplaceManifest, TMarketplacePackageInfo, TInstalledPackage, TManifestTagHandler, TManifestValidationRuleSet, TManifestDocTopic, TManifestInitContribution } from './types.js';
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Registry integration — npm search API + local package scanning.
|
|
3
3
|
*
|
|
4
4
|
* Uses the npm registry search endpoint filtered by the
|
|
5
|
-
* `
|
|
5
|
+
* `flow-weaver-marketplace-pack` keyword for discovery, and scans
|
|
6
6
|
* `node_modules/` for locally installed packages.
|
|
7
7
|
*/
|
|
8
8
|
import * as fs from 'fs';
|
|
9
9
|
import * as path from 'path';
|
|
10
10
|
import { glob } from 'glob';
|
|
11
|
-
const MARKETPLACE_KEYWORD = '
|
|
11
|
+
const MARKETPLACE_KEYWORD = 'flow-weaver-marketplace-pack';
|
|
12
12
|
const NPM_SEARCH_URL = 'https://registry.npmjs.org/-/v1/search';
|
|
13
13
|
const PACK_NAME_RE = /^(@[^/]+\/)?flow-weaver-pack-.+$/;
|
|
14
14
|
/**
|
|
@@ -10,7 +10,7 @@ function issue(code, severity, message) {
|
|
|
10
10
|
return { code, severity, message };
|
|
11
11
|
}
|
|
12
12
|
const PACK_NAME_RE = /^(@[^/]+\/)?flow-weaver-pack-.+$/;
|
|
13
|
-
const MARKETPLACE_KEYWORD = '
|
|
13
|
+
const MARKETPLACE_KEYWORD = 'flow-weaver-marketplace-pack';
|
|
14
14
|
// ── Package-level rules ──────────────────────────────────────────────────────
|
|
15
15
|
function validatePackageJson(pkg, directory) {
|
|
16
16
|
const issues = [];
|
|
@@ -19,7 +19,7 @@ function validatePackageJson(pkg, directory) {
|
|
|
19
19
|
if (!name || !PACK_NAME_RE.test(name)) {
|
|
20
20
|
issues.push(issue('PKG-005', 'error', `Package name must match "flow-weaver-pack-*" or "@<scope>/flow-weaver-pack-*", got "${name ?? ''}"`));
|
|
21
21
|
}
|
|
22
|
-
// PKG-001: keywords must include
|
|
22
|
+
// PKG-001: keywords must include flow-weaver-marketplace-pack
|
|
23
23
|
const keywords = (pkg.keywords ?? []);
|
|
24
24
|
if (!keywords.includes(MARKETPLACE_KEYWORD)) {
|
|
25
25
|
issues.push(issue('PKG-001', 'error', `"keywords" must include "${MARKETPLACE_KEYWORD}"`));
|
|
@@ -92,7 +92,7 @@ flow-weaver market init openai
|
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
This creates a `flow-weaver-pack-openai/` directory with:
|
|
95
|
-
- `package.json` — Configured with `
|
|
95
|
+
- `package.json` — Configured with `flow-weaver-marketplace-pack` keyword
|
|
96
96
|
- `src/` — Source directory for node types, workflows, and patterns
|
|
97
97
|
- `tsconfig.json` — TypeScript configuration
|
|
98
98
|
|
|
@@ -150,7 +150,7 @@ flow-weaver market publish --tag beta # Publish with dist-tag
|
|
|
150
150
|
The `market pack` command validates packages against additional rules beyond standard workflow validation:
|
|
151
151
|
|
|
152
152
|
- Package name must start with `flow-weaver-pack-`
|
|
153
|
-
- Must include `
|
|
153
|
+
- Must include `flow-weaver-marketplace-pack` keyword in `package.json`
|
|
154
154
|
- All exported node types must have proper annotations
|
|
155
155
|
- All exported workflows must validate successfully
|
|
156
156
|
- No conflicting node type names
|
package/package.json
CHANGED