@agentxm/registry-protocol 0.28.12 → 0.28.13

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 (131) hide show
  1. package/README.md +13 -5
  2. package/dist/src/unstable/publish/index.d.ts +1 -6
  3. package/dist/src/unstable/publish/index.js +1 -6
  4. package/dist/src/unstable/registry/discover-schema.d.ts +4 -4
  5. package/dist/src/unstable/registry/index.d.ts +1 -0
  6. package/dist/src/unstable/registry/index.js +1 -0
  7. package/dist/src/unstable/registry/version-selection.d.ts +22 -0
  8. package/dist/src/unstable/registry/version-selection.js +39 -0
  9. package/package.json +11 -192
  10. package/dist/src/unstable/content/agent-skills-standard.d.ts +0 -17
  11. package/dist/src/unstable/content/agent-skills-standard.js +0 -24
  12. package/dist/src/unstable/content/frontmatter.d.ts +0 -52
  13. package/dist/src/unstable/content/frontmatter.js +0 -115
  14. package/dist/src/unstable/content/index.d.ts +0 -11
  15. package/dist/src/unstable/content/index.js +0 -11
  16. package/dist/src/unstable/content/skill-content.d.ts +0 -43
  17. package/dist/src/unstable/content/skill-content.js +0 -184
  18. package/dist/src/unstable/content/skill-types.d.ts +0 -22
  19. package/dist/src/unstable/content/skill-types.js +0 -9
  20. package/dist/src/unstable/content/subagent-content.d.ts +0 -58
  21. package/dist/src/unstable/content/subagent-content.js +0 -101
  22. package/dist/src/unstable/knowledge/index.d.ts +0 -8
  23. package/dist/src/unstable/knowledge/index.js +0 -8
  24. package/dist/src/unstable/knowledge/knowledge-search.d.ts +0 -32
  25. package/dist/src/unstable/knowledge/knowledge-search.js +0 -147
  26. package/dist/src/unstable/knowledge/okf.d.ts +0 -86
  27. package/dist/src/unstable/knowledge/okf.js +0 -1090
  28. package/dist/src/unstable/lint/catalog/hook/decision-portability.d.ts +0 -4
  29. package/dist/src/unstable/lint/catalog/hook/decision-portability.js +0 -40
  30. package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.d.ts +0 -4
  31. package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.js +0 -39
  32. package/dist/src/unstable/lint/catalog/hook/envelope.d.ts +0 -6
  33. package/dist/src/unstable/lint/catalog/hook/envelope.js +0 -15
  34. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts +0 -4
  35. package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js +0 -51
  36. package/dist/src/unstable/lint/catalog/hook.d.ts +0 -4
  37. package/dist/src/unstable/lint/catalog/hook.js +0 -15
  38. package/dist/src/unstable/lint/catalog/knowledge/diagnostics.d.ts +0 -128
  39. package/dist/src/unstable/lint/catalog/knowledge/diagnostics.js +0 -78
  40. package/dist/src/unstable/lint/catalog/knowledge/envelope.d.ts +0 -6
  41. package/dist/src/unstable/lint/catalog/knowledge/envelope.js +0 -15
  42. package/dist/src/unstable/lint/catalog/knowledge.d.ts +0 -5
  43. package/dist/src/unstable/lint/catalog/knowledge.js +0 -9
  44. package/dist/src/unstable/lint/catalog/mcp-server/envelope.d.ts +0 -6
  45. package/dist/src/unstable/lint/catalog/mcp-server/envelope.js +0 -15
  46. package/dist/src/unstable/lint/catalog/mcp-server.d.ts +0 -4
  47. package/dist/src/unstable/lint/catalog/mcp-server.js +0 -4
  48. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +0 -28
  49. package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +0 -38
  50. package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +0 -17
  51. package/dist/src/unstable/lint/catalog/pack/manifest-present.js +0 -24
  52. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +0 -25
  53. package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +0 -33
  54. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +0 -51
  55. package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +0 -45
  56. package/dist/src/unstable/lint/catalog/pack-accessor/vft.d.ts +0 -60
  57. package/dist/src/unstable/lint/catalog/pack-accessor/vft.js +0 -85
  58. package/dist/src/unstable/lint/catalog/pack.d.ts +0 -31
  59. package/dist/src/unstable/lint/catalog/pack.js +0 -36
  60. package/dist/src/unstable/lint/catalog/rule/envelope.d.ts +0 -6
  61. package/dist/src/unstable/lint/catalog/rule/envelope.js +0 -15
  62. package/dist/src/unstable/lint/catalog/rule.d.ts +0 -4
  63. package/dist/src/unstable/lint/catalog/rule.js +0 -4
  64. package/dist/src/unstable/lint/catalog/shared/envelope-rules.d.ts +0 -88
  65. package/dist/src/unstable/lint/catalog/shared/envelope-rules.js +0 -84
  66. package/dist/src/unstable/lint/catalog/shared/manifest-json.d.ts +0 -18
  67. package/dist/src/unstable/lint/catalog/shared/manifest-json.js +0 -28
  68. package/dist/src/unstable/lint/catalog/shared/manifest-present.d.ts +0 -25
  69. package/dist/src/unstable/lint/catalog/shared/manifest-present.js +0 -37
  70. package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.d.ts +0 -70
  71. package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.js +0 -139
  72. package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts +0 -57
  73. package/dist/src/unstable/lint/catalog/shared/schema-rule.js +0 -102
  74. package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.d.ts +0 -31
  75. package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.js +0 -148
  76. package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.d.ts +0 -13
  77. package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.js +0 -61
  78. package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts +0 -26
  79. package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js +0 -41
  80. package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +0 -23
  81. package/dist/src/unstable/lint/catalog/skill/manifest-present.js +0 -32
  82. package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.d.ts +0 -21
  83. package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.js +0 -36
  84. package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.d.ts +0 -8
  85. package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.js +0 -12
  86. package/dist/src/unstable/lint/catalog/skill/skill-md-present.d.ts +0 -17
  87. package/dist/src/unstable/lint/catalog/skill/skill-md-present.js +0 -37
  88. package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.d.ts +0 -8
  89. package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.js +0 -12
  90. package/dist/src/unstable/lint/catalog/skill-accessor/contexts.d.ts +0 -61
  91. package/dist/src/unstable/lint/catalog/skill-accessor/contexts.js +0 -55
  92. package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +0 -77
  93. package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +0 -135
  94. package/dist/src/unstable/lint/catalog/skill.d.ts +0 -38
  95. package/dist/src/unstable/lint/catalog/skill.js +0 -53
  96. package/dist/src/unstable/lint/catalog/subagent/envelope.d.ts +0 -6
  97. package/dist/src/unstable/lint/catalog/subagent/envelope.js +0 -15
  98. package/dist/src/unstable/lint/catalog/subagent.d.ts +0 -4
  99. package/dist/src/unstable/lint/catalog/subagent.js +0 -4
  100. package/dist/src/unstable/lint/catalog-metadata.d.ts +0 -125
  101. package/dist/src/unstable/lint/catalog-metadata.js +0 -642
  102. package/dist/src/unstable/lint/compose-path.d.ts +0 -28
  103. package/dist/src/unstable/lint/compose-path.js +0 -64
  104. package/dist/src/unstable/lint/config.d.ts +0 -77
  105. package/dist/src/unstable/lint/config.js +0 -99
  106. package/dist/src/unstable/lint/context.d.ts +0 -239
  107. package/dist/src/unstable/lint/context.js +0 -17
  108. package/dist/src/unstable/lint/describe-document.d.ts +0 -31
  109. package/dist/src/unstable/lint/describe-document.js +0 -50
  110. package/dist/src/unstable/lint/evaluate.d.ts +0 -47
  111. package/dist/src/unstable/lint/evaluate.js +0 -73
  112. package/dist/src/unstable/lint/issues-to-findings.d.ts +0 -35
  113. package/dist/src/unstable/lint/issues-to-findings.js +0 -149
  114. package/dist/src/unstable/lint/publish.d.ts +0 -49
  115. package/dist/src/unstable/lint/publish.js +0 -86
  116. package/dist/src/unstable/lint/rule.d.ts +0 -97
  117. package/dist/src/unstable/lint/rule.js +0 -17
  118. package/dist/src/unstable/publish/archive-guardrails.d.ts +0 -39
  119. package/dist/src/unstable/publish/archive-guardrails.js +0 -250
  120. package/dist/src/unstable/publish/filtered-package-validation.d.ts +0 -24
  121. package/dist/src/unstable/publish/filtered-package-validation.js +0 -117
  122. package/dist/src/unstable/publish/ingest-limits.d.ts +0 -25
  123. package/dist/src/unstable/publish/ingest-limits.js +0 -41
  124. package/dist/src/unstable/publish/input-normalization.d.ts +0 -40
  125. package/dist/src/unstable/publish/input-normalization.js +0 -125
  126. package/dist/src/unstable/publish/manifest-policy.d.ts +0 -611
  127. package/dist/src/unstable/publish/manifest-policy.js +0 -196
  128. package/dist/src/unstable/publish/test-zip-helpers.d.ts +0 -13
  129. package/dist/src/unstable/publish/test-zip-helpers.js +0 -117
  130. package/dist/src/unstable/registry/release-age-policy.d.ts +0 -57
  131. package/dist/src/unstable/registry/release-age-policy.js +0 -117
@@ -1,53 +0,0 @@
1
- /**
2
- * `skill/*` rule catalog.
3
- *
4
- * Per the lint design, registry publish and `axm lint`
5
- * run exactly these rules against each skill context:
6
- *
7
- * | ID | Severity | Autofix |
8
- * | -------------------------------------- | -------- | ------- |
9
- * | `skill/skill-md-present` | error | — |
10
- * | `skill/manifest-present` | error | — |
11
- * | `skill/frontmatter-parseable` | error | — |
12
- * | `skill/frontmatter-standard-valid` | error | — |
13
- * | `skill/manifest-schema-valid` | error | — |
14
- * | `skill/manifest-keys-recognized` | error | — |
15
- * | `skill/standalone-declaration-valid` | warning | — |
16
- * | `skill/recommended-packs-valid` | warning | — |
17
- *
18
- * The last two come from `catalog/shared/recommended-packs-rules.ts`; every
19
- * non-pack catalog applies the same pair against its own manifest.
20
- *
21
- * All ship `kind: "advisory"`. Native-vs-non-native applicability is
22
- * expressed via `check` early-return (no separate `applies` predicate); see
23
- * each rule's module for the guard.
24
- *
25
- * @experimental This API is unstable and may change without notice.
26
- * @packageDocumentation
27
- */
28
- import { skillMdPresentRule } from "./skill/skill-md-present.js";
29
- import { manifestPresentRule } from "./skill/manifest-present.js";
30
- import { frontmatterParseableRule } from "./skill/frontmatter-parseable.js";
31
- import { frontmatterStandardValidRule } from "./skill/frontmatter-standard-valid.js";
32
- import { manifestSchemaValidRule } from "./skill/manifest-schema-valid.js";
33
- import { manifestKeysRecognizedRule } from "./skill/manifest-keys-recognized.js";
34
- import { recommendedPacksValidRule } from "./skill/recommended-packs-valid.js";
35
- import { standaloneDeclarationValidRule } from "./skill/standalone-declaration-valid.js";
36
- /**
37
- * Ordered v1 `skill/*` rule catalog. Declaration order is the evaluation
38
- * order within a single `evaluateContexts` call (deterministic ordering is
39
- * test-observable; see `evaluate.ts`).
40
- *
41
- * @experimental This API is unstable and may change without notice.
42
- */
43
- export const skillRules = [
44
- skillMdPresentRule,
45
- manifestPresentRule,
46
- frontmatterParseableRule,
47
- frontmatterStandardValidRule,
48
- manifestSchemaValidRule,
49
- manifestKeysRecognizedRule,
50
- standaloneDeclarationValidRule,
51
- recommendedPacksValidRule,
52
- ];
53
- //# sourceMappingURL=skill.js.map
@@ -1,6 +0,0 @@
1
- /**
2
- * `subagent/*` manifest envelope — see `../shared/envelope-rules.ts`.
3
- */
4
- import type { SubagentRuleContext } from "../../context.js";
5
- export declare const subagentEnvelopeRules: import("../shared/envelope-rules.js").ManifestEnvelopeRules<SubagentRuleContext<import("../../context.js").SubagentContent>>;
6
- //# sourceMappingURL=envelope.d.ts.map
@@ -1,15 +0,0 @@
1
- /**
2
- * `subagent/*` manifest envelope — see `../shared/envelope-rules.ts`.
3
- */
4
- import { MANIFEST_FILENAME, SubagentManifestSchema, } from "@agentxm/extension-model/unstable/subagents/manifest-schema";
5
- import { makeManifestEnvelopeRules } from "../shared/envelope-rules.js";
6
- export const subagentEnvelopeRules = makeManifestEnvelopeRules({
7
- namespace: "subagent",
8
- manifestFile: MANIFEST_FILENAME,
9
- schema: SubagentManifestSchema,
10
- manifestJson: (context) => context.subject.subagentJson,
11
- presentDescription: "Subagents include a root subagent.json manifest.",
12
- presentMissingMessage: "subagent.json is missing. Create subagent.json with the required manifest fields (`owner`, `type`, `name`, `version`).",
13
- schemaDescription: "subagent.json defines a valid subagent manifest.",
14
- });
15
- //# sourceMappingURL=envelope.js.map
@@ -1,4 +0,0 @@
1
- import type { SubagentRuleContext } from "../context.js";
2
- import type { LintRule } from "../rule.js";
3
- export declare const subagentRules: ReadonlyArray<LintRule<SubagentRuleContext>>;
4
- //# sourceMappingURL=subagent.d.ts.map
@@ -1,4 +0,0 @@
1
- import { orderedEnvelopeRules } from "./shared/envelope-rules.js";
2
- import { subagentEnvelopeRules } from "./subagent/envelope.js";
3
- export const subagentRules = orderedEnvelopeRules(subagentEnvelopeRules);
4
- //# sourceMappingURL=subagent.js.map
@@ -1,125 +0,0 @@
1
- /**
2
- * Static metadata for every lint rule accepted by workspace settings.
3
- *
4
- * This catalog is deliberately independent of executable rule modules. The
5
- * settings schema and generated JSON Schema must know the complete rule-id
6
- * vocabulary without relying on catalog imports or module-load side effects.
7
- * Executable catalogs are checked against this contract separately.
8
- *
9
- * @experimental This API is unstable and may change without notice.
10
- * @packageDocumentation
11
- */
12
- import type { ExtensionType } from "@agentxm/extension-model/unstable/extensions/common";
13
- import type { Severity } from "./rule.js";
14
- /** A rule-catalog namespace: every extension type plus the workspace itself. */
15
- export type LintCatalogGroup = ExtensionType | "workspace";
16
- /** Filesystem identity against which a rule can execute. */
17
- export type LintCatalogView = "workspace" | "git-index";
18
- /** Stable configuration and execution metadata for one lint rule. */
19
- export interface LintCatalogRuleMetadata {
20
- readonly id: string;
21
- readonly defaultSeverity: Severity;
22
- readonly group: LintCatalogGroup;
23
- readonly views: ReadonlyArray<LintCatalogView>;
24
- }
25
- /**
26
- * Complete ordered lint-rule contract.
27
- *
28
- * Order is the public reporting order: extension catalogs first, then
29
- * workspace rules. A rule listed for `git-index` must also be listed for the
30
- * live `workspace` view.
31
- */
32
- export declare const lintCatalogRuleMetadata: readonly ({
33
- id: string;
34
- defaultSeverity: "error";
35
- group: "skill";
36
- views: readonly ["workspace", "git-index"];
37
- } | {
38
- id: string;
39
- defaultSeverity: "warning";
40
- group: "skill";
41
- views: readonly ["workspace", "git-index"];
42
- } | {
43
- id: string;
44
- defaultSeverity: "error";
45
- group: "pack";
46
- views: readonly ["workspace", "git-index"];
47
- } | {
48
- id: string;
49
- defaultSeverity: "error";
50
- group: "subagent";
51
- views: readonly ["workspace", "git-index"];
52
- } | {
53
- id: string;
54
- defaultSeverity: "warning";
55
- group: "subagent";
56
- views: readonly ["workspace", "git-index"];
57
- } | {
58
- id: string;
59
- defaultSeverity: "error";
60
- group: "mcp-server";
61
- views: readonly ["workspace", "git-index"];
62
- } | {
63
- id: string;
64
- defaultSeverity: "warning";
65
- group: "mcp-server";
66
- views: readonly ["workspace", "git-index"];
67
- } | {
68
- id: string;
69
- defaultSeverity: "error";
70
- group: "hook";
71
- views: readonly ["workspace", "git-index"];
72
- } | {
73
- id: string;
74
- defaultSeverity: "warning";
75
- group: "hook";
76
- views: readonly ["workspace", "git-index"];
77
- } | {
78
- id: string;
79
- defaultSeverity: "error";
80
- group: "rule";
81
- views: readonly ["workspace", "git-index"];
82
- } | {
83
- id: string;
84
- defaultSeverity: "warning";
85
- group: "rule";
86
- views: readonly ["workspace", "git-index"];
87
- } | {
88
- id: string;
89
- defaultSeverity: "error";
90
- group: "knowledge";
91
- views: readonly ["workspace", "git-index"];
92
- } | {
93
- id: string;
94
- defaultSeverity: "warning";
95
- group: "knowledge";
96
- views: readonly ["workspace", "git-index"];
97
- } | {
98
- id: string;
99
- defaultSeverity: "error";
100
- group: "workspace";
101
- views: readonly ["workspace", "git-index"];
102
- } | {
103
- id: string;
104
- defaultSeverity: "info";
105
- group: "workspace";
106
- views: readonly ["workspace", "git-index"];
107
- } | {
108
- id: string;
109
- defaultSeverity: "warning";
110
- group: "workspace";
111
- views: readonly ["workspace"];
112
- } | {
113
- id: string;
114
- defaultSeverity: "warning";
115
- group: "workspace";
116
- views: readonly ["workspace", "git-index"];
117
- } | {
118
- id: string;
119
- defaultSeverity: "error";
120
- group: "workspace";
121
- views: readonly ["workspace"];
122
- })[];
123
- /** Every accepted lint-rule identity, in catalog/reporting order. */
124
- export declare const allLintCatalogRuleIds: readonly string[];
125
- //# sourceMappingURL=catalog-metadata.d.ts.map