@mmerterden/multi-agent-pipeline 23.4.0 → 23.6.0
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/CHANGELOG.md +47 -6
- package/README.md +4 -4
- package/README.tr.md +4 -4
- package/SECURITY.md +16 -0
- package/docs/architecture.md +1 -1
- package/docs/ecosystem.md +9 -9
- package/docs/facts.json +10 -10
- package/docs/features.md +1 -1
- package/install/_platform-filter.mjs +2 -55
- package/install/codex.mjs +1 -3
- package/install/copilot.mjs +4 -8
- package/package.json +2 -2
- package/pipeline/commands/multi-agent/design-check/SKILL.md +1 -0
- package/pipeline/contract/CHANGELOG.md +14 -0
- package/pipeline/contract/README.md +1 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/manifest.json +14 -1
- package/pipeline/contract/types/index.d.ts +28 -2
- package/pipeline/lib/stack-detect.sh +1 -1
- package/pipeline/lib/usage-names.generated.mjs +9 -1
- package/pipeline/multi-agent-refs/design-check/init-inventory.md +11 -1
- package/pipeline/multi-agent-refs/features/remote-control.md +2 -1
- package/pipeline/multi-agent-refs/features/usage-reporting.md +5 -5
- package/pipeline/multi-agent-refs/help/en.md +1 -1
- package/pipeline/multi-agent-refs/help/tr.md +1 -1
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +1 -1
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +2 -1
- package/pipeline/multi-agent-refs/toolkit-tools.md +1 -0
- package/pipeline/office/index.html +104 -5
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/mcp-health.schema.json +96 -0
- package/pipeline/schemas/toolkit-path-params.json +40 -7
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_contract-routes-office.mjs +12 -0
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/build-stack-plugins.mjs +1 -47
- package/pipeline/scripts/contract-server.mjs +2 -0
- package/pipeline/scripts/design-check-config.mjs +205 -0
- package/pipeline/scripts/gen-facts.mjs +1 -2
- package/pipeline/scripts/health-report.mjs +35 -8
- package/pipeline/scripts/mcp-health.mjs +309 -0
- package/pipeline/scripts/remote/handler.mjs +19 -6
- package/pipeline/scripts/remote/store.mjs +8 -5
- package/pipeline/scripts/skill-usage.mjs +16 -5
- package/pipeline/scripts/usage-health.mjs +10 -1
- package/pipeline/skills/.skill-manifest.json +6 -2
- package/pipeline/skills/.skills-index.json +12 -1
- package/pipeline/skills/shared/README.md +4 -3
- package/pipeline/skills/shared/external/ink-animation/SKILL.md +230 -0
- package/pipeline/skills/shared/external/ink-animation/evals/evals.json +41 -0
- package/pipeline/skills/skills-index.md +2 -1
- package/manifest.json +0 -2055
- package/pipeline/scripts/_renamed-skills.mjs +0 -164
- package/pipeline/skills/renamed.json +0 -30
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// _renamed-skills.mjs
|
|
2
|
-
//
|
|
3
|
-
// A shipped knowledge skill that changes its name keeps its old name working
|
|
4
|
-
// for one major cycle. pipeline/skills/renamed.json maps each old name to the
|
|
5
|
-
// new one; the old directory is gone from the authoring tree, and every place
|
|
6
|
-
// that delivers knowledge skills (build-stack-plugins.mjs for the marketplace,
|
|
7
|
-
// the Copilot and Codex installers for their local copies) writes a small alias
|
|
8
|
-
// skill under the old name that sends the reader to the new one.
|
|
9
|
-
//
|
|
10
|
-
// The alias never lives in pipeline/skills, so it is not in the skills index,
|
|
11
|
-
// the routing table or the pipeline's own description budget. Where it is
|
|
12
|
-
// delivered it is a real skill: each alias is declared in the plugin's
|
|
13
|
-
// plugin.json `skills[]` and written into the local skill copies, so hosts list
|
|
14
|
-
// it and its one-line description counts against the host's listing budget
|
|
15
|
-
// until the entry leaves renamed.json at removeIn.
|
|
16
|
-
|
|
17
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
18
|
-
import { join } from "node:path";
|
|
19
|
-
|
|
20
|
-
export const RENAMED_FILE = join("pipeline", "skills", "renamed.json");
|
|
21
|
-
|
|
22
|
-
const NAME_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
23
|
-
const SEMVER_RE = /^\d+\.\d+\.\d+$/;
|
|
24
|
-
const ALIAS_MARKER = "renamed-to:";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Read the rename map of a pipeline checkout. A missing file is an empty map.
|
|
28
|
-
* `skills` holds the renames that still ship an alias; `retired` holds renames
|
|
29
|
-
* whose alias is gone, which upstream-overlap-gate.mjs keeps reading because
|
|
30
|
-
* an upstream checkout still names the skill by its old name.
|
|
31
|
-
* @param {string} pipelineRoot - repo root (the directory holding pipeline/)
|
|
32
|
-
* @returns {{removeIn: string, skills: Record<string, string>, retired: Record<string, string>}}
|
|
33
|
-
*/
|
|
34
|
-
export function loadRenamed(pipelineRoot) {
|
|
35
|
-
const path = join(pipelineRoot, RENAMED_FILE);
|
|
36
|
-
if (!existsSync(path)) return { removeIn: "", skills: {}, retired: {} };
|
|
37
|
-
const raw = JSON.parse(readFileSync(path, "utf8"));
|
|
38
|
-
const map = (v) => (v && typeof v === "object" && !Array.isArray(v) ? v : {});
|
|
39
|
-
return {
|
|
40
|
-
removeIn: typeof raw?.removeIn === "string" ? raw.removeIn : "",
|
|
41
|
-
skills: map(raw?.skills),
|
|
42
|
-
retired: map(raw?.retired),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* What is wrong with a rename map, given the skill names that exist now.
|
|
48
|
-
* @param {{removeIn: string, skills: Record<string, string>}} renamed
|
|
49
|
-
* @param {Set<string>} existing - every skill directory name in pipeline/skills
|
|
50
|
-
* @param {Set<string>} external - the knowledge skill names in shared/external
|
|
51
|
-
* @returns {string[]}
|
|
52
|
-
*/
|
|
53
|
-
export function renamedProblems(renamed, existing, external) {
|
|
54
|
-
const problems = [];
|
|
55
|
-
if (Object.keys(renamed.skills).length > 0 && !SEMVER_RE.test(renamed.removeIn)) {
|
|
56
|
-
problems.push(`removeIn "${renamed.removeIn}" is not a x.y.z version`);
|
|
57
|
-
}
|
|
58
|
-
const retired = renamed.retired ?? {};
|
|
59
|
-
for (const oldName of Object.keys(retired)) {
|
|
60
|
-
if (Object.hasOwn(renamed.skills, oldName)) {
|
|
61
|
-
problems.push(`${oldName}: listed in both skills and retired`);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const entries = [...Object.entries(retired), ...Object.entries(renamed.skills)];
|
|
65
|
-
for (const [oldName, newName] of entries) {
|
|
66
|
-
if (!NAME_RE.test(oldName)) problems.push(`old name "${oldName}" is not kebab-case`);
|
|
67
|
-
if (typeof newName !== "string" || !NAME_RE.test(newName)) {
|
|
68
|
-
problems.push(`${oldName}: new name "${newName}" is not kebab-case`);
|
|
69
|
-
continue;
|
|
70
|
-
}
|
|
71
|
-
if (oldName === newName) problems.push(`${oldName}: renamed to itself`);
|
|
72
|
-
if (existing.has(oldName)) {
|
|
73
|
-
problems.push(`${oldName}: still a skill directory, so its alias would shadow it`);
|
|
74
|
-
}
|
|
75
|
-
if (!external.has(newName)) {
|
|
76
|
-
problems.push(
|
|
77
|
-
`${oldName}: target ${newName} is not a skill in pipeline/skills/shared/external`,
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
if (Object.hasOwn(renamed.skills, newName) || Object.hasOwn(retired, newName)) {
|
|
81
|
-
problems.push(`${oldName}: target ${newName} is itself renamed; point at the final name`);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return problems;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* The renamed pairs whose new name is among `delivered`, so an alias is written
|
|
89
|
-
* only next to the skill it points at.
|
|
90
|
-
* @param {{skills: Record<string, string>}} renamed
|
|
91
|
-
* @param {Iterable<string>} delivered
|
|
92
|
-
* @returns {Array<[string, string]>}
|
|
93
|
-
*/
|
|
94
|
-
export function aliasesFor(renamed, delivered) {
|
|
95
|
-
const have = new Set(delivered);
|
|
96
|
-
return Object.entries(renamed.skills)
|
|
97
|
-
.filter(([, newName]) => have.has(newName))
|
|
98
|
-
.sort(([a], [b]) => a.localeCompare(b));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Whether a SKILL.md frontmatter turns off user invocation.
|
|
103
|
-
* @param {string} skillMdPath
|
|
104
|
-
*/
|
|
105
|
-
export function isUserInvocableOff(skillMdPath) {
|
|
106
|
-
try {
|
|
107
|
-
const text = readFileSync(skillMdPath, "utf8");
|
|
108
|
-
const end = text.indexOf("\n---", 4);
|
|
109
|
-
const head = end > 0 ? text.slice(0, end) : "";
|
|
110
|
-
return /^user-invocable:\s*false\s*$/m.test(head);
|
|
111
|
-
} catch {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The alias SKILL.md written under an old name.
|
|
118
|
-
* @param {string} oldName
|
|
119
|
-
* @param {string} newName
|
|
120
|
-
* @param {{removeIn: string, userInvocable?: boolean}} opts
|
|
121
|
-
*/
|
|
122
|
-
export function aliasSkillMarkdown(oldName, newName, { removeIn, userInvocable = true }) {
|
|
123
|
-
return [
|
|
124
|
-
"---",
|
|
125
|
-
`name: ${oldName}`,
|
|
126
|
-
`description: "${oldName} is now ${newName}; load ${newName}."`,
|
|
127
|
-
...(userInvocable ? [] : ["user-invocable: false"]),
|
|
128
|
-
"metadata:",
|
|
129
|
-
` ${ALIAS_MARKER} ${newName}`,
|
|
130
|
-
" source: multi-agent-pipeline",
|
|
131
|
-
"---",
|
|
132
|
-
"",
|
|
133
|
-
`# ${oldName}`,
|
|
134
|
-
"",
|
|
135
|
-
`\`${oldName}\` is now \`${newName}\`. Load the \`${newName}\` skill from the same toolkit and follow it.`,
|
|
136
|
-
removeIn
|
|
137
|
-
? `This alias is removed in ${removeIn}.`
|
|
138
|
-
: "This alias is removed in the next major release.",
|
|
139
|
-
"",
|
|
140
|
-
].join("\n");
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Whether a SKILL.md on disk is an alias this module wrote.
|
|
145
|
-
* @param {string} skillMdPath
|
|
146
|
-
*/
|
|
147
|
-
export function isAliasSkill(skillMdPath) {
|
|
148
|
-
return aliasTarget(skillMdPath) !== null;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The skill an alias SKILL.md points at, or null when it is not an alias.
|
|
153
|
-
* @param {string} skillMdPath
|
|
154
|
-
*/
|
|
155
|
-
export function aliasTarget(skillMdPath) {
|
|
156
|
-
try {
|
|
157
|
-
const m = new RegExp(`^ ${ALIAS_MARKER} ([a-z0-9-]+)$`, "m").exec(
|
|
158
|
-
readFileSync(skillMdPath, "utf8"),
|
|
159
|
-
);
|
|
160
|
-
return m ? m[1] : null;
|
|
161
|
-
} catch {
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1,
|
|
3
|
-
"removeIn": "21.0.0",
|
|
4
|
-
"skills": {},
|
|
5
|
-
"retired": {
|
|
6
|
-
"app-store-changelog": "app-store-release-notes",
|
|
7
|
-
"firebase": "firebase-integration",
|
|
8
|
-
"ios-debugger-agent": "ios-simulator-debugging",
|
|
9
|
-
"macos-menubar-tuist-app": "macos-menubar-utility",
|
|
10
|
-
"macos-spm-app-packaging": "macos-app-distribution",
|
|
11
|
-
"nextjs-app-router": "nextjs-routing",
|
|
12
|
-
"spm-build-analysis": "package-build-audit",
|
|
13
|
-
"swift-concurrency-expert": "swift-concurrency-fix",
|
|
14
|
-
"swift-concurrency-pro": "swift-concurrency-review",
|
|
15
|
-
"swift-testing-pro": "swift-testing-review",
|
|
16
|
-
"swiftdata-pro": "swiftdata-review",
|
|
17
|
-
"swiftui-expert-skill": "swiftui-feature-builder",
|
|
18
|
-
"swiftui-liquid-glass": "swiftui-glass-effects",
|
|
19
|
-
"swiftui-performance-audit": "swiftui-performance-triage",
|
|
20
|
-
"swiftui-pro": "swiftui-review",
|
|
21
|
-
"swiftui-ui-patterns": "swiftui-flow-recipes",
|
|
22
|
-
"swiftui-view-refactor": "swiftui-view-splitting",
|
|
23
|
-
"tailwind-css": "tailwind-styling",
|
|
24
|
-
"xcode-build-benchmark": "build-time-benchmark",
|
|
25
|
-
"xcode-build-fixer": "build-time-fixes",
|
|
26
|
-
"xcode-build-orchestrator": "build-time-optimizer",
|
|
27
|
-
"xcode-compilation-analyzer": "swift-compile-hotspots",
|
|
28
|
-
"xcode-project-analyzer": "build-settings-audit"
|
|
29
|
-
}
|
|
30
|
-
}
|