@delorenj/skillex 0.2.0 → 0.3.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/README.md +95 -3
- package/dist/cli.js +14922 -10283
- package/dist/commands/clients.d.ts +8 -0
- package/dist/commands/integrations.d.ts +8 -0
- package/dist/commands/roots.d.ts +8 -0
- package/dist/core/activation-types.d.ts +2 -1
- package/dist/core/catalog-write.d.ts +5 -0
- package/dist/core/client-isolation.d.ts +74 -0
- package/dist/core/composition-mutation.d.ts +10 -8
- package/dist/core/composition-types.d.ts +1 -1
- package/dist/core/derivation.d.ts +59 -0
- package/dist/core/diagnostics-types.d.ts +3 -3
- package/dist/core/import-sources.d.ts +131 -0
- package/dist/core/normalization.d.ts +15 -0
- package/dist/core/packs.d.ts +9 -1
- package/dist/core/profile-policy.d.ts +2 -0
- package/dist/core/reconciliation-types.d.ts +1 -1
- package/dist/core/reconciliation.d.ts +9 -1
- package/dist/core/retired-mise.d.ts +36 -0
- package/dist/core/root-cutover.d.ts +52 -0
- package/dist/core/selection-command-types.d.ts +1 -1
- package/dist/core/selection-commands.d.ts +33 -0
- package/dist/core/selection-manifest.d.ts +9 -1
- package/dist/core/selection.d.ts +9 -4
- package/dist/core/set-origin.d.ts +36 -0
- package/dist/core/sets.d.ts +9 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +14508 -10137
- package/package.json +2 -1
- package/skills.schema.json +8 -16
package/dist/core/selection.d.ts
CHANGED
|
@@ -5,8 +5,6 @@ export interface SkillSelection {
|
|
|
5
5
|
}
|
|
6
6
|
export interface SetSelection {
|
|
7
7
|
readonly name: string;
|
|
8
|
-
readonly include?: readonly string[];
|
|
9
|
-
readonly exclude: readonly string[];
|
|
10
8
|
readonly optional: boolean;
|
|
11
9
|
}
|
|
12
10
|
export interface PackSelection {
|
|
@@ -55,6 +53,8 @@ export interface RegistrySelection {
|
|
|
55
53
|
readonly searched: readonly string[];
|
|
56
54
|
}
|
|
57
55
|
export interface ResolveOptions extends DiscoveryOptions {
|
|
56
|
+
/** Explicit effective project inheritance; the saved manifest remains unchanged. */
|
|
57
|
+
readonly inheritGlobal?: boolean;
|
|
58
58
|
readonly registryRoot?: string;
|
|
59
59
|
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
60
60
|
readonly installedRoot?: string;
|
|
@@ -82,13 +82,18 @@ export interface ResolvedPack {
|
|
|
82
82
|
readonly path: string;
|
|
83
83
|
readonly skillsRoot: string;
|
|
84
84
|
}
|
|
85
|
+
/** A selected set: the scope root becomes a symlink to its flat skill root. */
|
|
86
|
+
export interface ResolvedSet {
|
|
87
|
+
readonly name: string;
|
|
88
|
+
readonly path: string;
|
|
89
|
+
}
|
|
85
90
|
export interface ResolvedScope {
|
|
86
91
|
readonly scope: ScopeName;
|
|
87
92
|
readonly root: string;
|
|
88
93
|
readonly manifest: SkillsManifest;
|
|
89
94
|
readonly registry: RegistrySelection;
|
|
90
|
-
readonly mode: "composed" | "
|
|
91
|
-
readonly
|
|
95
|
+
readonly mode: "composed" | "set";
|
|
96
|
+
readonly set?: ResolvedSet;
|
|
92
97
|
readonly bindings: readonly ResolvedBinding[];
|
|
93
98
|
readonly excluded: readonly ExcludedBinding[];
|
|
94
99
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ScopeName } from "./selection.js";
|
|
2
|
+
/** Sidecar kept inside a set directory; dot-prefixed so membership scans ignore it. */
|
|
3
|
+
export declare const SET_ORIGIN_FILE = ".skillex-set.json";
|
|
4
|
+
export interface DerivedSetDeclaration {
|
|
5
|
+
readonly owner: {
|
|
6
|
+
readonly scope: ScopeName;
|
|
7
|
+
readonly root: string;
|
|
8
|
+
};
|
|
9
|
+
readonly base: string | null;
|
|
10
|
+
readonly packs: readonly string[];
|
|
11
|
+
readonly skills: readonly string[];
|
|
12
|
+
readonly removed: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export interface SetOrigin {
|
|
15
|
+
readonly schema: 1;
|
|
16
|
+
readonly derived?: DerivedSetDeclaration;
|
|
17
|
+
readonly provenance?: Readonly<Record<string, unknown>>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Read derivation/provenance metadata from a set directory. Absence is normal
|
|
21
|
+
* (a plain shared set); malformed metadata is a named refusal, never a guess.
|
|
22
|
+
*/
|
|
23
|
+
export declare function readSetOrigin(setPath: string): Promise<SetOrigin | undefined>;
|
|
24
|
+
export declare function setOriginDocument(origin: SetOrigin): string;
|
|
25
|
+
/** Deterministic scope-owned name for a derived set: stable per (base, owner). */
|
|
26
|
+
export declare function derivedSetName(base: string | null, ownerRoot: string): string;
|
|
27
|
+
/** The suffix every derived set name for this owner root carries. */
|
|
28
|
+
export declare function derivedNameSuffix(ownerRoot: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Invert a derived set name for this owner root: the base set name, or
|
|
31
|
+
* undefined when the name is not shaped like this owner's derived set. The
|
|
32
|
+
* bare form (`skills-<digest>`) inverts to the literal base name "skills";
|
|
33
|
+
* null-base derivations are never produced by the selection commands, and an
|
|
34
|
+
* existing derived set always reads its authoritative base from the sidecar.
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseDerivedName(name: string, ownerRoot: string): string | undefined;
|
package/dist/core/sets.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { CompositionMutationData, CompositionOptions, SetListData, SetShowData } from "./composition-types.js";
|
|
2
2
|
import { type ResultEnvelope } from "./result.js";
|
|
3
|
+
export interface CreateSetOptions extends CompositionOptions {
|
|
4
|
+
/** Existing local skill root whose entries become member references. */
|
|
5
|
+
readonly fromRoot?: string;
|
|
6
|
+
/** Repeatable explicit sources: existing paths or Git remotes. */
|
|
7
|
+
readonly from?: readonly string[];
|
|
8
|
+
/** Import source skills that have no canonical definition instead of refusing. */
|
|
9
|
+
readonly import?: boolean;
|
|
10
|
+
}
|
|
3
11
|
export declare function listSets(options?: CompositionOptions): Promise<ResultEnvelope<SetListData | null>>;
|
|
4
12
|
export declare function showSet(name: string, options?: CompositionOptions): Promise<ResultEnvelope<SetShowData | null>>;
|
|
5
|
-
export declare function createSet(name: string, options?:
|
|
13
|
+
export declare function createSet(name: string, options?: CreateSetOptions): Promise<ResultEnvelope<CompositionMutationData | null>>;
|
|
6
14
|
export declare function addSetSkills(name: string, names: readonly string[], options?: CompositionOptions): Promise<ResultEnvelope<CompositionMutationData | null>>;
|
|
7
15
|
export declare function removeSetSkills(name: string, names: readonly string[], options?: CompositionOptions): Promise<ResultEnvelope<CompositionMutationData | null>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,29 +6,38 @@ export type { BmadCanonicalStatus, BmadCommandClient, BmadCommandFile, BmadComma
|
|
|
6
6
|
export { listSkills, showSkill } from "./core/catalog.js";
|
|
7
7
|
export type { ListSkillsOptions, SkillDetails, SkillListData, SkillMetadata, SkillReference, SkillShowData, } from "./core/catalog-types.js";
|
|
8
8
|
export { type CatalogChange, type CatalogWriteOptions, type CatalogWriteResult, type CreateSkillOptions, createSkill, importSkill, } from "./core/catalog-write.js";
|
|
9
|
+
export { ClientIsolationCommand, type ClientIsolationOptions, type ClientIsolationPlan, type ClientIsolationResult, type ClientVerification, type ClientVerifyOptions, isolateClient, type OpenCodeRequest, unisolateClient, verifyClientIsolation, } from "./core/client-isolation.js";
|
|
9
10
|
export type { CompositionChange, CompositionDetails, CompositionMutationData, CompositionOptions, PackListData, PackShowData, SetListData, SetShowData, } from "./core/composition-types.js";
|
|
11
|
+
export type { DerivationInputs, DerivationOwner, DerivationPreview, } from "./core/derivation.js";
|
|
12
|
+
export { derivedState, desiredDerivedMembers, materializeDerivedSet, ownedDerivedName, planDerivedSet, retireDerivedSet, } from "./core/derivation.js";
|
|
10
13
|
export { explainSkill, inspectStatus } from "./core/diagnostics.js";
|
|
11
14
|
export type { AliasObservation, DiagnosticOptions, ExplainResult, PathObservation, ReceiptObservation, SkillExplanation, SkillObservation, StatusResult, StatusScope, } from "./core/diagnostics-types.js";
|
|
12
15
|
export { discoverRegistry, discoverScopes } from "./core/discovery.js";
|
|
13
16
|
export { doctor } from "./core/doctor.js";
|
|
14
17
|
export type { ConfiguredLegacyWriter, DoctorOptions, DoctorResult, DoctorSourceInspection, DoctorWriterInspection, RunningLegacyWriter, } from "./core/doctor-types.js";
|
|
15
18
|
export { SkillexError } from "./core/error.js";
|
|
19
|
+
export type { ExecutedImport, ImportExecution, PendingImport, PlannedSources, SourceEntry, SourceInventory, SourceOptions, SourceProvenance, } from "./core/import-sources.js";
|
|
20
|
+
export { executeImports, inventorySkillRoot, inventorySource, membersFromInventories, planSourceMembers, provenanceFrom, releaseInventory, } from "./core/import-sources.js";
|
|
16
21
|
export { type LockOptions, withLock } from "./core/lock.js";
|
|
17
22
|
export { isSkillName, isVersionComponent, parseManifest, readManifest } from "./core/manifest.js";
|
|
18
23
|
export { migrate } from "./core/migration.js";
|
|
19
24
|
export type { MigrationItem, MigrationMapping, MigrationOptions, MigrationResult, } from "./core/migration-types.js";
|
|
20
|
-
export {
|
|
25
|
+
export { type NormalizeOptions, normalizeScope } from "./core/normalization.js";
|
|
26
|
+
export { addPackSkills, type CreatePackOptions, createPack, listPacks, removePackSkills, showPack, verifyPack, } from "./core/packs.js";
|
|
21
27
|
export type { HermesRootSelection, ProfileCandidate, ProfileChange, ProfileListResult, ProfileLocalEntry, ProfileLocation, ProfileOptions, ProfileShowResult, ProfileSummary, ProfileSyncOptions, ProfileSyncResult, } from "./core/profile-types.js";
|
|
22
28
|
export { listProfiles, showProfile, syncProfile } from "./core/profiles.js";
|
|
23
29
|
export { planSync, sync } from "./core/reconciliation.js";
|
|
24
30
|
export type { SyncChange, SyncOptions, SyncPlan, SyncResult, SyncScopePlan, } from "./core/reconciliation-types.js";
|
|
25
31
|
export { resolveSelection } from "./core/resolution.js";
|
|
26
32
|
export { type Diagnostic, ExitCode, JSON_SCHEMA_VERSION, makeResult, type ResultEnvelope, type ResultOptions, } from "./core/result.js";
|
|
33
|
+
export { type RetiredMiseChange, type RetiredMiseResult, type RetireMiseOptions, RetireMiseSkillTasksCommand, retireMiseSkillTasks, retireMiseText, } from "./core/retired-mise.js";
|
|
34
|
+
export { adoptRoot, type RootAdoptEntry, type RootAdoptOptions, type RootAdoptResult, } from "./core/root-cutover.js";
|
|
27
35
|
export type { DiscoveryOptions, ExcludedBinding, PackSelection, RegistryOptions, RegistrySelection, Resolution, ResolvedBinding, ResolvedPack, ResolvedScope, ResolveOptions, ScopeDiscovery, ScopeLocation, ScopeName, SetSelection, SkillOrigin, SkillSelection, SkillsManifest, WriteScope, } from "./core/selection.js";
|
|
28
36
|
export type { SelectionChange, SelectionKind, SelectionOptions, SelectionResult, } from "./core/selection-command-types.js";
|
|
29
37
|
export { disableSelection, enableSelection, initScope, setInheritance, } from "./core/selection-commands.js";
|
|
30
38
|
export { readSelectionManifest, type SelectionManifestSnapshot, SelectionManifestWriteError, writeSelectionManifest, } from "./core/selection-manifest.js";
|
|
31
|
-
export {
|
|
39
|
+
export { type DerivedSetDeclaration, derivedSetName, readSetOrigin, SET_ORIGIN_FILE, type SetOrigin, } from "./core/set-origin.js";
|
|
40
|
+
export { addSetSkills, type CreateSetOptions, createSet, listSets, removeSetSkills, showSet, } from "./core/sets.js";
|
|
32
41
|
export { inspectVendorStatus, listVendorSources, showVendorSource } from "./core/vendor-inspect.js";
|
|
33
42
|
export { syncVendorSources } from "./core/vendor-sync.js";
|
|
34
43
|
export type { VendorChange, VendorCheckout, VendorOptions, VendorProvenance, VendorProvenanceInput, VendorSkillStatus, VendorSource, VendorSourceListResult, VendorSourceResolution, VendorSourceShowResult, VendorSourceSkill, VendorSourcesManifest, VendorStatusResult, VendorSyncOptions, VendorSyncResult, } from "./core/vendor-types.js";
|