@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.
- package/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/SKILL.md +25 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/references/publication.md +13 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/release.mjs +551 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/SKILL.md +25 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/references/resource-format.md +47 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/validate.mjs +43 -0
- package/dist/assets/.gitattributes +4 -0
- package/dist/assets/AGENTS.md +23 -0
- package/dist/assets/README.md +13 -0
- package/dist/assets/agentscli-hub.yml +2 -0
- package/dist/assets/conventions/.gitkeep +0 -0
- package/dist/assets/docs/conventions/resource-authoring.md +13 -0
- package/dist/assets/gitignore.tpl +2 -0
- package/dist/assets/skills/.gitkeep +0 -0
- package/dist/cli.js +9 -0
- package/dist/runtime.js +610 -0
- 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-edit-agents/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: "agents" });
|
|
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: "agents",
|
|
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,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentscli-hub-publish
|
|
3
|
+
description: Publish explicitly requested hub content changes through native Git, selecting a semantic content version and verifying branch and immutable tag delivery. Use for hub publication, never for npm CLI package releases.
|
|
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
|
+
# Publish hub changes
|
|
12
|
+
|
|
13
|
+
Publish only this independent hub repository and the requested content scope. This workflow never publishes npm packages or creates a hosted repository. The hub manifest content version and `v<version>` tag are independent of the CLI generator version. Use the configured native Git credentials; never collect tokens or choose a hosting vendor.
|
|
14
|
+
|
|
15
|
+
Assess semantic impact before invoking the helper: corrections and internal-only changes are patch; compatible additions are minor; removal or rename of resource identities, incompatible rules, or new required dependencies are major. Use the highest impact. The first release is 1.0.0. Respect an explicit valid user version override. Ask only for a missing concrete remote or branch; do not require ordinary users to choose a version. Review self-containment and dependency changes semantically, then run the deterministic helper. Preserve unrelated edits and staging. Never force, retag, or overwrite a published identity. On partial or ambiguous delivery, inspect native refs and retry the same candidate; do not bump again. A release is complete only after branch and tag verification. A preview may inspect remote refs but cannot change project files, index, or refs.
|
|
16
|
+
|
|
17
|
+
Use [scripts/release.mjs](scripts/release.mjs) after assessing scope and impact. Read [references/publication.md](references/publication.md) for destination, candidate, retry, and failure semantics. The helper validates the complete hub before mutation.
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
node <this-skill>/scripts/release.mjs plan --repo-root <hub> --bump minor
|
|
21
|
+
node <this-skill>/scripts/release.mjs publish --repo-root <hub> --bump minor
|
|
22
|
+
node <this-skill>/scripts/release.mjs verify --repo-root <hub> --bump minor
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Replace `<this-skill>` with this skill's discovered directory. Resolve the repository root from the active project. Report the content version, commit, tag, verified destination, completed effects, and remaining effects.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Publication
|
|
2
|
+
|
|
3
|
+
Use this reference when publishing or reconciling a hub content release. Publication must already be requested. Native Git owns authentication and hosting. Configure a remote with native Git if missing; the helper diagnoses a missing or ambiguous remote/branch instead of choosing a provider. It does not create a hosted repository or publish npm packages.
|
|
4
|
+
|
|
5
|
+
Assess the highest semantic impact: internal-only edits and corrections are patch, compatible resource additions are minor, incompatible rules and resource removal/rename or new required dependencies are major. The first release is 1.0.0. An explicit valid user version overrides this derivation. The private helper accepts that assessment with --bump and derives a candidate from published history, independently of the generator package version.
|
|
6
|
+
|
|
7
|
+
Run the plan mode first for concrete content version, tag, destination, and scoped paths. Plan reads current files, native status/history, and remote refs without changing files, the index, or refs. Use --path repeatedly when the requested publication scope excludes other hub edits. All hub paths are eligible by default; unrelated paths and staging remain outside the scoped commit. Partially staged selected files block until their intended content is reconciled, avoiding silent inclusion of unrequested hunks.
|
|
8
|
+
|
|
9
|
+
The helper validates manifest, safe complete trees, convention self-containment links, standard skill metadata, reserved identities, and explicit same-hub dependency closure before publication. Separately review semantic compatibility, activation, and whether a procedure belongs in a skill. Inspection never executes shared skill code.
|
|
10
|
+
|
|
11
|
+
Publish updates the content manifest, makes a scoped native Git commit, creates an immutable lightweight v-prefixed tag, pushes the candidate commit to the intended branch and the tag, and verifies both refs. A matching already-published candidate with no content changes is a no-op. Published tag manifests must agree with their versions. Divergence, conflicting immutable identities, or unavailable required history blocks instead of guessing or forcing. If the helper reports missing native objects, reconcile/fetch through native Git before rerunning; plan never fetches.
|
|
12
|
+
|
|
13
|
+
On partial or lost responses, retain the exact candidate version and commit in the result. Inspect local and remote refs. Matching branch/tag delivery counts as complete; one matching ref alone remains partial. Retry the same helper invocation and explicit scope: its manifest/HEAD/tag inspection reuses the unfinished candidate and only completes missing delivery. Do not select another bump, retag, force a push, or invent a journal. If the worktree changed after an unfinished release, reconcile that candidate before starting another release. Report concrete completed and pending effects, never claim rollback or success before both refs are verified.
|