@dynamicworks/br-openspec 1.3.1
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 +22 -0
- package/README.md +210 -0
- package/README.pt-BR.md +212 -0
- package/bin/openspec.js +3 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +484 -0
- package/dist/commands/change.d.ts +35 -0
- package/dist/commands/change.js +278 -0
- package/dist/commands/completion.d.ts +72 -0
- package/dist/commands/completion.js +258 -0
- package/dist/commands/config.d.ts +36 -0
- package/dist/commands/config.js +553 -0
- package/dist/commands/feedback.d.ts +9 -0
- package/dist/commands/feedback.js +184 -0
- package/dist/commands/schema.d.ts +6 -0
- package/dist/commands/schema.js +869 -0
- package/dist/commands/show.d.ts +14 -0
- package/dist/commands/show.js +133 -0
- package/dist/commands/spec.d.ts +15 -0
- package/dist/commands/spec.js +226 -0
- package/dist/commands/tools.d.ts +11 -0
- package/dist/commands/tools.js +252 -0
- package/dist/commands/validate.d.ts +24 -0
- package/dist/commands/validate.js +295 -0
- package/dist/commands/workflow/index.d.ts +17 -0
- package/dist/commands/workflow/index.js +12 -0
- package/dist/commands/workflow/instructions.d.ts +29 -0
- package/dist/commands/workflow/instructions.js +328 -0
- package/dist/commands/workflow/new-change.d.ts +11 -0
- package/dist/commands/workflow/new-change.js +44 -0
- package/dist/commands/workflow/schemas.d.ts +10 -0
- package/dist/commands/workflow/schemas.js +35 -0
- package/dist/commands/workflow/shared.d.ts +57 -0
- package/dist/commands/workflow/shared.js +117 -0
- package/dist/commands/workflow/status.d.ts +14 -0
- package/dist/commands/workflow/status.js +76 -0
- package/dist/commands/workflow/templates.d.ts +16 -0
- package/dist/commands/workflow/templates.js +70 -0
- package/dist/core/archive.d.ts +11 -0
- package/dist/core/archive.js +322 -0
- package/dist/core/artifact-graph/graph.d.ts +56 -0
- package/dist/core/artifact-graph/graph.js +141 -0
- package/dist/core/artifact-graph/index.d.ts +8 -0
- package/dist/core/artifact-graph/index.js +14 -0
- package/dist/core/artifact-graph/instruction-loader.d.ts +143 -0
- package/dist/core/artifact-graph/instruction-loader.js +217 -0
- package/dist/core/artifact-graph/outputs.d.ts +14 -0
- package/dist/core/artifact-graph/outputs.js +39 -0
- package/dist/core/artifact-graph/resolver.d.ts +81 -0
- package/dist/core/artifact-graph/resolver.js +258 -0
- package/dist/core/artifact-graph/schema.d.ts +13 -0
- package/dist/core/artifact-graph/schema.js +108 -0
- package/dist/core/artifact-graph/state.d.ts +12 -0
- package/dist/core/artifact-graph/state.js +31 -0
- package/dist/core/artifact-graph/types.d.ts +45 -0
- package/dist/core/artifact-graph/types.js +43 -0
- package/dist/core/available-tools.d.ts +17 -0
- package/dist/core/available-tools.js +43 -0
- package/dist/core/command-generation/adapters/amazon-q.d.ts +13 -0
- package/dist/core/command-generation/adapters/amazon-q.js +26 -0
- package/dist/core/command-generation/adapters/antigravity.d.ts +13 -0
- package/dist/core/command-generation/adapters/antigravity.js +26 -0
- package/dist/core/command-generation/adapters/auggie.d.ts +13 -0
- package/dist/core/command-generation/adapters/auggie.js +27 -0
- package/dist/core/command-generation/adapters/bob.d.ts +14 -0
- package/dist/core/command-generation/adapters/bob.js +45 -0
- package/dist/core/command-generation/adapters/claude.d.ts +13 -0
- package/dist/core/command-generation/adapters/claude.js +50 -0
- package/dist/core/command-generation/adapters/cline.d.ts +14 -0
- package/dist/core/command-generation/adapters/cline.js +27 -0
- package/dist/core/command-generation/adapters/codebuddy.d.ts +13 -0
- package/dist/core/command-generation/adapters/codebuddy.js +28 -0
- package/dist/core/command-generation/adapters/codex.d.ts +16 -0
- package/dist/core/command-generation/adapters/codex.js +39 -0
- package/dist/core/command-generation/adapters/continue.d.ts +13 -0
- package/dist/core/command-generation/adapters/continue.js +28 -0
- package/dist/core/command-generation/adapters/costrict.d.ts +13 -0
- package/dist/core/command-generation/adapters/costrict.js +27 -0
- package/dist/core/command-generation/adapters/crush.d.ts +13 -0
- package/dist/core/command-generation/adapters/crush.js +30 -0
- package/dist/core/command-generation/adapters/cursor.d.ts +14 -0
- package/dist/core/command-generation/adapters/cursor.js +44 -0
- package/dist/core/command-generation/adapters/factory.d.ts +13 -0
- package/dist/core/command-generation/adapters/factory.js +27 -0
- package/dist/core/command-generation/adapters/gemini.d.ts +13 -0
- package/dist/core/command-generation/adapters/gemini.js +26 -0
- package/dist/core/command-generation/adapters/github-copilot.d.ts +13 -0
- package/dist/core/command-generation/adapters/github-copilot.js +26 -0
- package/dist/core/command-generation/adapters/iflow.d.ts +13 -0
- package/dist/core/command-generation/adapters/iflow.js +29 -0
- package/dist/core/command-generation/adapters/index.d.ts +32 -0
- package/dist/core/command-generation/adapters/index.js +32 -0
- package/dist/core/command-generation/adapters/junie.d.ts +13 -0
- package/dist/core/command-generation/adapters/junie.js +26 -0
- package/dist/core/command-generation/adapters/kilocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/kilocode.js +23 -0
- package/dist/core/command-generation/adapters/kiro.d.ts +13 -0
- package/dist/core/command-generation/adapters/kiro.js +26 -0
- package/dist/core/command-generation/adapters/lingma.d.ts +13 -0
- package/dist/core/command-generation/adapters/lingma.js +30 -0
- package/dist/core/command-generation/adapters/opencode.d.ts +13 -0
- package/dist/core/command-generation/adapters/opencode.js +29 -0
- package/dist/core/command-generation/adapters/pi.d.ts +18 -0
- package/dist/core/command-generation/adapters/pi.js +55 -0
- package/dist/core/command-generation/adapters/qoder.d.ts +13 -0
- package/dist/core/command-generation/adapters/qoder.js +30 -0
- package/dist/core/command-generation/adapters/qwen.d.ts +13 -0
- package/dist/core/command-generation/adapters/qwen.js +26 -0
- package/dist/core/command-generation/adapters/roocode.d.ts +14 -0
- package/dist/core/command-generation/adapters/roocode.js +27 -0
- package/dist/core/command-generation/adapters/windsurf.d.ts +14 -0
- package/dist/core/command-generation/adapters/windsurf.js +51 -0
- package/dist/core/command-generation/generator.d.ts +21 -0
- package/dist/core/command-generation/generator.js +27 -0
- package/dist/core/command-generation/index.d.ts +22 -0
- package/dist/core/command-generation/index.js +24 -0
- package/dist/core/command-generation/registry.d.ts +36 -0
- package/dist/core/command-generation/registry.js +98 -0
- package/dist/core/command-generation/types.d.ts +56 -0
- package/dist/core/command-generation/types.js +8 -0
- package/dist/core/completions/command-registry.d.ts +7 -0
- package/dist/core/completions/command-registry.js +462 -0
- package/dist/core/completions/completion-provider.d.ts +60 -0
- package/dist/core/completions/completion-provider.js +102 -0
- package/dist/core/completions/factory.d.ts +64 -0
- package/dist/core/completions/factory.js +75 -0
- package/dist/core/completions/generators/bash-generator.d.ts +32 -0
- package/dist/core/completions/generators/bash-generator.js +174 -0
- package/dist/core/completions/generators/fish-generator.d.ts +32 -0
- package/dist/core/completions/generators/fish-generator.js +157 -0
- package/dist/core/completions/generators/powershell-generator.d.ts +33 -0
- package/dist/core/completions/generators/powershell-generator.js +208 -0
- package/dist/core/completions/generators/zsh-generator.d.ts +44 -0
- package/dist/core/completions/generators/zsh-generator.js +250 -0
- package/dist/core/completions/installers/bash-installer.d.ts +87 -0
- package/dist/core/completions/installers/bash-installer.js +319 -0
- package/dist/core/completions/installers/fish-installer.d.ts +43 -0
- package/dist/core/completions/installers/fish-installer.js +143 -0
- package/dist/core/completions/installers/powershell-installer.d.ts +102 -0
- package/dist/core/completions/installers/powershell-installer.js +400 -0
- package/dist/core/completions/installers/zsh-installer.d.ts +125 -0
- package/dist/core/completions/installers/zsh-installer.js +450 -0
- package/dist/core/completions/templates/bash-templates.d.ts +6 -0
- package/dist/core/completions/templates/bash-templates.js +24 -0
- package/dist/core/completions/templates/fish-templates.d.ts +7 -0
- package/dist/core/completions/templates/fish-templates.js +39 -0
- package/dist/core/completions/templates/powershell-templates.d.ts +6 -0
- package/dist/core/completions/templates/powershell-templates.js +25 -0
- package/dist/core/completions/templates/zsh-templates.d.ts +6 -0
- package/dist/core/completions/templates/zsh-templates.js +36 -0
- package/dist/core/completions/types.d.ts +79 -0
- package/dist/core/completions/types.js +2 -0
- package/dist/core/config-prompts.d.ts +9 -0
- package/dist/core/config-prompts.js +34 -0
- package/dist/core/config-schema.d.ts +86 -0
- package/dist/core/config-schema.js +213 -0
- package/dist/core/config.d.ts +18 -0
- package/dist/core/config.js +38 -0
- package/dist/core/converters/json-converter.d.ts +6 -0
- package/dist/core/converters/json-converter.js +51 -0
- package/dist/core/global-config.d.ts +44 -0
- package/dist/core/global-config.js +125 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -0
- package/dist/core/init.d.ts +37 -0
- package/dist/core/init.js +549 -0
- package/dist/core/is-project-initialized.d.ts +12 -0
- package/dist/core/is-project-initialized.js +18 -0
- package/dist/core/legacy-cleanup.d.ts +162 -0
- package/dist/core/legacy-cleanup.js +515 -0
- package/dist/core/list.d.ts +9 -0
- package/dist/core/list.js +172 -0
- package/dist/core/migration.d.ts +23 -0
- package/dist/core/migration.js +109 -0
- package/dist/core/parsers/change-parser.d.ts +13 -0
- package/dist/core/parsers/change-parser.js +197 -0
- package/dist/core/parsers/markdown-parser.d.ts +26 -0
- package/dist/core/parsers/markdown-parser.js +228 -0
- package/dist/core/parsers/requirement-blocks.d.ts +37 -0
- package/dist/core/parsers/requirement-blocks.js +201 -0
- package/dist/core/parsers/spec-structure.d.ts +9 -0
- package/dist/core/parsers/spec-structure.js +88 -0
- package/dist/core/profile-sync-drift.d.ts +38 -0
- package/dist/core/profile-sync-drift.js +200 -0
- package/dist/core/profiles.d.ts +26 -0
- package/dist/core/profiles.js +40 -0
- package/dist/core/project-config.d.ts +64 -0
- package/dist/core/project-config.js +224 -0
- package/dist/core/schemas/base.schema.d.ts +13 -0
- package/dist/core/schemas/base.schema.js +13 -0
- package/dist/core/schemas/change.schema.d.ts +73 -0
- package/dist/core/schemas/change.schema.js +31 -0
- package/dist/core/schemas/index.d.ts +4 -0
- package/dist/core/schemas/index.js +4 -0
- package/dist/core/schemas/spec.schema.d.ts +18 -0
- package/dist/core/schemas/spec.schema.js +15 -0
- package/dist/core/shared/index.d.ts +8 -0
- package/dist/core/shared/index.js +8 -0
- package/dist/core/shared/skill-generation.d.ts +49 -0
- package/dist/core/shared/skill-generation.js +96 -0
- package/dist/core/shared/tool-detection.d.ts +71 -0
- package/dist/core/shared/tool-detection.js +158 -0
- package/dist/core/specs-apply.d.ts +73 -0
- package/dist/core/specs-apply.js +393 -0
- package/dist/core/styles/palette.d.ts +7 -0
- package/dist/core/styles/palette.js +8 -0
- package/dist/core/templates/index.d.ts +8 -0
- package/dist/core/templates/index.js +9 -0
- package/dist/core/templates/skill-templates.d.ts +20 -0
- package/dist/core/templates/skill-templates.js +19 -0
- package/dist/core/templates/types.d.ts +19 -0
- package/dist/core/templates/types.js +5 -0
- package/dist/core/templates/workflows/apply-change.d.ts +10 -0
- package/dist/core/templates/workflows/apply-change.js +308 -0
- package/dist/core/templates/workflows/archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/archive-change.js +271 -0
- package/dist/core/templates/workflows/bulk-archive-change.d.ts +10 -0
- package/dist/core/templates/workflows/bulk-archive-change.js +492 -0
- package/dist/core/templates/workflows/continue-change.d.ts +10 -0
- package/dist/core/templates/workflows/continue-change.js +232 -0
- package/dist/core/templates/workflows/explore.d.ts +10 -0
- package/dist/core/templates/workflows/explore.js +463 -0
- package/dist/core/templates/workflows/feedback.d.ts +9 -0
- package/dist/core/templates/workflows/feedback.js +108 -0
- package/dist/core/templates/workflows/ff-change.d.ts +10 -0
- package/dist/core/templates/workflows/ff-change.js +198 -0
- package/dist/core/templates/workflows/new-change.d.ts +10 -0
- package/dist/core/templates/workflows/new-change.js +21 -0
- package/dist/core/templates/workflows/onboard.d.ts +10 -0
- package/dist/core/templates/workflows/onboard.js +21 -0
- package/dist/core/templates/workflows/propose.d.ts +10 -0
- package/dist/core/templates/workflows/propose.js +216 -0
- package/dist/core/templates/workflows/sync-specs.d.ts +10 -0
- package/dist/core/templates/workflows/sync-specs.js +272 -0
- package/dist/core/templates/workflows/upstream-sync.d.ts +10 -0
- package/dist/core/templates/workflows/upstream-sync.js +116 -0
- package/dist/core/templates/workflows/verify-change.d.ts +10 -0
- package/dist/core/templates/workflows/verify-change.js +21 -0
- package/dist/core/tools-manager.d.ts +56 -0
- package/dist/core/tools-manager.js +215 -0
- package/dist/core/update.d.ts +77 -0
- package/dist/core/update.js +538 -0
- package/dist/core/validation/constants.d.ts +34 -0
- package/dist/core/validation/constants.js +40 -0
- package/dist/core/validation/types.d.ts +18 -0
- package/dist/core/validation/types.js +2 -0
- package/dist/core/validation/validator.d.ts +33 -0
- package/dist/core/validation/validator.js +419 -0
- package/dist/core/view.d.ts +8 -0
- package/dist/core/view.js +169 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/messages/index.d.ts +867 -0
- package/dist/messages/index.js +1960 -0
- package/dist/prompts/searchable-multi-select.d.ts +28 -0
- package/dist/prompts/searchable-multi-select.js +160 -0
- package/dist/telemetry/config.d.ts +38 -0
- package/dist/telemetry/config.js +136 -0
- package/dist/telemetry/index.d.ts +31 -0
- package/dist/telemetry/index.js +165 -0
- package/dist/ui/ascii-patterns.d.ts +16 -0
- package/dist/ui/ascii-patterns.js +133 -0
- package/dist/ui/welcome-screen.d.ts +10 -0
- package/dist/ui/welcome-screen.js +147 -0
- package/dist/utils/change-metadata.d.ts +51 -0
- package/dist/utils/change-metadata.js +147 -0
- package/dist/utils/change-utils.d.ts +62 -0
- package/dist/utils/change-utils.js +121 -0
- package/dist/utils/command-references.d.ts +18 -0
- package/dist/utils/command-references.js +20 -0
- package/dist/utils/file-system.d.ts +41 -0
- package/dist/utils/file-system.js +302 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/interactive.d.ts +18 -0
- package/dist/utils/interactive.js +21 -0
- package/dist/utils/item-discovery.d.ts +4 -0
- package/dist/utils/item-discovery.js +72 -0
- package/dist/utils/match.d.ts +3 -0
- package/dist/utils/match.js +22 -0
- package/dist/utils/shell-detection.d.ts +20 -0
- package/dist/utils/shell-detection.js +41 -0
- package/dist/utils/task-progress.d.ts +8 -0
- package/dist/utils/task-progress.js +37 -0
- package/package.json +84 -0
- package/schemas/spec-driven/schema.yaml +153 -0
- package/schemas/spec-driven/templates/design.md +19 -0
- package/schemas/spec-driven/templates/proposal.md +23 -0
- package/schemas/spec-driven/templates/spec.md +8 -0
- package/schemas/spec-driven/templates/tasks.md +9 -0
- package/scripts/postinstall.js +83 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import { spawn, execSync } from 'node:child_process';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
3
|
+
import * as path from 'node:path';
|
|
4
|
+
import { getGlobalConfigPath, getGlobalConfig, saveGlobalConfig, } from '../core/global-config.js';
|
|
5
|
+
import { getNestedValue, setNestedValue, deleteNestedValue, coerceValue, formatValueYaml, validateConfigKeyPath, validateConfig, DEFAULT_CONFIG, } from '../core/config-schema.js';
|
|
6
|
+
import { CORE_WORKFLOWS, ALL_WORKFLOWS, getProfileWorkflows } from '../core/profiles.js';
|
|
7
|
+
import { OPENSPEC_DIR_NAME } from '../core/config.js';
|
|
8
|
+
import { hasProjectConfigDrift } from '../core/profile-sync-drift.js';
|
|
9
|
+
import { CONFIG_MESSAGES, CLI_MESSAGES } from '../messages/index.js';
|
|
10
|
+
const WORKFLOW_PROMPT_META = {
|
|
11
|
+
propose: {
|
|
12
|
+
name: CONFIG_MESSAGES.workflowProposeName,
|
|
13
|
+
description: CONFIG_MESSAGES.workflowProposeDesc,
|
|
14
|
+
},
|
|
15
|
+
explore: {
|
|
16
|
+
name: CONFIG_MESSAGES.workflowExploreName,
|
|
17
|
+
description: CONFIG_MESSAGES.workflowExploreDesc,
|
|
18
|
+
},
|
|
19
|
+
new: {
|
|
20
|
+
name: CONFIG_MESSAGES.workflowNewName,
|
|
21
|
+
description: CONFIG_MESSAGES.workflowNewDesc,
|
|
22
|
+
},
|
|
23
|
+
continue: {
|
|
24
|
+
name: CONFIG_MESSAGES.workflowContinueName,
|
|
25
|
+
description: CONFIG_MESSAGES.workflowContinueDesc,
|
|
26
|
+
},
|
|
27
|
+
apply: {
|
|
28
|
+
name: CONFIG_MESSAGES.workflowApplyName,
|
|
29
|
+
description: CONFIG_MESSAGES.workflowApplyDesc,
|
|
30
|
+
},
|
|
31
|
+
ff: {
|
|
32
|
+
name: CONFIG_MESSAGES.workflowFastForwardName,
|
|
33
|
+
description: CONFIG_MESSAGES.workflowFastForwardDesc,
|
|
34
|
+
},
|
|
35
|
+
sync: {
|
|
36
|
+
name: CONFIG_MESSAGES.workflowSyncName,
|
|
37
|
+
description: CONFIG_MESSAGES.workflowSyncDesc,
|
|
38
|
+
},
|
|
39
|
+
archive: {
|
|
40
|
+
name: CONFIG_MESSAGES.workflowArchiveName,
|
|
41
|
+
description: CONFIG_MESSAGES.workflowArchiveDesc,
|
|
42
|
+
},
|
|
43
|
+
'bulk-archive': {
|
|
44
|
+
name: CONFIG_MESSAGES.workflowBulkArchiveName,
|
|
45
|
+
description: CONFIG_MESSAGES.workflowBulkArchiveDesc,
|
|
46
|
+
},
|
|
47
|
+
verify: {
|
|
48
|
+
name: CONFIG_MESSAGES.workflowVerifyName,
|
|
49
|
+
description: CONFIG_MESSAGES.workflowVerifyDesc,
|
|
50
|
+
},
|
|
51
|
+
onboard: {
|
|
52
|
+
name: CONFIG_MESSAGES.workflowOnboardName,
|
|
53
|
+
description: CONFIG_MESSAGES.workflowOnboardDesc,
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
function isPromptCancellationError(error) {
|
|
57
|
+
return (error instanceof Error &&
|
|
58
|
+
(error.name === 'ExitPromptError' || error.message.includes('force closed the prompt with SIGINT')));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Resolve the effective current profile state from global config defaults.
|
|
62
|
+
*/
|
|
63
|
+
export function resolveCurrentProfileState(config) {
|
|
64
|
+
const profile = config.profile || 'core';
|
|
65
|
+
const delivery = config.delivery || 'both';
|
|
66
|
+
const workflows = [
|
|
67
|
+
...getProfileWorkflows(profile, config.workflows ? [...config.workflows] : undefined),
|
|
68
|
+
];
|
|
69
|
+
return { profile, delivery, workflows };
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Derive profile type from selected workflows.
|
|
73
|
+
*/
|
|
74
|
+
export function deriveProfileFromWorkflowSelection(selectedWorkflows) {
|
|
75
|
+
const isCoreMatch = selectedWorkflows.length === CORE_WORKFLOWS.length &&
|
|
76
|
+
CORE_WORKFLOWS.every((w) => selectedWorkflows.includes(w));
|
|
77
|
+
return isCoreMatch ? 'core' : 'custom';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Format a compact workflow summary for the profile header.
|
|
81
|
+
*/
|
|
82
|
+
export function formatWorkflowSummary(workflows, profile) {
|
|
83
|
+
return CONFIG_MESSAGES.workflowsSelectedCount(workflows.length, profile);
|
|
84
|
+
}
|
|
85
|
+
function stableWorkflowOrder(workflows) {
|
|
86
|
+
const seen = new Set();
|
|
87
|
+
const ordered = [];
|
|
88
|
+
for (const workflow of ALL_WORKFLOWS) {
|
|
89
|
+
if (workflows.includes(workflow) && !seen.has(workflow)) {
|
|
90
|
+
ordered.push(workflow);
|
|
91
|
+
seen.add(workflow);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const extras = workflows.filter((w) => !ALL_WORKFLOWS.includes(w));
|
|
95
|
+
extras.sort();
|
|
96
|
+
for (const extra of extras) {
|
|
97
|
+
if (!seen.has(extra)) {
|
|
98
|
+
ordered.push(extra);
|
|
99
|
+
seen.add(extra);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return ordered;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Build a user-facing diff summary between two profile states.
|
|
106
|
+
*/
|
|
107
|
+
export function diffProfileState(before, after) {
|
|
108
|
+
const lines = [];
|
|
109
|
+
if (before.delivery !== after.delivery) {
|
|
110
|
+
lines.push(`delivery: ${before.delivery} -> ${after.delivery}`);
|
|
111
|
+
}
|
|
112
|
+
if (before.profile !== after.profile) {
|
|
113
|
+
lines.push(`profile: ${before.profile} -> ${after.profile}`);
|
|
114
|
+
}
|
|
115
|
+
const beforeOrdered = stableWorkflowOrder(before.workflows);
|
|
116
|
+
const afterOrdered = stableWorkflowOrder(after.workflows);
|
|
117
|
+
const beforeSet = new Set(beforeOrdered);
|
|
118
|
+
const afterSet = new Set(afterOrdered);
|
|
119
|
+
const added = afterOrdered.filter((w) => !beforeSet.has(w));
|
|
120
|
+
const removed = beforeOrdered.filter((w) => !afterSet.has(w));
|
|
121
|
+
if (added.length > 0 || removed.length > 0) {
|
|
122
|
+
const tokens = [];
|
|
123
|
+
if (added.length > 0) {
|
|
124
|
+
tokens.push(CONFIG_MESSAGES.workflowsAdded(added.join(', ')));
|
|
125
|
+
}
|
|
126
|
+
if (removed.length > 0) {
|
|
127
|
+
tokens.push(CONFIG_MESSAGES.workflowsRemoved(removed.join(', ')));
|
|
128
|
+
}
|
|
129
|
+
lines.push(CONFIG_MESSAGES.workflowsDiffLabel(tokens.join('; ')));
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
hasChanges: lines.length > 0,
|
|
133
|
+
lines,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function maybeWarnConfigDrift(projectDir, state, colorize) {
|
|
137
|
+
const openspecDir = path.join(projectDir, OPENSPEC_DIR_NAME);
|
|
138
|
+
if (!fs.existsSync(openspecDir)) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (!hasProjectConfigDrift(projectDir, state.workflows, state.delivery)) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
console.log(colorize(CONFIG_MESSAGES.warningGlobalConfigNotApplied));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Register the config command and all its subcommands.
|
|
148
|
+
*
|
|
149
|
+
* @param program - The Commander program instance
|
|
150
|
+
*/
|
|
151
|
+
export function registerConfigCommand(program) {
|
|
152
|
+
const configCmd = program
|
|
153
|
+
.command('config')
|
|
154
|
+
.description(CONFIG_MESSAGES.viewAndModify)
|
|
155
|
+
.option('--scope <scope>', CONFIG_MESSAGES.configScopeOption)
|
|
156
|
+
.hook('preAction', (thisCommand) => {
|
|
157
|
+
const opts = thisCommand.opts();
|
|
158
|
+
if (opts.scope && opts.scope !== 'global') {
|
|
159
|
+
console.error(CLI_MESSAGES.projectLocalNotImplemented);
|
|
160
|
+
process.exit(1);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
// config path
|
|
164
|
+
configCmd
|
|
165
|
+
.command('path')
|
|
166
|
+
.description(CONFIG_MESSAGES.showLocation)
|
|
167
|
+
.action(() => {
|
|
168
|
+
console.log(getGlobalConfigPath());
|
|
169
|
+
});
|
|
170
|
+
// config list
|
|
171
|
+
configCmd
|
|
172
|
+
.command('list')
|
|
173
|
+
.description(CONFIG_MESSAGES.showAllSettings)
|
|
174
|
+
.option('--json', CONFIG_MESSAGES.outputAsJson)
|
|
175
|
+
.action((options) => {
|
|
176
|
+
const config = getGlobalConfig();
|
|
177
|
+
if (options.json) {
|
|
178
|
+
console.log(JSON.stringify(config, null, 2));
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
// Read raw config to determine which values are explicit vs defaults
|
|
182
|
+
const configPath = getGlobalConfigPath();
|
|
183
|
+
let rawConfig = {};
|
|
184
|
+
try {
|
|
185
|
+
if (fs.existsSync(configPath)) {
|
|
186
|
+
rawConfig = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
// If reading fails, treat all as defaults
|
|
191
|
+
}
|
|
192
|
+
console.log(formatValueYaml(config));
|
|
193
|
+
// Annotate profile settings
|
|
194
|
+
const profileSource = rawConfig.profile !== undefined ? '(explicit)' : '(default)';
|
|
195
|
+
const deliverySource = rawConfig.delivery !== undefined ? '(explicit)' : '(default)';
|
|
196
|
+
console.log(`\n${CONFIG_MESSAGES.profileSettings}`);
|
|
197
|
+
console.log(CONFIG_MESSAGES.profileLabel(config.profile, profileSource));
|
|
198
|
+
console.log(CONFIG_MESSAGES.deliveryLabel(config.delivery, deliverySource));
|
|
199
|
+
if (config.profile === 'core') {
|
|
200
|
+
console.log(CONFIG_MESSAGES.coreWorkflowsNote(CORE_WORKFLOWS.join(', ')));
|
|
201
|
+
}
|
|
202
|
+
else if (config.workflows && config.workflows.length > 0) {
|
|
203
|
+
console.log(CONFIG_MESSAGES.explicitWorkflowsNote(config.workflows.join(', ')));
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
console.log(CONFIG_MESSAGES.noWorkflowsNote);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
// config get
|
|
211
|
+
configCmd
|
|
212
|
+
.command('get <key>')
|
|
213
|
+
.description(CONFIG_MESSAGES.getValue)
|
|
214
|
+
.action((key) => {
|
|
215
|
+
const config = getGlobalConfig();
|
|
216
|
+
const value = getNestedValue(config, key);
|
|
217
|
+
if (value === undefined) {
|
|
218
|
+
process.exitCode = 1;
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
if (typeof value === 'object' && value !== null) {
|
|
222
|
+
console.log(JSON.stringify(value));
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
console.log(String(value));
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
// config set
|
|
229
|
+
configCmd
|
|
230
|
+
.command('set <key> <value>')
|
|
231
|
+
.description(CONFIG_MESSAGES.setValue)
|
|
232
|
+
.option('--string', CONFIG_MESSAGES.forceStringOption)
|
|
233
|
+
.option('--allow-unknown', CONFIG_MESSAGES.allowUnknownOption)
|
|
234
|
+
.action((key, value, options) => {
|
|
235
|
+
const allowUnknown = Boolean(options.allowUnknown);
|
|
236
|
+
const keyValidation = validateConfigKeyPath(key);
|
|
237
|
+
if (!keyValidation.valid && !allowUnknown) {
|
|
238
|
+
const reason = keyValidation.reason ? ` ${keyValidation.reason}.` : '';
|
|
239
|
+
console.error(CONFIG_MESSAGES.invalidConfigKey(key, reason));
|
|
240
|
+
console.error(CONFIG_MESSAGES.useConfigList);
|
|
241
|
+
console.error(CONFIG_MESSAGES.passAllowUnknown);
|
|
242
|
+
process.exitCode = 1;
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const config = getGlobalConfig();
|
|
246
|
+
const coercedValue = coerceValue(value, options.string || false);
|
|
247
|
+
// Create a copy to validate before saving
|
|
248
|
+
const newConfig = JSON.parse(JSON.stringify(config));
|
|
249
|
+
setNestedValue(newConfig, key, coercedValue);
|
|
250
|
+
// Validate the new config
|
|
251
|
+
const validation = validateConfig(newConfig);
|
|
252
|
+
if (!validation.success) {
|
|
253
|
+
console.error(CONFIG_MESSAGES.invalidConfiguration(validation.error));
|
|
254
|
+
process.exitCode = 1;
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
// Apply changes and save
|
|
258
|
+
setNestedValue(config, key, coercedValue);
|
|
259
|
+
saveGlobalConfig(config);
|
|
260
|
+
const displayValue = typeof coercedValue === 'string' ? `"${coercedValue}"` : String(coercedValue);
|
|
261
|
+
console.log(CONFIG_MESSAGES.setKeyValue(key, displayValue));
|
|
262
|
+
});
|
|
263
|
+
// config unset
|
|
264
|
+
configCmd
|
|
265
|
+
.command('unset <key>')
|
|
266
|
+
.description(CONFIG_MESSAGES.removeKey)
|
|
267
|
+
.action((key) => {
|
|
268
|
+
const config = getGlobalConfig();
|
|
269
|
+
const existed = deleteNestedValue(config, key);
|
|
270
|
+
if (existed) {
|
|
271
|
+
saveGlobalConfig(config);
|
|
272
|
+
console.log(CONFIG_MESSAGES.unsetKey(key));
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
console.log(CONFIG_MESSAGES.keyNotSet(key));
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
// config reset
|
|
279
|
+
configCmd
|
|
280
|
+
.command('reset')
|
|
281
|
+
.description(CONFIG_MESSAGES.resetConfig)
|
|
282
|
+
.option('--all', CONFIG_MESSAGES.resetAllOption)
|
|
283
|
+
.option('-y, --yes', CONFIG_MESSAGES.skipConfirmationOption)
|
|
284
|
+
.action(async (options) => {
|
|
285
|
+
if (!options.all) {
|
|
286
|
+
console.error(CONFIG_MESSAGES.resetAllRequired);
|
|
287
|
+
console.error(CONFIG_MESSAGES.resetUsage);
|
|
288
|
+
process.exitCode = 1;
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
if (!options.yes) {
|
|
292
|
+
const { confirm } = await import('@inquirer/prompts');
|
|
293
|
+
let confirmed;
|
|
294
|
+
try {
|
|
295
|
+
confirmed = await confirm({
|
|
296
|
+
message: CONFIG_MESSAGES.resetConfirm,
|
|
297
|
+
default: false,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
catch (error) {
|
|
301
|
+
if (isPromptCancellationError(error)) {
|
|
302
|
+
console.log(CONFIG_MESSAGES.resetCancelled);
|
|
303
|
+
process.exitCode = 130;
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
throw error;
|
|
307
|
+
}
|
|
308
|
+
if (!confirmed) {
|
|
309
|
+
console.log(CONFIG_MESSAGES.resetCancelled);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
saveGlobalConfig({ ...DEFAULT_CONFIG });
|
|
314
|
+
console.log(CONFIG_MESSAGES.configurationReset);
|
|
315
|
+
});
|
|
316
|
+
// config edit
|
|
317
|
+
configCmd
|
|
318
|
+
.command('edit')
|
|
319
|
+
.description(CONFIG_MESSAGES.openInEditor)
|
|
320
|
+
.action(async () => {
|
|
321
|
+
const editor = process.env.EDITOR || process.env.VISUAL;
|
|
322
|
+
if (!editor) {
|
|
323
|
+
console.error(CONFIG_MESSAGES.noEditorConfigured);
|
|
324
|
+
console.error(CONFIG_MESSAGES.setEditorEnv);
|
|
325
|
+
console.error(CONFIG_MESSAGES.editorExample);
|
|
326
|
+
process.exitCode = 1;
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
const configPath = getGlobalConfigPath();
|
|
330
|
+
// Ensure config file exists with defaults
|
|
331
|
+
if (!fs.existsSync(configPath)) {
|
|
332
|
+
saveGlobalConfig({ ...DEFAULT_CONFIG });
|
|
333
|
+
}
|
|
334
|
+
// Spawn editor and wait for it to close
|
|
335
|
+
// Avoid shell parsing to correctly handle paths with spaces in both
|
|
336
|
+
// the editor path and config path
|
|
337
|
+
const child = spawn(editor, [configPath], {
|
|
338
|
+
stdio: 'inherit',
|
|
339
|
+
shell: false,
|
|
340
|
+
});
|
|
341
|
+
await new Promise((resolve, reject) => {
|
|
342
|
+
child.on('close', (code) => {
|
|
343
|
+
if (code === 0) {
|
|
344
|
+
resolve();
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
reject(new Error(`Editor exited with code ${code}`));
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
child.on('error', reject);
|
|
351
|
+
});
|
|
352
|
+
try {
|
|
353
|
+
const rawConfig = fs.readFileSync(configPath, 'utf-8');
|
|
354
|
+
const parsedConfig = JSON.parse(rawConfig);
|
|
355
|
+
const validation = validateConfig(parsedConfig);
|
|
356
|
+
if (!validation.success) {
|
|
357
|
+
console.error(CONFIG_MESSAGES.invalidConfiguration(validation.error));
|
|
358
|
+
process.exitCode = 1;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
if (error.code === 'ENOENT') {
|
|
363
|
+
console.error(CONFIG_MESSAGES.configFileNotFound(configPath));
|
|
364
|
+
}
|
|
365
|
+
else if (error instanceof SyntaxError) {
|
|
366
|
+
console.error(CONFIG_MESSAGES.invalidJson(configPath));
|
|
367
|
+
console.error(error.message);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
console.error(CONFIG_MESSAGES.unableToValidateConfig(error instanceof Error ? error.message : String(error)));
|
|
371
|
+
}
|
|
372
|
+
process.exitCode = 1;
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
// config profile [preset]
|
|
376
|
+
configCmd
|
|
377
|
+
.command('profile [preset]')
|
|
378
|
+
.description(CONFIG_MESSAGES.configureProfile)
|
|
379
|
+
.action(async (preset) => {
|
|
380
|
+
// Preset shortcut: `openspec config profile core`
|
|
381
|
+
if (preset === 'core') {
|
|
382
|
+
const config = getGlobalConfig();
|
|
383
|
+
config.profile = 'core';
|
|
384
|
+
config.workflows = [...CORE_WORKFLOWS];
|
|
385
|
+
// Preserve delivery setting
|
|
386
|
+
saveGlobalConfig(config);
|
|
387
|
+
console.log(CONFIG_MESSAGES.configUpdated);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
if (preset) {
|
|
391
|
+
console.error(CONFIG_MESSAGES.unknownProfilePreset(preset));
|
|
392
|
+
process.exitCode = 1;
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
// Non-interactive check
|
|
396
|
+
if (!process.stdout.isTTY) {
|
|
397
|
+
console.error(CONFIG_MESSAGES.interactiveModeRequired);
|
|
398
|
+
process.exitCode = 1;
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
// Interactive picker
|
|
402
|
+
const { select, checkbox, confirm } = await import('@inquirer/prompts');
|
|
403
|
+
const chalk = (await import('chalk')).default;
|
|
404
|
+
try {
|
|
405
|
+
const config = getGlobalConfig();
|
|
406
|
+
const currentState = resolveCurrentProfileState(config);
|
|
407
|
+
console.log(chalk.bold('\n' + CONFIG_MESSAGES.currentProfileSettings));
|
|
408
|
+
console.log(CONFIG_MESSAGES.deliveryLabel(currentState.delivery));
|
|
409
|
+
console.log(CONFIG_MESSAGES.workflowsLabel(formatWorkflowSummary(currentState.workflows, currentState.profile)));
|
|
410
|
+
console.log(chalk.dim(CONFIG_MESSAGES.deliveryHelp));
|
|
411
|
+
console.log(chalk.dim(CONFIG_MESSAGES.workflowsHelp));
|
|
412
|
+
console.log();
|
|
413
|
+
const action = await select({
|
|
414
|
+
message: CONFIG_MESSAGES.whatToConfigure,
|
|
415
|
+
choices: [
|
|
416
|
+
{
|
|
417
|
+
value: 'both',
|
|
418
|
+
name: CONFIG_MESSAGES.deliveryAndWorkflows,
|
|
419
|
+
description: CONFIG_MESSAGES.deliveryAndWorkflowsDesc,
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
value: 'delivery',
|
|
423
|
+
name: CONFIG_MESSAGES.deliveryOnly,
|
|
424
|
+
description: CONFIG_MESSAGES.deliveryOnlyDesc,
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
value: 'workflows',
|
|
428
|
+
name: CONFIG_MESSAGES.workflowsOnly,
|
|
429
|
+
description: CONFIG_MESSAGES.workflowsOnlyDesc,
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
value: 'keep',
|
|
433
|
+
name: CONFIG_MESSAGES.keepCurrentSettings,
|
|
434
|
+
description: CONFIG_MESSAGES.keepCurrentSettingsDesc,
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
});
|
|
438
|
+
if (action === 'keep') {
|
|
439
|
+
console.log(CONFIG_MESSAGES.noConfigChanges);
|
|
440
|
+
maybeWarnConfigDrift(process.cwd(), currentState, chalk.yellow);
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const nextState = {
|
|
444
|
+
profile: currentState.profile,
|
|
445
|
+
delivery: currentState.delivery,
|
|
446
|
+
workflows: [...currentState.workflows],
|
|
447
|
+
};
|
|
448
|
+
if (action === 'both' || action === 'delivery') {
|
|
449
|
+
const deliveryChoices = [
|
|
450
|
+
{
|
|
451
|
+
value: 'both',
|
|
452
|
+
name: CONFIG_MESSAGES.bothSkillsAndCommands,
|
|
453
|
+
description: CONFIG_MESSAGES.bothSkillsAndCommandsDesc,
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
value: 'skills',
|
|
457
|
+
name: CONFIG_MESSAGES.skillsOnly,
|
|
458
|
+
description: CONFIG_MESSAGES.skillsOnlyDesc,
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
value: 'commands',
|
|
462
|
+
name: CONFIG_MESSAGES.commandsOnly,
|
|
463
|
+
description: CONFIG_MESSAGES.commandsOnlyDesc,
|
|
464
|
+
},
|
|
465
|
+
];
|
|
466
|
+
for (const choice of deliveryChoices) {
|
|
467
|
+
if (choice.value === currentState.delivery) {
|
|
468
|
+
choice.name += CONFIG_MESSAGES.currentSuffix;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
nextState.delivery = await select({
|
|
472
|
+
message: CONFIG_MESSAGES.deliveryMode,
|
|
473
|
+
choices: deliveryChoices,
|
|
474
|
+
default: currentState.delivery,
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
if (action === 'both' || action === 'workflows') {
|
|
478
|
+
const formatWorkflowChoice = (workflow) => {
|
|
479
|
+
const metadata = WORKFLOW_PROMPT_META[workflow] ?? {
|
|
480
|
+
name: workflow,
|
|
481
|
+
description: CONFIG_MESSAGES.workflowLabel(workflow),
|
|
482
|
+
};
|
|
483
|
+
return {
|
|
484
|
+
value: workflow,
|
|
485
|
+
name: metadata.name,
|
|
486
|
+
description: metadata.description,
|
|
487
|
+
short: metadata.name,
|
|
488
|
+
checked: currentState.workflows.includes(workflow),
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
const selectedWorkflows = await checkbox({
|
|
492
|
+
message: CONFIG_MESSAGES.selectWorkflows,
|
|
493
|
+
instructions: CONFIG_MESSAGES.spaceToToggle,
|
|
494
|
+
pageSize: ALL_WORKFLOWS.length,
|
|
495
|
+
theme: {
|
|
496
|
+
icon: {
|
|
497
|
+
checked: '[x]',
|
|
498
|
+
unchecked: '[ ]',
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
choices: ALL_WORKFLOWS.map(formatWorkflowChoice),
|
|
502
|
+
});
|
|
503
|
+
nextState.workflows = selectedWorkflows;
|
|
504
|
+
nextState.profile = deriveProfileFromWorkflowSelection(selectedWorkflows);
|
|
505
|
+
}
|
|
506
|
+
const diff = diffProfileState(currentState, nextState);
|
|
507
|
+
if (!diff.hasChanges) {
|
|
508
|
+
console.log(CONFIG_MESSAGES.noConfigChanges);
|
|
509
|
+
maybeWarnConfigDrift(process.cwd(), nextState, chalk.yellow);
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
console.log(chalk.bold('\n' + CONFIG_MESSAGES.configChanges));
|
|
513
|
+
for (const line of diff.lines) {
|
|
514
|
+
console.log(` ${line}`);
|
|
515
|
+
}
|
|
516
|
+
console.log();
|
|
517
|
+
config.profile = nextState.profile;
|
|
518
|
+
config.delivery = nextState.delivery;
|
|
519
|
+
config.workflows = nextState.workflows;
|
|
520
|
+
saveGlobalConfig(config);
|
|
521
|
+
// Check if inside an OpenSpec project
|
|
522
|
+
const projectDir = process.cwd();
|
|
523
|
+
const openspecDir = path.join(projectDir, OPENSPEC_DIR_NAME);
|
|
524
|
+
if (fs.existsSync(openspecDir)) {
|
|
525
|
+
const applyNow = await confirm({
|
|
526
|
+
message: CONFIG_MESSAGES.applyChangesNow,
|
|
527
|
+
default: true,
|
|
528
|
+
});
|
|
529
|
+
if (applyNow) {
|
|
530
|
+
try {
|
|
531
|
+
execSync('npx openspec update', { stdio: 'inherit', cwd: projectDir });
|
|
532
|
+
console.log(CONFIG_MESSAGES.configUpdated);
|
|
533
|
+
}
|
|
534
|
+
catch {
|
|
535
|
+
console.error(CONFIG_MESSAGES.updateFailed);
|
|
536
|
+
process.exitCode = 1;
|
|
537
|
+
}
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
console.log(CONFIG_MESSAGES.configUpdated);
|
|
542
|
+
}
|
|
543
|
+
catch (error) {
|
|
544
|
+
if (isPromptCancellationError(error)) {
|
|
545
|
+
console.log(CONFIG_MESSAGES.configProfileCancelled);
|
|
546
|
+
process.exitCode = 130;
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
throw error;
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
//# sourceMappingURL=config.js.map
|