@codemieai/code 0.0.17 → 0.0.19

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.
Files changed (81) hide show
  1. package/dist/agents/core/AgentCLI.d.ts.map +1 -1
  2. package/dist/agents/core/AgentCLI.js +23 -27
  3. package/dist/agents/core/AgentCLI.js.map +1 -1
  4. package/dist/agents/core/BaseAgentAdapter.d.ts +19 -0
  5. package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
  6. package/dist/agents/core/BaseAgentAdapter.js +170 -55
  7. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  8. package/dist/agents/core/types.d.ts +3 -5
  9. package/dist/agents/core/types.d.ts.map +1 -1
  10. package/dist/agents/plugins/claude.plugin.d.ts.map +1 -1
  11. package/dist/agents/plugins/claude.plugin.js +2 -5
  12. package/dist/agents/plugins/claude.plugin.js.map +1 -1
  13. package/dist/agents/plugins/codemie-code.plugin.d.ts.map +1 -1
  14. package/dist/agents/plugins/codemie-code.plugin.js +3 -7
  15. package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
  16. package/dist/agents/plugins/codex.plugin.d.ts +4 -0
  17. package/dist/agents/plugins/codex.plugin.d.ts.map +1 -1
  18. package/dist/agents/plugins/codex.plugin.js +222 -20
  19. package/dist/agents/plugins/codex.plugin.js.map +1 -1
  20. package/dist/agents/plugins/deepagents.plugin.d.ts.map +1 -1
  21. package/dist/agents/plugins/deepagents.plugin.js +2 -5
  22. package/dist/agents/plugins/deepagents.plugin.js.map +1 -1
  23. package/dist/agents/plugins/gemini.plugin.d.ts.map +1 -1
  24. package/dist/agents/plugins/gemini.plugin.js +2 -5
  25. package/dist/agents/plugins/gemini.plugin.js.map +1 -1
  26. package/dist/cli/commands/doctor/index.d.ts.map +1 -1
  27. package/dist/cli/commands/doctor/index.js +13 -23
  28. package/dist/cli/commands/doctor/index.js.map +1 -1
  29. package/dist/metrics/sync/aggregator.d.ts +3 -2
  30. package/dist/metrics/sync/aggregator.d.ts.map +1 -1
  31. package/dist/metrics/sync/aggregator.js +28 -10
  32. package/dist/metrics/sync/aggregator.js.map +1 -1
  33. package/dist/metrics/sync/types.d.ts +1 -0
  34. package/dist/metrics/sync/types.d.ts.map +1 -1
  35. package/dist/providers/core/types.d.ts +0 -5
  36. package/dist/providers/core/types.d.ts.map +1 -1
  37. package/dist/providers/plugins/bedrock/bedrock.template.d.ts.map +1 -1
  38. package/dist/providers/plugins/bedrock/bedrock.template.js +0 -5
  39. package/dist/providers/plugins/bedrock/bedrock.template.js.map +1 -1
  40. package/dist/providers/plugins/litellm/litellm.template.d.ts.map +1 -1
  41. package/dist/providers/plugins/litellm/litellm.template.js +0 -6
  42. package/dist/providers/plugins/litellm/litellm.template.js.map +1 -1
  43. package/dist/providers/plugins/ollama/ollama.template.d.ts.map +1 -1
  44. package/dist/providers/plugins/ollama/ollama.template.js +22 -17
  45. package/dist/providers/plugins/ollama/ollama.template.js.map +1 -1
  46. package/dist/providers/plugins/sso/sso.template.d.ts.map +1 -1
  47. package/dist/providers/plugins/sso/sso.template.js +0 -5
  48. package/dist/providers/plugins/sso/sso.template.js.map +1 -1
  49. package/dist/proxy/http-client.d.ts +1 -1
  50. package/dist/proxy/http-client.d.ts.map +1 -1
  51. package/dist/proxy/http-client.js +31 -0
  52. package/dist/proxy/http-client.js.map +1 -1
  53. package/dist/proxy/plugins/logging.plugin.d.ts +9 -1
  54. package/dist/proxy/plugins/logging.plugin.d.ts.map +1 -1
  55. package/dist/proxy/plugins/logging.plugin.js +126 -26
  56. package/dist/proxy/plugins/logging.plugin.js.map +1 -1
  57. package/dist/proxy/plugins/metrics-sync.plugin.js +66 -56
  58. package/dist/proxy/plugins/metrics-sync.plugin.js.map +1 -1
  59. package/dist/proxy/plugins/sso-auth.plugin.js +7 -2
  60. package/dist/proxy/plugins/sso-auth.plugin.js.map +1 -1
  61. package/dist/proxy/types.d.ts +1 -1
  62. package/dist/utils/codemie-proxy.d.ts +3 -1
  63. package/dist/utils/codemie-proxy.d.ts.map +1 -1
  64. package/dist/utils/codemie-proxy.js +46 -8
  65. package/dist/utils/codemie-proxy.js.map +1 -1
  66. package/dist/utils/config-loader.d.ts +4 -2
  67. package/dist/utils/config-loader.d.ts.map +1 -1
  68. package/dist/utils/config-loader.js +43 -33
  69. package/dist/utils/config-loader.js.map +1 -1
  70. package/dist/utils/profile.d.ts +12 -0
  71. package/dist/utils/profile.d.ts.map +1 -0
  72. package/dist/utils/profile.js +32 -0
  73. package/dist/utils/profile.js.map +1 -0
  74. package/package.json +21 -6
  75. package/scripts/README.md +80 -0
  76. package/scripts/release.sh +267 -0
  77. package/scripts/validate-secrets.js +54 -0
  78. package/dist/utils/ascii-logo.d.ts +0 -21
  79. package/dist/utils/ascii-logo.d.ts.map +0 -1
  80. package/dist/utils/ascii-logo.js +0 -75
  81. package/dist/utils/ascii-logo.js.map +0 -1
@@ -1,75 +0,0 @@
1
- import chalk from 'chalk';
2
- import gradient from 'gradient-string';
3
- /**
4
- * CodeMie CLI ASCII Logo with aligned column layout
5
- *
6
- * Displays the AI/Run CodeMie CLI logo with configuration details
7
- */
8
- const LOGO_ASCII = `
9
- $$$$$$\\ $$$$$$\\ $$\\ $$$$$$$\\ $$\\ $$\\ $$\\ $$\\ $$$$$$\\ $$$$$$\\ $$$$$$$\\ $$$$$$$$\\ $$\\ $$\\ $$$$$$\\ $$$$$$$$\\ $$$$$$\\ $$\\ $$$$$$\\
10
- $$ __$$\\ \\_$$ _| $$ | $$ __$$\\ $$ | $$ |$$$\\ $$ | $$ __$$\\ $$ __$$\\ $$ __$$\\ $$ _____|$$$\\ $$$ |\\_$$ _|$$ _____| $$ __$$\\ $$ | \\_$$ _|
11
- $$ / $$ | $$ | $$ / $$ | $$ |$$ | $$ |$$$$\\ $$ | $$ / \\__|$$ / $$ |$$ | $$ |$$ | $$$$\\ $$$$ | $$ | $$ | $$ / \\__|$$ | $$ |
12
- $$$$$$$$ | $$ | $$ / $$$$$$$ < $$ | $$ |$$ $$\\$$ | $$ | $$ | $$ |$$ | $$ |$$$$$\\ $$\\$$\\$$ $$ | $$ | $$$$$\\ $$ | $$ | $$ |
13
- $$ __$$ | $$ | $$ / $$ __$$ |$$ | $$ |$$ \\$$$$ | $$ | $$ | $$ |$$ | $$ |$$ __| $$ \\$$$ $$ | $$ | $$ __| $$ | $$ | $$ |
14
- $$ | $$ | $$ | $$ / $$ | $$ |$$ | $$ |$$ |\\$$$ | $$ | $$\\ $$ | $$ |$$ | $$ |$$ | $$ |\\$ /$$ | $$ | $$ | $$ | $$\\ $$ | $$ |
15
- $$ | $$ |$$$$$$\\ $$ / $$ | $$ |\\$$$$$$ |$$ | \\$$ | \\$$$$$$ | $$$$$$ |$$$$$$$ |$$$$$$$$\\ $$ | \\_/ $$ |$$$$$$\\ $$$$$$$$\\ \\$$$$$$ |$$$$$$$$\\ $$$$$$\\
16
- \\__| \\__|\\______|\\__/ \\__| \\__| \\______/ \\__| \\__| \\______/ \\______/ \\_______/ \\________|\\__| \\__|\\______|\\________| \\______/ \\________|\\______|
17
- `;
18
- /**
19
- * Renders the CodeMie ASCII logo with configuration details
20
- */
21
- export function renderCodeMieLogo(config) {
22
- const codeMieGradient = gradient(['#ff00ff', '#9933ff']); // Magenta to purple
23
- // Build complete output with logo and info
24
- const outputLines = [];
25
- outputLines.push(''); // Empty line for spacing
26
- // Add ASCII logo
27
- outputLines.push(LOGO_ASCII);
28
- outputLines.push(''); // Empty line for spacing
29
- // Configuration details
30
- if (config.cliVersion) {
31
- outputLines.push(`CLI Version │ ${config.cliVersion}`);
32
- }
33
- if (config.profile) {
34
- outputLines.push(`Profile │ ${config.profile}`);
35
- }
36
- if (config.provider) {
37
- outputLines.push(`Provider │ ${config.provider}`);
38
- }
39
- if (config.model) {
40
- outputLines.push(`Model │ ${config.model}`);
41
- }
42
- if (config.agent) {
43
- outputLines.push(`Agent │ ${config.agent}`);
44
- }
45
- if (config.sessionId) {
46
- outputLines.push(`Session │ ${config.sessionId}`);
47
- }
48
- outputLines.push(''); // Empty line for spacing
49
- // Apply gradient to entire output
50
- return codeMieGradient(outputLines.join('\n'));
51
- }
52
- /**
53
- * Compact version for narrow terminals
54
- */
55
- export function renderCompactLogo(config) {
56
- const codeMieGradient = gradient(['#ff00ff', '#9933ff']);
57
- const compactAscii = `
58
- ╔════════════════════╗
59
- ║ AI/Run CodeMie ║
60
- ║ CLI ║
61
- ╚════════════════════╝`;
62
- const output = [];
63
- output.push('');
64
- output.push(codeMieGradient(compactAscii));
65
- output.push('');
66
- if (config.profile && config.provider) {
67
- output.push(chalk.white(`${config.profile} │ ${config.provider}`));
68
- }
69
- if (config.model) {
70
- output.push(chalk.white(`Model: ${config.model}`));
71
- }
72
- output.push('');
73
- return output.join('\n');
74
- }
75
- //# sourceMappingURL=ascii-logo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ascii-logo.js","sourceRoot":"","sources":["../../src/utils/ascii-logo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC;;;;GAIG;AAEH,MAAM,UAAU,GAAG;;;;;;;;;CASlB,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAOjC;IACC,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,oBAAoB;IAE9E,2CAA2C;IAC3C,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,yBAAyB;IAE/C,iBAAiB;IACjB,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,yBAAyB;IAE/C,wBAAwB;IACxB,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,WAAW,CAAC,IAAI,CAAC,kBAAkB,MAAM,CAAC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