dlw-machine-setup 0.7.1 → 0.8.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/bin/installer.js +10 -24
- package/package.json +1 -1
package/bin/installer.js
CHANGED
|
@@ -3914,22 +3914,15 @@ var githubCopilotProfile = {
|
|
|
3914
3914
|
handlers: {
|
|
3915
3915
|
agent: {
|
|
3916
3916
|
supported: true,
|
|
3917
|
-
|
|
3918
|
-
destination: (name) => `.github/agents/${name}.md`
|
|
3919
|
-
// TODO(phase-3): supply frontmatter rewriter that maps Claude's
|
|
3920
|
-
// {name, description, disable-model-invocation, ...} to whatever
|
|
3921
|
-
// Copilot expects ({name, description, category, version, ...}).
|
|
3917
|
+
destination: (name) => `.github/agents/${name}.agent.md`
|
|
3922
3918
|
},
|
|
3923
3919
|
skill: {
|
|
3924
3920
|
supported: true,
|
|
3925
|
-
|
|
3926
|
-
destination: (name) => `.github/skills/${name}.skill.md`
|
|
3927
|
-
// TODO(phase-3): supply frontmatter rewriter.
|
|
3921
|
+
destination: (name) => `.github/skills/${name}/SKILL.md`
|
|
3928
3922
|
},
|
|
3929
3923
|
hook: {
|
|
3930
|
-
//
|
|
3931
|
-
//
|
|
3932
|
-
// If no, leave as unsupported — assets of type 'hook' are silently skipped.
|
|
3924
|
+
// See header docblock for the three HookHandler extensions needed
|
|
3925
|
+
// to flip this on. Until then, hook assets are skipped on Copilot.
|
|
3933
3926
|
supported: false
|
|
3934
3927
|
},
|
|
3935
3928
|
"instructions-snippet": {
|
|
@@ -4227,14 +4220,8 @@ function assertBundleRootExists(ctx) {
|
|
|
4227
4220
|
}
|
|
4228
4221
|
|
|
4229
4222
|
// src/steps/resources/fetch-factory.ts
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
case "github-copilot":
|
|
4233
|
-
return { assetName: "factory-copilot.tar.gz", rootFolder: "factory-copilot" };
|
|
4234
|
-
default:
|
|
4235
|
-
return { assetName: "factory.tar.gz", rootFolder: "factory" };
|
|
4236
|
-
}
|
|
4237
|
-
}
|
|
4223
|
+
var FACTORY_ASSET_NAME = "factory.tar.gz";
|
|
4224
|
+
var FACTORY_ROOT_FOLDER = "factory";
|
|
4238
4225
|
var fetch_factory_default = defineStep({
|
|
4239
4226
|
name: "fetch-factory",
|
|
4240
4227
|
label: "Installing Factory framework",
|
|
@@ -4253,7 +4240,6 @@ var fetch_factory_default = defineStep({
|
|
|
4253
4240
|
});
|
|
4254
4241
|
async function fetchFactory(token, repo, targetDir, agent) {
|
|
4255
4242
|
const result = { success: false, filesInstalled: [] };
|
|
4256
|
-
const { assetName, rootFolder } = getFactoryAsset(agent);
|
|
4257
4243
|
let release;
|
|
4258
4244
|
try {
|
|
4259
4245
|
release = await fetchLatestRelease(token, repo);
|
|
@@ -4261,18 +4247,18 @@ async function fetchFactory(token, repo, targetDir, agent) {
|
|
|
4261
4247
|
result.failureReason = err instanceof Error ? err.message : String(err);
|
|
4262
4248
|
return result;
|
|
4263
4249
|
}
|
|
4264
|
-
const asset = release.assets.find((a) => a.name ===
|
|
4250
|
+
const asset = release.assets.find((a) => a.name === FACTORY_ASSET_NAME);
|
|
4265
4251
|
if (!asset) {
|
|
4266
|
-
result.failureReason = `${
|
|
4252
|
+
result.failureReason = `${FACTORY_ASSET_NAME} not found in release`;
|
|
4267
4253
|
return result;
|
|
4268
4254
|
}
|
|
4269
4255
|
let archive = null;
|
|
4270
4256
|
try {
|
|
4271
4257
|
archive = await downloadAndExtractAsset(token, asset, targetDir, ".temp-factory-download");
|
|
4272
4258
|
const extractedEntries = (0, import_fs7.readdirSync)(archive.extractedRoot);
|
|
4273
|
-
const extractedFolder = extractedEntries.find((e) => e.toLowerCase() ===
|
|
4259
|
+
const extractedFolder = extractedEntries.find((e) => e.toLowerCase() === FACTORY_ROOT_FOLDER.toLowerCase());
|
|
4274
4260
|
if (!extractedFolder) {
|
|
4275
|
-
result.failureReason = `No ${
|
|
4261
|
+
result.failureReason = `No ${FACTORY_ROOT_FOLDER}/ folder in archive`;
|
|
4276
4262
|
return result;
|
|
4277
4263
|
}
|
|
4278
4264
|
const extractedPath = (0, import_path7.join)(archive.extractedRoot, extractedFolder);
|