@agentxm/workspace-lint 0.28.11 → 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.
- package/dist/src/catalog/index.d.ts +2 -2
- package/dist/src/catalog/index.js +7 -7
- package/dist/src/catalog/workspace/agents-detected-declared.d.ts +1 -1
- package/dist/src/catalog/workspace/agents-projections-stale.d.ts +1 -1
- package/dist/src/catalog/workspace/agents-recognized.d.ts +2 -2
- package/dist/src/catalog/workspace/agents-recognized.js +1 -1
- package/dist/src/catalog/workspace/axm-skill-compatible.d.ts +1 -1
- package/dist/src/catalog/workspace/axm-skill-compatible.js +1 -1
- package/dist/src/catalog/workspace/axm-skill-declared.d.ts +1 -1
- package/dist/src/catalog/workspace/configured-but-not-installed.d.ts +1 -1
- package/dist/src/catalog/workspace/desired-state-reconcilable.d.ts +1 -1
- package/dist/src/catalog/workspace/desired-state-reconcilable.js +1 -1
- package/dist/src/catalog/workspace/helpers/empty.d.ts +1 -1
- package/dist/src/catalog/workspace/helpers/finding.d.ts +1 -1
- package/dist/src/catalog/workspace/hook-ownership-ambiguous.d.ts +1 -1
- package/dist/src/catalog/workspace/initialized.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-agent-supported.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-gitignore-current.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-source-present.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-target-current.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-target-stale.d.ts +1 -1
- package/dist/src/catalog/workspace/instructions-target-unowned.d.ts +1 -1
- package/dist/src/catalog/workspace/knowledge-state-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/lockfile-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/managed-file-unowned.d.ts +1 -1
- package/dist/src/catalog/workspace/mcps-agent-drift.d.ts +1 -1
- package/dist/src/catalog/workspace/mcps-agent-drift.js +3 -2
- package/dist/src/catalog/workspace/mcps-agent-orphaned.d.ts +1 -1
- package/dist/src/catalog/workspace/mcps-agent-orphaned.js +2 -2
- package/dist/src/catalog/workspace/mcps-no-secret-literal.d.ts +1 -1
- package/dist/src/catalog/workspace/mcps-transport-exclusivity.d.ts +1 -1
- package/dist/src/catalog/workspace/packs-declarations-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/packs-dependencies-resolved.d.ts +1 -1
- package/dist/src/catalog/workspace/projection-contributors-rendered.d.ts +2 -2
- package/dist/src/catalog/workspace/projection-contributors-rendered.js +1 -1
- package/dist/src/catalog/workspace/projection-ownership-valid.d.ts +2 -2
- package/dist/src/catalog/workspace/projection-ownership-valid.js +1 -1
- package/dist/src/catalog/workspace/settings-keys-recognized.d.ts +1 -1
- package/dist/src/catalog/workspace/settings-schema-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/skills-artifacts-correct.d.ts +1 -1
- package/dist/src/catalog/workspace/skills-declarations-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/skills-integrity-valid.d.ts +1 -1
- package/dist/src/catalog/workspace/skills-lockfile-aligned.d.ts +1 -1
- package/dist/src/catalog/workspace/source-endpoints-aligned.d.ts +1 -1
- package/dist/src/catalog/workspace-read-model/lint-workspace.d.ts +9 -9
- package/dist/src/catalog/workspace-read-model/lint-workspace.js +7 -5
- package/dist/src/catalog/workspace-read-model/manifest-json.d.ts +1 -1
- package/dist/src/catalog/workspace-read-model/manifest-json.js +1 -1
- package/dist/src/catalog/workspace.d.ts +1 -1
- package/dist/src/catalog-contexts.d.ts +9 -9
- package/dist/src/catalog-contexts.js +7 -7
- package/dist/src/cli.d.ts +6 -6
- package/dist/src/cli.js +5 -4
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +3 -0
- package/dist/src/json-schema.js +1 -1
- package/dist/src/run/lint-workspace.d.ts +144 -0
- package/dist/src/run/lint-workspace.js +204 -0
- package/dist/src/run/settings.d.ts +2 -2
- package/dist/src/run/settings.js +2 -2
- package/dist/src/testing.d.ts +153 -0
- package/dist/src/testing.js +303 -0
- package/dist/src/workspace-context.d.ts +3 -2
- package/dist/src/workspace-context.js +1 -1
- package/package.json +17 -10
- package/dist/src/catalog/workspace-fixtures/fixture-state.d.ts +0 -8
- package/dist/src/catalog/workspace-fixtures/fixture-state.js +0 -120
- package/dist/src/catalog/workspace-fixtures/interpret-ops.d.ts +0 -11
- package/dist/src/catalog/workspace-fixtures/interpret-ops.js +0 -9
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { LintCatalogRuleMetadata } from "@agentxm/
|
|
7
|
+
import type { LintCatalogRuleMetadata } from "@agentxm/extension-content/lint";
|
|
8
8
|
export { liveOnlyWorkspaceRules, repositoryWorkspaceRules, workspaceRules } from "./workspace.js";
|
|
9
|
-
export { buildLintWorkspace, buildNativeInstalledSkillInfo, buildAcquiredInstalledSkillInfo, buildInstalledPackInfo, acquiredSkillDisplayRoot, registryNativeSkillDisplayRoot, registryPackDisplayRoot, type BuildLintWorkspaceArgs, type BuildInstalledPackInfoArgs, type BuildAcquiredInstalledSkillInfoArgs, type BuildInstalledSkillInfoNativeArgs, type
|
|
9
|
+
export { buildLintWorkspace, buildNativeInstalledSkillInfo, buildAcquiredInstalledSkillInfo, buildInstalledPackInfo, acquiredSkillDisplayRoot, registryNativeSkillDisplayRoot, registryPackDisplayRoot, type BuildLintWorkspaceArgs, type BuildInstalledPackInfoArgs, type BuildAcquiredInstalledSkillInfoArgs, type BuildInstalledSkillInfoNativeArgs, type LintWorkspaceBuild, type LintWorkspaceView, } from "./workspace-read-model/lint-workspace.js";
|
|
10
10
|
/** Metadata derived from the executable rules and their view catalogs. */
|
|
11
11
|
export declare const allCatalogRuleMetadata: ReadonlyArray<LintCatalogRuleMetadata>;
|
|
12
12
|
/** Every executable lint-rule identity, in catalog/reporting order. */
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { skillRules } from "@agentxm/
|
|
8
|
-
import { packRules } from "@agentxm/
|
|
9
|
-
import { subagentRules } from "@agentxm/
|
|
10
|
-
import { mcpServerRules } from "@agentxm/
|
|
11
|
-
import { hookRules } from "@agentxm/
|
|
12
|
-
import { ruleRules } from "@agentxm/
|
|
13
|
-
import { knowledgeRules } from "@agentxm/
|
|
7
|
+
import { skillRules } from "@agentxm/extension-content/lint";
|
|
8
|
+
import { packRules } from "@agentxm/extension-content/lint";
|
|
9
|
+
import { subagentRules } from "@agentxm/extension-content/lint";
|
|
10
|
+
import { mcpServerRules } from "@agentxm/extension-content/lint";
|
|
11
|
+
import { hookRules } from "@agentxm/extension-content/lint";
|
|
12
|
+
import { ruleRules } from "@agentxm/extension-content/lint";
|
|
13
|
+
import { knowledgeRules } from "@agentxm/extension-content/lint";
|
|
14
14
|
import { workspaceRules } from "./workspace.js";
|
|
15
15
|
import { repositoryWorkspaceRules } from "./workspace.js";
|
|
16
16
|
export { liveOnlyWorkspaceRules, repositoryWorkspaceRules, workspaceRules } from "./workspace.js";
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
20
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
21
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
21
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
22
22
|
export declare const agentsDetectedDeclaredRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
23
23
|
//# sourceMappingURL=agents-detected-declared.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `workspace/agents-projections-stale` — AXM-owned agent output has no desired claimant. */
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
4
4
|
export declare const agentsProjectionsStaleRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=agents-projections-stale.d.ts.map
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Agent recognition invariant — unknown IDs can't be materialized into.
|
|
8
8
|
* Absorbs doctor `agents-configured.unrecognized`. Known-agent catalog
|
|
9
|
-
* lives at `packages/extension-model/src/unstable/agents/types.ts`.
|
|
9
|
+
* lives at `packages/core/extension-model/src/unstable/agents/types.ts`.
|
|
10
10
|
*
|
|
11
11
|
* Cascade: the rule walks `settings.agents[]` and checks each id against
|
|
12
12
|
* the set returned by `workspace.scope(scope).agents.known`. Unknown ids
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
20
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
21
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
21
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
22
22
|
export declare const agentsRecognizedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
23
23
|
//# sourceMappingURL=agents-recognized.d.ts.map
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Agent recognition invariant — unknown IDs can't be materialized into.
|
|
8
8
|
* Absorbs doctor `agents-configured.unrecognized`. Known-agent catalog
|
|
9
|
-
* lives at `packages/extension-model/src/unstable/agents/types.ts`.
|
|
9
|
+
* lives at `packages/core/extension-model/src/unstable/agents/types.ts`.
|
|
10
10
|
*
|
|
11
11
|
* Cascade: the rule walks `settings.agents[]` and checks each id against
|
|
12
12
|
* the set returned by `workspace.scope(scope).agents.known`. Unknown ids
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const axmSkillCompatibleRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=axm-skill-compatible.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
|
-
import { formatAxmSkillCompatibilityTarget } from "@agentxm/extension-workspace";
|
|
5
4
|
import { canonicalDisplayRoot } from "./display-paths.js";
|
|
6
5
|
import { EMPTY_ADVISORY_FINDINGS } from "./helpers/empty.js";
|
|
6
|
+
import { formatAxmSkillCompatibilityTarget } from "@agentxm/extension-resolution";
|
|
7
7
|
const RULE_ID = "workspace/axm-skill-compatible";
|
|
8
8
|
export const axmSkillCompatibleRule = {
|
|
9
9
|
id: RULE_ID,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
1
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
3
|
export declare const axmSkillDeclaredRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=axm-skill-declared.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const configuredButNotInstalledRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=configured-but-not-installed.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const desiredStateReconcilableRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=desired-state-reconcilable.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Result from "effect/Result";
|
|
3
|
-
import { extensionConstraintFactText, makeExtensionConstraintInvariantFact, } from "@agentxm/
|
|
3
|
+
import { extensionConstraintFactText, makeExtensionConstraintInvariantFact, } from "@agentxm/workspace-projection";
|
|
4
4
|
import { isWorkspaceSourceLocator } from "@agentxm/extension-model/unstable/sources/workspace";
|
|
5
5
|
const RULE_ID = "workspace/desired-state-reconcilable";
|
|
6
6
|
export const desiredStateReconcilableRule = {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @experimental This API is unstable and may change without notice.
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
import type { AdvisoryFinding, LintFinding } from "@agentxm/
|
|
10
|
+
import type { AdvisoryFinding, LintFinding } from "@agentxm/extension-content/lint";
|
|
11
11
|
import type { Operation } from "@agentxm/workspace-operations";
|
|
12
12
|
/** Shared empty AdvisoryFinding array. */
|
|
13
13
|
export declare const EMPTY_ADVISORY_FINDINGS: ReadonlyArray<AdvisoryFinding>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { FindingBase } from "@agentxm/
|
|
7
|
+
import type { FindingBase } from "@agentxm/extension-content/lint";
|
|
8
8
|
/** Structural identity used by rule `fix` lookups. */
|
|
9
9
|
export declare const isSameFinding: (left: FindingBase, right: FindingBase) => boolean;
|
|
10
10
|
//# sourceMappingURL=finding.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const hookOwnershipAmbiguousRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=hook-ownership-ambiguous.d.ts.map
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
*/
|
|
19
19
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
20
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
20
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
21
21
|
export declare const initializedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
22
22
|
//# sourceMappingURL=initialized.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const instructionsAgentSupportedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=instructions-agent-supported.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const instructionsGitignoreCurrentRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=instructions-gitignore-current.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const instructionsSourcePresentRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=instructions-source-present.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const instructionsTargetCurrentRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=instructions-target-current.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
/**
|
|
4
4
|
* An AXM-owned alias the current plan no longer desires — left behind by a
|
|
5
5
|
* removed source root, a removed agent, or a changed source filename. Its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
/**
|
|
4
4
|
* An unowned file at a planned instruction target is a collision, not drift:
|
|
5
5
|
* AXM cannot prove it produced the content, so no reconciliation may replace
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Reports invalid observed state for desired Knowledge bundles. */
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
4
4
|
export declare const knowledgeStateValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=knowledge-state-valid.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Reports whether accepted external-resolution state is readable and present when required. */
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
4
4
|
export declare const lockfileValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=lockfile-valid.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const managedFileUnownedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=managed-file-unowned.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const mcpServerAgentDriftRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=mcps-agent-drift.d.ts.map
|
|
@@ -2,8 +2,9 @@ import * as Effect from "effect/Effect";
|
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
4
|
import { CONFIGURABLE_AGENTS_BY_ID, } from "@agentxm/extension-model/unstable/agent-capabilities";
|
|
5
|
-
import { isAxmManagedMcpEntry } from "@agentxm/
|
|
6
|
-
import { diffAgentEntry
|
|
5
|
+
import { isAxmManagedMcpEntry } from "@agentxm/agent-integration";
|
|
6
|
+
import { diffAgentEntry } from "@agentxm/workspace-projection";
|
|
7
|
+
import { inferInlineRemoteTransport, projectExpectedEntry, resolveSharedMcpTarget, groupConfiguredMcpTargets, } from "@agentxm/agent-integration";
|
|
7
8
|
const RULE_ID = "workspace/mcps-agent-drift";
|
|
8
9
|
const relativeToRoot = (root, file) => {
|
|
9
10
|
if (file === root)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const mcpServerAgentOrphanedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=mcps-agent-orphaned.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
3
|
import * as Result from "effect/Result";
|
|
4
|
-
import { isAxmManagedMcpEntry } from "@agentxm/
|
|
5
|
-
import { groupConfiguredMcpTargets } from "@agentxm/
|
|
4
|
+
import { isAxmManagedMcpEntry } from "@agentxm/agent-integration";
|
|
5
|
+
import { groupConfiguredMcpTargets } from "@agentxm/agent-integration";
|
|
6
6
|
const RULE_ID = "workspace/mcps-agent-orphaned";
|
|
7
7
|
const isManagedConfigEntry = (row) => (row.actual.origin._tag === "agent-mcp-config" ||
|
|
8
8
|
row.actual.origin._tag === "workspace-mcp-config") &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const mcpServerNoSecretLiteralRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=mcps-no-secret-literal.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
export declare const mcpServerTransportExclusivityRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
4
4
|
//# sourceMappingURL=mcps-transport-exclusivity.d.ts.map
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
*/
|
|
16
16
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
17
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
17
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
18
18
|
export declare const packsDeclarationsValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
19
19
|
//# sourceMappingURL=packs-declarations-valid.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
2
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
2
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
3
3
|
/** Pack membership comes from the desired graph; lock rows only prove external resolution. */
|
|
4
4
|
export declare const packsDependenciesResolvedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=packs-dependencies-resolved.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ProjectionInvariantFact } from "@agentxm/
|
|
1
|
+
import { type ProjectionInvariantFact } from "@agentxm/workspace-projection";
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule, LintFinding } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule, LintFinding } from "@agentxm/extension-content/lint";
|
|
4
4
|
/**
|
|
5
5
|
* A generated file that omits a desired contributor is still written, so no
|
|
6
6
|
* command fails on it. This rule is the durable reminder: it reports each
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
|
-
import { formatProjectionExclusion, } from "@agentxm/
|
|
2
|
+
import { formatProjectionExclusion, } from "@agentxm/workspace-projection";
|
|
3
3
|
import { EMPTY_LINT_FINDINGS } from "./helpers/empty.js";
|
|
4
4
|
const RULE_ID = "workspace/projection-contributors-rendered";
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ProjectionInvariantFact } from "@agentxm/
|
|
1
|
+
import { type ProjectionInvariantFact } from "@agentxm/workspace-projection";
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule, LintFinding } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule, LintFinding } from "@agentxm/extension-content/lint";
|
|
4
4
|
/**
|
|
5
5
|
* Formatting and body edits are not lint concerns for generated documents.
|
|
6
6
|
* Report only ownership proof that AXM cannot safely interpret or replace.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
|
-
import { projectionFactHasInvalidOwnership, } from "@agentxm/
|
|
2
|
+
import { projectionFactHasInvalidOwnership, } from "@agentxm/workspace-projection";
|
|
3
3
|
import { EMPTY_LINT_FINDINGS } from "./helpers/empty.js";
|
|
4
4
|
const RULE_ID = "workspace/projection-ownership-valid";
|
|
5
5
|
/**
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
* @packageDocumentation
|
|
13
13
|
*/
|
|
14
14
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
15
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
15
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
16
16
|
export declare const settingsKeysRecognizedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
17
17
|
//# sourceMappingURL=settings-keys-recognized.d.ts.map
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
* @packageDocumentation
|
|
23
23
|
*/
|
|
24
24
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
25
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
25
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
26
26
|
export declare const settingsSchemaValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
27
27
|
//# sourceMappingURL=settings-schema-valid.d.ts.map
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
* @packageDocumentation
|
|
24
24
|
*/
|
|
25
25
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
26
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
26
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
27
27
|
export declare const skillsArtifactsCorrectRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
28
28
|
//# sourceMappingURL=skills-artifacts-correct.d.ts.map
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
* @packageDocumentation
|
|
23
23
|
*/
|
|
24
24
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
25
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
25
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
26
26
|
export declare const skillsDeclarationsValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
27
27
|
//# sourceMappingURL=skills-declarations-valid.d.ts.map
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
* @packageDocumentation
|
|
24
24
|
*/
|
|
25
25
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
26
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
26
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
27
27
|
export declare const skillsIntegrityValidRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
28
28
|
//# sourceMappingURL=skills-integrity-valid.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Reports alignment between desired external Skills and accepted resolutions. */
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
4
4
|
export declare const skillsLockfileAlignedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=skills-lockfile-aligned.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Reports configured source hosts that diverge from accepted lock authority. */
|
|
2
2
|
import type { WorkspaceRuleContext } from "../../workspace-context.js";
|
|
3
|
-
import type { AdvisoryRule } from "@agentxm/
|
|
3
|
+
import type { AdvisoryRule } from "@agentxm/extension-content/lint";
|
|
4
4
|
export declare const sourceEndpointsAlignedRule: AdvisoryRule<WorkspaceRuleContext>;
|
|
5
5
|
//# sourceMappingURL=source-endpoints-aligned.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `
|
|
2
|
+
* `LintWorkspaceBuild` — single helper that produces both the per-rule
|
|
3
3
|
* `WorkspaceRuleContext` and the flat `LintWorkspaceView` projection a lint
|
|
4
4
|
* run needs, sharing one `WorkspaceReadModelLive` setup.
|
|
5
5
|
*
|
|
@@ -23,14 +23,14 @@ import * as FileSystem from "effect/FileSystem";
|
|
|
23
23
|
import * as Option from "effect/Option";
|
|
24
24
|
import * as Path from "effect/Path";
|
|
25
25
|
import type { LockfileReadError, SettingsReadError, WorkspaceRootEscape } from "@agentxm/workspace-state";
|
|
26
|
-
import type { HookRuleContext, KnowledgeRuleContext, McpServerRuleContext, RuleRuleContext, SubagentRuleContext } from "@agentxm/
|
|
26
|
+
import type { HookRuleContext, KnowledgeRuleContext, McpServerRuleContext, RuleRuleContext, SubagentRuleContext } from "@agentxm/extension-content/lint";
|
|
27
27
|
import type { WorkspaceProjectionsAccessor, WorkspaceRuleContext } from "../../workspace-context.js";
|
|
28
|
-
import type { InstalledSkillInfo } from "@agentxm/
|
|
29
|
-
import type { InstalledPackInfo } from "@agentxm/
|
|
28
|
+
import type { InstalledSkillInfo } from "@agentxm/extension-content/lint";
|
|
29
|
+
import type { InstalledPackInfo } from "@agentxm/extension-content/lint";
|
|
30
30
|
import type { SkillLockEntry } from "@agentxm/workspace-state";
|
|
31
|
-
import type { KnowledgeInspection } from "@agentxm/
|
|
32
|
-
import type { AxmSkillCompatibilityPolicyService } from "@agentxm/extension-workspace";
|
|
31
|
+
import type { KnowledgeInspection } from "@agentxm/extension-content/knowledge";
|
|
33
32
|
import type { Handle } from "@agentxm/extension-model/unstable/extensions/handle";
|
|
33
|
+
import { type AxmSkillCompatibilityPolicyService } from "@agentxm/extension-resolution";
|
|
34
34
|
/**
|
|
35
35
|
* Flat projection of the workspace read model that the lint accessor builders
|
|
36
36
|
* consume. `buildSkillRuleContexts` reads `installedSkills`;
|
|
@@ -89,7 +89,7 @@ export interface BuildLintWorkspaceArgs {
|
|
|
89
89
|
*
|
|
90
90
|
* @experimental This API is unstable and may change without notice.
|
|
91
91
|
*/
|
|
92
|
-
export interface
|
|
92
|
+
export interface LintWorkspaceBuild {
|
|
93
93
|
readonly rule: WorkspaceRuleContext;
|
|
94
94
|
readonly view: LintWorkspaceView;
|
|
95
95
|
}
|
|
@@ -102,7 +102,7 @@ export interface LintWorkspace {
|
|
|
102
102
|
*
|
|
103
103
|
* @experimental This API is unstable and may change without notice.
|
|
104
104
|
*/
|
|
105
|
-
export declare const buildLintWorkspace: (args: BuildLintWorkspaceArgs) => Effect.Effect<
|
|
105
|
+
export declare const buildLintWorkspace: (args: BuildLintWorkspaceArgs) => Effect.Effect<LintWorkspaceBuild, WorkspaceRootEscape | SettingsReadError | LockfileReadError>;
|
|
106
106
|
/**
|
|
107
107
|
* Compute the `displayRoot` for a registry-installed native skill.
|
|
108
108
|
*
|
|
@@ -119,7 +119,7 @@ export declare const acquiredSkillDisplayRoot: (scope: "project" | "user", entry
|
|
|
119
119
|
* Compute the `displayRoot` for a registry-installed pack.
|
|
120
120
|
*
|
|
121
121
|
* **No `src/` segment** — matches the on-disk layout at
|
|
122
|
-
* `packages/workspace-state/src/workspace/pack-paths.ts#computePackPathsForLayout`.
|
|
122
|
+
* `packages/core/workspace-state/src/workspace/pack-paths.ts#computePackPathsForLayout`.
|
|
123
123
|
*
|
|
124
124
|
* @experimental This API is unstable and may change without notice.
|
|
125
125
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @effect-diagnostics anyUnknownInErrorContext:off — lint converts opaque read-model failures into fact-only findings at this boundary
|
|
2
2
|
/**
|
|
3
|
-
* `
|
|
3
|
+
* `LintWorkspaceBuild` — single helper that produces both the per-rule
|
|
4
4
|
* `WorkspaceRuleContext` and the flat `LintWorkspaceView` projection a lint
|
|
5
5
|
* run needs, sharing one `WorkspaceReadModelLive` setup.
|
|
6
6
|
*
|
|
@@ -30,13 +30,14 @@ import { makeAbsolutePath } from "@agentxm/extension-model/unstable/path-types";
|
|
|
30
30
|
import { AgentRootResolverLive } from "@agentxm/workspace-state";
|
|
31
31
|
import { makeWorkspaceReadModel, WorkspaceReadModelConfig, } from "@agentxm/workspace-state";
|
|
32
32
|
import { AXM_DIR_NAME, USER_WORKSPACE_DIRECTORY } from "@agentxm/workspace-state";
|
|
33
|
-
import { makePlatformSkillFileAccessor } from "@agentxm/extension-
|
|
34
|
-
import { makePlatformPackFileAccessor } from "@agentxm/extension-
|
|
33
|
+
import { makePlatformSkillFileAccessor } from "@agentxm/extension-content/lint";
|
|
34
|
+
import { makePlatformPackFileAccessor } from "@agentxm/extension-content/lint";
|
|
35
35
|
import { acquiredExtensionDisplayPathFromLockEntry, } from "@agentxm/workspace-state";
|
|
36
36
|
import { parseRegistrySourceRef } from "@agentxm/extension-model/unstable/extensions/registry-source";
|
|
37
37
|
import { HOOK_MANIFEST_FILENAME } from "@agentxm/extension-model/unstable/hooks/manifest-schema";
|
|
38
38
|
import { KNOWLEDGE_MANIFEST_FILENAME } from "@agentxm/extension-model/unstable/knowledge/manifest-schema";
|
|
39
|
-
import { inspectKnowledgePackage
|
|
39
|
+
import { inspectKnowledgePackage } from "@agentxm/extension-content/knowledge";
|
|
40
|
+
import { buildPackDependencyReachability, observeInstructionProjection, resolveInstructionsConfig, } from "@agentxm/workspace-projection";
|
|
40
41
|
import { MCP_SERVER_MANIFEST_FILENAME } from "@agentxm/extension-model/unstable/mcps/manifest-schema";
|
|
41
42
|
import { canonicalDisplayRoot } from "../workspace/display-paths.js";
|
|
42
43
|
import { RULE_MANIFEST_FILENAME } from "@agentxm/extension-model/unstable/rules/manifest-schema";
|
|
@@ -46,6 +47,7 @@ import { MANIFEST_FILENAME as SKILL_MANIFEST_FILENAME } from "@agentxm/extension
|
|
|
46
47
|
import { MANIFEST_FILENAME as SUBAGENT_MANIFEST_FILENAME } from "@agentxm/extension-model/unstable/subagents/manifest-schema";
|
|
47
48
|
import { readManifestJson } from "./manifest-json.js";
|
|
48
49
|
import { CommonManifestBaseFields, ExtensionNameSchema, ExtensionTypeSchema, toExtensionTypePlural, } from "@agentxm/extension-model/unstable/extensions/common";
|
|
50
|
+
import { readAxmSkillWorkspaceCompatibility, } from "@agentxm/extension-resolution";
|
|
49
51
|
/**
|
|
50
52
|
* Build the per-rule `WorkspaceRuleContext` and the flat `LintWorkspaceView`
|
|
51
53
|
* via a single {@link makeWorkspaceReadModel} invocation.
|
|
@@ -619,7 +621,7 @@ export const acquiredSkillDisplayRoot = (scope, entry, name) => {
|
|
|
619
621
|
* Compute the `displayRoot` for a registry-installed pack.
|
|
620
622
|
*
|
|
621
623
|
* **No `src/` segment** — matches the on-disk layout at
|
|
622
|
-
* `packages/workspace-state/src/workspace/pack-paths.ts#computePackPathsForLayout`.
|
|
624
|
+
* `packages/core/workspace-state/src/workspace/pack-paths.ts#computePackPathsForLayout`.
|
|
623
625
|
*
|
|
624
626
|
* @experimental This API is unstable and may change without notice.
|
|
625
627
|
*/
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* @experimental This API is unstable and may change without notice.
|
|
10
10
|
*/
|
|
11
11
|
import * as Effect from "effect/Effect";
|
|
12
|
-
import type { PackFileAccessor } from "@agentxm/
|
|
12
|
+
import type { PackFileAccessor } from "@agentxm/extension-content/lint";
|
|
13
13
|
export declare const readManifestJson: (accessor: PackFileAccessor, filename: string) => Effect.Effect<unknown | undefined>;
|
|
14
14
|
//# sourceMappingURL=manifest-json.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import * as Effect from "effect/Effect";
|
|
12
12
|
import * as Schema from "effect/Schema";
|
|
13
|
-
import { makeManifestJsonParseFailure } from "@agentxm/
|
|
13
|
+
import { makeManifestJsonParseFailure } from "@agentxm/extension-content/lint";
|
|
14
14
|
const decoder = new TextDecoder();
|
|
15
15
|
export const readManifestJson = (accessor, filename) => Effect.gen(function* () {
|
|
16
16
|
const exists = yield* accessor.exists(filename);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @experimental This API is unstable and may change without notice.
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
|
-
import type { LintRule } from "@agentxm/
|
|
12
|
+
import type { LintRule } from "@agentxm/extension-content/lint";
|
|
13
13
|
import type { WorkspaceRuleContext } from "../workspace-context.js";
|
|
14
14
|
/**
|
|
15
15
|
* Ordered repository-safe `workspace/*` rule catalog. Declaration order is
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* @packageDocumentation
|
|
20
20
|
*/
|
|
21
21
|
import type { ExtensionType } from "@agentxm/extension-model/unstable/extensions/common";
|
|
22
|
-
import type { HookRuleContext, KnowledgeRuleContext, McpServerRuleContext, PackRuleContext, RuleRuleContext, SkillRuleContext, SubagentRuleContext } from "@agentxm/
|
|
22
|
+
import type { HookRuleContext, KnowledgeRuleContext, McpServerRuleContext, PackRuleContext, RuleRuleContext, SkillRuleContext, SubagentRuleContext } from "@agentxm/extension-content/lint";
|
|
23
23
|
import type { WorkspaceRuleContext } from "./workspace-context.js";
|
|
24
|
-
import type { LintRule } from "@agentxm/
|
|
24
|
+
import type { LintRule } from "@agentxm/extension-content/lint";
|
|
25
25
|
/**
|
|
26
26
|
* The contexts a full lint run evaluates, one array per catalog.
|
|
27
27
|
*
|
|
@@ -76,13 +76,13 @@ export declare const LIVE_ONLY_LINT_CATALOGS: {
|
|
|
76
76
|
export declare const lintCatalogsForView: (view: LintView) => { readonly [K in CatalogGroup]: ReadonlyArray<LintRule<CatalogContext<K>>>; };
|
|
77
77
|
/** Complete workspace catalog retained for callers that do not select a view. */
|
|
78
78
|
export declare const LINT_CATALOGS: {
|
|
79
|
-
readonly skill: readonly LintRule<SkillRuleContext<import("@agentxm/
|
|
80
|
-
readonly "mcp-server": readonly LintRule<McpServerRuleContext<import("@agentxm/
|
|
81
|
-
readonly subagent: readonly LintRule<SubagentRuleContext<import("@agentxm/
|
|
82
|
-
readonly rule: readonly LintRule<RuleRuleContext<import("@agentxm/
|
|
83
|
-
readonly hook: readonly LintRule<HookRuleContext<import("@agentxm/
|
|
84
|
-
readonly knowledge: readonly LintRule<KnowledgeRuleContext<import("@agentxm/
|
|
85
|
-
readonly pack: readonly LintRule<PackRuleContext<import("@agentxm/
|
|
79
|
+
readonly skill: readonly LintRule<SkillRuleContext<import("@agentxm/extension-content/lint").SkillContent>>[];
|
|
80
|
+
readonly "mcp-server": readonly LintRule<McpServerRuleContext<import("@agentxm/extension-content/lint").McpServerContent>>[];
|
|
81
|
+
readonly subagent: readonly LintRule<SubagentRuleContext<import("@agentxm/extension-content/lint").SubagentContent>>[];
|
|
82
|
+
readonly rule: readonly LintRule<RuleRuleContext<import("@agentxm/extension-content/lint").RuleContent>>[];
|
|
83
|
+
readonly hook: readonly LintRule<HookRuleContext<import("@agentxm/extension-content/lint").HookContent>>[];
|
|
84
|
+
readonly knowledge: readonly LintRule<KnowledgeRuleContext<import("@agentxm/extension-content/lint").KnowledgeContent>>[];
|
|
85
|
+
readonly pack: readonly LintRule<PackRuleContext<import("@agentxm/extension-content/lint").PackContent>>[];
|
|
86
86
|
readonly workspace: readonly LintRule<WorkspaceRuleContext>[];
|
|
87
87
|
};
|
|
88
88
|
/**
|