@codemieai/code 0.0.36 → 0.0.38
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/README.md +33 -0
- package/dist/agents/codemie-code/tools/assistant-invocation.d.ts.map +1 -1
- package/dist/agents/codemie-code/tools/assistant-invocation.js +2 -2
- package/dist/agents/codemie-code/tools/assistant-invocation.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +23 -9
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/extension/BaseExtensionInstaller.d.ts.map +1 -1
- package/dist/agents/core/extension/BaseExtensionInstaller.js +11 -4
- package/dist/agents/core/extension/BaseExtensionInstaller.js.map +1 -1
- package/dist/agents/core/session/BaseProcessor.d.ts +22 -1
- package/dist/agents/core/session/BaseProcessor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude-acp.plugin.d.ts +5 -0
- package/dist/agents/plugins/claude/claude-acp.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude-acp.plugin.js +12 -2
- package/dist/agents/plugins/claude/claude-acp.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.d.ts +11 -0
- package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.js +59 -2
- package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/claude.session.d.ts +5 -0
- package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.session.js +101 -2
- package/dist/agents/plugins/claude/claude.session.js.map +1 -1
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/agents/plugins/claude/plugin/commands/README.md +103 -22
- package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +329 -18
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts +0 -1
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +13 -19
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +29 -4
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -1
- package/dist/cli/commands/assistants/chat.js +9 -6
- package/dist/cli/commands/assistants/chat.js.map +1 -1
- package/dist/cli/commands/assistants/constants.d.ts +2 -6
- package/dist/cli/commands/assistants/constants.d.ts.map +1 -1
- package/dist/cli/commands/assistants/constants.js +2 -5
- package/dist/cli/commands/assistants/constants.js.map +1 -1
- package/dist/cli/commands/assistants/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/index.js +1 -11
- package/dist/cli/commands/assistants/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/configuration/actions.d.ts +30 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.js +63 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.d.ts +49 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.js +56 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/index.d.ts +9 -0
- package/dist/cli/commands/assistants/setup/configuration/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/index.js +8 -0
- package/dist/cli/commands/assistants/setup/configuration/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.js +94 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/types.d.ts +22 -0
- package/dist/cli/commands/assistants/setup/configuration/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/types.js +2 -0
- package/dist/cli/commands/assistants/setup/configuration/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.d.ts +9 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.js +86 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/constants.d.ts +26 -0
- package/dist/cli/commands/assistants/setup/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/constants.js +21 -0
- package/dist/cli/commands/assistants/setup/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/data.d.ts +30 -0
- package/dist/cli/commands/assistants/setup/data.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/data.js +125 -0
- package/dist/cli/commands/assistants/setup/data.js.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.js +6 -2
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +94 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/helpers.d.ts +27 -0
- package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/helpers.js +94 -0
- package/dist/cli/commands/assistants/setup/helpers.js.map +1 -0
- package/dist/cli/commands/assistants/setup/index.d.ts +17 -0
- package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/index.js +193 -0
- package/dist/cli/commands/assistants/setup/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts +47 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js +140 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts +56 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js +61 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.js +48 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts +6 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js +90 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +37 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.js +2 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts +6 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +103 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts +31 -0
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/actions.js +321 -0
- package/dist/cli/commands/assistants/setup/selection/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts +79 -0
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/constants.js +90 -0
- package/dist/cli/commands/assistants/setup/selection/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/index.d.ts +25 -0
- package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/index.js +127 -0
- package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts +20 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +328 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/types.d.ts +27 -0
- package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/types.js +2 -0
- package/dist/cli/commands/assistants/setup/selection/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts +11 -0
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/ui.js +189 -0
- package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/utils.d.ts +36 -0
- package/dist/cli/commands/assistants/setup/selection/utils.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/utils.js +55 -0
- package/dist/cli/commands/assistants/setup/selection/utils.js.map +1 -0
- package/dist/cli/commands/assistants/setup/summary/index.d.ts +16 -0
- package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/summary/index.js +48 -0
- package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -0
- package/dist/cli/commands/hook.d.ts +72 -0
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +290 -110
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/log/cleaner.d.ts +37 -0
- package/dist/cli/commands/log/cleaner.d.ts.map +1 -0
- package/dist/cli/commands/log/cleaner.js +218 -0
- package/dist/cli/commands/log/cleaner.js.map +1 -0
- package/dist/cli/commands/log/filter.d.ts +55 -0
- package/dist/cli/commands/log/filter.d.ts.map +1 -0
- package/dist/cli/commands/log/filter.js +128 -0
- package/dist/cli/commands/log/filter.js.map +1 -0
- package/dist/cli/commands/log/follower.d.ts +36 -0
- package/dist/cli/commands/log/follower.d.ts.map +1 -0
- package/dist/cli/commands/log/follower.js +151 -0
- package/dist/cli/commands/log/follower.js.map +1 -0
- package/dist/cli/commands/log/formatter.d.ts +76 -0
- package/dist/cli/commands/log/formatter.d.ts.map +1 -0
- package/dist/cli/commands/log/formatter.js +261 -0
- package/dist/cli/commands/log/formatter.js.map +1 -0
- package/dist/cli/commands/log/index.d.ts +6 -0
- package/dist/cli/commands/log/index.d.ts.map +1 -0
- package/dist/cli/commands/log/index.js +400 -0
- package/dist/cli/commands/log/index.js.map +1 -0
- package/dist/cli/commands/log/parser.d.ts +20 -0
- package/dist/cli/commands/log/parser.d.ts.map +1 -0
- package/dist/cli/commands/log/parser.js +111 -0
- package/dist/cli/commands/log/parser.js.map +1 -0
- package/dist/cli/commands/log/reader.d.ts +66 -0
- package/dist/cli/commands/log/reader.d.ts.map +1 -0
- package/dist/cli/commands/log/reader.js +364 -0
- package/dist/cli/commands/log/reader.js.map +1 -0
- package/dist/cli/commands/log/types.d.ts +100 -0
- package/dist/cli/commands/log/types.d.ts.map +1 -0
- package/dist/cli/commands/log/types.js +5 -0
- package/dist/cli/commands/log/types.js.map +1 -0
- package/dist/cli/commands/profile/display.d.ts +1 -0
- package/dist/cli/commands/profile/display.d.ts.map +1 -1
- package/dist/cli/commands/profile/display.js +10 -2
- package/dist/cli/commands/profile/display.js.map +1 -1
- package/dist/cli/commands/profile/index.js +58 -22
- package/dist/cli/commands/profile/index.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +143 -24
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +10 -1
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts +5 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.js +102 -3
- package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js +25 -48
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +8 -34
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
- package/dist/utils/config.d.ts +35 -8
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +243 -33
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/logger.d.ts +8 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +42 -0
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/native-installer.d.ts +1 -0
- package/dist/utils/native-installer.d.ts.map +1 -1
- package/dist/utils/native-installer.js +21 -7
- package/dist/utils/native-installer.js.map +1 -1
- package/package.json +2 -2
- package/dist/agents/plugins/claude/plugin/commands/memory-add.md +0 -325
- package/dist/agents/plugins/claude/plugin/commands/memory-init.md +0 -18
- package/dist/cli/commands/assistants/generators/claude-agent-generator.d.ts.map +0 -1
- package/dist/cli/commands/assistants/generators/claude-agent-generator.js.map +0 -1
- package/dist/cli/commands/assistants/list.d.ts +0 -11
- package/dist/cli/commands/assistants/list.d.ts.map +0 -1
- package/dist/cli/commands/assistants/list.js +0 -323
- package/dist/cli/commands/assistants/list.js.map +0 -1
- /package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.d.ts +0 -0
|
@@ -80,7 +80,7 @@ function buildInstallerCommand(agentName, installerUrls, version, platform, inst
|
|
|
80
80
|
* Verify installation by running the verify command
|
|
81
81
|
* On Windows, retries with backoff to allow PATH updates to propagate
|
|
82
82
|
*
|
|
83
|
-
* @param verifyCommand - Command to verify (e.g., 'claude')
|
|
83
|
+
* @param verifyCommand - Command to verify (e.g., 'claude' or '/path/to/claude')
|
|
84
84
|
* @param retries - Number of retry attempts (default: 3 on Windows, 1 on Unix)
|
|
85
85
|
* @returns Installed version string or null if verification failed
|
|
86
86
|
*/
|
|
@@ -93,8 +93,11 @@ async function verifyInstallation(verifyCommand, retries) {
|
|
|
93
93
|
try {
|
|
94
94
|
logger.debug(`Verifying installation (attempt ${attempt}/${maxRetries})`, { command: verifyCommand });
|
|
95
95
|
// Run version check command (e.g., 'claude --version')
|
|
96
|
+
// If verifyCommand is a path, use shell to resolve ~ and execute
|
|
97
|
+
const useShell = verifyCommand.includes('/') || verifyCommand.includes('\\');
|
|
96
98
|
const result = await exec(verifyCommand, ['--version'], {
|
|
97
99
|
timeout: 5000, // 5 second timeout for version check
|
|
100
|
+
shell: useShell, // Use shell for path-based commands to resolve ~
|
|
98
101
|
});
|
|
99
102
|
if (result.code === 0 && result.stdout) {
|
|
100
103
|
// Parse version from output (usually first line, may have 'v' prefix)
|
|
@@ -215,21 +218,27 @@ export async function installNativeAgent(agentName, installerUrls, version, opti
|
|
|
215
218
|
}
|
|
216
219
|
// Verify installation if verify command provided
|
|
217
220
|
let installedVersion = null;
|
|
218
|
-
if (options?.verifyCommand) {
|
|
221
|
+
if (options?.verifyCommand || options?.verifyPath) {
|
|
222
|
+
// Prefer verifyPath (full path) over verifyCommand (PATH-based)
|
|
223
|
+
// This avoids PATH refresh issues on macOS/Linux
|
|
224
|
+
const commandToVerify = options?.verifyPath || options.verifyCommand;
|
|
219
225
|
logger.debug('Verifying installation', {
|
|
220
226
|
agentName,
|
|
221
|
-
verifyCommand:
|
|
227
|
+
verifyCommand: commandToVerify,
|
|
228
|
+
usingFullPath: !!options?.verifyPath,
|
|
222
229
|
});
|
|
223
|
-
installedVersion = await verifyInstallation(
|
|
230
|
+
installedVersion = await verifyInstallation(commandToVerify);
|
|
224
231
|
if (!installedVersion) {
|
|
225
232
|
// Add platform-specific context for troubleshooting
|
|
226
233
|
const isWindows = platform === 'windows';
|
|
227
234
|
const troubleshootingHint = isWindows
|
|
228
235
|
? 'Restart your terminal to refresh PATH. The installation directory was automatically added to your PATH.'
|
|
229
|
-
:
|
|
236
|
+
: options?.verifyPath
|
|
237
|
+
? `Binary exists at ${options.verifyPath} but failed to execute. Check permissions: chmod +x ${options.verifyPath}`
|
|
238
|
+
: 'Verify that the command is in your PATH.';
|
|
230
239
|
logger.warn('Installation verification failed', {
|
|
231
240
|
agentName,
|
|
232
|
-
verifyCommand:
|
|
241
|
+
verifyCommand: commandToVerify,
|
|
233
242
|
platform,
|
|
234
243
|
hint: troubleshootingHint,
|
|
235
244
|
});
|
|
@@ -244,8 +253,13 @@ export async function installNativeAgent(agentName, installerUrls, version, opti
|
|
|
244
253
|
// SECURITY: Sanitize output before returning
|
|
245
254
|
// Prevents exposure of sensitive data in logs or UI
|
|
246
255
|
const sanitizedOutput = sanitizeValue(result.stdout || result.stderr || '');
|
|
256
|
+
// If verification was enabled and failed, mark installation as unsuccessful
|
|
257
|
+
// This ensures that failed verifications are properly reported to the user
|
|
258
|
+
const verificationEnabled = !!options?.verifyCommand;
|
|
259
|
+
const verificationPassed = !!installedVersion;
|
|
260
|
+
const installSuccess = verificationEnabled ? verificationPassed : true;
|
|
247
261
|
return {
|
|
248
|
-
success:
|
|
262
|
+
success: installSuccess,
|
|
249
263
|
installedVersion,
|
|
250
264
|
output: sanitizedOutput,
|
|
251
265
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-installer.js","sourceRoot":"","sources":["../../src/utils/native-installer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"native-installer.js","sourceRoot":"","sources":["../../src/utils/native-installer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AA+BxD;;;GAGG;AACH,SA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1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemieai/code",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"description": "Unified AI coding assistant CLI - Manage Claude Code, Gemini & custom agents. Multi-provider support (OpenAI, Azure, LiteLLM, SSO). Built-in LangGraph agent with file operations & git integration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@langchain/openai": "^1.1.0",
|
|
113
113
|
"chalk": "^5.3.0",
|
|
114
114
|
"cli-table3": "^0.6.5",
|
|
115
|
-
"codemie-sdk": "^0.1.
|
|
115
|
+
"codemie-sdk": "^0.1.330",
|
|
116
116
|
"commander": "^11.1.0",
|
|
117
117
|
"cors": "^2.8.5",
|
|
118
118
|
"dedent": "^1.7.1",
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
# Add New Knowledge to Project Documentation
|
|
2
|
-
|
|
3
|
-
**Purpose**: Capture important learnings from the current session that should persist for future work.
|
|
4
|
-
|
|
5
|
-
**Context**: You manage persistent memory using documentation systems. Common approaches:
|
|
6
|
-
- **CLAUDE.md files** - Project-specific context loaded recursively from working directory
|
|
7
|
-
- **Structured guides** - Organized documentation by topic/category (if present)
|
|
8
|
-
- **README/docs** - Traditional documentation files
|
|
9
|
-
|
|
10
|
-
Projects may use any combination of these systems or none at all.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
## Additional user's input
|
|
14
|
-
Additional context/input from user: $ARGUMENTS. Might be empty by default.
|
|
15
|
-
|
|
16
|
-
## When to Add Documentation
|
|
17
|
-
|
|
18
|
-
**✅ DO add documentation when**:
|
|
19
|
-
- You learned something **non-obvious** about the project
|
|
20
|
-
- User corrected a **pattern or approach** you used
|
|
21
|
-
- You struggled to find critical information that should be documented
|
|
22
|
-
- You discovered an important **architectural decision** or **gotcha**
|
|
23
|
-
- User provided context about "**why**" something is done a certain way
|
|
24
|
-
- You had to infer important details that aren't clear from code alone
|
|
25
|
-
- A pattern contradicts common conventions for this language/framework
|
|
26
|
-
|
|
27
|
-
**❌ DON'T add documentation when**:
|
|
28
|
-
- Information is **obvious from well-written code**
|
|
29
|
-
- It's a **one-time fix** or edge case
|
|
30
|
-
- It's **implementation details** that may change frequently
|
|
31
|
-
- User just made a **typo correction** or minor fix
|
|
32
|
-
- Information already exists in documentation
|
|
33
|
-
- It's **standard practice** (not project-specific)
|
|
34
|
-
|
|
35
|
-
**Rule of Thumb**: If you would struggle with this again in a future session without documentation, add it. If it's obvious or self-evident, skip it.
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## Step 1: Identify What You Learned
|
|
40
|
-
|
|
41
|
-
Reflect on the session:
|
|
42
|
-
|
|
43
|
-
**Documentation Triggers**:
|
|
44
|
-
- [ ] I was corrected on an implementation pattern
|
|
45
|
-
- [ ] I learned about a project-specific convention
|
|
46
|
-
- [ ] I discovered non-obvious behavior or gotcha
|
|
47
|
-
- [ ] I struggled to locate important information
|
|
48
|
-
- [ ] I learned architectural decisions or "why" behind choices
|
|
49
|
-
- [ ] I found out about critical integration points
|
|
50
|
-
- [ ] I discovered error handling or security patterns
|
|
51
|
-
- [ ] I learned testing or tooling conventions
|
|
52
|
-
- [ ] I discovered how components interact
|
|
53
|
-
|
|
54
|
-
**What specifically did I learn?**
|
|
55
|
-
- Specific pattern: _____
|
|
56
|
-
- Why it matters: _____
|
|
57
|
-
- Where it applies: _____
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## Step 2: Determine Scope
|
|
62
|
-
|
|
63
|
-
**Broad Knowledge** (affects multiple components or entire project):
|
|
64
|
-
- Architectural patterns
|
|
65
|
-
- Error handling conventions
|
|
66
|
-
- Logging patterns
|
|
67
|
-
- Security practices
|
|
68
|
-
- Testing strategies
|
|
69
|
-
- Code quality standards
|
|
70
|
-
- Build/deployment processes
|
|
71
|
-
|
|
72
|
-
→ Add to **project-wide documentation** (root CLAUDE.md, main docs, or broad guides)
|
|
73
|
-
|
|
74
|
-
**Specific Knowledge** (affects one component/module):
|
|
75
|
-
- Module-specific patterns
|
|
76
|
-
- Component integration details
|
|
77
|
-
- Directory-specific conventions
|
|
78
|
-
- Local gotchas or behaviors
|
|
79
|
-
|
|
80
|
-
→ Add to **component documentation** (component CLAUDE.md or specific doc section)
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Step 3: Find Documentation Location
|
|
85
|
-
|
|
86
|
-
**Discover existing documentation**:
|
|
87
|
-
```bash
|
|
88
|
-
# Find CLAUDE.md files
|
|
89
|
-
find . -name "CLAUDE.md" -not -path "*/node_modules/*" -not -path "*/.git/*"
|
|
90
|
-
|
|
91
|
-
# Check for documentation directories
|
|
92
|
-
ls -la docs/ documentation/ .claude/guides/ 2>/dev/null
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Decision Tree**:
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
Is knowledge broad/project-wide?
|
|
99
|
-
├─ YES → Add to root documentation
|
|
100
|
-
│ ├─ Root CLAUDE.md (if exists)
|
|
101
|
-
│ ├─ README.md or ARCHITECTURE.md
|
|
102
|
-
│ ├─ docs/ or documentation/ directory
|
|
103
|
-
│ └─ Create root CLAUDE.md if none exists
|
|
104
|
-
│
|
|
105
|
-
└─ NO (component-specific) → Add to component documentation
|
|
106
|
-
├─ Component CLAUDE.md (if exists)
|
|
107
|
-
├─ Component README.md
|
|
108
|
-
└─ Create component CLAUDE.md if appropriate
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**Common Patterns**:
|
|
112
|
-
- **Root CLAUDE.md**: Project overview, architecture, main patterns
|
|
113
|
-
- **Component CLAUDE.md**: `src/[module]/CLAUDE.md`, `lib/[feature]/CLAUDE.md`
|
|
114
|
-
- **Structured docs**: `docs/architecture.md`, `docs/development.md`, etc.
|
|
115
|
-
- **README files**: High-level overview, setup, common patterns
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## Step 4: Format the Knowledge
|
|
120
|
-
|
|
121
|
-
**For CLAUDE.md Files**:
|
|
122
|
-
|
|
123
|
-
```markdown
|
|
124
|
-
## [Topic Area or Module Name]
|
|
125
|
-
|
|
126
|
-
**[Specific Pattern/Knowledge]**:
|
|
127
|
-
- **What**: Brief description of the pattern/approach
|
|
128
|
-
- **Why**: Reason or context for this decision
|
|
129
|
-
- **Where**: Applicable locations or when to use it
|
|
130
|
-
- **Gotcha**: Non-obvious behavior (if any)
|
|
131
|
-
|
|
132
|
-
**Example** (if helpful):
|
|
133
|
-
```[language]
|
|
134
|
-
// Concise code example demonstrating pattern
|
|
135
|
-
```
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
**For Structured Documentation**:
|
|
139
|
-
|
|
140
|
-
```markdown
|
|
141
|
-
## [Pattern/Topic Name]
|
|
142
|
-
|
|
143
|
-
**Context**: When/why this pattern is used
|
|
144
|
-
|
|
145
|
-
**Pattern**:
|
|
146
|
-
[Description of the approach]
|
|
147
|
-
|
|
148
|
-
**Example**:
|
|
149
|
-
```[language]
|
|
150
|
-
// Code example demonstrating pattern
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Rationale**: Why we do it this way
|
|
154
|
-
|
|
155
|
-
**Common Pitfalls**: What to avoid
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## Step 5: Add the Documentation
|
|
161
|
-
|
|
162
|
-
**For CLAUDE.md Files**:
|
|
163
|
-
1. Open or create the appropriate CLAUDE.md file
|
|
164
|
-
2. Find relevant section or create new heading
|
|
165
|
-
3. Add knowledge in structured format
|
|
166
|
-
4. Keep it concise and scannable
|
|
167
|
-
5. Include example only if pattern isn't obvious
|
|
168
|
-
|
|
169
|
-
**For Other Documentation**:
|
|
170
|
-
1. Locate the appropriate file (README, ARCHITECTURE, etc.)
|
|
171
|
-
2. Find relevant section or create one
|
|
172
|
-
3. Add information following existing format/style
|
|
173
|
-
4. Keep consistent with rest of document
|
|
174
|
-
5. Update table of contents if applicable
|
|
175
|
-
|
|
176
|
-
**Quality Checklist**:
|
|
177
|
-
- [ ] Clearly states what the pattern/knowledge is
|
|
178
|
-
- [ ] Explains why it matters (not just what)
|
|
179
|
-
- [ ] Specific enough to be actionable
|
|
180
|
-
- [ ] Concise (no unnecessary words)
|
|
181
|
-
- [ ] Example included if pattern is non-obvious
|
|
182
|
-
- [ ] Placed in most logical location
|
|
183
|
-
- [ ] Doesn't duplicate existing documentation
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## Step 6: Cross-Reference (if applicable)
|
|
188
|
-
|
|
189
|
-
If knowledge spans multiple areas or files:
|
|
190
|
-
|
|
191
|
-
**In CLAUDE.md**:
|
|
192
|
-
```markdown
|
|
193
|
-
**Related Documentation**:
|
|
194
|
-
- See [ARCHITECTURE.md](./ARCHITECTURE.md) for system design
|
|
195
|
-
- See [src/auth/CLAUDE.md](./src/auth/CLAUDE.md) for auth patterns
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
**In structured docs**:
|
|
199
|
-
```markdown
|
|
200
|
-
**See also**:
|
|
201
|
-
- [Component Documentation](../component/CLAUDE.md)
|
|
202
|
-
- [Related Guide](./related-guide.md)
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Common Documentation Patterns
|
|
208
|
-
|
|
209
|
-
**Architectural Decisions**:
|
|
210
|
-
```markdown
|
|
211
|
-
## Architecture
|
|
212
|
-
|
|
213
|
-
**[Decision Name]**: We use [pattern/approach]
|
|
214
|
-
- **Rationale**: [Why this choice was made]
|
|
215
|
-
- **Trade-offs**: [What we gained/lost]
|
|
216
|
-
- **Alternative considered**: [What we didn't choose and why]
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
**Error Handling**:
|
|
220
|
-
```markdown
|
|
221
|
-
## Error Handling
|
|
222
|
-
|
|
223
|
-
- Use [specific error types/classes] for [scenario]
|
|
224
|
-
- Always [pattern] when [condition]
|
|
225
|
-
- Never [anti-pattern] because [reason]
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
**Testing Conventions**:
|
|
229
|
-
```markdown
|
|
230
|
-
## Testing
|
|
231
|
-
|
|
232
|
-
- Test files: [location pattern]
|
|
233
|
-
- Mocking: [approach and tools]
|
|
234
|
-
- Coverage: [requirements]
|
|
235
|
-
- Gotcha: [non-obvious testing behavior]
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**Integration Points**:
|
|
239
|
-
```markdown
|
|
240
|
-
## [External Service/Component]
|
|
241
|
-
|
|
242
|
-
- **Authentication**: [method]
|
|
243
|
-
- **Configuration**: [where/how]
|
|
244
|
-
- **Error handling**: [approach]
|
|
245
|
-
- **Gotcha**: [non-obvious behavior]
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
## Examples (Generic, adapt to your project)
|
|
251
|
-
|
|
252
|
-
**Broad Pattern → Project Documentation**:
|
|
253
|
-
```
|
|
254
|
-
Learning: "Project uses custom error classes for each failure category"
|
|
255
|
-
Location: Root CLAUDE.md or docs/development.md
|
|
256
|
-
Section: Error Handling
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
**Component-Specific → Component Documentation**:
|
|
260
|
-
```
|
|
261
|
-
Learning: "Auth module requires initialization before any API calls"
|
|
262
|
-
Location: src/auth/CLAUDE.md
|
|
263
|
-
Section: Setup and Initialization
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
**Architectural → Architecture Documentation**:
|
|
267
|
-
```
|
|
268
|
-
Learning: "System uses event-driven architecture with message queue"
|
|
269
|
-
Location: ARCHITECTURE.md or root CLAUDE.md
|
|
270
|
-
Section: System Architecture
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
**Gotcha → Relevant Documentation**:
|
|
274
|
-
```
|
|
275
|
-
Learning: "Database connections must be manually closed in serverless"
|
|
276
|
-
Location: src/database/CLAUDE.md or docs/database.md
|
|
277
|
-
Section: Connection Management
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
---
|
|
281
|
-
|
|
282
|
-
## Common Pitfalls to Avoid
|
|
283
|
-
|
|
284
|
-
**❌ Don't**:
|
|
285
|
-
- Document what's obvious from code
|
|
286
|
-
- Add every minor detail or edge case
|
|
287
|
-
- Duplicate information across multiple files
|
|
288
|
-
- Include temporary workarounds or TODOs
|
|
289
|
-
- Write exhaustive implementation details
|
|
290
|
-
- Add information that changes frequently
|
|
291
|
-
- Over-document standard language features
|
|
292
|
-
|
|
293
|
-
**✅ Do**:
|
|
294
|
-
- Focus on "why" and "gotchas"
|
|
295
|
-
- Keep it concise and actionable
|
|
296
|
-
- Place in most specific applicable location
|
|
297
|
-
- Cross-reference related documentation
|
|
298
|
-
- Update existing docs rather than creating new files
|
|
299
|
-
- Validate information is still accurate before adding
|
|
300
|
-
- Document decisions and trade-offs
|
|
301
|
-
|
|
302
|
-
---
|
|
303
|
-
|
|
304
|
-
## Quick Decision Guide
|
|
305
|
-
|
|
306
|
-
**Question Flow**:
|
|
307
|
-
1. Is this **non-obvious** and **worth remembering**?
|
|
308
|
-
→ NO: Skip
|
|
309
|
-
2. Is it **broad/reusable** across components?
|
|
310
|
-
→ YES: Add to project-wide docs
|
|
311
|
-
3. Is it **component-specific**?
|
|
312
|
-
→ YES: Add to component docs
|
|
313
|
-
4. Does it **already exist** in documentation?
|
|
314
|
-
→ YES: Update if outdated, skip if accurate
|
|
315
|
-
5. Will I **struggle without** this in future sessions?
|
|
316
|
-
→ YES: Add it / NO: Skip
|
|
317
|
-
|
|
318
|
-
**File Selection**:
|
|
319
|
-
- **Project pattern** → Root CLAUDE.md, README, or main docs
|
|
320
|
-
- **Component behavior** → Component CLAUDE.md or README
|
|
321
|
-
- **Architecture** → ARCHITECTURE.md or root CLAUDE.md
|
|
322
|
-
- **Setup/workflow** → README.md or CONTRIBUTING.md
|
|
323
|
-
- **API patterns** → Relevant component or API docs
|
|
324
|
-
|
|
325
|
-
**Remember**: Less documentation that's accurate and maintained is better than comprehensive documentation that becomes stale. Focus on capturing **critical, non-obvious knowledge** that helps future work.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Initialize Memory Documentation for Directory
|
|
2
|
-
|
|
3
|
-
**Instructions:**
|
|
4
|
-
|
|
5
|
-
Focus on the specified directory $ARGUMENTS or the current working directory:
|
|
6
|
-
|
|
7
|
-
1. **Investigate Architecture**: Analyze the implementation principles and architecture of the code in this directory and its subdirectories. Look for:
|
|
8
|
-
- Design patterns being used
|
|
9
|
-
- Dependencies and their purposes
|
|
10
|
-
- Key abstractions and interfaces
|
|
11
|
-
- Naming conventions and code organization
|
|
12
|
-
|
|
13
|
-
2. **Create or Update Documentation**: Create a CLAUDE.md file capturing this knowledge. If one already exists, update it with newly discovered information. Include:
|
|
14
|
-
- Purpose and responsibility of this module
|
|
15
|
-
- Key architectural decisions
|
|
16
|
-
- Important implementation details
|
|
17
|
-
- Common patterns used throughout the code
|
|
18
|
-
- Any gotchas or non-obvious behaviors
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claude-agent-generator.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/generators/claude-agent-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAWzE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAmCxE;AAWD;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBhF;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAe1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"claude-agent-generator.js","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/generators/claude-agent-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAAC,SAAoB;IAC/D,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,iBAAiB,SAAS,CAAC,IAAI,EAAE,CAAC;IAE/E,OAAO,MAAM,CAAC;;YAEJ,SAAS,CAAC,IAAI;mBACP,WAAW;;;;GAI3B,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,SAAoB;IAC9D,MAAM,QAAQ,GAAG,4BAA4B,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,iBAAiB,SAAS,CAAC,IAAI,EAAE,CAAC;IAE/E,OAAO,MAAM,CAAC;MACV,QAAQ;;QAEN,SAAS,CAAC,IAAI;;MAEhB,WAAW;;;;;;;;;kCASiB,SAAS,CAAC,EAAE;;;;+GAIiE,SAAS,CAAC,IAAI;;;;;;;;+BAQ9F,SAAS,CAAC,EAAE;;;;GAIxC,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAAC,IAAY;IACvC,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,GAAG,IAAI,KAAK,CAAC;IAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,QA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}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List Assistants Command
|
|
3
|
-
*
|
|
4
|
-
* Unified command to view, register, and unregister CodeMie assistants
|
|
5
|
-
*/
|
|
6
|
-
import { Command } from 'commander';
|
|
7
|
-
/**
|
|
8
|
-
* Create assistants list command
|
|
9
|
-
*/
|
|
10
|
-
export declare function createAssistantsListCommand(): Command;
|
|
11
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/assistants/list.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgCpC;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAsBrD"}
|