@seanmars/tospec 0.12.0 → 0.13.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/assets/dashboard/style.css +8 -3
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +40 -17
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +0 -9
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/dashboard.d.ts +95 -8
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +253 -32
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/decision.d.ts.map +1 -1
- package/dist/commands/decision.js +1 -13
- package/dist/commands/decision.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +36 -41
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/workflow/instructions.d.ts +0 -2
- package/dist/commands/workflow/instructions.d.ts.map +1 -1
- package/dist/commands/workflow/instructions.js +2 -37
- package/dist/commands/workflow/instructions.js.map +1 -1
- package/dist/commands/workflow/shared.d.ts +0 -3
- package/dist/commands/workflow/shared.d.ts.map +1 -1
- package/dist/commands/workflow/shared.js.map +1 -1
- package/dist/core/archive.d.ts +13 -4
- package/dist/core/archive.d.ts.map +1 -1
- package/dist/core/archive.js +89 -117
- package/dist/core/archive.js.map +1 -1
- package/dist/core/artifact-graph/instruction-loader.d.ts +0 -5
- package/dist/core/artifact-graph/instruction-loader.d.ts.map +1 -1
- package/dist/core/artifact-graph/instruction-loader.js +31 -37
- package/dist/core/artifact-graph/instruction-loader.js.map +1 -1
- package/dist/core/artifact-graph/resolver.d.ts +6 -0
- package/dist/core/artifact-graph/resolver.d.ts.map +1 -1
- package/dist/core/artifact-graph/resolver.js +79 -124
- package/dist/core/artifact-graph/resolver.js.map +1 -1
- package/dist/core/change-presenter.d.ts +0 -1
- package/dist/core/change-presenter.d.ts.map +1 -1
- package/dist/core/change-presenter.js +3 -20
- package/dist/core/change-presenter.js.map +1 -1
- package/dist/core/command-generation/adapters/index.d.ts +9 -1
- package/dist/core/command-generation/adapters/index.d.ts.map +1 -1
- package/dist/core/command-generation/adapters/index.js +10 -1
- package/dist/core/command-generation/adapters/index.js.map +1 -1
- package/dist/core/command-generation/index.d.ts +2 -2
- package/dist/core/command-generation/index.d.ts.map +1 -1
- package/dist/core/command-generation/index.js +2 -2
- package/dist/core/command-generation/index.js.map +1 -1
- package/dist/core/config.d.ts +0 -4
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -4
- package/dist/core/config.js.map +1 -1
- package/dist/core/converters/json-converter.d.ts +0 -1
- package/dist/core/converters/json-converter.d.ts.map +1 -1
- package/dist/core/converters/json-converter.js +3 -17
- package/dist/core/converters/json-converter.js.map +1 -1
- package/dist/core/dashboard-activity.d.ts.map +1 -1
- package/dist/core/dashboard-activity.js +2 -8
- package/dist/core/dashboard-activity.js.map +1 -1
- package/dist/core/dashboard-data.d.ts +7 -7
- package/dist/core/dashboard-data.d.ts.map +1 -1
- package/dist/core/dashboard-data.js +15 -54
- package/dist/core/dashboard-data.js.map +1 -1
- package/dist/core/id.d.ts +0 -8
- package/dist/core/id.d.ts.map +1 -1
- package/dist/core/id.js +0 -19
- package/dist/core/id.js.map +1 -1
- package/dist/core/init.d.ts +0 -1
- package/dist/core/init.d.ts.map +1 -1
- package/dist/core/init.js +9 -23
- package/dist/core/init.js.map +1 -1
- package/dist/core/list.d.ts.map +1 -1
- package/dist/core/list.js +3 -34
- package/dist/core/list.js.map +1 -1
- package/dist/core/migrate.js +9 -15
- package/dist/core/migrate.js.map +1 -1
- package/dist/core/parsers/markdown-parser.d.ts +11 -1
- package/dist/core/parsers/markdown-parser.d.ts.map +1 -1
- package/dist/core/parsers/markdown-parser.js +25 -13
- package/dist/core/parsers/markdown-parser.js.map +1 -1
- package/dist/core/planning-home.d.ts +6 -0
- package/dist/core/planning-home.d.ts.map +1 -1
- package/dist/core/planning-home.js +6 -1
- package/dist/core/planning-home.js.map +1 -1
- package/dist/core/project-config.d.ts +5 -19
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +11 -130
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/root-selection.d.ts.map +1 -1
- package/dist/core/root-selection.js +2 -15
- package/dist/core/root-selection.js.map +1 -1
- package/dist/core/shared/index.d.ts +1 -1
- package/dist/core/shared/index.d.ts.map +1 -1
- package/dist/core/shared/index.js +1 -1
- package/dist/core/shared/index.js.map +1 -1
- package/dist/core/shared/skill-generation.d.ts +4 -4
- package/dist/core/shared/skill-generation.d.ts.map +1 -1
- package/dist/core/shared/skill-generation.js +5 -5
- package/dist/core/shared/skill-generation.js.map +1 -1
- package/dist/core/shared/tool-detection.d.ts +3 -6
- package/dist/core/shared/tool-detection.d.ts.map +1 -1
- package/dist/core/shared/tool-detection.js +3 -9
- package/dist/core/shared/tool-detection.js.map +1 -1
- package/dist/core/spec-presenter.d.ts.map +1 -1
- package/dist/core/spec-presenter.js.map +1 -1
- package/dist/core/specs-apply.d.ts +0 -31
- package/dist/core/specs-apply.d.ts.map +1 -1
- package/dist/core/specs-apply.js +0 -102
- package/dist/core/specs-apply.js.map +1 -1
- package/dist/core/templates/fragments/verify.d.ts +12 -11
- package/dist/core/templates/fragments/verify.d.ts.map +1 -1
- package/dist/core/templates/fragments/verify.js +22 -15
- package/dist/core/templates/fragments/verify.js.map +1 -1
- package/dist/core/templates/skill-templates.d.ts +1 -1
- package/dist/core/templates/skill-templates.d.ts.map +1 -1
- package/dist/core/templates/skill-templates.js +1 -1
- package/dist/core/templates/skill-templates.js.map +1 -1
- package/dist/core/templates/workflows/apply.d.ts +2 -2
- package/dist/core/templates/workflows/apply.js +10 -10
- package/dist/core/templates/workflows/apply.js.map +1 -1
- package/dist/core/templates/workflows/archive.d.ts.map +1 -1
- package/dist/core/templates/workflows/archive.js +21 -25
- package/dist/core/templates/workflows/archive.js.map +1 -1
- package/dist/core/templates/workflows/reconcile.d.ts +14 -0
- package/dist/core/templates/workflows/reconcile.d.ts.map +1 -0
- package/dist/core/templates/workflows/{sync.js → reconcile.js} +28 -21
- package/dist/core/templates/workflows/reconcile.js.map +1 -0
- package/dist/core/update.d.ts.map +1 -1
- package/dist/core/update.js +6 -15
- package/dist/core/update.js.map +1 -1
- package/dist/core/validation/section-validator.d.ts.map +1 -1
- package/dist/core/validation/section-validator.js +3 -16
- package/dist/core/validation/section-validator.js.map +1 -1
- package/dist/core/validation/validator.d.ts +0 -2
- package/dist/core/validation/validator.d.ts.map +1 -1
- package/dist/core/validation/validator.js +36 -74
- package/dist/core/validation/validator.js.map +1 -1
- package/dist/utils/change-utils.d.ts.map +1 -1
- package/dist/utils/change-utils.js +3 -6
- package/dist/utils/change-utils.js.map +1 -1
- package/dist/utils/file-system.d.ts +17 -19
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js +41 -189
- package/dist/utils/file-system.js.map +1 -1
- package/dist/utils/frontmatter.d.ts +22 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +39 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/item-discovery.d.ts +7 -0
- package/dist/utils/item-discovery.d.ts.map +1 -1
- package/dist/utils/item-discovery.js +13 -23
- package/dist/utils/item-discovery.js.map +1 -1
- package/dist/utils/link.d.ts +3 -1
- package/dist/utils/link.d.ts.map +1 -1
- package/dist/utils/link.js +4 -14
- package/dist/utils/link.js.map +1 -1
- package/dist/utils/task-progress.d.ts +0 -1
- package/dist/utils/task-progress.d.ts.map +1 -1
- package/dist/utils/task-progress.js +5 -6
- package/dist/utils/task-progress.js.map +1 -1
- package/package.json +1 -1
- package/dist/core/references.d.ts +0 -40
- package/dist/core/references.d.ts.map +0 -1
- package/dist/core/references.js +0 -11
- package/dist/core/references.js.map +0 -1
- package/dist/core/templates/workflows/sync.d.ts +0 -14
- package/dist/core/templates/workflows/sync.d.ts.map +0 -1
- package/dist/core/templates/workflows/sync.js.map +0 -1
- package/dist/utils/command-references.d.ts +0 -18
- package/dist/utils/command-references.d.ts.map +0 -1
- package/dist/utils/command-references.js +0 -20
- package/dist/utils/command-references.js.map +0 -1
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -9
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/shell-detection.d.ts +0 -20
- package/dist/utils/shell-detection.d.ts.map +0 -1
- package/dist/utils/shell-detection.js +0 -41
- package/dist/utils/shell-detection.js.map +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Referenced-store index — stub for the single-team tospec build.
|
|
3
|
-
*
|
|
4
|
-
* Upstream Tospec lets a root declare `references:` (store ids whose specs
|
|
5
|
-
* feed the instructions output). tospec drops the store subsystem, so there
|
|
6
|
-
* are never any referenced stores: the index is always empty and the rendered
|
|
7
|
-
* blocks are always empty strings. The types and call surface are preserved so
|
|
8
|
-
* the engine and workflow commands compile and run unchanged.
|
|
9
|
-
*/
|
|
10
|
-
import type { ResolvedTospecRoot } from './root-selection.js';
|
|
11
|
-
import type { DeclarationEntry } from './project-config.js';
|
|
12
|
-
export interface ReferenceSpecEntry {
|
|
13
|
-
id: string;
|
|
14
|
-
summary: string;
|
|
15
|
-
}
|
|
16
|
-
interface ReferenceDiagnostic {
|
|
17
|
-
severity: 'error' | 'warning' | 'info';
|
|
18
|
-
code: string;
|
|
19
|
-
message: string;
|
|
20
|
-
target?: string;
|
|
21
|
-
fix?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ReferenceIndexEntry {
|
|
24
|
-
store_id: string;
|
|
25
|
-
root?: string;
|
|
26
|
-
specs?: ReferenceSpecEntry[];
|
|
27
|
-
fetch?: string;
|
|
28
|
-
status: ReferenceDiagnostic[];
|
|
29
|
-
}
|
|
30
|
-
export interface AssembleReferenceIndexInput {
|
|
31
|
-
references: DeclarationEntry[];
|
|
32
|
-
resolvedRoot: ResolvedTospecRoot;
|
|
33
|
-
globalDataDir?: string;
|
|
34
|
-
includeSpecs?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export declare function assembleReferenceIndex(_input: AssembleReferenceIndexInput): Promise<ReferenceIndexEntry[]>;
|
|
37
|
-
export declare function renderReferencedStoresBlock(_entries: ReferenceIndexEntry[]): string;
|
|
38
|
-
export declare function renderReferencedStoresSection(_entries: ReferenceIndexEntry[]): string;
|
|
39
|
-
export {};
|
|
40
|
-
//# sourceMappingURL=references.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../src/core/references.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,YAAY,EAAE,kBAAkB,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAGD,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAEhC;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAEnF;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAErF"}
|
package/dist/core/references.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// No store subsystem → no referenced stores → empty index.
|
|
2
|
-
export async function assembleReferenceIndex(_input) {
|
|
3
|
-
return [];
|
|
4
|
-
}
|
|
5
|
-
export function renderReferencedStoresBlock(_entries) {
|
|
6
|
-
return '';
|
|
7
|
-
}
|
|
8
|
-
export function renderReferencedStoresSection(_entries) {
|
|
9
|
-
return '';
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=references.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/core/references.ts"],"names":[],"mappings":"AAwCA,2DAA2D;AAC3D,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAAmC;IAEnC,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,QAA+B;IACzE,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,QAA+B;IAC3E,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skill Template Workflow Modules
|
|
3
|
-
*
|
|
4
|
-
* This file is generated by splitting the legacy monolithic
|
|
5
|
-
* templates file into workflow-focused modules.
|
|
6
|
-
*
|
|
7
|
-
* sync is a standalone skill again. The archive workflow proactively decides
|
|
8
|
-
* whether a sync is warranted and asks the user before archiving; when the
|
|
9
|
-
* user agrees, this is the procedure that runs.
|
|
10
|
-
*/
|
|
11
|
-
import type { SkillTemplate, CommandTemplate } from '../types.js';
|
|
12
|
-
export declare function getTospecSyncSkillTemplate(): SkillTemplate;
|
|
13
|
-
export declare function getTospecSyncCommandTemplate(): CommandTemplate;
|
|
14
|
-
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/core/templates/workflows/sync.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA6DlE,wBAAgB,0BAA0B,IAAI,aAAa,CAc1D;AAED,wBAAgB,4BAA4B,IAAI,eAAe,CAY9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../../src/core/templates/workflows/sync.ts"],"names":[],"mappings":"AAYA,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mQAyDiP,CAAC;AAEpQ,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,wMAAwM;QACrN,YAAY,EAAE;;;;EAIhB,SAAS,EAAE;QACT,OAAO,EAAE,KAAK;QACd,aAAa,EAAE,sBAAsB;QACrC,QAAQ,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC9B,YAAY,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B;IAC1C,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,qEAAqE;QAClF,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC;QAC1C,OAAO,EAAE;;;;EAIX,SAAS,EAAE;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command Reference Utilities
|
|
3
|
-
*
|
|
4
|
-
* Utilities for transforming command references to tool-specific formats.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Transforms colon-based command references to hyphen-based format.
|
|
8
|
-
* Converts `tospec-` patterns to `/tospec-` for tools that use hyphen syntax.
|
|
9
|
-
*
|
|
10
|
-
* @param text - The text containing command references
|
|
11
|
-
* @returns Text with command references transformed to hyphen format
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* transformToHyphenCommands('tospec-new') // returns '/tospec-new'
|
|
15
|
-
* transformToHyphenCommands('Use tospec-apply to implement') // returns 'Use /tospec-apply to implement'
|
|
16
|
-
*/
|
|
17
|
-
export declare function transformToHyphenCommands(text: string): string;
|
|
18
|
-
//# sourceMappingURL=command-references.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-references.d.ts","sourceRoot":"","sources":["../../src/utils/command-references.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Command Reference Utilities
|
|
3
|
-
*
|
|
4
|
-
* Utilities for transforming command references to tool-specific formats.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Transforms colon-based command references to hyphen-based format.
|
|
8
|
-
* Converts `tospec-` patterns to `/tospec-` for tools that use hyphen syntax.
|
|
9
|
-
*
|
|
10
|
-
* @param text - The text containing command references
|
|
11
|
-
* @returns Text with command references transformed to hyphen format
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* transformToHyphenCommands('tospec-new') // returns '/tospec-new'
|
|
15
|
-
* transformToHyphenCommands('Use tospec-apply to implement') // returns 'Use /tospec-apply to implement'
|
|
16
|
-
*/
|
|
17
|
-
export function transformToHyphenCommands(text) {
|
|
18
|
-
return text.replace(/\tospec-/g, '/tospec-');
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=command-references.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-references.js","sourceRoot":"","sources":["../../src/utils/command-references.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAAY;IACpD,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAC/C,CAAC"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { validateChangeName, createChange } from './change-utils.js';
|
|
2
|
-
export type { ValidationResult, CreateChangeOptions } from './change-utils.js';
|
|
3
|
-
export { readChangeMetadata, writeChangeMetadata, resolveSchemaForChange, validateSchemaName, ChangeMetadataError, } from './change-metadata.js';
|
|
4
|
-
export { FileSystemUtils, removeMarkerBlock } from './file-system.js';
|
|
5
|
-
export { transformToHyphenCommands } from './command-references.js';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/utils/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Shared utilities
|
|
2
|
-
export { validateChangeName, createChange } from './change-utils.js';
|
|
3
|
-
// Change metadata utilities
|
|
4
|
-
export { readChangeMetadata, writeChangeMetadata, resolveSchemaForChange, validateSchemaName, ChangeMetadataError, } from './change-metadata.js';
|
|
5
|
-
// File system utilities
|
|
6
|
-
export { FileSystemUtils, removeMarkerBlock } from './file-system.js';
|
|
7
|
-
// Command reference utilities
|
|
8
|
-
export { transformToHyphenCommands } from './command-references.js';
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGrE,4BAA4B;AAC5B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B,wBAAwB;AACxB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEtE,8BAA8B;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Supported shell types for completion generation
|
|
3
|
-
*/
|
|
4
|
-
export type SupportedShell = 'zsh' | 'bash' | 'fish' | 'powershell';
|
|
5
|
-
/**
|
|
6
|
-
* Result of shell detection
|
|
7
|
-
*/
|
|
8
|
-
export interface ShellDetectionResult {
|
|
9
|
-
/** The detected shell if supported, otherwise undefined */
|
|
10
|
-
shell: SupportedShell | undefined;
|
|
11
|
-
/** The raw shell name detected (even if unsupported), or undefined if nothing detected */
|
|
12
|
-
detected: string | undefined;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Detects the current user's shell based on environment variables
|
|
16
|
-
*
|
|
17
|
-
* @returns Detection result with supported shell and raw detected name
|
|
18
|
-
*/
|
|
19
|
-
export declare function detectShell(): ShellDetectionResult;
|
|
20
|
-
//# sourceMappingURL=shell-detection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shell-detection.d.ts","sourceRoot":"","sources":["../../src/utils/shell-detection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,2DAA2D;IAC3D,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;IAClC,0FAA0F;IAC1F,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,oBAAoB,CAyClD"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detects the current user's shell based on environment variables
|
|
3
|
-
*
|
|
4
|
-
* @returns Detection result with supported shell and raw detected name
|
|
5
|
-
*/
|
|
6
|
-
export function detectShell() {
|
|
7
|
-
// Try SHELL environment variable first (Unix-like systems)
|
|
8
|
-
const shellPath = process.env.SHELL;
|
|
9
|
-
if (shellPath) {
|
|
10
|
-
const shellName = shellPath.toLowerCase();
|
|
11
|
-
if (shellName.includes('zsh')) {
|
|
12
|
-
return { shell: 'zsh', detected: 'zsh' };
|
|
13
|
-
}
|
|
14
|
-
if (shellName.includes('bash')) {
|
|
15
|
-
return { shell: 'bash', detected: 'bash' };
|
|
16
|
-
}
|
|
17
|
-
if (shellName.includes('fish')) {
|
|
18
|
-
return { shell: 'fish', detected: 'fish' };
|
|
19
|
-
}
|
|
20
|
-
// Shell detected but not supported
|
|
21
|
-
// Extract shell name from path (e.g., /bin/tcsh -> tcsh)
|
|
22
|
-
const match = shellPath.match(/\/([^/]+)$/);
|
|
23
|
-
const detectedName = match ? match[1] : shellPath;
|
|
24
|
-
return { shell: undefined, detected: detectedName };
|
|
25
|
-
}
|
|
26
|
-
// Check for PowerShell on Windows
|
|
27
|
-
// PSModulePath is a reliable PowerShell-specific environment variable
|
|
28
|
-
if (process.env.PSModulePath || process.platform === 'win32') {
|
|
29
|
-
const comspec = process.env.COMSPEC?.toLowerCase();
|
|
30
|
-
// If PSModulePath exists, we're definitely in PowerShell
|
|
31
|
-
if (process.env.PSModulePath) {
|
|
32
|
-
return { shell: 'powershell', detected: 'powershell' };
|
|
33
|
-
}
|
|
34
|
-
// On Windows without PSModulePath, we might be in cmd.exe
|
|
35
|
-
if (comspec?.includes('cmd.exe')) {
|
|
36
|
-
return { shell: undefined, detected: 'cmd.exe' };
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return { shell: undefined, detected: undefined };
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=shell-detection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shell-detection.js","sourceRoot":"","sources":["../../src/utils/shell-detection.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,MAAM,UAAU,WAAW;IACzB,2DAA2D;IAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;IAEpC,IAAI,SAAS,EAAE,CAAC;QACd,MAAM,SAAS,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QAE1C,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC3C,CAAC;QACD,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAC7C,CAAC;QACD,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;QAC7C,CAAC;QAED,mCAAmC;QACnC,yDAAyD;QACzD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC5C,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IACtD,CAAC;IAED,kCAAkC;IAClC,sEAAsE;IACtE,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QAC7D,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC;QAEnD,yDAAyD;QACzD,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;YAC7B,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;QACzD,CAAC;QAED,0DAA0D;QAC1D,IAAI,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;QACnD,CAAC;IACH,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AACnD,CAAC"}
|