mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-20 15:01:46 +02:00
21 lines
583 B
JavaScript
21 lines
583 B
JavaScript
const { createInstallTargetAdapter } = require('./helpers');
|
|
|
|
const adapter = createInstallTargetAdapter({
|
|
id: 'qwen-home',
|
|
target: 'qwen',
|
|
kind: 'home',
|
|
rootSegments: ['.qwen'],
|
|
installStatePathSegments: ['ecc-install-state.json'],
|
|
nativeRootRelativePath: '.qwen',
|
|
});
|
|
|
|
module.exports = Object.freeze({
|
|
...adapter,
|
|
planOperations(input = {}) {
|
|
return adapter.planOperations(input).map(operation =>
|
|
/^agents(?:[\\/]|$)/.test(operation.sourceRelativePath)
|
|
? { ...operation, contentTransform: 'qwen-agent-frontmatter' }
|
|
: operation);
|
|
},
|
|
});
|