@yansirplus/cli 0.5.17 → 0.5.19
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/README.md +12 -6
- package/agent-catalog/agentOS/SKILL.md +22 -0
- package/agent-catalog/agentOS/references/agent/decision-graph.json +530 -0
- package/agent-catalog/agentOS/references/agent/errors.json +497 -0
- package/agent-catalog/agentOS/references/agent/invariant-matrix.json +337 -0
- package/agent-catalog/agentOS/references/agent/primitives.json +989 -0
- package/agent-catalog/agentOS/references/agent/recipes.json +109 -0
- package/agent-catalog/agentOS/references/agent/start-here.md +25 -0
- package/agent-catalog/agentOS/references/package-map.md +73 -0
- package/agent-catalog/agentOS/references/provenance.json +251 -0
- package/agent-catalog/agentOS/references/public-api/cli.md +20 -0
- package/agent-catalog/agentOS/references/public-api/client.md +90 -0
- package/agent-catalog/agentOS/references/public-api/core.md +1907 -0
- package/agent-catalog/agentOS/references/public-api/runtime.md +843 -0
- package/dist/build/agent-authoring/config.d.ts +20 -5
- package/dist/build/agent-authoring/config.js +132 -32
- package/dist/build/agent-authoring/manifest-compiler.d.ts +131 -2
- package/dist/build/agent-authoring/manifest-compiler.js +630 -8
- package/dist/build/agent-authoring/shared.d.ts +2 -0
- package/dist/build/agent-authoring/shared.js +2 -0
- package/dist/build/agent-authoring/static-target.d.ts +6 -3
- package/dist/build/agent-authoring/static-target.js +1900 -281
- package/dist/build/agent-authoring.d.ts +3 -3
- package/dist/build/agent-authoring.js +1 -1
- package/dist/build/build-cli.d.ts +1 -1
- package/dist/build/build-cli.js +1629 -26
- package/dist/check/algorithmic/client-boundary-checks.mjs +3 -34
- package/dist/check/algorithmic/convergence-smoke-checks.mjs +652 -6
- package/dist/check/algorithmic/distribution-checks.mjs +8 -7
- package/dist/check/algorithmic/package-boundary-checks.mjs +3 -2
- package/dist/check/algorithmic/repo-surface-checks.mjs +55 -1
- package/dist/check/algorithmic/static-target-checks.mjs +83 -5
- package/dist/check/algorithmic-checks.mjs +10 -17
- package/dist/check/default-gate.mjs +3 -3
- package/dist/check/effect-scan-gate.mjs +121 -0
- package/dist/check/package-graph.mjs +2 -32
- package/dist/consumer-overlay.mjs +1281 -0
- package/dist/lib/public-api-model.mjs +19 -0
- package/dist/lib/repo-source-files.mjs +26 -0
- package/dist/lib/ts-module-loader.mjs +44 -0
- package/dist/lib/workspace-manifest.mjs +77 -0
- package/dist/main.mjs +171 -21
- package/dist/release-status.mjs +515 -0
- package/package.json +8 -4
- package/dist/check/check-coverage.mjs +0 -231
- package/dist/generate/generate-agent-docs.mjs +0 -435
- package/dist/generate/generate-carrier-reference.mjs +0 -514
- package/dist/generate/generate-docs.mjs +0 -345
- package/dist/generate/generate-effect-skill-manifests.mjs +0 -193
- package/dist/generate/project-docs-site.mjs +0 -190
- package/dist/lib/boundary-rules.mjs +0 -63
- package/dist/lib/capability-routes.mjs +0 -354
- package/dist/lib/projection-sink.mjs +0 -113
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { workspacePackageRecords as workspaceManifestPackageRecords } from "../../lib/workspace-manifest.mjs";
|
|
2
|
+
|
|
1
3
|
export const createClientBoundaryChecks = ({
|
|
2
4
|
fs,
|
|
3
5
|
path,
|
|
@@ -33,40 +35,7 @@ export const createClientBoundaryChecks = ({
|
|
|
33
35
|
const clientSourceFilePattern = /\.(?:ts|tsx|mts|cts|jsx|js|mjs|cjs|svelte|css|scss|less)$/u;
|
|
34
36
|
const clientTypeScriptOnlyPattern = /\.ts$/u;
|
|
35
37
|
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const workspacePackageRecords = () => {
|
|
39
|
-
const rootPackage = readJson("package.json");
|
|
40
|
-
const workspaces = Array.isArray(rootPackage.workspaces)
|
|
41
|
-
? rootPackage.workspaces
|
|
42
|
-
: Array.isArray(rootPackage.workspaces?.packages)
|
|
43
|
-
? rootPackage.workspaces.packages
|
|
44
|
-
: [];
|
|
45
|
-
const records = [];
|
|
46
|
-
|
|
47
|
-
for (const workspace of workspaces) {
|
|
48
|
-
if (typeof workspace !== "string") continue;
|
|
49
|
-
if (workspace.endsWith("/*")) {
|
|
50
|
-
const base = workspace.slice(0, -2);
|
|
51
|
-
const baseDir = path.join(repoRoot, base);
|
|
52
|
-
if (!fs.existsSync(baseDir)) continue;
|
|
53
|
-
for (const entry of fs.readdirSync(baseDir, { withFileTypes: true })) {
|
|
54
|
-
if (!entry.isDirectory()) continue;
|
|
55
|
-
const packagePath = `${base}/${entry.name}`;
|
|
56
|
-
const packageJsonPath = path.join(repoRoot, packagePath, "package.json");
|
|
57
|
-
if (!fs.existsSync(packageJsonPath)) continue;
|
|
58
|
-
records.push({ name: readJsonFile(packageJsonPath).name, path: packagePath });
|
|
59
|
-
}
|
|
60
|
-
continue;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const packageJsonPath = path.join(repoRoot, workspace, "package.json");
|
|
64
|
-
if (!fs.existsSync(packageJsonPath)) continue;
|
|
65
|
-
records.push({ name: readJsonFile(packageJsonPath).name, path: workspace });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return records.sort((left, right) => left.path.localeCompare(right.path));
|
|
69
|
-
};
|
|
38
|
+
const workspacePackageRecords = () => workspaceManifestPackageRecords(repoRoot);
|
|
70
39
|
|
|
71
40
|
const clientImportSpecifiers = (source) => {
|
|
72
41
|
const specifiers = [];
|