@aiwg/flue 2026.11.4 → 2026.11.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwg/flue",
3
- "version": "2026.11.4",
3
+ "version": "2026.11.6",
4
4
  "description": "AIWG bundle skills, specialist factories and MCP tools for Flue apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1596,6 +1596,10 @@
1596
1596
  "types": "./skills/parallel-dispatch/SKILL.md.d.ts",
1597
1597
  "default": "./skills/parallel-dispatch/SKILL.md"
1598
1598
  },
1599
+ "./skills/plugin-search/SKILL.md": {
1600
+ "types": "./skills/plugin-search/SKILL.md.d.ts",
1601
+ "default": "./skills/plugin-search/SKILL.md"
1602
+ },
1599
1603
  "./skills/plugin-status/SKILL.md": {
1600
1604
  "types": "./skills/plugin-status/SKILL.md.d.ts",
1601
1605
  "default": "./skills/plugin-status/SKILL.md"
@@ -67,6 +67,15 @@ When triggered:
67
67
 
68
68
  3. **Report the result** — name the installed marketplace wrapper and confirm which agents, skills, commands, and rules were deployed and where.
69
69
 
70
+ ## Finding third-party plugins
71
+
72
+ For a capability request without a selected plugin, use
73
+ [plugin-search](../plugin-search/SKILL.md):
74
+ `aiwg marketplace search "<capability>" --plugins` reads configured local
75
+ marketplaces and caches without installing anything. The four packages below
76
+ are AIWG's packages, not a complete directory of third-party plugins. Use the
77
+ provider's installer for third-party results; search does not extend this backend.
78
+
70
79
  ## Available Marketplace Packages
71
80
 
72
81
  | Package | Payload | Use Case |
@@ -40,6 +40,33 @@ The default type is `extension`; the default starter is `skill`. The aliases
40
40
  `new-extension`, `new-addon`, `new-framework`, `new-plugin`, and `new-provider`
41
41
  select their corresponding type.
42
42
 
43
+ ## Addon flows
44
+
45
+ After `aiwg new-bundle ux-studio --type addon`, add a `flows/` directory
46
+ and set `addonConfig.entry.flows` to `"flows/"` in its manifest. Each
47
+ `flows/<name>.yaml` uses the existing `flow.aiwg.io/v1` metalanguage with
48
+ `kind: FlowCapability`, `metadata.name`, and a schema-valid `spec` including
49
+ `description`, `version`, `inputs`, and `outputs`. Custom relative entry
50
+ directories and `.yml` files are also supported.
51
+
52
+ Optionally declare a top-level `flows: ["<metadata.name>"]` inventory;
53
+ legacy `addonConfig.flows` is also accepted. A skill alone remains type `skill`.
54
+
55
+ Rebuild and inspect the authored flow from the project root:
56
+
57
+ ```bash
58
+ aiwg index build --graph project
59
+ aiwg discover "<metadata.name>" --type flow
60
+ aiwg show flow <metadata.name>
61
+ aiwg list --project-local
62
+ ```
63
+
64
+ The flow card shows `Owner: addon:ux-studio`; the project-local list reports
65
+ flow names and counts. Use `validate-addon` to check flow YAML, its existing
66
+ schema, inventory, and discovery before deploying or promoting the addon.
67
+ See `docs/customization/project-local-quickstart.md` (Addon flows)
68
+ for a complete manifest fragment and FlowCapability example.
69
+
43
70
  ## Safety
44
71
 
45
72
  - Use `--dry-run` before scaffolding when the target or layout is uncertain.
@@ -0,0 +1,66 @@
1
+ ---
2
+ namespace: aiwg
3
+ name: plugin-search
4
+ platforms: [flue]
5
+ description: Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
6
+ ---
7
+
8
+ # Search Marketplace Plugins
9
+
10
+ Ask: "Search all marketplaces for UI/UX design and development plugins" or
11
+ "Find the most popular accessibility agent suite in my cached marketplaces."
12
+
13
+ ## Triggers
14
+
15
+ - "search marketplaces for plugins"
16
+ - "search all marketplaces"
17
+ - "find marketplace plugins"
18
+ - "highest rated UI/UX agent suite"
19
+ - "compare plugin install counts"
20
+
21
+ ## Behavior
22
+
23
+ 1. Extract capability terms from the request, such as `UI UX design development`.
24
+ 2. Run the existing marketplace command in its read-only provider plugin mode:
25
+
26
+ ```bash
27
+ aiwg marketplace search "UI UX design development" --plugins --json
28
+ ```
29
+
30
+ Default scope reads every configured Claude marketplace plus the local directory
31
+ cache. It explicitly reports Codex manifest search as deferred. Use `--provider
32
+ claude` to restrict the scope; other provider formats are not yet supported.
33
+ 3. Report the searched marketplaces, matching descriptions and keywords, and the
34
+ install count, review tier and as-of date for each signal. Preserve `null` as
35
+ unknown; an explicit review tier `none` differs from an absent tier.
36
+ 4. Explain ordering: number of matched query terms, review tier (`anthropic`, then
37
+ `partner`, then `none`/unknown), install count, then cache date, descending.
38
+ Popularity and review observations do not establish capability or a rating.
39
+ Compare the stated capabilities against the user's need; never invent stars,
40
+ ratings or claims that a suite is objectively the best.
41
+ 5. Surface warnings, including stale, malformed, missing or undated cache data.
42
+ Default maximum age is 30 days; `--max-age-days 7` changes it for this search.
43
+ 6. Give the selected `name@marketplace` and link to the
44
+ [install-plugin skill](../install-plugin/SKILL.md) with
45
+ `aiwg show skill install-plugin`. Third-party results require their provider's
46
+ installation workflow; this search does not extend the AIWG installer or
47
+ authorize installation. Never run an installer as part of search.
48
+
49
+ ## CLI reference
50
+
51
+ ```bash
52
+ aiwg marketplace search "accessibility design" --plugins
53
+ aiwg marketplace search "interface" --plugins --provider claude --max-age-days 7 --json
54
+ ```
55
+
56
+ The table and JSON include signal dates. JSON also lists configured marketplaces,
57
+ source files, matched terms and warnings. Warnings go to stderr as well.
58
+
59
+ Only these local Claude files are read below `${CLAUDE_CONFIG_DIR:-~/.claude}/plugins/`:
60
+ `known_marketplaces.json`, each configured checkout's
61
+ `.claude-plugin/marketplace.json`, `plugin-directory-cache-v2.json`, and
62
+ `install-counts-cache.json`. Missing cache dates stay unknown; filesystem modification
63
+ times are not substituted for observation dates. Nothing is downloaded or refreshed.
64
+
65
+ Without `--plugins`, the existing skill registry and signed catalog search behavior
66
+ is unchanged and may query remote registries. Always use `--plugins` for this skill.
@@ -0,0 +1,3 @@
1
+ import type { SkillReference } from '@flue/runtime';
2
+ declare const skill: SkillReference;
3
+ export default skill;
@@ -3,8 +3,12 @@ namespace: aiwg
3
3
  name: steward
4
4
  platforms: [flue]
5
5
  kernel: true
6
- description: Provide provider capability awareness and route commands by answering what the current provider supports natively vs must emulate
6
+ description: Provide provider capability awareness, BYOK harness settings and verification, and route commands for native vs emulated support
7
7
  triggers:
8
+ - "bring your own key"
9
+ - "BYOK provider settings"
10
+ - "use my OpenRouter key with Hermes"
11
+ - "use my provider key with a harness"
8
12
  - "set up worker onboarding"
9
13
  - "worker onboarding readiness"
10
14
  - "help me choose what to use"
@@ -221,6 +225,27 @@ the `decision-offload` rule:
221
225
 
222
226
  `@$AIWG_ROOT/docs/decision/jev-quickstart.md`
223
227
 
228
+ ## Bring Your Own Key
229
+
230
+ For "use my <provider> key with <harness>" (for example "use my OpenRouter key with Hermes"),
231
+ route to `aiwg steward capabilities --provider <harness>` and the `byok` entry in
232
+ `agentic/code/providers/capability-matrix.yaml`. Map Droid to `factory`, and distinguish
233
+ the inference provider (OpenRouter) from the harness (Hermes, OpenCode, Factory, Copilot,
234
+ Codex or Muse). Return the harness-specific provider/base URL, model selector, credential
235
+ environment variable or secret-store command, and verification step from that entry.
236
+ Follow its provider-doc link for model-ID quirks; do not invent flags or key settings
237
+ for unverified routes. These are harness settings, not a new AIWG command.
238
+
239
+ Read `aiwg show rule token-security --body` before credential guidance. Keys enter only
240
+ via environment or a secret-store command at point of use, with shell tracing disabled;
241
+ never ask for a key in chat or put one on argv, in deployed AIWG files, harness config,
242
+ logs or receipts. Keep credentials scoped to the child process and discard on exit.
243
+ AIWG does not store or manage keys. Explain that BYOK runs bill the user's key and
244
+ paid runs need explicit operator approval, including a verification run; setup alone
245
+ does not authorize spending. After approval, use a one-line "Reply with exactly: byok-ok"
246
+ prompt and inspect the harness log/session for the resolved model. A reply or accepted
247
+ flag alone is insufficient. Report only model, harness version and result, never keys.
248
+
224
249
  ## Behavior
225
250
 
226
251
  When triggered:
@@ -33,8 +33,9 @@ You check an entire AIWG addon directory for completeness and release readiness,
33
33
 
34
34
  1. **Locate the addon**:
35
35
  - If path given: use it
36
- - If name given: find `agentic/code/addons/<name>/manifest.json`
36
+ - If name given: check project-local `addons/<name>/manifest.json` under the configured artifact root and `agentic/code/addons/<name>/manifest.json`; if both exist, require an explicit path
37
37
  - If current directory: look for `manifest.json` in cwd or walk up to nearest addon root
38
+ - Treat the located directory as the source root throughout this validation, including placement checks
38
39
 
39
40
  2. **Read and validate `manifest.json`**:
40
41
  - File exists at addon root
@@ -42,9 +43,11 @@ You check an entire AIWG addon directory for completeness and release readiness,
42
43
  - Required fields present: `id`, `type`, `name`, `version`, `description`
43
44
  - `type` equals `"addon"`
44
45
  - `version` follows CalVer format (`YYYY.M.PATCH`, no leading zeros)
45
- - `core` field present (boolean)
46
- - `autoInstall` field present (boolean)
46
+ - `core` field present (boolean; accept legacy `addonConfig.core` when absent at top level)
47
+ - `autoInstall` field present (boolean; accept legacy `addonConfig.autoInstall` when absent at top level)
47
48
  - If `devOnly: true`: confirm this is intentional (it excludes from `aiwg use all`)
49
+ - For project-local addons, also run `aiwg list --project-local` from the project root and check this manifest's diagnostics against the canonical bundle schema (`src/extensions/manifest.ts`). It requires `manifestVersion`, `platforms`, `keywords`, `deployment`, and `addonConfig` in addition to the common fields above. Preserve unknown-field and type errors; do not invent extra manifest fields to satisfy this skill.
50
+ - Resolve artifact inventories from the top-level `skills`, `agents`, `rules`, and `flows` arrays, falling back to the corresponding `addonConfig` arrays for legacy manifests. Resolve directories from `addonConfig.entry` (or legacy `entry`), defaulting to `skills/`, `agents/`, `rules/`, and `flows/`. Apply these inventories and paths in steps 4–7.
48
51
 
49
52
  3. **Check `README.md`**:
50
53
  - File exists at addon root
@@ -71,16 +74,25 @@ You check an entire AIWG addon directory for completeness and release readiness,
71
74
  - `RULES-INDEX.md` exists in `rules/`
72
75
  - Rule name appears in `RULES-INDEX.md`
73
76
 
74
- 7. **Check for placement violations**:
77
+ 7. **Validate flows**:
78
+ - Resolve the flow directory from `addonConfig.entry.flows` (or legacy `entry.flows`), defaulting to `flows/`
79
+ - Read each `.yaml` or `.yml` flow document in that directory, including nested directories; do not follow symlinks
80
+ - Validate `FlowCapability` documents (`apiVersion: flow.aiwg.io/v1`) against the existing `$AIWG_ROOT/agentic/code/addons/aiwg-utils/workflow/schemas/workflow-capability.schema.json`; use the corresponding existing workflow schema for other Flow kinds and accepted legacy aliases
81
+ - Require `metadata.name` and the schema-required `spec` fields; report malformed YAML or schema failures as blocking issues
82
+ - If a `flows` inventory is declared (top-level first, then `addonConfig.flows`), match each name to `metadata.name`; collect missing declarations and orphaned documents. If no inventory is declared, enumerate the flow directory
83
+ - For project-local addons, from the project root run `aiwg index build --graph project`, then `aiwg discover "<metadata.name>" --type flow` and `aiwg show flow <metadata.name>`; verify the flow is found and its card shows `Owner: addon:<id>`
84
+ - Include a `Flows (<count>)` section with each flow name and PASS/FAIL status in the report
85
+
86
+ 8. **Check for placement violations**:
75
87
  - Search corresponding provider directories (`.claude/skills/`, `.github/agents/`, etc.) for any files whose names match this addon's artifacts
76
- - For each match: verify a source file exists in `agentic/code/`
88
+ - For each match: verify a source file exists under the located addon source root (project-local or `agentic/code/`)
77
89
  - Flag any deployed files with no source as violations
78
90
 
79
- 8. **Check for `.aiwg/` references in addon artifacts**:
91
+ 9. **Check for `.aiwg/` references in addon artifacts**:
80
92
  - Search all SKILL.md, agent `.md`, and command `.md` files under the addon for `@.aiwg/` path references
81
93
  - Flag any found: these only resolve inside the AIWG repository itself
82
94
 
83
- 9. **Compile report**:
95
+ 10. **Compile report**:
84
96
 
85
97
  ```
86
98
  Addon Validation: <addon-name> v<version>
@@ -109,6 +121,9 @@ You check an entire AIWG addon directory for completeness and release readiness,
109
121
  PASS component-completeness: rule file present, in RULES-INDEX.md
110
122
  FAIL addon-boundaries: not found in RULES-INDEX.md
111
123
 
124
+ Flows (1 found):
125
+ PASS screen-redesign: valid FlowCapability, discoverable as flow
126
+
112
127
  Placement violations:
113
128
  PASS no orphaned deployed files found
114
129
 
@@ -125,7 +140,7 @@ You check an entire AIWG addon directory for completeness and release readiness,
125
140
  none
126
141
  ```
127
142
 
128
- 10. **Report result**: Surface the structured report to the user. Highlight blocking issues in the summary line. For each failure, include the specific remediation step.
143
+ 11. **Report result**: Surface the structured report to the user. Highlight blocking issues in the summary line. For each failure, include the specific remediation step.
129
144
 
130
145
  ## Examples
131
146
 
@@ -143,6 +158,7 @@ README: PASS
143
158
  Skills (3): PASS (all present and complete)
144
159
  Agents (0): PASS
145
160
  Rules (4): PASS (all present and in RULES-INDEX.md)
161
+ Flows (0): PASS
146
162
  Placement: PASS (no violations)
147
163
  .aiwg/ refs: PASS
148
164