@guiho/mirror 3.2.1 → 3.3.0-alpha.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/CHANGELOG.md +15 -0
- package/DOCS.md +35 -74
- package/README.md +15 -41
- package/jsr.json +4 -2
- package/package.json +11 -20
- package/scripts/install-package.ts +70 -0
- package/scripts/mirror-bin.ts +20 -0
- package/skills/guiho-as-mirror/SKILL.md +2 -29
- package/library/adapters.d.ts +0 -32
- package/library/adapters.d.ts.map +0 -1
- package/library/adapters.js +0 -210
- package/library/agents.d.ts +0 -29
- package/library/agents.d.ts.map +0 -1
- package/library/agents.js +0 -212
- package/library/cli.d.ts +0 -29
- package/library/cli.d.ts.map +0 -1
- package/library/cli.js +0 -416
- package/library/config.d.ts +0 -18
- package/library/config.d.ts.map +0 -1
- package/library/config.js +0 -280
- package/library/errors.d.ts +0 -9
- package/library/errors.d.ts.map +0 -1
- package/library/errors.js +0 -15
- package/library/executor.d.ts +0 -7
- package/library/executor.d.ts.map +0 -1
- package/library/executor.js +0 -48
- package/library/flags.d.ts +0 -6
- package/library/flags.d.ts.map +0 -1
- package/library/flags.js +0 -80
- package/library/guiho-mirror-bin.d.ts +0 -6
- package/library/guiho-mirror-bin.d.ts.map +0 -1
- package/library/guiho-mirror-bin.js +0 -6
- package/library/guiho-mirror.d.ts +0 -18
- package/library/guiho-mirror.d.ts.map +0 -1
- package/library/guiho-mirror.js +0 -16
- package/library/hooks.d.ts +0 -14
- package/library/hooks.d.ts.map +0 -1
- package/library/hooks.js +0 -122
- package/library/init.d.ts +0 -12
- package/library/init.d.ts.map +0 -1
- package/library/init.js +0 -100
- package/library/plan.d.ts +0 -10
- package/library/plan.d.ts.map +0 -1
- package/library/plan.js +0 -85
- package/library/reporter.d.ts +0 -15
- package/library/reporter.d.ts.map +0 -1
- package/library/reporter.js +0 -182
- package/library/schema.d.ts +0 -164
- package/library/schema.d.ts.map +0 -1
- package/library/schema.js +0 -152
- package/library/types.d.ts +0 -205
- package/library/types.d.ts.map +0 -1
- package/library/types.js +0 -4
- package/library/version.d.ts +0 -10
- package/library/version.d.ts.map +0 -1
- package/library/version.js +0 -31
package/library/config.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import { existsSync } from 'node:fs';
|
|
5
|
-
import { readFile, writeFile } from 'node:fs/promises';
|
|
6
|
-
import { basename, isAbsolute, join, relative, resolve } from 'node:path';
|
|
7
|
-
import { parse as parseToml } from 'smol-toml';
|
|
8
|
-
import { MirrorError } from './errors.js';
|
|
9
|
-
import { mirrorConfigSchemaReference } from './schema.js';
|
|
10
|
-
import { normalizeHooksConfig } from './hooks.js';
|
|
11
|
-
const adapters = new Set(['package.json', 'jsr.json', 'git']);
|
|
12
|
-
const projectNameSources = new Set(['package.json', 'jsr.json']);
|
|
13
|
-
export const resolveMirrorPath = (cwd, path) => (isAbsolute(path) ? path : resolve(cwd, path));
|
|
14
|
-
export const relativeFromCwd = (cwd, path) => {
|
|
15
|
-
const relativePath = relative(cwd, resolveMirrorPath(cwd, path));
|
|
16
|
-
return relativePath || '.';
|
|
17
|
-
};
|
|
18
|
-
export const discoverMirrorConfig = async (cwd, explicitPath) => {
|
|
19
|
-
if (explicitPath) {
|
|
20
|
-
const configPath = resolveMirrorPath(cwd, explicitPath);
|
|
21
|
-
return { path: configPath, raw: await readConfigFile(configPath) };
|
|
22
|
-
}
|
|
23
|
-
const rootConfigPath = resolve(cwd, 'mirror.config.toml');
|
|
24
|
-
if (existsSync(rootConfigPath))
|
|
25
|
-
return { path: rootConfigPath, raw: await readConfigFile(rootConfigPath) };
|
|
26
|
-
const nestedConfigPath = resolve(cwd, 'config', 'mirror.config.toml');
|
|
27
|
-
if (existsSync(nestedConfigPath))
|
|
28
|
-
return { path: nestedConfigPath, raw: await readConfigFile(nestedConfigPath) };
|
|
29
|
-
return {};
|
|
30
|
-
};
|
|
31
|
-
export const readConfigFile = async (path) => {
|
|
32
|
-
if (!existsSync(path))
|
|
33
|
-
throw new MirrorError(`Configuration file not found: ${path}`);
|
|
34
|
-
const content = await readFile(path, 'utf8');
|
|
35
|
-
let parsed;
|
|
36
|
-
try {
|
|
37
|
-
parsed = parseToml(content);
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
41
|
-
throw new MirrorError(`Invalid TOML in configuration file: ${path}\n${message}`);
|
|
42
|
-
}
|
|
43
|
-
if (!isRecord(parsed))
|
|
44
|
-
throw new MirrorError(`Configuration file must contain a TOML object: ${path}`);
|
|
45
|
-
return parsed;
|
|
46
|
-
};
|
|
47
|
-
export const loadMirrorConfig = async (options = {}) => {
|
|
48
|
-
const cwd = resolve(options.cwd ?? process.cwd());
|
|
49
|
-
const discovered = await discoverMirrorConfig(cwd, options.config);
|
|
50
|
-
if (!discovered.raw)
|
|
51
|
-
throw new MirrorError('Mirror configuration not found. Run `mirror init package`, `mirror init jsr`, or `mirror init git`.');
|
|
52
|
-
return normalizeMirrorConfig(discovered.raw, cwd, discovered.path, options);
|
|
53
|
-
};
|
|
54
|
-
export const normalizeMirrorConfig = (raw, cwd, configPath, options = {}) => {
|
|
55
|
-
if (raw.schema !== 1)
|
|
56
|
-
throw new MirrorError('Unsupported or missing configuration schema. Expected `schema = 1`.');
|
|
57
|
-
if (raw.version?.scheme !== undefined && raw.version.scheme !== 'semver')
|
|
58
|
-
throw new MirrorError('Only `version.scheme = "semver"` is supported.');
|
|
59
|
-
const source = options.source ?? assertAdapter(raw.version?.source, 'version.source');
|
|
60
|
-
const output = dedupeAdapters(options.output ?? assertOutput(raw.version?.output));
|
|
61
|
-
const nameSource = raw.project?.name_source
|
|
62
|
-
? assertProjectNameSource(raw.project.name_source, 'project.name_source')
|
|
63
|
-
: undefined;
|
|
64
|
-
const projectName = optionalString(raw.project?.name, 'project.name');
|
|
65
|
-
const prereleaseId = options.preid ?? optionalString(raw.version?.prerelease_id, 'version.prerelease_id') ?? '';
|
|
66
|
-
const packagePath = options.packageFile ?? optionalString(raw.package?.path, 'package.path') ?? 'package.json';
|
|
67
|
-
const packageAuxiliaryPaths = assertStringArray(raw.package?.auxiliary_paths, 'package.auxiliary_paths');
|
|
68
|
-
const jsrPath = options.jsrFile ?? optionalString(raw.jsr?.path, 'jsr.path') ?? 'jsr.json';
|
|
69
|
-
const tagTemplate = optionalString(raw.git?.tag_template, 'git.tag_template') ?? 'v{version}';
|
|
70
|
-
const gitCommit = optionalBoolean(raw.git?.commit, 'git.commit') === true;
|
|
71
|
-
const gitPush = optionalBoolean(raw.git?.push, 'git.push') === true;
|
|
72
|
-
const gitAllowDirty = optionalBoolean(raw.git?.allow_dirty, 'git.allow_dirty') === true;
|
|
73
|
-
const writeChangelog = optionalBoolean(raw.agents?.write_changelog, 'agents.write_changelog') !== false;
|
|
74
|
-
const changelogPath = optionalString(raw.agents?.changelog_path, 'agents.changelog_path') ?? 'CHANGELOG.md';
|
|
75
|
-
const autoAgentsMd = optionalBoolean(raw.agents?.auto_agents_md, 'agents.auto_agents_md') !== false;
|
|
76
|
-
const autoSkillInstall = optionalBoolean(raw.agents?.auto_skill_install, 'agents.auto_skill_install') !== false;
|
|
77
|
-
const hooks = normalizeHooksConfig(raw.hooks);
|
|
78
|
-
return {
|
|
79
|
-
schema: 1,
|
|
80
|
-
cwd,
|
|
81
|
-
configPath,
|
|
82
|
-
project: {
|
|
83
|
-
name: projectName,
|
|
84
|
-
nameSource,
|
|
85
|
-
},
|
|
86
|
-
version: {
|
|
87
|
-
scheme: 'semver',
|
|
88
|
-
source,
|
|
89
|
-
output,
|
|
90
|
-
prereleaseId,
|
|
91
|
-
},
|
|
92
|
-
package: {
|
|
93
|
-
path: packagePath,
|
|
94
|
-
auxiliaryPaths: packageAuxiliaryPaths,
|
|
95
|
-
},
|
|
96
|
-
jsr: {
|
|
97
|
-
path: jsrPath,
|
|
98
|
-
},
|
|
99
|
-
git: {
|
|
100
|
-
tagTemplate,
|
|
101
|
-
commit: options.commit === true || options.push === true || gitCommit || gitPush,
|
|
102
|
-
push: options.push === true || gitPush,
|
|
103
|
-
allowDirty: options.allowDirty === true || gitAllowDirty,
|
|
104
|
-
},
|
|
105
|
-
agents: {
|
|
106
|
-
writeChangelog,
|
|
107
|
-
changelogPath,
|
|
108
|
-
autoAgentsMd,
|
|
109
|
-
autoSkillInstall,
|
|
110
|
-
},
|
|
111
|
-
hooks,
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
export const defaultInitAnswersForSource = (kind, cwd) => ({
|
|
115
|
-
source: kind,
|
|
116
|
-
output: kind === 'git' ? ['git'] : [kind, 'git'],
|
|
117
|
-
packagePath: 'package.json',
|
|
118
|
-
auxiliaryPaths: [],
|
|
119
|
-
jsrPath: 'jsr.json',
|
|
120
|
-
name: kind === 'git' ? basename(cwd) : undefined,
|
|
121
|
-
prereleaseId: '',
|
|
122
|
-
tagTemplate: '{name}@{version}',
|
|
123
|
-
commit: kind !== 'git',
|
|
124
|
-
push: false,
|
|
125
|
-
});
|
|
126
|
-
export const generateInitConfig = (answers, cwd) => {
|
|
127
|
-
const lines = [];
|
|
128
|
-
lines.push(`#:schema ${mirrorConfigSchemaReference}`);
|
|
129
|
-
lines.push('');
|
|
130
|
-
lines.push('schema = 1');
|
|
131
|
-
lines.push('');
|
|
132
|
-
lines.push('[project]');
|
|
133
|
-
if (answers.source === 'package.json')
|
|
134
|
-
lines.push('name_source = "package.json"');
|
|
135
|
-
else if (answers.source === 'jsr.json')
|
|
136
|
-
lines.push('name_source = "jsr.json"');
|
|
137
|
-
else
|
|
138
|
-
lines.push(`name = "${answers.name ?? basename(cwd)}"`);
|
|
139
|
-
lines.push('');
|
|
140
|
-
lines.push('[version]');
|
|
141
|
-
lines.push('scheme = "semver"');
|
|
142
|
-
lines.push(`source = "${answers.source}"`);
|
|
143
|
-
lines.push(`output = [${answers.output.map((value) => `"${value}"`).join(', ')}]`);
|
|
144
|
-
lines.push(`prerelease_id = "${answers.prereleaseId}"`);
|
|
145
|
-
lines.push('');
|
|
146
|
-
lines.push('[package]');
|
|
147
|
-
lines.push(`path = "${answers.packagePath}"`);
|
|
148
|
-
lines.push(`auxiliary_paths = [${answers.auxiliaryPaths.map((value) => `"${value}"`).join(', ')}]`);
|
|
149
|
-
lines.push('');
|
|
150
|
-
lines.push('[jsr]');
|
|
151
|
-
lines.push(`path = "${answers.jsrPath}"`);
|
|
152
|
-
lines.push('');
|
|
153
|
-
lines.push('[git]');
|
|
154
|
-
lines.push(`tag_template = "${answers.tagTemplate}"`);
|
|
155
|
-
lines.push(`commit = ${String(answers.commit)}`);
|
|
156
|
-
lines.push(`push = ${String(answers.push)}`);
|
|
157
|
-
lines.push('allow_dirty = false');
|
|
158
|
-
lines.push('');
|
|
159
|
-
lines.push('[agents]');
|
|
160
|
-
lines.push('write_changelog = true');
|
|
161
|
-
lines.push('changelog_path = "CHANGELOG.md"');
|
|
162
|
-
lines.push('auto_agents_md = true');
|
|
163
|
-
lines.push('auto_skill_install = true');
|
|
164
|
-
return `${lines.join('\n')}\n`;
|
|
165
|
-
};
|
|
166
|
-
export const createInitConfig = (kind, cwd) => generateInitConfig(defaultInitAnswersForSource(kind, cwd), cwd);
|
|
167
|
-
export const writeInitConfig = async (kind, cwd, overwrite = false) => writeInitConfigFromAnswers(defaultInitAnswersForSource(kind, cwd), cwd, overwrite);
|
|
168
|
-
export const writeInitConfigFromAnswers = async (answers, cwd, overwrite = false) => {
|
|
169
|
-
const path = join(cwd, 'mirror.config.toml');
|
|
170
|
-
const generated = generateInitConfig(answers, cwd);
|
|
171
|
-
if (existsSync(path) && !overwrite) {
|
|
172
|
-
await writeFile(path, reconcileInitConfig(await readFile(path, 'utf8'), generated), 'utf8');
|
|
173
|
-
return path;
|
|
174
|
-
}
|
|
175
|
-
await writeFile(path, generated, 'utf8');
|
|
176
|
-
return path;
|
|
177
|
-
};
|
|
178
|
-
export const reconcileInitConfig = (existingContent, defaultsContent) => {
|
|
179
|
-
const existingRaw = parseConfigContent(existingContent, 'existing configuration');
|
|
180
|
-
const defaultsRaw = parseConfigContent(defaultsContent, 'default configuration');
|
|
181
|
-
const additions = [];
|
|
182
|
-
for (const [sectionName, defaultSection] of Object.entries(defaultsRaw)) {
|
|
183
|
-
if (!isRecord(defaultSection))
|
|
184
|
-
continue;
|
|
185
|
-
const existingSection = existingRaw[sectionName];
|
|
186
|
-
if (!isRecord(existingSection)) {
|
|
187
|
-
additions.push(renderTomlSection(sectionName, defaultSection));
|
|
188
|
-
continue;
|
|
189
|
-
}
|
|
190
|
-
const missingValues = Object.fromEntries(Object.entries(defaultSection).filter(([key]) => existingSection[key] === undefined));
|
|
191
|
-
if (Object.keys(missingValues).length > 0)
|
|
192
|
-
existingContent = insertTomlValuesIntoSection(existingContent, sectionName, missingValues);
|
|
193
|
-
}
|
|
194
|
-
if (additions.length === 0)
|
|
195
|
-
return existingContent;
|
|
196
|
-
return `${existingContent.trimEnd()}\n\n${additions.join('\n\n')}\n`;
|
|
197
|
-
};
|
|
198
|
-
export const configPathForDisplay = (config) => (config.configPath ? relativeFromCwd(config.cwd, config.configPath) : '(none)');
|
|
199
|
-
const assertAdapter = (value, key) => {
|
|
200
|
-
if (typeof value !== 'string' || !adapters.has(value))
|
|
201
|
-
throw new MirrorError(`Invalid or missing ${key}. Expected package.json, jsr.json, or git.`);
|
|
202
|
-
return value;
|
|
203
|
-
};
|
|
204
|
-
const assertProjectNameSource = (value, key) => {
|
|
205
|
-
if (typeof value !== 'string' || !projectNameSources.has(value))
|
|
206
|
-
throw new MirrorError(`Invalid ${key}. Expected package.json or jsr.json.`);
|
|
207
|
-
return value;
|
|
208
|
-
};
|
|
209
|
-
const assertOutput = (value) => {
|
|
210
|
-
if (!Array.isArray(value) || value.length === 0)
|
|
211
|
-
throw new MirrorError('Invalid or missing version.output. Expected at least one output adapter.');
|
|
212
|
-
return value.map((item) => assertAdapter(item, 'version.output'));
|
|
213
|
-
};
|
|
214
|
-
const assertStringArray = (value, key) => {
|
|
215
|
-
if (value === undefined)
|
|
216
|
-
return [];
|
|
217
|
-
if (!Array.isArray(value))
|
|
218
|
-
throw new MirrorError(`Invalid ${key}. Expected an array of strings.`);
|
|
219
|
-
return value.map((item) => {
|
|
220
|
-
if (typeof item !== 'string' || item.length === 0)
|
|
221
|
-
throw new MirrorError(`Invalid ${key}. Expected an array of strings.`);
|
|
222
|
-
return item;
|
|
223
|
-
});
|
|
224
|
-
};
|
|
225
|
-
const dedupeAdapters = (value) => [...new Set(value)];
|
|
226
|
-
const optionalString = (value, key) => {
|
|
227
|
-
if (value === undefined)
|
|
228
|
-
return undefined;
|
|
229
|
-
if (typeof value !== 'string')
|
|
230
|
-
throw new MirrorError(`Invalid ${key}. Expected a string.`);
|
|
231
|
-
return value;
|
|
232
|
-
};
|
|
233
|
-
const optionalBoolean = (value, key) => {
|
|
234
|
-
if (value === undefined)
|
|
235
|
-
return undefined;
|
|
236
|
-
if (typeof value !== 'boolean')
|
|
237
|
-
throw new MirrorError(`Invalid ${key}. Expected true or false.`);
|
|
238
|
-
return value;
|
|
239
|
-
};
|
|
240
|
-
const isRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
241
|
-
const parseConfigContent = (content, label) => {
|
|
242
|
-
let parsed;
|
|
243
|
-
try {
|
|
244
|
-
parsed = parseToml(content);
|
|
245
|
-
}
|
|
246
|
-
catch (error) {
|
|
247
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
248
|
-
throw new MirrorError(`Invalid TOML in ${label}:\n${message}`);
|
|
249
|
-
}
|
|
250
|
-
if (!isRecord(parsed))
|
|
251
|
-
throw new MirrorError(`Invalid ${label}. Expected a TOML object.`);
|
|
252
|
-
return parsed;
|
|
253
|
-
};
|
|
254
|
-
const renderTomlSection = (sectionName, values) => {
|
|
255
|
-
const lines = [`[${sectionName}]`];
|
|
256
|
-
for (const [key, value] of Object.entries(values)) {
|
|
257
|
-
lines.push(`${key} = ${renderTomlValue(value)}`);
|
|
258
|
-
}
|
|
259
|
-
return lines.join('\n');
|
|
260
|
-
};
|
|
261
|
-
const insertTomlValuesIntoSection = (content, sectionName, values) => {
|
|
262
|
-
const lines = content.split(/\r?\n/);
|
|
263
|
-
const sectionIndex = lines.findIndex((line) => line.trim() === `[${sectionName}]`);
|
|
264
|
-
if (sectionIndex === -1)
|
|
265
|
-
return `${content.trimEnd()}\n\n${renderTomlSection(sectionName, values)}\n`;
|
|
266
|
-
const nextSectionIndex = lines.findIndex((line, index) => index > sectionIndex && /^\[[^\]]+]\s*$/.test(line.trim()));
|
|
267
|
-
const insertIndex = nextSectionIndex === -1 ? lines.length : nextSectionIndex;
|
|
268
|
-
const renderedValues = Object.entries(values).map(([key, value]) => `${key} = ${renderTomlValue(value)}`);
|
|
269
|
-
lines.splice(insertIndex, 0, ...renderedValues);
|
|
270
|
-
return lines.join('\n');
|
|
271
|
-
};
|
|
272
|
-
const renderTomlValue = (value) => {
|
|
273
|
-
if (typeof value === 'string')
|
|
274
|
-
return JSON.stringify(value);
|
|
275
|
-
if (typeof value === 'number' || typeof value === 'boolean')
|
|
276
|
-
return String(value);
|
|
277
|
-
if (Array.isArray(value))
|
|
278
|
-
return `[${value.map(renderTomlValue).join(', ')}]`;
|
|
279
|
-
throw new MirrorError('Cannot render unsupported init configuration value.');
|
|
280
|
-
};
|
package/library/errors.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
export declare class MirrorError extends Error {
|
|
5
|
-
readonly exitCode: number;
|
|
6
|
-
constructor(message: string, exitCode?: number);
|
|
7
|
-
}
|
|
8
|
-
export declare const invariant: (condition: unknown, message: string) => asserts condition;
|
|
9
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/library/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../source/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,qBAAa,WAAY,SAAQ,KAAK;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;gBAEb,OAAO,EAAE,MAAM,EAAE,QAAQ,SAAI;CAK1C;AAED,eAAO,MAAM,SAAS,GAAI,WAAW,OAAO,EAAE,SAAS,MAAM,KAAG,QAAQ,SAEvE,CAAA"}
|
package/library/errors.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
export class MirrorError extends Error {
|
|
5
|
-
exitCode;
|
|
6
|
-
constructor(message, exitCode = 1) {
|
|
7
|
-
super(message);
|
|
8
|
-
this.name = 'MirrorError';
|
|
9
|
-
this.exitCode = exitCode;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export const invariant = (condition, message) => {
|
|
13
|
-
if (!condition)
|
|
14
|
-
throw new MirrorError(message);
|
|
15
|
-
};
|
package/library/executor.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { MirrorCliOptions, MirrorExecutionResult, MirrorHooksConfig } from './types.js';
|
|
5
|
-
export declare const applyVersionPlan: (target: string, options?: MirrorCliOptions) => Promise<MirrorExecutionResult>;
|
|
6
|
-
export declare const executeVersionPlan: (plan: MirrorExecutionResult["plan"], options?: MirrorCliOptions, hooks?: MirrorHooksConfig, target?: string) => Promise<MirrorExecutionResult>;
|
|
7
|
-
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../source/executor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAM5F,eAAO,MAAM,gBAAgB,GAAU,QAAQ,MAAM,EAAE,UAAS,gBAAqB,KAAG,OAAO,CAAC,qBAAqB,CAIpH,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC7B,MAAM,qBAAqB,CAAC,MAAM,CAAC,EACnC,UAAS,gBAAqB,EAC9B,QAAQ,iBAAiB,EACzB,eAAyB,KACxB,OAAO,CAAC,qBAAqB,CAoC/B,CAAA"}
|
package/library/executor.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import { MirrorError } from './errors.js';
|
|
5
|
-
import { createGitCommit, createGitTag, isGitDirty, isGitRepository, pushGitRefs, writeJsrVersionFile, writePackageVersionFile } from './adapters.js';
|
|
6
|
-
import { buildVersionPlan } from './plan.js';
|
|
7
|
-
import { hookEnvForAction, runActionHooks } from './hooks.js';
|
|
8
|
-
export const applyVersionPlan = async (target, options = {}) => {
|
|
9
|
-
const plan = await buildVersionPlan(target, options);
|
|
10
|
-
return executeVersionPlan(plan, options);
|
|
11
|
-
};
|
|
12
|
-
export const executeVersionPlan = async (plan, options = {}, hooks, target = plan.nextVersion) => {
|
|
13
|
-
const hookResults = [];
|
|
14
|
-
if (options.dryRun)
|
|
15
|
-
return { plan, applied: false, dryRun: true, hookResults };
|
|
16
|
-
if (!plan.allowDirty && (await isGitRepository(plan.cwd)) && (await isGitDirty(plan.cwd))) {
|
|
17
|
-
throw new MirrorError('Git worktree is dirty. Commit changes or pass --allow-dirty.');
|
|
18
|
-
}
|
|
19
|
-
if (!options.yes)
|
|
20
|
-
throw new MirrorError('Refusing to apply without confirmation. Pass --yes to apply the plan.');
|
|
21
|
-
for (const action of plan.actions) {
|
|
22
|
-
const actionEnv = hookEnvForAction(plan, target, action);
|
|
23
|
-
if (action.type === 'write-file') {
|
|
24
|
-
await runActionHooks('before:write', hooks?.['before:write'], actionEnv, plan.cwd, options);
|
|
25
|
-
if (action.adapter === 'package.json')
|
|
26
|
-
await writePackageVersionFile(action.path, plan.nextVersion);
|
|
27
|
-
if (action.adapter === 'jsr.json')
|
|
28
|
-
await writeJsrVersionFile(action.path, plan.nextVersion);
|
|
29
|
-
await runActionHooks('after:write', hooks?.['after:write'], actionEnv, plan.cwd, options);
|
|
30
|
-
}
|
|
31
|
-
if (action.type === 'git-commit') {
|
|
32
|
-
await runActionHooks('before:commit', hooks?.['before:commit'], actionEnv, plan.cwd, options);
|
|
33
|
-
await createGitCommit(plan.cwd, action.paths, action.message);
|
|
34
|
-
await runActionHooks('after:commit', hooks?.['after:commit'], actionEnv, plan.cwd, options);
|
|
35
|
-
}
|
|
36
|
-
if (action.type === 'git-tag') {
|
|
37
|
-
await runActionHooks('before:tag', hooks?.['before:tag'], actionEnv, plan.cwd, options);
|
|
38
|
-
await createGitTag(plan.cwd, action.tag);
|
|
39
|
-
await runActionHooks('after:tag', hooks?.['after:tag'], actionEnv, plan.cwd, options);
|
|
40
|
-
}
|
|
41
|
-
if (action.type === 'git-push') {
|
|
42
|
-
await runActionHooks('before:push', hooks?.['before:push'], actionEnv, plan.cwd, options);
|
|
43
|
-
await pushGitRefs(plan.cwd, action.includeCommit, action.includeTags);
|
|
44
|
-
await runActionHooks('after:push', hooks?.['after:push'], actionEnv, plan.cwd, options);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return { plan, applied: true, dryRun: false, hookResults };
|
|
48
|
-
};
|
package/library/flags.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { MirrorCliOptions } from './types.js';
|
|
5
|
-
export declare const parseMirrorCliOptions: (rawArgs: string[]) => MirrorCliOptions;
|
|
6
|
-
//# sourceMappingURL=flags.d.ts.map
|
package/library/flags.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../source/flags.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAqB,gBAAgB,EAAgB,MAAM,YAAY,CAAA;AAenF,eAAO,MAAM,qBAAqB,GAAI,SAAS,MAAM,EAAE,KAAG,gBAkEzD,CAAA"}
|
package/library/flags.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import { MirrorError } from './errors.js';
|
|
5
|
-
const booleanFlags = new Set(['dry-run', 'commit', 'push', 'allow-dirty', 'non-interactive', 'yes', 'no-color', 'verbose', 'help', 'version']);
|
|
6
|
-
const adapterNames = new Set(['package.json', 'jsr.json', 'git']);
|
|
7
|
-
const shortFlagAliases = {
|
|
8
|
-
'-dy': '--dry-run',
|
|
9
|
-
'-y': '--yes',
|
|
10
|
-
};
|
|
11
|
-
const normalizeKey = (key) => key.replace(/-([a-z])/g, (_match, letter) => letter.toUpperCase());
|
|
12
|
-
const expandShortFlags = (rawArgs) => rawArgs.map((token) => shortFlagAliases[token] ?? token);
|
|
13
|
-
export const parseMirrorCliOptions = (rawArgs) => {
|
|
14
|
-
const parsed = {};
|
|
15
|
-
const args = expandShortFlags(rawArgs);
|
|
16
|
-
for (let index = 0; index < args.length; index += 1) {
|
|
17
|
-
const token = args[index];
|
|
18
|
-
if (!token?.startsWith('--'))
|
|
19
|
-
continue;
|
|
20
|
-
const withoutPrefix = token.slice(2);
|
|
21
|
-
const equalsIndex = withoutPrefix.indexOf('=');
|
|
22
|
-
const rawKey = equalsIndex >= 0 ? withoutPrefix.slice(0, equalsIndex) : withoutPrefix;
|
|
23
|
-
const key = normalizeKey(rawKey);
|
|
24
|
-
if (booleanFlags.has(rawKey)) {
|
|
25
|
-
parsed[key] = true;
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
const value = equalsIndex >= 0
|
|
29
|
-
? withoutPrefix.slice(equalsIndex + 1)
|
|
30
|
-
: args[index + 1] && !args[index + 1]?.startsWith('-')
|
|
31
|
-
? args[++index] ?? ''
|
|
32
|
-
: '';
|
|
33
|
-
if (!value)
|
|
34
|
-
throw new MirrorError(`Missing value for --${rawKey}`);
|
|
35
|
-
if (key === 'output') {
|
|
36
|
-
const nextValues = value.split(',').map((item) => item.trim()).filter(Boolean);
|
|
37
|
-
const current = parsed['output'];
|
|
38
|
-
parsed['output'] = [...(Array.isArray(current) ? current : current ? [String(current)] : []), ...nextValues];
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (key === 'auxiliary') {
|
|
42
|
-
const nextValues = value.split(',').map((item) => item.trim()).filter(Boolean);
|
|
43
|
-
const current = parsed['auxiliary'];
|
|
44
|
-
parsed['auxiliary'] = [...(Array.isArray(current) ? current : current ? [String(current)] : []), ...nextValues];
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
parsed[key] = value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
cwd: typeof parsed['cwd'] === 'string' ? parsed['cwd'] : undefined,
|
|
51
|
-
config: typeof parsed['config'] === 'string' ? parsed['config'] : undefined,
|
|
52
|
-
format: typeof parsed['format'] === 'string' ? assertFormat(parsed['format']) : undefined,
|
|
53
|
-
noColor: parsed['noColor'] === true,
|
|
54
|
-
source: typeof parsed['source'] === 'string' ? assertAdapter(parsed['source'], '--source') : undefined,
|
|
55
|
-
output: Array.isArray(parsed['output']) ? parsed['output'].map((value) => assertAdapter(value, '--output')) : undefined,
|
|
56
|
-
packageFile: typeof parsed['packageFile'] === 'string' ? parsed['packageFile'] : undefined,
|
|
57
|
-
jsrFile: typeof parsed['jsrFile'] === 'string' ? parsed['jsrFile'] : undefined,
|
|
58
|
-
auxiliary: Array.isArray(parsed['auxiliary']) ? parsed['auxiliary'].map((value) => String(value)) : undefined,
|
|
59
|
-
tagTemplate: typeof parsed['tagTemplate'] === 'string' ? parsed['tagTemplate'] : undefined,
|
|
60
|
-
name: typeof parsed['name'] === 'string' ? parsed['name'] : undefined,
|
|
61
|
-
preid: typeof parsed['preid'] === 'string' ? parsed['preid'] : undefined,
|
|
62
|
-
dryRun: parsed['dryRun'] === true,
|
|
63
|
-
commit: parsed['commit'] === true,
|
|
64
|
-
push: parsed['push'] === true,
|
|
65
|
-
allowDirty: parsed['allowDirty'] === true,
|
|
66
|
-
nonInteractive: parsed['nonInteractive'] === true,
|
|
67
|
-
yes: parsed['yes'] === true,
|
|
68
|
-
verbose: parsed['verbose'] === true,
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
const assertAdapter = (value, flagName) => {
|
|
72
|
-
if (!adapterNames.has(value))
|
|
73
|
-
throw new MirrorError(`Invalid ${flagName} value: ${value}`);
|
|
74
|
-
return value;
|
|
75
|
-
};
|
|
76
|
-
const assertFormat = (value) => {
|
|
77
|
-
if (value !== 'text' && value !== 'json')
|
|
78
|
-
throw new MirrorError(`Invalid --format value: ${value}`);
|
|
79
|
-
return value;
|
|
80
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guiho-mirror-bin.d.ts","sourceRoot":"","sources":["../source/guiho-mirror-bin.ts"],"names":[],"mappings":";AACA;;GAEG"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
export type { MirrorAdapterName, MirrorCliOptions, MirrorConfig, MirrorExecutionResult, MirrorFormat, MirrorAgentAutomationResult, MirrorAgentSettings, MirrorAgentsInstructionsResult, MirrorHookCommand, MirrorHookName, MirrorHookResult, MirrorHooksConfig, MirrorInitAnswers, MirrorInitFlags, MirrorInitPrompter, MirrorRawConfig, MirrorSkillInstallResult, MirrorSkillInstallScope, MirrorVersionPlan, MirrorVersionPlanAction, MirrorVersionTarget, } from './types.js';
|
|
5
|
-
export { MirrorError, invariant } from './errors.js';
|
|
6
|
-
export { parseMirrorCliOptions } from './flags.js';
|
|
7
|
-
export { defaultMirrorAgentSettings, ensureMirrorAgentsInstructions, findAgentsFile, installMirrorSkill, isMirrorSkillInstalled, mirrorAgentsSection, mirrorAgentsSectionEndMarker, mirrorAgentsSectionHeading, mirrorAgentsSectionStartMarker, mirrorSkillName, resolveMirrorAgentSettings, resolveMirrorSkillPath, runMirrorAgentAutomation, } from './agents.js';
|
|
8
|
-
export { createInitConfig, defaultInitAnswersForSource, discoverMirrorConfig, generateInitConfig, loadMirrorConfig, normalizeMirrorConfig, reconcileInitConfig, writeInitConfig, writeInitConfigFromAnswers, } from './config.js';
|
|
9
|
-
export { createReadlineInitPrompter, isInteractiveInit, parseAdapterList, resolveInitAnswers } from './init.js';
|
|
10
|
-
export { mirrorConfigJsonSchema, mirrorConfigSchemaReference, renderMirrorConfigJsonSchema } from './schema.js';
|
|
11
|
-
export { assertValidSemver, isMirrorReleaseTarget, mirrorReleaseTargets, resolveNextVersion, sortSemverDescending } from './version.js';
|
|
12
|
-
export { createGitCommit, createGitTag, ensureAdapterFiles, ensureGitAvailable, assertSupportedGitTagTemplate, isGitDirty, isGitRepository, readCurrentVersion, readGitVersion, readJsrName, readJsrVersion, readJsrVersionFile, readPackageName, readPackageVersion, readPackageVersionFile, renderGitTag, resolveProjectName, supportedGitTagTemplates, versionFromTag, writeJsrVersion, writeJsrVersionFile, writePackageVersion, writePackageVersionFile, } from './adapters.js';
|
|
13
|
-
export { buildVersionPlan, releaseLabel, resolveFileOutputPaths, validateMirrorConfig } from './plan.js';
|
|
14
|
-
export { applyVersionPlan, executeVersionPlan } from './executor.js';
|
|
15
|
-
export { hookEnvFromConfig, hookEnvForAction, hookEnvForPlan, hookEnvForResult, mirrorHookNames, normalizeHooksConfig, runHooks, runHooksQuiet, } from './hooks.js';
|
|
16
|
-
export { mirrorBanner, reportAgentsInstructions, reportConfig, reportConfigSchema, reportExecution, reportExecutionSummary, reportPlan, reportSkillInstall, reportValue, } from './reporter.js';
|
|
17
|
-
export { createMirrorCommand, runMirrorCli } from './cli.js';
|
|
18
|
-
//# sourceMappingURL=guiho-mirror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guiho-mirror.d.ts","sourceRoot":"","sources":["../source/guiho-mirror.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,YAAY,EACZ,2BAA2B,EAC3B,mBAAmB,EACnB,8BAA8B,EAC9B,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,4BAA4B,EAC5B,0BAA0B,EAC1B,8BAA8B,EAC9B,eAAe,EACf,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,kBA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ho-mirror.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
export { MirrorError, invariant } from './errors.js';
|
|
5
|
-
export { parseMirrorCliOptions } from './flags.js';
|
|
6
|
-
export { defaultMirrorAgentSettings, ensureMirrorAgentsInstructions, findAgentsFile, installMirrorSkill, isMirrorSkillInstalled, mirrorAgentsSection, mirrorAgentsSectionEndMarker, mirrorAgentsSectionHeading, mirrorAgentsSectionStartMarker, mirrorSkillName, resolveMirrorAgentSettings, resolveMirrorSkillPath, runMirrorAgentAutomation, } from './agents.js';
|
|
7
|
-
export { createInitConfig, defaultInitAnswersForSource, discoverMirrorConfig, generateInitConfig, loadMirrorConfig, normalizeMirrorConfig, reconcileInitConfig, writeInitConfig, writeInitConfigFromAnswers, } from './config.js';
|
|
8
|
-
export { createReadlineInitPrompter, isInteractiveInit, parseAdapterList, resolveInitAnswers } from './init.js';
|
|
9
|
-
export { mirrorConfigJsonSchema, mirrorConfigSchemaReference, renderMirrorConfigJsonSchema } from './schema.js';
|
|
10
|
-
export { assertValidSemver, isMirrorReleaseTarget, mirrorReleaseTargets, resolveNextVersion, sortSemverDescending } from './version.js';
|
|
11
|
-
export { createGitCommit, createGitTag, ensureAdapterFiles, ensureGitAvailable, assertSupportedGitTagTemplate, isGitDirty, isGitRepository, readCurrentVersion, readGitVersion, readJsrName, readJsrVersion, readJsrVersionFile, readPackageName, readPackageVersion, readPackageVersionFile, renderGitTag, resolveProjectName, supportedGitTagTemplates, versionFromTag, writeJsrVersion, writeJsrVersionFile, writePackageVersion, writePackageVersionFile, } from './adapters.js';
|
|
12
|
-
export { buildVersionPlan, releaseLabel, resolveFileOutputPaths, validateMirrorConfig } from './plan.js';
|
|
13
|
-
export { applyVersionPlan, executeVersionPlan } from './executor.js';
|
|
14
|
-
export { hookEnvFromConfig, hookEnvForAction, hookEnvForPlan, hookEnvForResult, mirrorHookNames, normalizeHooksConfig, runHooks, runHooksQuiet, } from './hooks.js';
|
|
15
|
-
export { mirrorBanner, reportAgentsInstructions, reportConfig, reportConfigSchema, reportExecution, reportExecutionSummary, reportPlan, reportSkillInstall, reportValue, } from './reporter.js';
|
|
16
|
-
export { createMirrorCommand, runMirrorCli } from './cli.js';
|
package/library/hooks.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Copyright (c) 2026 GUIHO Technologies as represented by Cristóvão GUIHO. All Rights Reserved.
|
|
3
|
-
*/
|
|
4
|
-
import type { MirrorCliOptions, MirrorConfig, MirrorHookCommand, MirrorHookName, MirrorHookResult, MirrorHooksConfig, MirrorVersionPlan, MirrorVersionPlanAction } from './types.js';
|
|
5
|
-
export declare const mirrorHookNames: MirrorHookName[];
|
|
6
|
-
export declare const normalizeHooksConfig: (raw: Record<string, MirrorHookCommand> | undefined) => MirrorHooksConfig;
|
|
7
|
-
export declare const runHooks: (name: MirrorHookName, commands: string[] | undefined, env: Record<string, string>, cwd: string) => Promise<MirrorHookResult | undefined>;
|
|
8
|
-
export declare const runHooksQuiet: (name: MirrorHookName, commands: string[] | undefined, env: Record<string, string>, cwd: string, results: MirrorHookResult[]) => Promise<void>;
|
|
9
|
-
export declare const runActionHooks: (name: MirrorHookName, commands: string[] | undefined, env: Record<string, string>, cwd: string, options: MirrorCliOptions) => Promise<MirrorHookResult | undefined>;
|
|
10
|
-
export declare const hookEnvFromConfig: (config: MirrorConfig, target: string) => Record<string, string>;
|
|
11
|
-
export declare const hookEnvForPlan: (plan: MirrorVersionPlan, target: string) => Record<string, string>;
|
|
12
|
-
export declare const hookEnvForAction: (plan: MirrorVersionPlan, target: string, action: MirrorVersionPlanAction) => Record<string, string>;
|
|
13
|
-
export declare const hookEnvForResult: (plan: MirrorVersionPlan, target: string, applied: boolean, dryRun: boolean) => Record<string, string>;
|
|
14
|
-
//# sourceMappingUR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