@agentxm/extension-content 0.28.14-preview.1789139351.5cd4595aa

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 (133) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +17 -0
  3. package/dist/src/content/agent-skills-standard.d.ts +17 -0
  4. package/dist/src/content/agent-skills-standard.js +24 -0
  5. package/dist/src/content/frontmatter.d.ts +52 -0
  6. package/dist/src/content/frontmatter.js +115 -0
  7. package/dist/src/content/index.d.ts +11 -0
  8. package/dist/src/content/index.js +11 -0
  9. package/dist/src/content/skill-content.d.ts +43 -0
  10. package/dist/src/content/skill-content.js +184 -0
  11. package/dist/src/content/skill-types.d.ts +22 -0
  12. package/dist/src/content/skill-types.js +9 -0
  13. package/dist/src/content/subagent-content.d.ts +58 -0
  14. package/dist/src/content/subagent-content.js +101 -0
  15. package/dist/src/index.d.ts +23 -0
  16. package/dist/src/index.js +23 -0
  17. package/dist/src/knowledge/index.d.ts +9 -0
  18. package/dist/src/knowledge/index.js +9 -0
  19. package/dist/src/knowledge/knowledge-search.d.ts +32 -0
  20. package/dist/src/knowledge/knowledge-search.js +147 -0
  21. package/dist/src/knowledge/okf.d.ts +86 -0
  22. package/dist/src/knowledge/okf.js +1090 -0
  23. package/dist/src/knowledge/package-inspection.d.ts +125 -0
  24. package/dist/src/knowledge/package-inspection.js +45 -0
  25. package/dist/src/lint/catalog/hook/decision-portability.d.ts +4 -0
  26. package/dist/src/lint/catalog/hook/decision-portability.js +40 -0
  27. package/dist/src/lint/catalog/hook/entrypoint-exists.d.ts +4 -0
  28. package/dist/src/lint/catalog/hook/entrypoint-exists.js +39 -0
  29. package/dist/src/lint/catalog/hook/envelope.d.ts +6 -0
  30. package/dist/src/lint/catalog/hook/envelope.js +15 -0
  31. package/dist/src/lint/catalog/hook/matcher-raw-portability.d.ts +4 -0
  32. package/dist/src/lint/catalog/hook/matcher-raw-portability.js +51 -0
  33. package/dist/src/lint/catalog/hook.d.ts +4 -0
  34. package/dist/src/lint/catalog/hook.js +15 -0
  35. package/dist/src/lint/catalog/knowledge/diagnostics.d.ts +128 -0
  36. package/dist/src/lint/catalog/knowledge/diagnostics.js +78 -0
  37. package/dist/src/lint/catalog/knowledge/envelope.d.ts +6 -0
  38. package/dist/src/lint/catalog/knowledge/envelope.js +15 -0
  39. package/dist/src/lint/catalog/knowledge.d.ts +11 -0
  40. package/dist/src/lint/catalog/knowledge.js +15 -0
  41. package/dist/src/lint/catalog/mcp-server/envelope.d.ts +6 -0
  42. package/dist/src/lint/catalog/mcp-server/envelope.js +15 -0
  43. package/dist/src/lint/catalog/mcp-server.d.ts +4 -0
  44. package/dist/src/lint/catalog/mcp-server.js +4 -0
  45. package/dist/src/lint/catalog/pack/manifest-keys-recognized.d.ts +28 -0
  46. package/dist/src/lint/catalog/pack/manifest-keys-recognized.js +38 -0
  47. package/dist/src/lint/catalog/pack/manifest-present.d.ts +17 -0
  48. package/dist/src/lint/catalog/pack/manifest-present.js +24 -0
  49. package/dist/src/lint/catalog/pack/manifest-schema-valid.d.ts +25 -0
  50. package/dist/src/lint/catalog/pack/manifest-schema-valid.js +33 -0
  51. package/dist/src/lint/catalog/pack-accessor/contexts.d.ts +51 -0
  52. package/dist/src/lint/catalog/pack-accessor/contexts.js +45 -0
  53. package/dist/src/lint/catalog/pack-accessor/platform.d.ts +56 -0
  54. package/dist/src/lint/catalog/pack-accessor/platform.js +93 -0
  55. package/dist/src/lint/catalog/pack-accessor/vft.d.ts +60 -0
  56. package/dist/src/lint/catalog/pack-accessor/vft.js +85 -0
  57. package/dist/src/lint/catalog/pack.d.ts +31 -0
  58. package/dist/src/lint/catalog/pack.js +36 -0
  59. package/dist/src/lint/catalog/rule/envelope.d.ts +6 -0
  60. package/dist/src/lint/catalog/rule/envelope.js +15 -0
  61. package/dist/src/lint/catalog/rule.d.ts +4 -0
  62. package/dist/src/lint/catalog/rule.js +4 -0
  63. package/dist/src/lint/catalog/shared/envelope-rules.d.ts +88 -0
  64. package/dist/src/lint/catalog/shared/envelope-rules.js +84 -0
  65. package/dist/src/lint/catalog/shared/manifest-json.d.ts +18 -0
  66. package/dist/src/lint/catalog/shared/manifest-json.js +28 -0
  67. package/dist/src/lint/catalog/shared/manifest-present.d.ts +25 -0
  68. package/dist/src/lint/catalog/shared/manifest-present.js +37 -0
  69. package/dist/src/lint/catalog/shared/recommended-packs-rules.d.ts +70 -0
  70. package/dist/src/lint/catalog/shared/recommended-packs-rules.js +139 -0
  71. package/dist/src/lint/catalog/shared/schema-rule.d.ts +57 -0
  72. package/dist/src/lint/catalog/shared/schema-rule.js +102 -0
  73. package/dist/src/lint/catalog/skill/frontmatter-parseable.d.ts +31 -0
  74. package/dist/src/lint/catalog/skill/frontmatter-parseable.js +148 -0
  75. package/dist/src/lint/catalog/skill/frontmatter-standard-valid.d.ts +13 -0
  76. package/dist/src/lint/catalog/skill/frontmatter-standard-valid.js +61 -0
  77. package/dist/src/lint/catalog/skill/manifest-keys-recognized.d.ts +26 -0
  78. package/dist/src/lint/catalog/skill/manifest-keys-recognized.js +41 -0
  79. package/dist/src/lint/catalog/skill/manifest-present.d.ts +23 -0
  80. package/dist/src/lint/catalog/skill/manifest-present.js +32 -0
  81. package/dist/src/lint/catalog/skill/manifest-schema-valid.d.ts +21 -0
  82. package/dist/src/lint/catalog/skill/manifest-schema-valid.js +36 -0
  83. package/dist/src/lint/catalog/skill/recommended-packs-valid.d.ts +8 -0
  84. package/dist/src/lint/catalog/skill/recommended-packs-valid.js +12 -0
  85. package/dist/src/lint/catalog/skill/skill-md-present.d.ts +17 -0
  86. package/dist/src/lint/catalog/skill/skill-md-present.js +37 -0
  87. package/dist/src/lint/catalog/skill/standalone-declaration-valid.d.ts +8 -0
  88. package/dist/src/lint/catalog/skill/standalone-declaration-valid.js +12 -0
  89. package/dist/src/lint/catalog/skill-accessor/contexts.d.ts +61 -0
  90. package/dist/src/lint/catalog/skill-accessor/contexts.js +55 -0
  91. package/dist/src/lint/catalog/skill-accessor/platform.d.ts +53 -0
  92. package/dist/src/lint/catalog/skill-accessor/platform.js +90 -0
  93. package/dist/src/lint/catalog/skill-accessor/vft.d.ts +77 -0
  94. package/dist/src/lint/catalog/skill-accessor/vft.js +135 -0
  95. package/dist/src/lint/catalog/skill.d.ts +38 -0
  96. package/dist/src/lint/catalog/skill.js +53 -0
  97. package/dist/src/lint/catalog/subagent/envelope.d.ts +6 -0
  98. package/dist/src/lint/catalog/subagent/envelope.js +15 -0
  99. package/dist/src/lint/catalog/subagent.d.ts +4 -0
  100. package/dist/src/lint/catalog/subagent.js +4 -0
  101. package/dist/src/lint/catalog-metadata.d.ts +125 -0
  102. package/dist/src/lint/catalog-metadata.js +642 -0
  103. package/dist/src/lint/compose-path.d.ts +28 -0
  104. package/dist/src/lint/compose-path.js +64 -0
  105. package/dist/src/lint/config.d.ts +77 -0
  106. package/dist/src/lint/config.js +99 -0
  107. package/dist/src/lint/context.d.ts +239 -0
  108. package/dist/src/lint/context.js +17 -0
  109. package/dist/src/lint/describe-document.d.ts +31 -0
  110. package/dist/src/lint/describe-document.js +50 -0
  111. package/dist/src/lint/evaluate.d.ts +47 -0
  112. package/dist/src/lint/evaluate.js +73 -0
  113. package/dist/src/lint/index.d.ts +36 -0
  114. package/dist/src/lint/index.js +34 -0
  115. package/dist/src/lint/issues-to-findings.d.ts +35 -0
  116. package/dist/src/lint/issues-to-findings.js +149 -0
  117. package/dist/src/lint/rule.d.ts +97 -0
  118. package/dist/src/lint/rule.js +17 -0
  119. package/dist/src/packaging/archive-guardrails.d.ts +39 -0
  120. package/dist/src/packaging/archive-guardrails.js +250 -0
  121. package/dist/src/packaging/filtered-package-validation.d.ts +24 -0
  122. package/dist/src/packaging/filtered-package-validation.js +117 -0
  123. package/dist/src/packaging/ingest-limits.d.ts +25 -0
  124. package/dist/src/packaging/ingest-limits.js +41 -0
  125. package/dist/src/packaging/input-normalization.d.ts +40 -0
  126. package/dist/src/packaging/input-normalization.js +125 -0
  127. package/dist/src/packaging/manifest-policy.d.ts +611 -0
  128. package/dist/src/packaging/manifest-policy.js +196 -0
  129. package/dist/src/packaging/test-zip-helpers.d.ts +13 -0
  130. package/dist/src/packaging/test-zip-helpers.js +117 -0
  131. package/dist/src/testing.d.ts +9 -0
  132. package/dist/src/testing.js +9 -0
  133. package/package.json +65 -0
@@ -0,0 +1,125 @@
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