@agentxm/extension-materialization 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.
- package/LICENSE +110 -0
- package/README.md +16 -0
- package/dist/src/desired-state/errors.d.ts +22 -0
- package/dist/src/desired-state/errors.js +22 -0
- package/dist/src/desired-state/retained-materialization.d.ts +58 -0
- package/dist/src/desired-state/retained-materialization.js +119 -0
- package/dist/src/errors.d.ts +42 -0
- package/dist/src/errors.js +14 -0
- package/dist/src/extensions/canonical-directory.d.ts +106 -0
- package/dist/src/extensions/canonical-directory.js +210 -0
- package/dist/src/extensions/canonical-reuse.d.ts +43 -0
- package/dist/src/extensions/canonical-reuse.js +38 -0
- package/dist/src/extensions/copy-directory.d.ts +50 -0
- package/dist/src/extensions/copy-directory.js +78 -0
- package/dist/src/extensions/errors.d.ts +97 -0
- package/dist/src/extensions/errors.js +42 -0
- package/dist/src/extensions/materializable-from-disk.d.ts +37 -0
- package/dist/src/extensions/materializable-from-disk.js +89 -0
- package/dist/src/extensions/operations.d.ts +252 -0
- package/dist/src/extensions/operations.js +631 -0
- package/dist/src/hooks/errors.d.ts +33 -0
- package/dist/src/hooks/errors.js +18 -0
- package/dist/src/hooks/manager.d.ts +13 -0
- package/dist/src/hooks/manager.js +778 -0
- package/dist/src/index.d.ts +44 -0
- package/dist/src/index.js +56 -0
- package/dist/src/knowledge/errors.d.ts +75 -0
- package/dist/src/knowledge/errors.js +36 -0
- package/dist/src/knowledge/manager.d.ts +9 -0
- package/dist/src/knowledge/manager.js +709 -0
- package/dist/src/live.d.ts +20 -0
- package/dist/src/live.js +20 -0
- package/dist/src/manager-contract.d.ts +136 -0
- package/dist/src/manager-contract.js +19 -0
- package/dist/src/manager-registry-live.d.ts +11 -0
- package/dist/src/manager-registry-live.js +23 -0
- package/dist/src/manager-registry.d.ts +37 -0
- package/dist/src/manager-registry.js +22 -0
- package/dist/src/managers.d.ts +147 -0
- package/dist/src/managers.js +32 -0
- package/dist/src/mcps/artifact.d.ts +24 -0
- package/dist/src/mcps/artifact.js +74 -0
- package/dist/src/mcps/authored-materialization.d.ts +28 -0
- package/dist/src/mcps/authored-materialization.js +34 -0
- package/dist/src/mcps/errors.d.ts +105 -0
- package/dist/src/mcps/errors.js +40 -0
- package/dist/src/mcps/install-operation.d.ts +92 -0
- package/dist/src/mcps/install-operation.js +557 -0
- package/dist/src/mcps/manager.d.ts +15 -0
- package/dist/src/mcps/manager.js +253 -0
- package/dist/src/mcps/native-entry.d.ts +51 -0
- package/dist/src/mcps/native-entry.js +100 -0
- package/dist/src/mcps/secret-store-live.d.ts +14 -0
- package/dist/src/mcps/secret-store-live.js +58 -0
- package/dist/src/mcps/secret-store.d.ts +55 -0
- package/dist/src/mcps/secret-store.js +33 -0
- package/dist/src/packs/errors.d.ts +50 -0
- package/dist/src/packs/errors.js +24 -0
- package/dist/src/packs/manager.d.ts +16 -0
- package/dist/src/packs/manager.js +189 -0
- package/dist/src/projection-participants-live.d.ts +17 -0
- package/dist/src/projection-participants-live.js +66 -0
- package/dist/src/projection-step-failure.d.ts +19 -0
- package/dist/src/projection-step-failure.js +76 -0
- package/dist/src/registry-materialization.d.ts +52 -0
- package/dist/src/registry-materialization.js +67 -0
- package/dist/src/rules/errors.d.ts +31 -0
- package/dist/src/rules/errors.js +17 -0
- package/dist/src/rules/manager.d.ts +18 -0
- package/dist/src/rules/manager.js +492 -0
- package/dist/src/skills/errors.d.ts +42 -0
- package/dist/src/skills/errors.js +21 -0
- package/dist/src/skills/manager.d.ts +17 -0
- package/dist/src/skills/manager.js +339 -0
- package/dist/src/skills/materialization.d.ts +52 -0
- package/dist/src/skills/materialization.js +168 -0
- package/dist/src/skills/skill-artifact.d.ts +38 -0
- package/dist/src/skills/skill-artifact.js +70 -0
- package/dist/src/skills/source-hash.d.ts +2 -0
- package/dist/src/skills/source-hash.js +6 -0
- package/dist/src/subagents/errors.d.ts +43 -0
- package/dist/src/subagents/errors.js +20 -0
- package/dist/src/subagents/lock-entry-builder.d.ts +20 -0
- package/dist/src/subagents/lock-entry-builder.js +63 -0
- package/dist/src/subagents/manager.d.ts +17 -0
- package/dist/src/subagents/manager.js +736 -0
- package/dist/src/testing.d.ts +87 -0
- package/dist/src/testing.js +116 -0
- package/package.json +70 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentxm/extension-materialization public API.
|
|
3
|
+
*
|
|
4
|
+
* The materialization capability: the per-extension-type manager contract and
|
|
5
|
+
* service tags, the per-type failure families, canonical package staging and
|
|
6
|
+
* swap, registry-backed acquisition, and the install, materialize, uninstall,
|
|
7
|
+
* and authored-package closure recipes that compose a manager into one plan
|
|
8
|
+
* step. Environment-backed manager layers live behind `./live`; in-memory
|
|
9
|
+
* managers for feature tests live behind `./testing`.
|
|
10
|
+
*
|
|
11
|
+
* @experimental This API is unstable and may change without notice.
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
export { NO_MATERIALIZATION_OBSERVATION, type ExtensionManager, type ManagerRequirements, type MaterializationFacts, type MaterializationObservation, } from "./manager-contract.js";
|
|
15
|
+
export { ExtensionManagers, type ExtensionManagersService } from "./manager-registry.js";
|
|
16
|
+
export { HookManager, KnowledgeManager, McpServerManager, PackManager, RuleManager, SkillManager, SubagentManager, type AcquiredContentFacts, type HookManagerService, type HookMaterializationFacts, type KnowledgeManagerService, type KnowledgeMaterializationFacts, type KnowledgeSyncResult, type McpServerMaterializationFacts, type PackMaterializationFacts, type RuleManagerService, type RuleMaterializationFacts, type SkillMaterializationFacts, type SubagentManagerService, type SubagentMaterializationFacts, } from "./managers.js";
|
|
17
|
+
export type { ExtensionManagerFailure, ExtensionMaterializationError } from "./errors.js";
|
|
18
|
+
export { ArchiveIntegrityMismatch, CanonicalPackageProbeFailed, CreateDestinationExists, LifecyclePostconditionViolated, PackageCopyFailed, PackageMaterializationFailed, ScaffoldedExtensionUnresolved, StagedPackageInvalid, type MaterializationError, } from "./extensions/errors.js";
|
|
19
|
+
export { HookDefinitionInvalid, HookInstallStateMissing, type HookManagerError, } from "./hooks/errors.js";
|
|
20
|
+
export { RuleDefinitionInvalid, RuleInstallStateMissing, type RuleManagerError, } from "./rules/errors.js";
|
|
21
|
+
export { McpAgentSyncRefused, McpCanonicalPathUnsafe, McpInstallStateMissing, McpLocalNameConflict, McpRegistryOnlyInstall, McpRequiredInputsMissing, McpWorkspacePackageInvalid, type McpAgentSyncFault, type McpManagerError, type McpWorkspacePackageFault, } from "./mcps/errors.js";
|
|
22
|
+
export { SubagentContentUnreadable, SubagentDefinitionInvalid, SubagentInstallStateMissing, type SubagentManagerError, } from "./subagents/errors.js";
|
|
23
|
+
export { SkillDefinitionInvalid, SkillInstallStateMissing, SkillMaterializationFailed, type SkillManagerError, } from "./skills/errors.js";
|
|
24
|
+
export { PackArchiveFetchFailed, PackDefinitionInvalid, PackInstallStateMissing, PackStagingFailed, type PackManagerError, } from "./packs/errors.js";
|
|
25
|
+
export { KnowledgeDefinitionInvalid, KnowledgeDesiredStateUnreconcilable, KnowledgeInstallStateMissing, KnowledgeIoFailed, KnowledgeObservableContractViolated, KnowledgeResolutionMissing, KnowledgeUnavailable, type KnowledgeManagerError, } from "./knowledge/errors.js";
|
|
26
|
+
export { collectSecretInputNames, deleteMcpSecrets, installMcpServer, readMcpServerManifest, type InstallMcpServerOperation, type InstallMcpServerOperationArgs, type McpSecretDeletionOutcome, type McpServerInstallRequirements, } from "./mcps/install-operation.js";
|
|
27
|
+
export { materializeAuthoredMcpServer } from "./mcps/authored-materialization.js";
|
|
28
|
+
export { NativeMcpEntryRetirementFailed, retireNativeMcpEntry, type NativeMcpEntryRef, } from "./mcps/native-entry.js";
|
|
29
|
+
export { MCP_SECRET_SERVICE, McpSecretStore, mcpSecretAccount, type McpSecretEraseOutcome, type McpSecretIdentity, type McpSecretStoreService, type McpSecretWriteOutcome, } from "./mcps/secret-store.js";
|
|
30
|
+
export { MCP_AGENT_CONFIG_SURFACE, agentConfigTarget, agentConfigTargets, mcpConfigSurface, mcpServerArtifact, mcpServerSourcePath, mcpServerVersion, mcpSettingsTarget, mcpSourceTarget, type AgentMcpConfigOutcome, } from "./mcps/artifact.js";
|
|
31
|
+
export { buildSubagentLockEntry } from "./subagents/lock-entry-builder.js";
|
|
32
|
+
export { artifactAgentIdsFromTargets, artifactTargetAgentIds, groupInstallTargetsByDirectory, skillArtifactFromTargets, type InstallableSkillTarget, type InstallableSkillTargetLocation, } from "./skills/skill-artifact.js";
|
|
33
|
+
export { computeSkillSourceHash } from "./skills/source-hash.js";
|
|
34
|
+
export { ensureSkillAgentArtifact, removeSkillAgentArtifact } from "./skills/materialization.js";
|
|
35
|
+
export { copyExtensionDirectory, formatCopyExtensionDirectoryFailure, type CopyExtensionDirectoryFailureDetails, type CopyExtensionDirectoryOptions, } from "./extensions/copy-directory.js";
|
|
36
|
+
export { shouldReuseCanonicalInstall } from "./extensions/canonical-reuse.js";
|
|
37
|
+
export { configuredMcpServersToDiskRefs, configuredPacksToDiskRefs, configuredSkillsToDiskRefs, configuredSubagentsToDiskRefs, } from "./extensions/materializable-from-disk.js";
|
|
38
|
+
export { canReuseExternalPackage, canReuseInstalledPackage, canonicalMaterializationPaths, createCanonicalDirectory, materializeExternalPackage, materializeExternalPackageWithTreeIntegrity, recoverCanonicalDirectory, replaceCanonicalDirectory, replaceCanonicalDirectoryWithInspection, type CanReuseExternalPackageArgs, type CanReuseInstalledPackageArgs, type CanonicalDirectoryInspection, type CanonicalDirectoryReplacementError, type CreateCanonicalDirectoryArgs, type MaterializeExternalPackageArgs, type MaterializedPackage, type RecoverCanonicalDirectoryArgs, type ReplaceCanonicalDirectoryArgs, type ReplaceCanonicalDirectoryWithInspectionArgs, } from "./extensions/canonical-directory.js";
|
|
39
|
+
export { materializeRegistryPackage, materializeRegistryPackageWithTreeIntegrity, type MaterializeRegistryPackageArgs, type RegistryPackageMaterializationMessages, } from "./registry-materialization.js";
|
|
40
|
+
export { buildAuthoredExtensionStep, buildInstallOperation, buildMaterializeOperation, buildNewExtensionStep, buildUninstallOperation, extensionRefLifecycleWarnings, extensionRefRegistryLifecycle, formatPackageUrlParts, targetFromRef, toLabel, toLabelWithCompanions, toStepKey, type AuthoredExtensionOperationArgs, type CallerStepFailure, type InstallOperationArgs, type MaterializeOperationArgs, type NewExtensionOperationArgs, type RecipeRequirements, type StepFailureAdapter, type UninstallOperationArgs, type UninstallRetentionPolicy, type UninstallSettlement, type UnreadablePackageRetirement, } from "./extensions/operations.js";
|
|
41
|
+
export { RetainedContentUnusable } from "./desired-state/errors.js";
|
|
42
|
+
export { collectRetainedMaterializeSteps, type RetainedMaterializeFailure, type RetainedMaterializeRequirements, type RetainedMaterializeSteps, type RunRetainedMcpServerInstall, } from "./desired-state/retained-materialization.js";
|
|
43
|
+
export { projectionErrorToStepFailure } from "./projection-step-failure.js";
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentxm/extension-materialization public API.
|
|
3
|
+
*
|
|
4
|
+
* The materialization capability: the per-extension-type manager contract and
|
|
5
|
+
* service tags, the per-type failure families, canonical package staging and
|
|
6
|
+
* swap, registry-backed acquisition, and the install, materialize, uninstall,
|
|
7
|
+
* and authored-package closure recipes that compose a manager into one plan
|
|
8
|
+
* step. Environment-backed manager layers live behind `./live`; in-memory
|
|
9
|
+
* managers for feature tests live behind `./testing`.
|
|
10
|
+
*
|
|
11
|
+
* @experimental This API is unstable and may change without notice.
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
// Manager contract
|
|
15
|
+
export { NO_MATERIALIZATION_OBSERVATION, } from "./manager-contract.js";
|
|
16
|
+
// The seven managers under one lookup, for use cases that decide the
|
|
17
|
+
// extension type at runtime.
|
|
18
|
+
export { ExtensionManagers } from "./manager-registry.js";
|
|
19
|
+
// Manager service tags and the facts each manager reports
|
|
20
|
+
export { HookManager, KnowledgeManager, McpServerManager, PackManager, RuleManager, SkillManager, SubagentManager, } from "./managers.js";
|
|
21
|
+
export { ArchiveIntegrityMismatch, CanonicalPackageProbeFailed, CreateDestinationExists, LifecyclePostconditionViolated, PackageCopyFailed, PackageMaterializationFailed, ScaffoldedExtensionUnresolved, StagedPackageInvalid, } from "./extensions/errors.js";
|
|
22
|
+
export { HookDefinitionInvalid, HookInstallStateMissing, } from "./hooks/errors.js";
|
|
23
|
+
export { RuleDefinitionInvalid, RuleInstallStateMissing, } from "./rules/errors.js";
|
|
24
|
+
export { McpAgentSyncRefused, McpCanonicalPathUnsafe, McpInstallStateMissing, McpLocalNameConflict, McpRegistryOnlyInstall, McpRequiredInputsMissing, McpWorkspacePackageInvalid, } from "./mcps/errors.js";
|
|
25
|
+
export { SubagentContentUnreadable, SubagentDefinitionInvalid, SubagentInstallStateMissing, } from "./subagents/errors.js";
|
|
26
|
+
export { SkillDefinitionInvalid, SkillInstallStateMissing, SkillMaterializationFailed, } from "./skills/errors.js";
|
|
27
|
+
export { PackArchiveFetchFailed, PackDefinitionInvalid, PackInstallStateMissing, PackStagingFailed, } from "./packs/errors.js";
|
|
28
|
+
export { KnowledgeDefinitionInvalid, KnowledgeDesiredStateUnreconcilable, KnowledgeInstallStateMissing, KnowledgeIoFailed, KnowledgeObservableContractViolated, KnowledgeResolutionMissing, KnowledgeUnavailable, } from "./knowledge/errors.js";
|
|
29
|
+
// MCP server installation: the operation four surfaces share, its credential
|
|
30
|
+
// port, and the artifact/target vocabulary the plan step reports.
|
|
31
|
+
export { collectSecretInputNames, deleteMcpSecrets, installMcpServer, readMcpServerManifest, } from "./mcps/install-operation.js";
|
|
32
|
+
export { materializeAuthoredMcpServer } from "./mcps/authored-materialization.js";
|
|
33
|
+
export { NativeMcpEntryRetirementFailed, retireNativeMcpEntry, } from "./mcps/native-entry.js";
|
|
34
|
+
export { MCP_SECRET_SERVICE, McpSecretStore, mcpSecretAccount, } from "./mcps/secret-store.js";
|
|
35
|
+
export { MCP_AGENT_CONFIG_SURFACE, agentConfigTarget, agentConfigTargets, mcpConfigSurface, mcpServerArtifact, mcpServerSourcePath, mcpServerVersion, mcpSettingsTarget, mcpSourceTarget, } from "./mcps/artifact.js";
|
|
36
|
+
// Per-type materialization vocabulary
|
|
37
|
+
export { buildSubagentLockEntry } from "./subagents/lock-entry-builder.js";
|
|
38
|
+
export { artifactAgentIdsFromTargets, artifactTargetAgentIds, groupInstallTargetsByDirectory, skillArtifactFromTargets, } from "./skills/skill-artifact.js";
|
|
39
|
+
export { computeSkillSourceHash } from "./skills/source-hash.js";
|
|
40
|
+
export { ensureSkillAgentArtifact, removeSkillAgentArtifact } from "./skills/materialization.js";
|
|
41
|
+
// Canonical package staging, copy, reuse, and on-disk materializability
|
|
42
|
+
export { copyExtensionDirectory, formatCopyExtensionDirectoryFailure, } from "./extensions/copy-directory.js";
|
|
43
|
+
export { shouldReuseCanonicalInstall } from "./extensions/canonical-reuse.js";
|
|
44
|
+
export { configuredMcpServersToDiskRefs, configuredPacksToDiskRefs, configuredSkillsToDiskRefs, configuredSubagentsToDiskRefs, } from "./extensions/materializable-from-disk.js";
|
|
45
|
+
export { canReuseExternalPackage, canReuseInstalledPackage, canonicalMaterializationPaths, createCanonicalDirectory, materializeExternalPackage, materializeExternalPackageWithTreeIntegrity, recoverCanonicalDirectory, replaceCanonicalDirectory, replaceCanonicalDirectoryWithInspection, } from "./extensions/canonical-directory.js";
|
|
46
|
+
// Registry-backed acquisition
|
|
47
|
+
export { materializeRegistryPackage, materializeRegistryPackageWithTreeIntegrity, } from "./registry-materialization.js";
|
|
48
|
+
// Closure recipes
|
|
49
|
+
export { buildAuthoredExtensionStep, buildInstallOperation, buildMaterializeOperation, buildNewExtensionStep, buildUninstallOperation, extensionRefLifecycleWarnings, extensionRefRegistryLifecycle, formatPackageUrlParts, targetFromRef, toLabel, toLabelWithCompanions, toStepKey, } from "./extensions/operations.js";
|
|
50
|
+
// Re-materializing content the workspace already accepted. Both the sync
|
|
51
|
+
// sweep and Pack activation restore retained members, and neither feature may
|
|
52
|
+
// import the other.
|
|
53
|
+
export { RetainedContentUnusable } from "./desired-state/errors.js";
|
|
54
|
+
export { collectRetainedMaterializeSteps, } from "./desired-state/retained-materialization.js";
|
|
55
|
+
export { projectionErrorToStepFailure } from "./projection-step-failure.js";
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed failure family for the Knowledge manager, discovery, and package
|
|
3
|
+
* inspection. Fields are domain facts; the application error boundary owns
|
|
4
|
+
* rendering, codes, and suggestions.
|
|
5
|
+
*
|
|
6
|
+
* @experimental This API is unstable and may change without notice.
|
|
7
|
+
*/
|
|
8
|
+
declare const KnowledgeDefinitionInvalid_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
9
|
+
readonly _tag: "KnowledgeDefinitionInvalid";
|
|
10
|
+
} & Readonly<A>;
|
|
11
|
+
/**
|
|
12
|
+
* A Knowledge bundle source, manifest, or discovery input did not validate.
|
|
13
|
+
* `detail` carries the site's fact sentence verbatim.
|
|
14
|
+
*/
|
|
15
|
+
export declare class KnowledgeDefinitionInvalid extends KnowledgeDefinitionInvalid_base<{
|
|
16
|
+
readonly detail: string;
|
|
17
|
+
readonly cause?: unknown;
|
|
18
|
+
}> {
|
|
19
|
+
}
|
|
20
|
+
declare const KnowledgeIoFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
21
|
+
readonly _tag: "KnowledgeIoFailed";
|
|
22
|
+
} & Readonly<A>;
|
|
23
|
+
/** A Knowledge filesystem step failed; `detail` carries the site's fact sentence. */
|
|
24
|
+
export declare class KnowledgeIoFailed extends KnowledgeIoFailed_base<{
|
|
25
|
+
readonly detail: string;
|
|
26
|
+
readonly cause: unknown;
|
|
27
|
+
}> {
|
|
28
|
+
}
|
|
29
|
+
declare const KnowledgeInstallStateMissing_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
30
|
+
readonly _tag: "KnowledgeInstallStateMissing";
|
|
31
|
+
} & Readonly<A>;
|
|
32
|
+
/** A lock entry was requested before install recorded the package state. */
|
|
33
|
+
export declare class KnowledgeInstallStateMissing extends KnowledgeInstallStateMissing_base<{
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly kind: "tree-integrity" | "content-identity" | "staged-tree-integrity";
|
|
36
|
+
}> {
|
|
37
|
+
}
|
|
38
|
+
declare const KnowledgeResolutionMissing_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
39
|
+
readonly _tag: "KnowledgeResolutionMissing";
|
|
40
|
+
} & Readonly<A>;
|
|
41
|
+
/** An active external Knowledge bundle has no accepted lock resolution. */
|
|
42
|
+
export declare class KnowledgeResolutionMissing extends KnowledgeResolutionMissing_base<{
|
|
43
|
+
readonly name: string;
|
|
44
|
+
}> {
|
|
45
|
+
}
|
|
46
|
+
declare const KnowledgeDesiredStateUnreconcilable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
47
|
+
readonly _tag: "KnowledgeDesiredStateUnreconcilable";
|
|
48
|
+
} & Readonly<A>;
|
|
49
|
+
/** Knowledge desired state cannot be reconciled from an incomplete graph. */
|
|
50
|
+
export declare class KnowledgeDesiredStateUnreconcilable extends KnowledgeDesiredStateUnreconcilable_base {
|
|
51
|
+
}
|
|
52
|
+
declare const KnowledgeUnavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
53
|
+
readonly _tag: "KnowledgeUnavailable";
|
|
54
|
+
} & Readonly<A>;
|
|
55
|
+
/**
|
|
56
|
+
* Locked Knowledge content cannot be restored from its source. `detail`
|
|
57
|
+
* carries the site's fact sentence verbatim.
|
|
58
|
+
*/
|
|
59
|
+
export declare class KnowledgeUnavailable extends KnowledgeUnavailable_base<{
|
|
60
|
+
readonly detail: string;
|
|
61
|
+
readonly cause?: unknown;
|
|
62
|
+
}> {
|
|
63
|
+
}
|
|
64
|
+
declare const KnowledgeObservableContractViolated_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
65
|
+
readonly _tag: "KnowledgeObservableContractViolated";
|
|
66
|
+
} & Readonly<A>;
|
|
67
|
+
/** An installed Knowledge bundle failed its observable postcondition. */
|
|
68
|
+
export declare class KnowledgeObservableContractViolated extends KnowledgeObservableContractViolated_base<{
|
|
69
|
+
readonly name: string;
|
|
70
|
+
}> {
|
|
71
|
+
}
|
|
72
|
+
/** Every failure the Knowledge module constructs. */
|
|
73
|
+
export type KnowledgeManagerError = KnowledgeDefinitionInvalid | KnowledgeIoFailed | KnowledgeInstallStateMissing | KnowledgeResolutionMissing | KnowledgeDesiredStateUnreconcilable | KnowledgeUnavailable | KnowledgeObservableContractViolated;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed failure family for the Knowledge manager, discovery, and package
|
|
3
|
+
* inspection. Fields are domain facts; the application error boundary owns
|
|
4
|
+
* rendering, codes, and suggestions.
|
|
5
|
+
*
|
|
6
|
+
* @experimental This API is unstable and may change without notice.
|
|
7
|
+
*/
|
|
8
|
+
import * as Data from "effect/Data";
|
|
9
|
+
/**
|
|
10
|
+
* A Knowledge bundle source, manifest, or discovery input did not validate.
|
|
11
|
+
* `detail` carries the site's fact sentence verbatim.
|
|
12
|
+
*/
|
|
13
|
+
export class KnowledgeDefinitionInvalid extends Data.TaggedError("KnowledgeDefinitionInvalid") {
|
|
14
|
+
}
|
|
15
|
+
/** A Knowledge filesystem step failed; `detail` carries the site's fact sentence. */
|
|
16
|
+
export class KnowledgeIoFailed extends Data.TaggedError("KnowledgeIoFailed") {
|
|
17
|
+
}
|
|
18
|
+
/** A lock entry was requested before install recorded the package state. */
|
|
19
|
+
export class KnowledgeInstallStateMissing extends Data.TaggedError("KnowledgeInstallStateMissing") {
|
|
20
|
+
}
|
|
21
|
+
/** An active external Knowledge bundle has no accepted lock resolution. */
|
|
22
|
+
export class KnowledgeResolutionMissing extends Data.TaggedError("KnowledgeResolutionMissing") {
|
|
23
|
+
}
|
|
24
|
+
/** Knowledge desired state cannot be reconciled from an incomplete graph. */
|
|
25
|
+
export class KnowledgeDesiredStateUnreconcilable extends Data.TaggedError("KnowledgeDesiredStateUnreconcilable") {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Locked Knowledge content cannot be restored from its source. `detail`
|
|
29
|
+
* carries the site's fact sentence verbatim.
|
|
30
|
+
*/
|
|
31
|
+
export class KnowledgeUnavailable extends Data.TaggedError("KnowledgeUnavailable") {
|
|
32
|
+
}
|
|
33
|
+
/** An installed Knowledge bundle failed its observable postcondition. */
|
|
34
|
+
export class KnowledgeObservableContractViolated extends Data.TaggedError("KnowledgeObservableContractViolated") {
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Lifecycle manager for isolated Open Knowledge Format bundles. */
|
|
2
|
+
import * as FileSystem from "effect/FileSystem";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
import * as Path from "effect/Path";
|
|
5
|
+
import { SourceHostProviders, WorkspaceCatalog } from "@agentxm/extension-sources";
|
|
6
|
+
import { KnowledgeManager } from "../managers.js";
|
|
7
|
+
import { WorkspaceMutations } from "@agentxm/workspace-state";
|
|
8
|
+
export declare const KnowledgeManagerLive: Layer.Layer<KnowledgeManager, never, FileSystem.FileSystem | Path.Path | WorkspaceMutations | SourceHostProviders | WorkspaceCatalog>;
|
|
9
|
+
//# sourceMappingURL=manager.d.ts.map
|