@agentxm/registry-protocol 0.28.4-bootstrap.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +110 -0
- package/README.md +13 -0
- package/dist/src/unstable/content/agent-skills-standard.d.ts +17 -0
- package/dist/src/unstable/content/agent-skills-standard.js +24 -0
- package/dist/src/unstable/content/frontmatter.d.ts +52 -0
- package/dist/src/unstable/content/frontmatter.js +115 -0
- package/dist/src/unstable/content/index.d.ts +11 -0
- package/dist/src/unstable/content/index.js +11 -0
- package/dist/src/unstable/content/skill-content.d.ts +43 -0
- package/dist/src/unstable/content/skill-content.js +184 -0
- package/dist/src/unstable/content/skill-types.d.ts +22 -0
- package/dist/src/unstable/content/skill-types.js +9 -0
- package/dist/src/unstable/content/subagent-content.d.ts +58 -0
- package/dist/src/unstable/content/subagent-content.js +101 -0
- package/dist/src/unstable/knowledge/index.d.ts +8 -0
- package/dist/src/unstable/knowledge/index.js +8 -0
- package/dist/src/unstable/knowledge/knowledge-search.d.ts +32 -0
- package/dist/src/unstable/knowledge/knowledge-search.js +147 -0
- package/dist/src/unstable/knowledge/okf.d.ts +86 -0
- package/dist/src/unstable/knowledge/okf.js +1090 -0
- package/dist/src/unstable/lint/catalog/hook/decision-portability.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/decision-portability.js +40 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.js +39 -0
- package/dist/src/unstable/lint/catalog/hook/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/hook/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js +51 -0
- package/dist/src/unstable/lint/catalog/hook.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook.js +17 -0
- package/dist/src/unstable/lint/catalog/knowledge/diagnostics.d.ts +128 -0
- package/dist/src/unstable/lint/catalog/knowledge/diagnostics.js +78 -0
- package/dist/src/unstable/lint/catalog/knowledge/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/knowledge/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/knowledge.d.ts +5 -0
- package/dist/src/unstable/lint/catalog/knowledge.js +11 -0
- package/dist/src/unstable/lint/catalog/mcp-server/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/mcp-server/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/mcp-server.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server.js +6 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +28 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +38 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +33 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +51 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +45 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.d.ts +60 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.js +85 -0
- package/dist/src/unstable/lint/catalog/pack.d.ts +37 -0
- package/dist/src/unstable/lint/catalog/pack.js +47 -0
- package/dist/src/unstable/lint/catalog/rule/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/rule/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/rule.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/rule.js +6 -0
- package/dist/src/unstable/lint/catalog/shared/envelope-rules.d.ts +93 -0
- package/dist/src/unstable/lint/catalog/shared/envelope-rules.js +89 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js +28 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.js +37 -0
- package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.d.ts +70 -0
- package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.js +139 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts +58 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +103 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.d.ts +31 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.js +148 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.d.ts +13 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.js +61 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js +41 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +23 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js +32 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.d.ts +21 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.js +36 -0
- package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.d.ts +8 -0
- package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.js +37 -0
- package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.d.ts +8 -0
- package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.d.ts +61 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.js +55 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +77 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +135 -0
- package/dist/src/unstable/lint/catalog/skill.d.ts +44 -0
- package/dist/src/unstable/lint/catalog/skill.js +64 -0
- package/dist/src/unstable/lint/catalog/subagent/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/subagent/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/subagent.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent.js +6 -0
- package/dist/src/unstable/lint/compose-path.d.ts +28 -0
- package/dist/src/unstable/lint/compose-path.js +64 -0
- package/dist/src/unstable/lint/config.d.ts +103 -0
- package/dist/src/unstable/lint/config.js +140 -0
- package/dist/src/unstable/lint/context.d.ts +246 -0
- package/dist/src/unstable/lint/context.js +21 -0
- package/dist/src/unstable/lint/describe-document.d.ts +31 -0
- package/dist/src/unstable/lint/describe-document.js +50 -0
- package/dist/src/unstable/lint/evaluate.d.ts +47 -0
- package/dist/src/unstable/lint/evaluate.js +82 -0
- package/dist/src/unstable/lint/issues-to-findings.d.ts +35 -0
- package/dist/src/unstable/lint/issues-to-findings.js +149 -0
- package/dist/src/unstable/lint/publish.d.ts +49 -0
- package/dist/src/unstable/lint/publish.js +86 -0
- package/dist/src/unstable/lint/rule.d.ts +98 -0
- package/dist/src/unstable/lint/rule.js +18 -0
- package/dist/src/unstable/publish/archive-guardrails.d.ts +39 -0
- package/dist/src/unstable/publish/archive-guardrails.js +250 -0
- package/dist/src/unstable/publish/filtered-package-validation.d.ts +24 -0
- package/dist/src/unstable/publish/filtered-package-validation.js +117 -0
- package/dist/src/unstable/publish/index.d.ts +12 -0
- package/dist/src/unstable/publish/index.js +12 -0
- package/dist/src/unstable/publish/ingest-limits.d.ts +25 -0
- package/dist/src/unstable/publish/ingest-limits.js +41 -0
- package/dist/src/unstable/publish/input-normalization.d.ts +40 -0
- package/dist/src/unstable/publish/input-normalization.js +125 -0
- package/dist/src/unstable/publish/manifest-policy.d.ts +611 -0
- package/dist/src/unstable/publish/manifest-policy.js +196 -0
- package/dist/src/unstable/publish/test-zip-helpers.d.ts +13 -0
- package/dist/src/unstable/publish/test-zip-helpers.js +117 -0
- package/dist/src/unstable/publish/visibility.d.ts +161 -0
- package/dist/src/unstable/publish/visibility.js +124 -0
- package/dist/src/unstable/registry/discover-schema.d.ts +68 -0
- package/dist/src/unstable/registry/discover-schema.js +35 -0
- package/dist/src/unstable/registry/index.d.ts +9 -0
- package/dist/src/unstable/registry/index.js +9 -0
- package/dist/src/unstable/registry/publication-set.d.ts +303 -0
- package/dist/src/unstable/registry/publication-set.js +507 -0
- package/dist/src/unstable/registry/release-age-policy.d.ts +57 -0
- package/dist/src/unstable/registry/release-age-policy.js +117 -0
- package/dist/src/unstable/registry/schema.d.ts +220 -0
- package/dist/src/unstable/registry/schema.js +114 -0
- package/dist/src/unstable/suggested-action.d.ts +19 -0
- package/dist/src/unstable/suggested-action.js +42 -0
- package/package.json +214 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry discovery schemas for package-submitted companion extension metadata.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
export declare const DiscoveryResolvedExtensionSchema: Schema.Struct<{
|
|
8
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
9
|
+
readonly type: Schema.Literals<readonly ("rules" | "skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "skills" | "mcps" | "subagents" | "hooks" | "packs")[]>;
|
|
10
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
11
|
+
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
12
|
+
}>;
|
|
13
|
+
export type DiscoveryResolvedExtension = Schema.Schema.Type<typeof DiscoveryResolvedExtensionSchema>;
|
|
14
|
+
export declare const DiscoveryExtensionResultSchema: Schema.Struct<{
|
|
15
|
+
readonly ref: Schema.String;
|
|
16
|
+
readonly resolved: Schema.Boolean;
|
|
17
|
+
readonly extension: Schema.optional<Schema.Struct<{
|
|
18
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
19
|
+
readonly type: Schema.Literals<readonly ("rules" | "skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "skills" | "mcps" | "subagents" | "hooks" | "packs")[]>;
|
|
20
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
21
|
+
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
22
|
+
}>>;
|
|
23
|
+
readonly attestedBy: Schema.$Array<Schema.Literals<readonly ["package", "extension"]>>;
|
|
24
|
+
readonly official: Schema.Boolean;
|
|
25
|
+
readonly packageVersionInRange: Schema.Boolean;
|
|
26
|
+
}>;
|
|
27
|
+
export type DiscoveryExtensionResult = Schema.Schema.Type<typeof DiscoveryExtensionResultSchema>;
|
|
28
|
+
export declare const DiscoveryPackageResultSchema: Schema.Struct<{
|
|
29
|
+
readonly purl: Schema.String;
|
|
30
|
+
readonly version: Schema.String;
|
|
31
|
+
readonly status: Schema.Literals<readonly ["resolved", "invalid_purl"]>;
|
|
32
|
+
readonly extensions: Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly ref: Schema.String;
|
|
34
|
+
readonly resolved: Schema.Boolean;
|
|
35
|
+
readonly extension: Schema.optional<Schema.Struct<{
|
|
36
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
37
|
+
readonly type: Schema.Literals<readonly ("rules" | "skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "skills" | "mcps" | "subagents" | "hooks" | "packs")[]>;
|
|
38
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
39
|
+
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly attestedBy: Schema.$Array<Schema.Literals<readonly ["package", "extension"]>>;
|
|
42
|
+
readonly official: Schema.Boolean;
|
|
43
|
+
readonly packageVersionInRange: Schema.Boolean;
|
|
44
|
+
}>>;
|
|
45
|
+
}>;
|
|
46
|
+
export type DiscoveryPackageResult = Schema.Schema.Type<typeof DiscoveryPackageResultSchema>;
|
|
47
|
+
export declare const DiscoverPackagesResponseSchema: Schema.Struct<{
|
|
48
|
+
readonly results: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly purl: Schema.String;
|
|
50
|
+
readonly version: Schema.String;
|
|
51
|
+
readonly status: Schema.Literals<readonly ["resolved", "invalid_purl"]>;
|
|
52
|
+
readonly extensions: Schema.$Array<Schema.Struct<{
|
|
53
|
+
readonly ref: Schema.String;
|
|
54
|
+
readonly resolved: Schema.Boolean;
|
|
55
|
+
readonly extension: Schema.optional<Schema.Struct<{
|
|
56
|
+
readonly owner: Schema.Union<readonly [Schema.brand<Schema.String, "Handle">, Schema.brand<Schema.String, "Slug">]>;
|
|
57
|
+
readonly type: Schema.Literals<readonly ("rules" | "skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack" | "skills" | "mcps" | "subagents" | "hooks" | "packs")[]>;
|
|
58
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
59
|
+
readonly installVersion: Schema.brand<Schema.String, "Version">;
|
|
60
|
+
}>>;
|
|
61
|
+
readonly attestedBy: Schema.$Array<Schema.Literals<readonly ["package", "extension"]>>;
|
|
62
|
+
readonly official: Schema.Boolean;
|
|
63
|
+
readonly packageVersionInRange: Schema.Boolean;
|
|
64
|
+
}>>;
|
|
65
|
+
}>>;
|
|
66
|
+
}>;
|
|
67
|
+
export type DiscoverPackagesResponse = Schema.Schema.Type<typeof DiscoverPackagesResponseSchema>;
|
|
68
|
+
//# sourceMappingURL=discover-schema.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry discovery schemas for package-submitted companion extension metadata.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
import { ExtensionNameSchema, extensionTypePluralSegments, extensionTypes, } from "@agentxm/extension-model/unstable/extensions/common";
|
|
8
|
+
import { HandleSchema, SlugSchema } from "@agentxm/extension-model/unstable/extensions/handle";
|
|
9
|
+
import { VersionSchema } from "@agentxm/extension-model/unstable/version-constraints";
|
|
10
|
+
const discoveryExtensionWireTypes = [...extensionTypes, ...extensionTypePluralSegments];
|
|
11
|
+
const DiscoveryExtensionWireTypeSchema = Schema.Literals(discoveryExtensionWireTypes);
|
|
12
|
+
export const DiscoveryResolvedExtensionSchema = Schema.Struct({
|
|
13
|
+
owner: Schema.Union([HandleSchema, SlugSchema]),
|
|
14
|
+
type: DiscoveryExtensionWireTypeSchema,
|
|
15
|
+
name: ExtensionNameSchema,
|
|
16
|
+
installVersion: VersionSchema,
|
|
17
|
+
});
|
|
18
|
+
export const DiscoveryExtensionResultSchema = Schema.Struct({
|
|
19
|
+
ref: Schema.String,
|
|
20
|
+
resolved: Schema.Boolean,
|
|
21
|
+
extension: Schema.optional(DiscoveryResolvedExtensionSchema),
|
|
22
|
+
attestedBy: Schema.Array(Schema.Literals(["package", "extension"])),
|
|
23
|
+
official: Schema.Boolean,
|
|
24
|
+
packageVersionInRange: Schema.Boolean,
|
|
25
|
+
});
|
|
26
|
+
export const DiscoveryPackageResultSchema = Schema.Struct({
|
|
27
|
+
purl: Schema.String,
|
|
28
|
+
version: Schema.String,
|
|
29
|
+
status: Schema.Literals(["resolved", "invalid_purl"]),
|
|
30
|
+
extensions: Schema.Array(DiscoveryExtensionResultSchema),
|
|
31
|
+
});
|
|
32
|
+
export const DiscoverPackagesResponseSchema = Schema.Struct({
|
|
33
|
+
results: Schema.Array(DiscoveryPackageResultSchema),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=discover-schema.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Area barrel for the package public surface.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export { type DiscoverPackagesResponse, DiscoverPackagesResponseSchema, type DiscoveryExtensionResult, DiscoveryExtensionResultSchema, type DiscoveryPackageResult, DiscoveryPackageResultSchema, type DiscoveryResolvedExtension, DiscoveryResolvedExtensionSchema, } from "./discover-schema.js";
|
|
7
|
+
export { MAX_PUBLICATION_SET_CANDIDATES, PUBLICATION_SET_CONTRACT, type PackDependencyDescriptor, type PackDependencyFinding, PackDependencyFindingSchema, type PreviewPublicationSetRequest, PreviewPublicationSetRequestSchema, type PreviewPublicationSetResponse, PreviewPublicationSetResponseSchema, type ProspectivePackDependencyState, type ProspectivePublicationCandidate, type PublicationCandidateResult, type PublicationDependencySnapshot, type PublicationDependencyVersionSnapshot, type PublicationDescriptor, type PublicationPackResult, type PublicationTarget, type PublicationVisibilityInput, PublicationVisibilityInputSchema, type Sha256Hex, Sha256HexSchema, archiveSha256Hex, comparePublicationTargets, evaluateProspectivePackDependencies, evaluateProspectivePackDependencyState, normalizePublicationDescriptor, normalizePublicationSet, publicationDescriptorDigest, publicationSetDigest, publicationTargetKey, validatePublicationDescriptors, validatePublicationSetResponse, } from "./publication-set.js";
|
|
8
|
+
export { type DeprecationManagementView, DeprecationManagementViewSchema, type DeprecationReplacementIntent, DeprecationReplacementIntentSchema, DeprecationRevisionSchema, type DeprecationTransition, DeprecationTransitionSchema, type ExtensionIndex, ExtensionIndexSchema, type VersionEntry, VersionEntrySchema, packagesToPackageUrlParts, } from "./schema.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Area barrel for the package public surface.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export { DiscoverPackagesResponseSchema, DiscoveryExtensionResultSchema, DiscoveryPackageResultSchema, DiscoveryResolvedExtensionSchema, } from "./discover-schema.js";
|
|
7
|
+
export { MAX_PUBLICATION_SET_CANDIDATES, PUBLICATION_SET_CONTRACT, PackDependencyFindingSchema, PreviewPublicationSetRequestSchema, PreviewPublicationSetResponseSchema, PublicationVisibilityInputSchema, Sha256HexSchema, archiveSha256Hex, comparePublicationTargets, evaluateProspectivePackDependencies, evaluateProspectivePackDependencyState, normalizePublicationDescriptor, normalizePublicationSet, publicationDescriptorDigest, publicationSetDigest, publicationTargetKey, validatePublicationDescriptors, validatePublicationSetResponse, } from "./publication-set.js";
|
|
8
|
+
export { DeprecationManagementViewSchema, DeprecationReplacementIntentSchema, DeprecationRevisionSchema, DeprecationTransitionSchema, ExtensionIndexSchema, VersionEntrySchema, packagesToPackageUrlParts, } from "./schema.js";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { type ExtensionName, type ExtensionType, type ExtensionVisibility } from "@agentxm/extension-model/unstable/extensions/common";
|
|
3
|
+
import { type Handle } from "@agentxm/extension-model/unstable/extensions/handle";
|
|
4
|
+
import { VisibilityEvaluationSchema, VisibilityEvaluationUnavailableSchema } from "../publish/visibility.js";
|
|
5
|
+
import { type Version, type VersionRange } from "@agentxm/extension-model/unstable/version-constraints";
|
|
6
|
+
import { type DeprecationView } from "@agentxm/extension-model/unstable/extensions/deprecation";
|
|
7
|
+
export declare const PUBLICATION_SET_CONTRACT: "publication-set-v2";
|
|
8
|
+
export declare const MAX_PUBLICATION_SET_CANDIDATES = 100;
|
|
9
|
+
export declare const Sha256HexSchema: Schema.String;
|
|
10
|
+
export type Sha256Hex = typeof Sha256HexSchema.Type;
|
|
11
|
+
export interface PublicationTarget {
|
|
12
|
+
readonly owner: Handle;
|
|
13
|
+
readonly type: ExtensionType;
|
|
14
|
+
readonly name: ExtensionName;
|
|
15
|
+
readonly version: Version;
|
|
16
|
+
}
|
|
17
|
+
export interface PackDependencyDescriptor {
|
|
18
|
+
readonly owner: Handle;
|
|
19
|
+
readonly type: Exclude<ExtensionType, "pack">;
|
|
20
|
+
readonly name: ExtensionName;
|
|
21
|
+
readonly range: VersionRange;
|
|
22
|
+
}
|
|
23
|
+
export declare const PublicationVisibilityInputSchema: Schema.Struct<{
|
|
24
|
+
readonly intent: Schema.NullOr<Schema.Struct<{
|
|
25
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
26
|
+
readonly source: Schema.Literals<readonly ["manifest", "workspace"]>;
|
|
27
|
+
readonly fingerprint: Schema.String;
|
|
28
|
+
}>>;
|
|
29
|
+
readonly request: Schema.NullOr<Schema.Literals<readonly ["public", "private"]>>;
|
|
30
|
+
}>;
|
|
31
|
+
export type PublicationVisibilityInput = typeof PublicationVisibilityInputSchema.Type;
|
|
32
|
+
export interface PublicationDescriptor {
|
|
33
|
+
readonly target: PublicationTarget;
|
|
34
|
+
readonly participation: "publish" | "verified-existing";
|
|
35
|
+
readonly archiveSha256Hex?: Sha256Hex | undefined;
|
|
36
|
+
readonly visibility: PublicationVisibilityInput;
|
|
37
|
+
readonly pack?: {
|
|
38
|
+
readonly dependencies: ReadonlyArray<PackDependencyDescriptor>;
|
|
39
|
+
} | undefined;
|
|
40
|
+
}
|
|
41
|
+
export declare const PreviewPublicationSetRequestSchema: Schema.Struct<{
|
|
42
|
+
readonly contract: Schema.Literal<"publication-set-v2">;
|
|
43
|
+
readonly candidates: Schema.$Array<Schema.Struct<{
|
|
44
|
+
readonly target: Schema.Struct<{
|
|
45
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
46
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>;
|
|
47
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
48
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
49
|
+
}>;
|
|
50
|
+
readonly participation: Schema.Literals<readonly ["publish", "verified-existing"]>;
|
|
51
|
+
readonly archiveSha256Hex: Schema.optional<Schema.String>;
|
|
52
|
+
readonly visibility: Schema.Struct<{
|
|
53
|
+
readonly intent: Schema.NullOr<Schema.Struct<{
|
|
54
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
55
|
+
readonly source: Schema.Literals<readonly ["manifest", "workspace"]>;
|
|
56
|
+
readonly fingerprint: Schema.String;
|
|
57
|
+
}>>;
|
|
58
|
+
readonly request: Schema.NullOr<Schema.Literals<readonly ["public", "private"]>>;
|
|
59
|
+
}>;
|
|
60
|
+
readonly pack: Schema.optional<Schema.Struct<{
|
|
61
|
+
readonly dependencies: Schema.$Array<Schema.Struct<{
|
|
62
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
63
|
+
readonly type: Schema.Literals<readonly ["hook", "knowledge", "mcp-server", "rule", "skill", "subagent"]>;
|
|
64
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
65
|
+
readonly range: Schema.brand<Schema.NonEmptyString, "VersionRange">;
|
|
66
|
+
}>>;
|
|
67
|
+
}>>;
|
|
68
|
+
}>>;
|
|
69
|
+
}>;
|
|
70
|
+
export interface PreviewPublicationSetRequest {
|
|
71
|
+
readonly contract: typeof PUBLICATION_SET_CONTRACT;
|
|
72
|
+
readonly candidates: ReadonlyArray<PublicationDescriptor>;
|
|
73
|
+
}
|
|
74
|
+
export declare const PackDependencyFindingSchema: Schema.Struct<{
|
|
75
|
+
readonly kind: Schema.Literal<"advisory">;
|
|
76
|
+
readonly ruleId: Schema.Literals<readonly ["pack/dependency-version-resolvable", "pack/dependency-deprecated"]>;
|
|
77
|
+
readonly severity: Schema.Literals<readonly ["error", "warning"]>;
|
|
78
|
+
readonly reason: Schema.Literals<readonly ["selected-new-private", "selected-existing-private", "target-unavailable", "lifecycle-unavailable", "no-installable-version", "range-unsatisfied", "deprecated"]>;
|
|
79
|
+
readonly dependency: Schema.Struct<{
|
|
80
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
81
|
+
readonly type: Schema.Literals<readonly ["hook", "knowledge", "mcp-server", "rule", "skill", "subagent"]>;
|
|
82
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
83
|
+
readonly range: Schema.brand<Schema.NonEmptyString, "VersionRange">;
|
|
84
|
+
}>;
|
|
85
|
+
readonly effectiveVisibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
86
|
+
readonly lifecycle: Schema.optional<Schema.Literals<readonly ["active", "unavailable"]>>;
|
|
87
|
+
readonly deprecation: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
88
|
+
readonly deprecatedAt: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
|
|
89
|
+
readonly message: Schema.String;
|
|
90
|
+
readonly replacement: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
91
|
+
readonly status: Schema.Literal<"available">;
|
|
92
|
+
readonly fqn: Schema.String;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
95
|
+
readonly fqn: Schema.optional<Schema.String>;
|
|
96
|
+
}>]>>;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
readonly deprecatedAt: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
|
|
99
|
+
readonly message: Schema.optional<Schema.String>;
|
|
100
|
+
readonly replacement: Schema.Union<readonly [Schema.Struct<{
|
|
101
|
+
readonly status: Schema.Literal<"available">;
|
|
102
|
+
readonly fqn: Schema.String;
|
|
103
|
+
}>, Schema.Struct<{
|
|
104
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
105
|
+
readonly fqn: Schema.optional<Schema.String>;
|
|
106
|
+
}>]>;
|
|
107
|
+
}>]>>;
|
|
108
|
+
readonly location: Schema.Struct<{
|
|
109
|
+
readonly file: Schema.Literal<"pack.json">;
|
|
110
|
+
}>;
|
|
111
|
+
readonly path: Schema.Literal<"./pack.json">;
|
|
112
|
+
readonly message: Schema.String;
|
|
113
|
+
readonly suggestions: Schema.$Array<Schema.Struct<{
|
|
114
|
+
readonly description: Schema.String;
|
|
115
|
+
readonly cmd: Schema.optional<Schema.String>;
|
|
116
|
+
readonly url: Schema.optional<Schema.String>;
|
|
117
|
+
}>>;
|
|
118
|
+
}>;
|
|
119
|
+
export type PackDependencyFinding = typeof PackDependencyFindingSchema.Type;
|
|
120
|
+
export declare const PreviewPublicationSetResponseSchema: Schema.Struct<{
|
|
121
|
+
readonly contract: Schema.Literal<"publication-set-v2">;
|
|
122
|
+
readonly publicationSetDigest: Schema.String;
|
|
123
|
+
readonly status: Schema.Literals<readonly ["admitted", "blocked"]>;
|
|
124
|
+
readonly candidates: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
125
|
+
readonly kind: Schema.Literal<"resolved">;
|
|
126
|
+
readonly target: Schema.Struct<{
|
|
127
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
128
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>;
|
|
129
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
130
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
131
|
+
}>;
|
|
132
|
+
readonly participation: Schema.Literals<readonly ["publish", "verified-existing"]>;
|
|
133
|
+
readonly descriptorDigest: Schema.String;
|
|
134
|
+
readonly visibility: Schema.Struct<{
|
|
135
|
+
readonly target: Schema.String;
|
|
136
|
+
readonly intent: Schema.NullOr<Schema.Struct<{
|
|
137
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
138
|
+
readonly source: Schema.Literals<readonly ["manifest", "workspace"]>;
|
|
139
|
+
readonly fingerprint: Schema.String;
|
|
140
|
+
}>>;
|
|
141
|
+
readonly request: Schema.NullOr<Schema.Literals<readonly ["public", "private"]>>;
|
|
142
|
+
readonly resolved: Schema.NullOr<Schema.Union<readonly [Schema.Struct<{
|
|
143
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
144
|
+
readonly disposition: Schema.Literal<"establish">;
|
|
145
|
+
readonly source: Schema.Literals<readonly ["manifest", "workspace", "explicit", "account", "platform"]>;
|
|
146
|
+
}>, Schema.Struct<{
|
|
147
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
148
|
+
readonly disposition: Schema.Literal<"preserve">;
|
|
149
|
+
readonly source: Schema.Literal<"existing">;
|
|
150
|
+
}>]>>;
|
|
151
|
+
readonly actual: Schema.NullOr<Schema.Struct<{
|
|
152
|
+
readonly value: Schema.Literals<readonly ["public", "private"]>;
|
|
153
|
+
readonly revision: Schema.NonEmptyString;
|
|
154
|
+
}>>;
|
|
155
|
+
readonly comparison: Schema.Literals<readonly ["not-established", "unconfigured", "match", "drift"]>;
|
|
156
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
157
|
+
readonly code: Schema.Literals<readonly ["visibility/intent-conflict", "visibility/drift", "visibility/unavailable", "visibility/intent-required", "visibility/not-established", "visibility/stale-source", "visibility/stale-revision", "visibility/confirmation-required", "visibility/authorization-denied", "visibility/impersonation-denied", "visibility/verification-required", "visibility/verification-expired", "visibility/verification-cancelled", "visibility/verification-replayed", "visibility/pack-blocked"]>;
|
|
158
|
+
readonly severity: Schema.Literals<readonly ["error", "warning"]>;
|
|
159
|
+
readonly message: Schema.String;
|
|
160
|
+
}>>;
|
|
161
|
+
}>;
|
|
162
|
+
readonly condition: Schema.optional<Schema.String>;
|
|
163
|
+
}>, Schema.Struct<{
|
|
164
|
+
readonly kind: Schema.Literal<"unavailable">;
|
|
165
|
+
readonly target: Schema.Struct<{
|
|
166
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
167
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>;
|
|
168
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
169
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
170
|
+
}>;
|
|
171
|
+
readonly participation: Schema.Literals<readonly ["publish", "verified-existing"]>;
|
|
172
|
+
readonly descriptorDigest: Schema.String;
|
|
173
|
+
readonly code: Schema.Literal<"publish/target-unavailable">;
|
|
174
|
+
readonly visibility: Schema.Struct<{
|
|
175
|
+
readonly target: Schema.String;
|
|
176
|
+
readonly unavailable: Schema.Literal<true>;
|
|
177
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
178
|
+
readonly code: Schema.Literals<readonly ["visibility/intent-conflict", "visibility/drift", "visibility/unavailable", "visibility/intent-required", "visibility/not-established", "visibility/stale-source", "visibility/stale-revision", "visibility/confirmation-required", "visibility/authorization-denied", "visibility/impersonation-denied", "visibility/verification-required", "visibility/verification-expired", "visibility/verification-cancelled", "visibility/verification-replayed", "visibility/pack-blocked"]>;
|
|
179
|
+
readonly severity: Schema.Literals<readonly ["error", "warning"]>;
|
|
180
|
+
readonly message: Schema.String;
|
|
181
|
+
}>>;
|
|
182
|
+
}>;
|
|
183
|
+
}>]>>;
|
|
184
|
+
readonly packs: Schema.$Array<Schema.Struct<{
|
|
185
|
+
readonly target: Schema.Struct<{
|
|
186
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
187
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>;
|
|
188
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
189
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
190
|
+
}>;
|
|
191
|
+
readonly status: Schema.Literals<readonly ["admitted", "blocked"]>;
|
|
192
|
+
readonly findings: Schema.$Array<Schema.Struct<{
|
|
193
|
+
readonly kind: Schema.Literal<"advisory">;
|
|
194
|
+
readonly ruleId: Schema.Literals<readonly ["pack/dependency-version-resolvable", "pack/dependency-deprecated"]>;
|
|
195
|
+
readonly severity: Schema.Literals<readonly ["error", "warning"]>;
|
|
196
|
+
readonly reason: Schema.Literals<readonly ["selected-new-private", "selected-existing-private", "target-unavailable", "lifecycle-unavailable", "no-installable-version", "range-unsatisfied", "deprecated"]>;
|
|
197
|
+
readonly dependency: Schema.Struct<{
|
|
198
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
199
|
+
readonly type: Schema.Literals<readonly ["hook", "knowledge", "mcp-server", "rule", "skill", "subagent"]>;
|
|
200
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
201
|
+
readonly range: Schema.brand<Schema.NonEmptyString, "VersionRange">;
|
|
202
|
+
}>;
|
|
203
|
+
readonly effectiveVisibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
204
|
+
readonly lifecycle: Schema.optional<Schema.Literals<readonly ["active", "unavailable"]>>;
|
|
205
|
+
readonly deprecation: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
206
|
+
readonly deprecatedAt: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
|
|
207
|
+
readonly message: Schema.String;
|
|
208
|
+
readonly replacement: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
209
|
+
readonly status: Schema.Literal<"available">;
|
|
210
|
+
readonly fqn: Schema.String;
|
|
211
|
+
}>, Schema.Struct<{
|
|
212
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
213
|
+
readonly fqn: Schema.optional<Schema.String>;
|
|
214
|
+
}>]>>;
|
|
215
|
+
}>, Schema.Struct<{
|
|
216
|
+
readonly deprecatedAt: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
|
|
217
|
+
readonly message: Schema.optional<Schema.String>;
|
|
218
|
+
readonly replacement: Schema.Union<readonly [Schema.Struct<{
|
|
219
|
+
readonly status: Schema.Literal<"available">;
|
|
220
|
+
readonly fqn: Schema.String;
|
|
221
|
+
}>, Schema.Struct<{
|
|
222
|
+
readonly status: Schema.Literal<"unavailable">;
|
|
223
|
+
readonly fqn: Schema.optional<Schema.String>;
|
|
224
|
+
}>]>;
|
|
225
|
+
}>]>>;
|
|
226
|
+
readonly location: Schema.Struct<{
|
|
227
|
+
readonly file: Schema.Literal<"pack.json">;
|
|
228
|
+
}>;
|
|
229
|
+
readonly path: Schema.Literal<"./pack.json">;
|
|
230
|
+
readonly message: Schema.String;
|
|
231
|
+
readonly suggestions: Schema.$Array<Schema.Struct<{
|
|
232
|
+
readonly description: Schema.String;
|
|
233
|
+
readonly cmd: Schema.optional<Schema.String>;
|
|
234
|
+
readonly url: Schema.optional<Schema.String>;
|
|
235
|
+
}>>;
|
|
236
|
+
}>>;
|
|
237
|
+
readonly resolutions: Schema.$Array<Schema.Struct<{
|
|
238
|
+
readonly dependency: Schema.Struct<{
|
|
239
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
240
|
+
readonly type: Schema.Literals<readonly ["hook", "knowledge", "mcp-server", "rule", "skill", "subagent"]>;
|
|
241
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
242
|
+
readonly range: Schema.brand<Schema.NonEmptyString, "VersionRange">;
|
|
243
|
+
}>;
|
|
244
|
+
readonly effectiveVersion: Schema.brand<Schema.String, "Version">;
|
|
245
|
+
}>>;
|
|
246
|
+
}>>;
|
|
247
|
+
}>;
|
|
248
|
+
export type PreviewPublicationSetResponse = typeof PreviewPublicationSetResponseSchema.Type;
|
|
249
|
+
export type PublicationCandidateResult = PreviewPublicationSetResponse["candidates"][number];
|
|
250
|
+
export type PublicationPackResult = PreviewPublicationSetResponse["packs"][number];
|
|
251
|
+
export interface PublicationDependencyVersionSnapshot {
|
|
252
|
+
readonly version: string;
|
|
253
|
+
readonly status: string;
|
|
254
|
+
readonly yanked: boolean;
|
|
255
|
+
readonly purged: boolean;
|
|
256
|
+
}
|
|
257
|
+
export interface PublicationDependencySnapshot {
|
|
258
|
+
readonly dependency: PackDependencyDescriptor;
|
|
259
|
+
readonly exists: boolean;
|
|
260
|
+
readonly visibility: string | null;
|
|
261
|
+
readonly lifecycleState: string | null;
|
|
262
|
+
readonly deprecation: DeprecationView | null;
|
|
263
|
+
readonly versions: ReadonlyArray<PublicationDependencyVersionSnapshot>;
|
|
264
|
+
}
|
|
265
|
+
export type ProspectivePublicationCandidate = {
|
|
266
|
+
readonly descriptor: PublicationDescriptor;
|
|
267
|
+
readonly kind: "resolved";
|
|
268
|
+
readonly visibility: typeof VisibilityEvaluationSchema.Type;
|
|
269
|
+
} | {
|
|
270
|
+
readonly descriptor: PublicationDescriptor;
|
|
271
|
+
readonly kind: "unavailable";
|
|
272
|
+
readonly visibility: typeof VisibilityEvaluationUnavailableSchema.Type;
|
|
273
|
+
};
|
|
274
|
+
export declare const comparePublicationTargets: (left: PublicationTarget, right: PublicationTarget) => number;
|
|
275
|
+
export declare const normalizePublicationDescriptor: (descriptor: PublicationDescriptor) => PublicationDescriptor;
|
|
276
|
+
export declare const normalizePublicationSet: (descriptors: ReadonlyArray<PublicationDescriptor>) => ReadonlyArray<PublicationDescriptor>;
|
|
277
|
+
export declare const publicationDescriptorDigest: (descriptor: PublicationDescriptor) => Sha256Hex;
|
|
278
|
+
export declare const publicationSetDigest: (descriptors: ReadonlyArray<PublicationDescriptor>) => Sha256Hex;
|
|
279
|
+
export declare const archiveSha256Hex: (archive: Uint8Array) => Sha256Hex;
|
|
280
|
+
export declare const publicationTargetKey: (target: PublicationTarget) => string;
|
|
281
|
+
export declare const validatePublicationDescriptors: (descriptors: ReadonlyArray<PublicationDescriptor>) => ReadonlyArray<PublicationDescriptor>;
|
|
282
|
+
export declare const evaluateProspectivePackDependencies: (input: {
|
|
283
|
+
readonly packVisibility: ExtensionVisibility;
|
|
284
|
+
readonly dependencies: ReadonlyArray<PackDependencyDescriptor>;
|
|
285
|
+
readonly snapshots: ReadonlyArray<PublicationDependencySnapshot>;
|
|
286
|
+
readonly candidates: ReadonlyArray<ProspectivePublicationCandidate>;
|
|
287
|
+
}) => ReadonlyArray<PackDependencyFinding>;
|
|
288
|
+
export interface ProspectivePackDependencyState {
|
|
289
|
+
readonly findings: ReadonlyArray<PackDependencyFinding>;
|
|
290
|
+
readonly resolutions: PublicationPackResult["resolutions"];
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Evaluate dependency admission and expose the exact version an ordinary
|
|
294
|
+
* Registry consumer would resolve from the same prospective snapshot.
|
|
295
|
+
*/
|
|
296
|
+
export declare const evaluateProspectivePackDependencyState: (input: {
|
|
297
|
+
readonly packVisibility: ExtensionVisibility;
|
|
298
|
+
readonly dependencies: ReadonlyArray<PackDependencyDescriptor>;
|
|
299
|
+
readonly snapshots: ReadonlyArray<PublicationDependencySnapshot>;
|
|
300
|
+
readonly candidates: ReadonlyArray<ProspectivePublicationCandidate>;
|
|
301
|
+
}) => ProspectivePackDependencyState;
|
|
302
|
+
export declare const validatePublicationSetResponse: (descriptors: ReadonlyArray<PublicationDescriptor>, response: PreviewPublicationSetResponse) => PreviewPublicationSetResponse;
|
|
303
|
+
//# sourceMappingURL=publication-set.d.ts.map
|