d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
105 lines
2.4 KiB
JavaScript
105 lines
2.4 KiB
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Validate the dynamic workflow and team-orchestration public surface.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const assert = require('assert');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const REPO_ROOT = path.join(__dirname, '..', '..');
|
|
|
|
const SURFACES = [
|
|
{
|
|
path: 'skills/dynamic-workflow-mode/SKILL.md',
|
|
required: [
|
|
'dynamic workflow mode',
|
|
'task-local harness',
|
|
'shared skill',
|
|
'eval',
|
|
'control pane',
|
|
'handoff'
|
|
],
|
|
},
|
|
{
|
|
path: 'skills/team-agent-orchestration/SKILL.md',
|
|
required: [
|
|
'team-based orchestration',
|
|
'agent kanban',
|
|
'work item',
|
|
'ownership',
|
|
'merge gate',
|
|
'control pane'
|
|
],
|
|
},
|
|
{
|
|
path: 'docs/business/team-agent-orchestration-content-pack.md',
|
|
required: [
|
|
'Video Concepts',
|
|
'Article Angles',
|
|
'agent kanban',
|
|
'team orchestration',
|
|
'dynamic workflows',
|
|
'distribution'
|
|
],
|
|
forbidden: [
|
|
'https://x.com/',
|
|
'http://x.com/',
|
|
'twitter.com/'
|
|
],
|
|
},
|
|
];
|
|
|
|
function readSurface(relativePath) {
|
|
const absolutePath = path.join(REPO_ROOT, relativePath);
|
|
assert.ok(fs.existsSync(absolutePath), `${relativePath} is missing`);
|
|
return fs.readFileSync(absolutePath, 'utf8');
|
|
}
|
|
|
|
function test(name, fn) {
|
|
try {
|
|
fn();
|
|
console.log(` PASS ${name}`);
|
|
return true;
|
|
} catch (error) {
|
|
console.log(` FAIL ${name}`);
|
|
console.log(` Error: ${error.message}`);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function runTests() {
|
|
console.log('\n=== Testing dynamic workflow team surface ===\n');
|
|
|
|
let passed = 0;
|
|
let failed = 0;
|
|
|
|
for (const surface of SURFACES) {
|
|
if (test(`${surface.path} exists and carries required concepts`, () => {
|
|
const content = readSurface(surface.path);
|
|
const normalized = content.toLowerCase();
|
|
|
|
for (const term of surface.required) {
|
|
assert.ok(
|
|
normalized.includes(term.toLowerCase()),
|
|
`${surface.path} is missing required concept: ${term}`
|
|
);
|
|
}
|
|
|
|
for (const forbidden of surface.forbidden || []) {
|
|
assert.ok(
|
|
!normalized.includes(forbidden.toLowerCase()),
|
|
`${surface.path} must not expose private bookmark source URLs: ${forbidden}`
|
|
);
|
|
}
|
|
})) passed++; else failed++;
|
|
}
|
|
|
|
console.log(`\nResults: Passed: ${passed}, Failed: ${failed}`);
|
|
process.exit(failed > 0 ? 1 : 0);
|
|
}
|
|
|
|
runTests();
|