neoctl 0.2.11 → 0.2.13

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 (82) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/repl/index.js +3130 -314
  5. package/dist/repl/index.js.map +1 -1
  6. package/dist/session/tool-result-memory.js +58 -0
  7. package/dist/session/tool-result-memory.js.map +1 -1
  8. package/dist/tools/builtins/image-note-tool.js +1 -5
  9. package/dist/tools/builtins/image-note-tool.js.map +1 -1
  10. package/dist/web/html.js +8 -14
  11. package/dist/web/html.js.map +1 -1
  12. package/dist/web/index.d.ts +0 -5
  13. package/dist/web/index.js +5 -41
  14. package/dist/web/index.js.map +1 -1
  15. package/package.json +3 -1
  16. package/scripts/install-ripgrep.cjs +196 -196
  17. package/scripts/release-local.mjs +148 -0
  18. package/vendor/ripgrep/darwin-arm64/COPYING +3 -3
  19. package/vendor/ripgrep/darwin-arm64/LICENSE-MIT +21 -21
  20. package/vendor/ripgrep/darwin-arm64/UNLICENSE +24 -24
  21. package/vendor/ripgrep/darwin-arm64/manifest.json +7 -7
  22. package/vendor/ripgrep/darwin-x64/COPYING +3 -3
  23. package/vendor/ripgrep/darwin-x64/LICENSE-MIT +21 -21
  24. package/vendor/ripgrep/darwin-x64/UNLICENSE +24 -24
  25. package/vendor/ripgrep/darwin-x64/manifest.json +7 -7
  26. package/vendor/ripgrep/linux-arm64/COPYING +3 -3
  27. package/vendor/ripgrep/linux-arm64/LICENSE-MIT +21 -21
  28. package/vendor/ripgrep/linux-arm64/UNLICENSE +24 -24
  29. package/vendor/ripgrep/linux-arm64/manifest.json +7 -7
  30. package/vendor/ripgrep/linux-x64/COPYING +3 -3
  31. package/vendor/ripgrep/linux-x64/LICENSE-MIT +21 -21
  32. package/vendor/ripgrep/linux-x64/UNLICENSE +24 -24
  33. package/vendor/ripgrep/linux-x64/manifest.json +7 -7
  34. package/vendor/ripgrep/win32-arm64/manifest.json +7 -7
  35. package/dist/repl/browser.d.ts +0 -232
  36. package/dist/repl/browser.js +0 -156
  37. package/dist/repl/browser.js.map +0 -1
  38. package/dist/repl/env-file.d.ts +0 -4
  39. package/dist/repl/env-file.js +0 -97
  40. package/dist/repl/env-file.js.map +0 -1
  41. package/dist/repl/foreground-exec.d.ts +0 -10
  42. package/dist/repl/foreground-exec.js +0 -34
  43. package/dist/repl/foreground-exec.js.map +0 -1
  44. package/dist/repl/login-view.d.ts +0 -75
  45. package/dist/repl/login-view.js +0 -38
  46. package/dist/repl/login-view.js.map +0 -1
  47. package/dist/repl/login.d.ts +0 -14
  48. package/dist/repl/login.js +0 -165
  49. package/dist/repl/login.js.map +0 -1
  50. package/dist/repl/message-rendering.d.ts +0 -99
  51. package/dist/repl/message-rendering.js +0 -476
  52. package/dist/repl/message-rendering.js.map +0 -1
  53. package/dist/repl/prompt-payload.d.ts +0 -9
  54. package/dist/repl/prompt-payload.js +0 -64
  55. package/dist/repl/prompt-payload.js.map +0 -1
  56. package/dist/repl/prompt-view.d.ts +0 -235
  57. package/dist/repl/prompt-view.js +0 -184
  58. package/dist/repl/prompt-view.js.map +0 -1
  59. package/dist/repl/repl-types.d.ts +0 -88
  60. package/dist/repl/repl-types.js +0 -2
  61. package/dist/repl/repl-types.js.map +0 -1
  62. package/dist/repl/runtime.d.ts +0 -33
  63. package/dist/repl/runtime.js +0 -202
  64. package/dist/repl/runtime.js.map +0 -1
  65. package/dist/repl/slash-completion.d.ts +0 -28
  66. package/dist/repl/slash-completion.js +0 -287
  67. package/dist/repl/slash-completion.js.map +0 -1
  68. package/dist/repl/status-panel.d.ts +0 -234
  69. package/dist/repl/status-panel.js +0 -509
  70. package/dist/repl/status-panel.js.map +0 -1
  71. package/dist/repl/terminal.d.ts +0 -19
  72. package/dist/repl/terminal.js +0 -81
  73. package/dist/repl/terminal.js.map +0 -1
  74. package/dist/repl/tool-rendering.d.ts +0 -6
  75. package/dist/repl/tool-rendering.js +0 -502
  76. package/dist/repl/tool-rendering.js.map +0 -1
  77. package/dist/repl/usage.d.ts +0 -17
  78. package/dist/repl/usage.js +0 -57
  79. package/dist/repl/usage.js.map +0 -1
  80. package/dist/tips.d.ts +0 -10
  81. package/dist/tips.js +0 -168
  82. package/dist/tips.js.map +0 -1
package/dist/tips.js DELETED
@@ -1,168 +0,0 @@
1
- export const appTips = [
2
- {
3
- id: "ask-directly",
4
- title: "Describe the goal directly",
5
- placeholder: "Tip: Type the task you want done, e.g. “summarize this project structure”",
6
- detail: "You can describe goals, constraints, and expected output in plain language. More specific requests usually produce better results.",
7
- },
8
- {
9
- id: "slash-help",
10
- title: "View commands",
11
- placeholder: "Tip: Type /help to see available commands",
12
- detail: "Use /help to list built-in commands and their usage.",
13
- },
14
- {
15
- id: "slash-completion",
16
- title: "Complete slash commands",
17
- placeholder: "Tip: Type /, use ↑/↓ to select, and Tab to complete",
18
- detail: "Slash commands show completions as you type. Use arrow keys to select, Tab to complete, and Enter to run.",
19
- },
20
- {
21
- id: "history",
22
- title: "Reuse previous input",
23
- placeholder: "Tip: Press ↑ on an empty prompt to recall previous input",
24
- detail: "Use ↑/↓ to browse input history so you can quickly retry or edit earlier prompts.",
25
- },
26
- {
27
- id: "interrupt",
28
- title: "Interrupt or exit",
29
- placeholder: "Tip: Ctrl+C clears input or interrupts work; press again on empty input to exit",
30
- detail: "Ctrl+C clears non-empty input, requests interruption while work is running, and exits after a second press on an empty prompt.",
31
- },
32
- {
33
- id: "interrupt-next",
34
- title: "Interrupt and send the next message",
35
- placeholder: "Tip: You can type while the assistant is busy; Enter interrupts it and sends the next message",
36
- detail: "When foreground work is running, submit another prompt to stop the current model/tool run and start the new prompt immediately. Background tasks and detached sessions keep running.",
37
- },
38
- {
39
- id: "paste",
40
- title: "Paste content",
41
- placeholder: "Tip: Paste text directly; long text may be folded into an attachment reference",
42
- detail: "Short pasted text is inserted directly. Longer pasted text can be folded into a [text_...] reference and sent with your message.",
43
- },
44
- {
45
- id: "image-paste",
46
- title: "Paste images",
47
- placeholder: "Tip: With vision-capable models, paste screenshots and use load_image to inspect them later as [img#1]",
48
- detail: "If the current model supports image input, you can paste images or screenshots from the clipboard and submit them with your prompt.",
49
- },
50
- {
51
- id: "sessions",
52
- title: "Resume sessions",
53
- placeholder: "Tip: Type /sessions to browse and resume saved sessions",
54
- detail: "Use /sessions to open saved sessions and continue working with previous context.",
55
- },
56
- {
57
- id: "model",
58
- title: "Switch models",
59
- placeholder: "Tip: Type /model to view or switch model and reasoning effort",
60
- detail: "Use /model to inspect the current model, or pass a model id and reasoning effort such as /model gpt-5 high.",
61
- },
62
- {
63
- id: "compact",
64
- title: "Compact long context",
65
- placeholder: "Tip: Use /compact in long sessions to compress earlier context",
66
- detail: "Manual compaction preserves important context while reducing pressure on the model context window.",
67
- },
68
- {
69
- id: "pure",
70
- title: "Clean up after blocks",
71
- placeholder: "Tip: If an upstream WAF or risk block occurs, try /pure to sanitize context",
72
- detail: "/pure performs a more conservative context cleanup that can help recover after upstream safety or WAF blocks.",
73
- },
74
- {
75
- id: "export",
76
- title: "Export a transcript",
77
- placeholder: "Tip: Type /export <absolute-path.md> to export the current transcript",
78
- detail: "Use /export to save the current session as Markdown for review, sharing, or archiving.",
79
- },
80
- {
81
- id: "cost",
82
- title: "Check usage",
83
- placeholder: "Tip: Type /cost to show token usage for this REPL session",
84
- detail: "/cost displays accumulated request and token usage for the current session.",
85
- },
86
- {
87
- id: "state",
88
- title: "Inspect runtime state",
89
- placeholder: "Tip: Type /state to inspect engine state for troubleshooting",
90
- detail: "/state shows query engine state and is useful when debugging configuration, context, or runtime behavior.",
91
- },
92
- {
93
- id: "login",
94
- title: "Configure providers",
95
- placeholder: "Tip: Type /login to configure and save a model provider",
96
- detail: "Use /login when setting up the app for the first time or switching provider credentials.",
97
- },
98
- {
99
- id: "logs",
100
- title: "Enable communication logs",
101
- placeholder: "Tip: Use /log <directory> to capture model communication logs",
102
- detail: "Use /log with an absolute directory to write model communication logs; use /log off to disable them.",
103
- },
104
- {
105
- id: "plan",
106
- title: "Ask for a plan",
107
- placeholder: "Tip: For complex work, ask the assistant to plan first and verify each step",
108
- detail: "For multi-step engineering tasks, ask for a short plan, incremental edits, and concrete validation at the end.",
109
- },
110
- {
111
- id: "constraints",
112
- title: "State constraints",
113
- placeholder: "Tip: Add constraints like “do not change public APIs” or “only edit src/web”",
114
- detail: "Mention scope, style, compatibility, and things to avoid up front to reduce rework.",
115
- },
116
- {
117
- id: "validation",
118
- title: "Request validation",
119
- placeholder: "Tip: Ask to run npm test, typecheck, or a project-specific command after changes",
120
- detail: "If you know the right validation command, include it in the request so the assistant can verify the work precisely.",
121
- },
122
- {
123
- id: "reset",
124
- title: "Start fresh",
125
- placeholder: "Tip: Type /reset to clear the current transcript without leaving the REPL",
126
- detail: "/reset clears the visible conversation and adds a reset marker so you can start a fresh thread in the same session.",
127
- },
128
- {
129
- id: "focus-files",
130
- title: "Point to relevant files",
131
- placeholder: "Tip: Mention exact files or symbols, e.g. “check src/repl/index.ts PromptLine”",
132
- detail: "Naming files, functions, errors, or commands helps the assistant inspect the right context first and avoid broad searches.",
133
- },
134
- {
135
- id: "review-diff",
136
- title: "Review before finishing",
137
- placeholder: "Tip: Ask to show or summarize the diff before wrapping up a change",
138
- detail: "For risky edits, ask for a diff summary or specific files changed before running validation and finalizing.",
139
- },
140
- {
141
- id: "current-docs",
142
- title: "Use current docs",
143
- placeholder: "Tip: For fast-moving APIs, ask the assistant to search the web before changing code",
144
- detail: "When behavior depends on current packages, SDKs, or service docs, request a web search so the answer is not based only on local code.",
145
- },
146
- {
147
- id: "parallel-investigation",
148
- title: "Split independent work",
149
- placeholder: "Tip: For independent checks, ask the assistant to investigate them in parallel",
150
- detail: "Independent searches, audits, or comparisons can be delegated to subagents so findings come back faster and with clearer scope.",
151
- },
152
- ];
153
- export function tipAt(index) {
154
- return appTips[positiveModulo(index, appTips.length)] ?? appTips[0];
155
- }
156
- export function initialTipIndex(seed) {
157
- let hash = 0;
158
- for (const char of seed)
159
- hash = (hash * 31 + char.charCodeAt(0)) | 0;
160
- return positiveModulo(hash, appTips.length);
161
- }
162
- export function formatTipLine(tip) {
163
- return `Tip: ${tip.title} — ${tip.detail}`;
164
- }
165
- function positiveModulo(value, modulo) {
166
- return ((value % modulo) + modulo) % modulo;
167
- }
168
- //# sourceMappingURL=tips.js.map
package/dist/tips.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"tips.js","sourceRoot":"","sources":["../src/tips.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC/B;QACE,EAAE,EAAE,cAAc;QAClB,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE,2EAA2E;QACxF,MAAM,EAAE,oIAAoI;KAC7I;IACD;QACE,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,2CAA2C;QACxD,MAAM,EAAE,sDAAsD;KAC/D;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,yBAAyB;QAChC,WAAW,EAAE,qDAAqD;QAClE,MAAM,EAAE,2GAA2G;KACpH;IACD;QACE,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,sBAAsB;QAC7B,WAAW,EAAE,0DAA0D;QACvE,MAAM,EAAE,mFAAmF;KAC5F;IACD;QACE,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,iFAAiF;QAC9F,MAAM,EAAE,gIAAgI;KACzI;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,qCAAqC;QAC5C,WAAW,EAAE,+FAA+F;QAC5G,MAAM,EAAE,sLAAsL;KAC/L;IACD;QACE,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,gFAAgF;QAC7F,MAAM,EAAE,kIAAkI;KAC3I;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,cAAc;QACrB,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