@almyty/chat 1.4.0 → 1.5.1
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 +2 -2
- package/dist/commands.js +2 -2
- package/dist/components.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @almyty/chat
|
|
2
2
|
|
|
3
|
-
Interactive chat REPL for almyty agents, and the terminal client
|
|
4
|
-
|
|
3
|
+
Interactive chat REPL for almyty agents, and the terminal client a
|
|
4
|
+
**Terminal app** channel compiles. Built with
|
|
5
5
|
[ink](https://github.com/vadimdemedes/ink) (React for CLI).
|
|
6
6
|
|
|
7
7
|
## Quick start
|
package/dist/commands.js
CHANGED
|
@@ -66,7 +66,7 @@ export function continuationOf(value) {
|
|
|
66
66
|
if (!/\\$/.test(value))
|
|
67
67
|
return null;
|
|
68
68
|
// An escaped backslash at the end is a literal one, not a hinge.
|
|
69
|
-
const trailing = value.length - value.replace(
|
|
69
|
+
const trailing = value.length - value.replace(/(?<!\\)\\+$/, '').length;
|
|
70
70
|
if (trailing % 2 === 0)
|
|
71
71
|
return null;
|
|
72
72
|
return value.slice(0, -1);
|
|
@@ -80,7 +80,7 @@ export function continuationOf(value) {
|
|
|
80
80
|
* command. Newlines inside a submitted value are content.
|
|
81
81
|
*/
|
|
82
82
|
export function joinSubmission(lines) {
|
|
83
|
-
return lines.join('\n').replace(
|
|
83
|
+
return lines.join('\n').replace(/(?<!\s)\s+$/, '');
|
|
84
84
|
}
|
|
85
85
|
/** Whether a submission should be read as a slash command. */
|
|
86
86
|
export function isSlashCommand(value) {
|
package/dist/components.js
CHANGED
|
@@ -132,7 +132,7 @@ export function MessageView({ msg }) {
|
|
|
132
132
|
case 'coding':
|
|
133
133
|
// Coding-session output: distinct cyan gutter so streamed CLI output
|
|
134
134
|
// reads apart from agent/chat messages.
|
|
135
|
-
return (_jsx(Box, { paddingLeft: 2, flexDirection: "column", children: msg.text.replace(
|
|
135
|
+
return (_jsx(Box, { paddingLeft: 2, flexDirection: "column", children: msg.text.replace(/(?<!\n)\n+$/, '').split('\n').map((line, i) => (_jsxs(Text, { wrap: "truncate-end", children: [_jsx(Text, { color: "#22d3ee", children: "\u258D " }), _jsx(Text, { dimColor: true, children: line || ' ' })] }, i))) }));
|
|
136
136
|
default:
|
|
137
137
|
return null;
|
|
138
138
|
}
|
package/dist/version.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* directory below the package root, so the same relative path resolves
|
|
8
8
|
* for the built bin and for `tsx src/index.tsx`.
|
|
9
9
|
*
|
|
10
|
-
* A single-file executable (
|
|
10
|
+
* A single-file executable (a Terminal app channel compiles this client
|
|
11
11
|
* with `bun --compile`) has no package.json to read, so it falls back.
|
|
12
12
|
* A compiled terminal app's version is the app's, not this client's,
|
|
13
13
|
* and the build is where that belongs.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almyty/chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "almyty",
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@almyty/client": "^1.
|
|
34
|
+
"@almyty/client": "^1.5.0",
|
|
35
35
|
"ink": "^7.0.1",
|
|
36
36
|
"ink-spinner": "^5.0.0",
|
|
37
37
|
"ink-text-input": "^6.0.0",
|