@yansirplus/cli 0.5.17 → 0.5.18

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.
Files changed (52) hide show
  1. package/README.md +12 -6
  2. package/agent-catalog/agentOS/SKILL.md +22 -0
  3. package/agent-catalog/agentOS/references/agent/decision-graph.json +530 -0
  4. package/agent-catalog/agentOS/references/agent/errors.json +497 -0
  5. package/agent-catalog/agentOS/references/agent/invariant-matrix.json +337 -0
  6. package/agent-catalog/agentOS/references/agent/primitives.json +989 -0
  7. package/agent-catalog/agentOS/references/agent/recipes.json +109 -0
  8. package/agent-catalog/agentOS/references/agent/start-here.md +25 -0
  9. package/agent-catalog/agentOS/references/package-map.md +72 -0
  10. package/agent-catalog/agentOS/references/provenance.json +251 -0
  11. package/agent-catalog/agentOS/references/public-api/cli.md +20 -0
  12. package/agent-catalog/agentOS/references/public-api/client.md +88 -0
  13. package/agent-catalog/agentOS/references/public-api/core.md +1817 -0
  14. package/agent-catalog/agentOS/references/public-api/runtime.md +794 -0
  15. package/dist/build/agent-authoring/config.d.ts +20 -5
  16. package/dist/build/agent-authoring/config.js +132 -32
  17. package/dist/build/agent-authoring/manifest-compiler.d.ts +131 -2
  18. package/dist/build/agent-authoring/manifest-compiler.js +630 -8
  19. package/dist/build/agent-authoring/shared.d.ts +2 -0
  20. package/dist/build/agent-authoring/shared.js +2 -0
  21. package/dist/build/agent-authoring/static-target.d.ts +6 -3
  22. package/dist/build/agent-authoring/static-target.js +1807 -286
  23. package/dist/build/agent-authoring.d.ts +3 -3
  24. package/dist/build/agent-authoring.js +1 -1
  25. package/dist/build/build-cli.d.ts +1 -1
  26. package/dist/build/build-cli.js +1614 -26
  27. package/dist/check/algorithmic/client-boundary-checks.mjs +3 -34
  28. package/dist/check/algorithmic/convergence-smoke-checks.mjs +652 -6
  29. package/dist/check/algorithmic/distribution-checks.mjs +8 -7
  30. package/dist/check/algorithmic/package-boundary-checks.mjs +3 -2
  31. package/dist/check/algorithmic/repo-surface-checks.mjs +55 -1
  32. package/dist/check/algorithmic/static-target-checks.mjs +83 -5
  33. package/dist/check/algorithmic-checks.mjs +10 -17
  34. package/dist/check/default-gate.mjs +3 -3
  35. package/dist/check/effect-scan-gate.mjs +121 -0
  36. package/dist/check/package-graph.mjs +2 -32
  37. package/dist/consumer-overlay.mjs +802 -0
  38. package/dist/lib/public-api-model.mjs +19 -0
  39. package/dist/lib/repo-source-files.mjs +26 -0
  40. package/dist/lib/ts-module-loader.mjs +44 -0
  41. package/dist/lib/workspace-manifest.mjs +77 -0
  42. package/dist/main.mjs +151 -21
  43. package/package.json +8 -4
  44. package/dist/check/check-coverage.mjs +0 -231
  45. package/dist/generate/generate-agent-docs.mjs +0 -435
  46. package/dist/generate/generate-carrier-reference.mjs +0 -514
  47. package/dist/generate/generate-docs.mjs +0 -345
  48. package/dist/generate/generate-effect-skill-manifests.mjs +0 -193
  49. package/dist/generate/project-docs-site.mjs +0 -190
  50. package/dist/lib/boundary-rules.mjs +0 -63
  51. package/dist/lib/capability-routes.mjs +0 -354
  52. 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 readJsonFile = (file) => JSON.parse(fs.readFileSync(file, "utf8"));
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 = [];