mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
feat(install): add Kimi Code CLI install target (kimi-project adapter) (#2441)
Rebuild of #2154 on current main, following the hermes/openclaw (#2433) adapter recipe: 10-line kimi-project adapter (project kind, ./.kimi root), registry + helpers ownership, SUPPORTED_INSTALL_TARGETS + legacy-compat modules, kimi target on the 5 shared modules + .kimi in platform-configs paths, both schema enums, npm files allowlist, help text, README stub. Credit to @MoYiC6 for the original adapter design in #2154.
This commit is contained in:
parent
c837139e6c
commit
49128b5763
10 changed files with 61 additions and 9 deletions
|
|
@ -43,6 +43,7 @@ Targets:
|
|||
qwen - Install commands, agents, skills, rules, and Qwen config into ~/.qwen/
|
||||
zed - Install project settings, commands, agents, skills, and flattened rules into ./.zed/
|
||||
hermes - Install shared rules/skills/commands into ~/.hermes/
|
||||
kimi - Install shared rules/skills/commands into ./.kimi/
|
||||
openclaw - Install shared rules/skills/commands into ~/.openclaw/
|
||||
|
||||
Options:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const path = require('path');
|
|||
const { getInstallTargetAdapter, planInstallTargetScaffold } = require('./install-targets/registry');
|
||||
|
||||
const DEFAULT_REPO_ROOT = path.join(__dirname, '../..');
|
||||
const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw'];
|
||||
const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi'];
|
||||
const COMPONENT_FAMILY_PREFIXES = {
|
||||
baseline: 'baseline:',
|
||||
language: 'lang:',
|
||||
|
|
@ -87,6 +87,13 @@ const LEGACY_COMPAT_BASE_MODULE_IDS_BY_TARGET = Object.freeze({
|
|||
'platform-configs',
|
||||
'workflow-quality',
|
||||
],
|
||||
kimi: [
|
||||
'rules-core',
|
||||
'agents-core',
|
||||
'commands-core',
|
||||
'platform-configs',
|
||||
'workflow-quality',
|
||||
],
|
||||
});
|
||||
const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({
|
||||
c: 'c',
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ const PLATFORM_SOURCE_PATH_OWNERS = Object.freeze({
|
|||
'.cursor': 'cursor',
|
||||
'.gemini': 'gemini',
|
||||
'.hermes': 'hermes',
|
||||
'.kimi': 'kimi',
|
||||
'.joycode': 'joycode',
|
||||
'.opencode': 'opencode',
|
||||
'.openclaw': 'openclaw',
|
||||
|
|
|
|||
10
scripts/lib/install-targets/kimi-project.js
Normal file
10
scripts/lib/install-targets/kimi-project.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const { createInstallTargetAdapter } = require('./helpers');
|
||||
|
||||
module.exports = createInstallTargetAdapter({
|
||||
id: 'kimi-project',
|
||||
target: 'kimi',
|
||||
kind: 'project',
|
||||
rootSegments: ['.kimi'],
|
||||
installStatePathSegments: ['ecc-install-state.json'],
|
||||
nativeRootRelativePath: '.kimi',
|
||||
});
|
||||
|
|
@ -7,6 +7,7 @@ const cursorProject = require('./cursor-project');
|
|||
const geminiProject = require('./gemini-project');
|
||||
const hermesHome = require('./hermes-home');
|
||||
const joycodeProject = require('./joycode-project');
|
||||
const kimiProject = require('./kimi-project');
|
||||
const openclawHome = require('./openclaw-home');
|
||||
const opencodeHome = require('./opencode-home');
|
||||
const qwenHome = require('./qwen-home');
|
||||
|
|
@ -24,6 +25,7 @@ const ADAPTERS = Object.freeze([
|
|||
openclawHome,
|
||||
codebuddyProject,
|
||||
joycodeProject,
|
||||
kimiProject,
|
||||
qwenHome,
|
||||
zedProject,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue