@cryptiklemur/lattice 1.16.0 → 1.16.2
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/.github/workflows/ci.yml
CHANGED
|
@@ -37,8 +37,8 @@ jobs:
|
|
|
37
37
|
- name: Install dependencies
|
|
38
38
|
run: bun install --frozen-lockfile
|
|
39
39
|
|
|
40
|
-
- name:
|
|
41
|
-
run: bunx tsc
|
|
40
|
+
- name: Build shared types
|
|
41
|
+
run: bunx tsc -p shared/tsconfig.json
|
|
42
42
|
|
|
43
43
|
- name: Typecheck server
|
|
44
44
|
run: bunx tsc --noEmit -p server/tsconfig.json
|
|
@@ -100,7 +100,7 @@ export function PromptQuestion(props: PromptQuestionProps) {
|
|
|
100
100
|
{expanded && answeredQuestion && (
|
|
101
101
|
<div className="px-4 pb-3 border-t border-base-content/5">
|
|
102
102
|
<div className="flex flex-col gap-1 pt-2">
|
|
103
|
-
{answeredQuestion
|
|
103
|
+
{answeredQuestion!.options.map(function (opt: { label: string; description: string; preview?: string }, oi: number) {
|
|
104
104
|
var isChosen = firstAnswer && firstAnswer[1] === opt.label;
|
|
105
105
|
return (
|
|
106
106
|
<div
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptiklemur/lattice",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.2",
|
|
4
4
|
"description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Aaron Scherer <me@aaronscherer.me>",
|
|
@@ -88,36 +88,36 @@ registerHandler("attachment", function (clientId: string, message: ClientMessage
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
if (message.type === "attachment:complete") {
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
91
|
+
var completeMsg = message as AttachmentCompleteMessage;
|
|
92
|
+
var completeStore = getClientStore(clientId);
|
|
93
|
+
var completePending = completeStore.get(completeMsg.attachmentId);
|
|
94
94
|
|
|
95
|
-
if (!
|
|
95
|
+
if (!completePending) {
|
|
96
96
|
sendTo(clientId, {
|
|
97
97
|
type: "attachment:error",
|
|
98
|
-
attachmentId:
|
|
98
|
+
attachmentId: completeMsg.attachmentId,
|
|
99
99
|
error: "No chunks received for this attachment",
|
|
100
100
|
});
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if (
|
|
104
|
+
if (completePending.receivedCount !== completePending.totalChunks) {
|
|
105
105
|
sendTo(clientId, {
|
|
106
106
|
type: "attachment:error",
|
|
107
|
-
attachmentId:
|
|
108
|
-
error: "Missing chunks: received " +
|
|
107
|
+
attachmentId: completeMsg.attachmentId,
|
|
108
|
+
error: "Missing chunks: received " + completePending.receivedCount + " of " + completePending.totalChunks,
|
|
109
109
|
});
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
var buffers: Buffer[] = [];
|
|
114
|
-
for (var
|
|
115
|
-
var chunk =
|
|
114
|
+
for (var ci = 0; ci < completePending.totalChunks; ci++) {
|
|
115
|
+
var chunk = completePending.chunks.get(ci);
|
|
116
116
|
if (!chunk) {
|
|
117
117
|
sendTo(clientId, {
|
|
118
118
|
type: "attachment:error",
|
|
119
|
-
attachmentId:
|
|
120
|
-
error: "Missing chunk at index " +
|
|
119
|
+
attachmentId: completeMsg.attachmentId,
|
|
120
|
+
error: "Missing chunk at index " + ci,
|
|
121
121
|
});
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
@@ -125,21 +125,21 @@ registerHandler("attachment", function (clientId: string, message: ClientMessage
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
var assembled = Buffer.concat(buffers);
|
|
128
|
-
var isText =
|
|
128
|
+
var isText = completeMsg.attachmentType === "paste" || isTextMimeType(completeMsg.mimeType);
|
|
129
129
|
var content = isText ? assembled.toString("utf-8") : assembled.toString("base64");
|
|
130
130
|
|
|
131
131
|
var attachment: Attachment = {
|
|
132
|
-
type:
|
|
133
|
-
name:
|
|
132
|
+
type: completeMsg.attachmentType,
|
|
133
|
+
name: completeMsg.name,
|
|
134
134
|
content,
|
|
135
|
-
mimeType:
|
|
136
|
-
size:
|
|
137
|
-
lineCount:
|
|
135
|
+
mimeType: completeMsg.mimeType,
|
|
136
|
+
size: completeMsg.size,
|
|
137
|
+
lineCount: completeMsg.lineCount,
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
var finishedStore = getClientCompleted(clientId);
|
|
141
|
+
finishedStore.set(completeMsg.attachmentId, attachment);
|
|
142
|
+
completeStore.delete(completeMsg.attachmentId);
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
});
|