@devel-solid/agentscli-hub 0.0.0-stage → 0.1.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.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -2
  3. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/SKILL.md +23 -0
  4. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  5. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/support.mjs +16705 -0
  6. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/validate.mjs +43 -0
  7. package/dist/assets/.agents/skills/agentscli-hub-publish/SKILL.md +25 -0
  8. package/dist/assets/.agents/skills/agentscli-hub-publish/references/publication.md +13 -0
  9. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  10. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/release.mjs +551 -0
  11. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/support.mjs +16705 -0
  12. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/SKILL.md +23 -0
  13. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  14. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/support.mjs +16705 -0
  15. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/validate.mjs +43 -0
  16. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/SKILL.md +23 -0
  17. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  18. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/support.mjs +16705 -0
  19. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs +43 -0
  20. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/SKILL.md +25 -0
  21. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/references/resource-format.md +47 -0
  22. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  23. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/support.mjs +16705 -0
  24. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/validate.mjs +43 -0
  25. package/dist/assets/.gitattributes +4 -0
  26. package/dist/assets/AGENTS.md +23 -0
  27. package/dist/assets/README.md +13 -0
  28. package/dist/assets/agentscli-hub.yml +2 -0
  29. package/dist/assets/conventions/.gitkeep +0 -0
  30. package/dist/assets/docs/conventions/resource-authoring.md +13 -0
  31. package/dist/assets/gitignore.tpl +2 -0
  32. package/dist/assets/skills/.gitkeep +0 -0
  33. package/dist/cli.js +9 -0
  34. package/dist/runtime.js +610 -0
  35. package/package.json +37 -4
@@ -0,0 +1,43 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+
3
+ // assets/templates/skills/agentscli-hub-write-conventions/scripts/validate.mjs
4
+ import path from "node:path";
5
+ import { pathToFileURL } from "node:url";
6
+ import { inspectHub } from "./support.mjs";
7
+ function validate(root, options = {}) {
8
+ return inspectHub(root, { ...options, scope: "internal-conventions" });
9
+ }
10
+ function main(args, { log = console.log, error = console.error } = {}) {
11
+ if (args.length !== 2 || args[0] !== "--repo-root" || !args[1]) {
12
+ error("Usage: validate.mjs --repo-root <hub>");
13
+ return 2;
14
+ }
15
+ try {
16
+ const result = validate(path.resolve(args[1]));
17
+ log(
18
+ JSON.stringify({
19
+ ok: true,
20
+ scope: "internal-conventions",
21
+ conventions: result.conventions.size,
22
+ skills: result.skills.size
23
+ })
24
+ );
25
+ return 0;
26
+ } catch (cause) {
27
+ error(
28
+ JSON.stringify({
29
+ ok: false,
30
+ code: cause.code ?? "operation",
31
+ file: cause.file ?? "",
32
+ message: cause.message
33
+ })
34
+ );
35
+ return cause.code ? 2 : 3;
36
+ }
37
+ }
38
+ if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href)
39
+ process.exitCode = main(process.argv.slice(2));
40
+ export {
41
+ main,
42
+ validate
43
+ };
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: agentscli-hub-write-shared-conventions
3
+ description: Create, review, and maintain shared convention templates in a hub. Use for portable conventions intended for explicit consumption by other projects; internal hub rules have their own author.
4
+ license: MIT
5
+ compatibility: Requires Node.js >= 22.
6
+ metadata:
7
+ generatedBy: "@devel-solid/agentscli-hub"
8
+ generatorVersion: 0.1.0
9
+ ---
10
+
11
+ # Shared conventions
12
+
13
+ Edit only shared `conventions/**/*.tpl.md` templates. Their ID is the relative path below the sharing root without `.tpl.md`. Do not edit internal conventions, operational skills, consumer output, or publication state.
14
+
15
+ Start each template with YAML containing only one nonempty string `trigger`, followed by exactly one H1 outside examples. The filename must match the H1's ASCII kebab-case slug. Preserve authored Markdown and examples. Conventions cannot declare requires, link to other conventions, or link to skills or their support files. Make the content self-contained; procedural activation belongs in a skill. Review semantic self-containment separately from mechanical links.
16
+
17
+ Run this skill's own [scripts/validate.mjs](scripts/validate.mjs) before and after the edit:
18
+
19
+ ```sh
20
+ node <this-skill>/scripts/validate.mjs --repo-root <hub>
21
+ ```
22
+
23
+ Resolve `<this-skill>` from this skill's actual directory and `<hub>` from the active project root. This is read-only validation. Fix all mechanical diagnostics, then review meaning, activation, and scope. Report changed files and actual checks; do not generate, import, commit, or publish implicitly.