erosolar-cli 1.7.56 → 1.7.57

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.
@@ -0,0 +1,26 @@
1
+ import { Readline } from 'readline/promises';
2
+ export type DisplayFormat = 'inline' | 'block' | 'paste-chip';
3
+ export interface ProcessedInput {
4
+ content: string;
5
+ isMultiLine: boolean;
6
+ displayFormat: DisplayFormat;
7
+ lineCount: number;
8
+ summary?: string;
9
+ }
10
+ export declare class UnifiedInputProcessor {
11
+ private rl;
12
+ constructor(rl: Readline);
13
+ /**
14
+ * Process input and determine how it should be displayed
15
+ */
16
+ processInput(input: string): ProcessedInput;
17
+ /**
18
+ * Format processed input for display in the terminal
19
+ */
20
+ formatForDisplay(processed: ProcessedInput): string;
21
+ /**
22
+ * Get the full content to send (always the original content)
23
+ */
24
+ getContentToSend(processed: ProcessedInput): string;
25
+ }
26
+ //# sourceMappingURL=unifiedInputProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unifiedInputProcessor.d.ts","sourceRoot":"","sources":["../../src/shell/unifiedInputProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,qBAAqB;IAChC,OAAO,CAAC,EAAE,CAAW;gBAET,EAAE,EAAE,QAAQ;IAIxB;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc;IAgC3C;;OAEG;IACH,gBAAgB,CAAC,SAAS,EAAE,cAAc,GAAG,MAAM;IAmBnD;;OAEG;IACH,gBAAgB,CAAC,SAAS,EAAE,cAAc,GAAG,MAAM;CAGpD"}
@@ -0,0 +1,65 @@
1
+ export class UnifiedInputProcessor {
2
+ rl;
3
+ constructor(rl) {
4
+ this.rl = rl;
5
+ }
6
+ /**
7
+ * Process input and determine how it should be displayed
8
+ */
9
+ processInput(input) {
10
+ const lines = input.split('\n');
11
+ const lineCount = lines.length;
12
+ const isMultiLine = lineCount > 1;
13
+ let displayFormat;
14
+ let summary;
15
+ if (lineCount <= 1) {
16
+ // Single line - inline display
17
+ displayFormat = 'inline';
18
+ }
19
+ else if (lineCount <= 3) {
20
+ // 2-3 lines - inline with newline indicators
21
+ displayFormat = 'inline';
22
+ }
23
+ else if (lineCount <= 10) {
24
+ // 4-10 lines - block display
25
+ displayFormat = 'block';
26
+ }
27
+ else {
28
+ // More than 10 lines - paste chip with summary
29
+ displayFormat = 'paste-chip';
30
+ summary = `[Pasted ${lineCount} lines]: ${lines[0]}`;
31
+ }
32
+ return {
33
+ content: input,
34
+ isMultiLine,
35
+ displayFormat,
36
+ lineCount,
37
+ summary,
38
+ };
39
+ }
40
+ /**
41
+ * Format processed input for display in the terminal
42
+ */
43
+ formatForDisplay(processed) {
44
+ switch (processed.displayFormat) {
45
+ case 'inline':
46
+ // Replace newlines with ↵ symbol for inline display
47
+ return processed.content.split('\n').join(' ↵ ');
48
+ case 'block':
49
+ // Show full content as-is for block display
50
+ return processed.content;
51
+ case 'paste-chip':
52
+ // Show summary for large pastes
53
+ return processed.summary || `[Pasted ${processed.lineCount} lines]`;
54
+ default:
55
+ return processed.content;
56
+ }
57
+ }
58
+ /**
59
+ * Get the full content to send (always the original content)
60
+ */
61
+ getContentToSend(processed) {
62
+ return processed.content;
63
+ }
64
+ }
65
+ //# sourceMappingURL=unifiedInputProcessor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unifiedInputProcessor.js","sourceRoot":"","sources":["../../src/shell/unifiedInputProcessor.ts"],"names":[],"mappings":"AAYA,M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C,OAAO,SAAS,CAAC,OAAO,IAAI,WAAW,SAAS,CAAC,SAAS,SAAS,CAAC;YAEtE;gBACE,OAAO,SAAS,CAAC,OAAO,CAAC;QAC7B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,gBAAgB,CAAC,SAAyB;QACxC,OAAO,SAAS,CAAC,OAAO,CAAC;IAC3B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erosolar-cli",
3
- "version": "1.7.56",
3
+ "version": "1.7.57",
4
4
  "description": "Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning",
5
5
  "main": "dist/bin/erosolar-optimized.js",
6
6
  "type": "module",
@@ -25,9 +25,9 @@
25
25
  "config/security-deployment.json"
26
26
  ],
27
27
  "bin": {
28
- "erosolar-ts": "dist/bin/erosolar-optimized.js",
29
- "erosolar-cli": "dist/bin/erosolar-optimized.js",
30
- "erosolar": "dist/bin/erosolar-optimized.js"
28
+ "erosolar-ts": "dist/bin/erosolar.js",
29
+ "erosolar-cli": "dist/bin/erosolar.js",
30
+ "erosolar": "dist/bin/erosolar.js"
31
31
  },
32
32
  "scripts": {
33
33
  "preinstall": "node scripts/preinstall-clean-bins.mjs",