@cryptiklemur/lattice 1.16.1 → 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.
@@ -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.options.map(function (opt: typeof answeredQuestion.options[number], oi: number) {
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.1",
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 msg = message as AttachmentCompleteMessage;
92
- var store = getClientStore(clientId);
93
- var pending = store.get(msg.attachmentId);
91
+ var completeMsg = message as AttachmentCompleteMessage;
92
+ var completeStore = getClientStore(clientId);
93
+ var completePending = completeStore.get(completeMsg.attachmentId);
94
94
 
95
- if (!pending) {
95
+ if (!completePending) {
96
96
  sendTo(clientId, {
97
97
  type: "attachment:error",
98
- attachmentId: msg.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 (pending.receivedCount !== pending.totalChunks) {
104
+ if (completePending.receivedCount !== completePending.totalChunks) {
105
105
  sendTo(clientId, {
106
106
  type: "attachment:error",
107
- attachmentId: msg.attachmentId,
108
- error: "Missing chunks: received " + pending.receivedCount + " of " + pending.totalChunks,
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 i = 0; i < pending.totalChunks; i++) {
115
- var chunk = pending.chunks.get(i);
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: msg.attachmentId,
120
- error: "Missing chunk at index " + i,
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 = msg.attachmentType === "paste" || isTextMimeType(msg.mimeType);
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: msg.attachmentType,
133
- name: msg.name,
132
+ type: completeMsg.attachmentType,
133
+ name: completeMsg.name,
134
134
  content,
135
- mimeType: msg.mimeType,
136
- size: msg.size,
137
- lineCount: msg.lineCount,
135
+ mimeType: completeMsg.mimeType,
136
+ size: completeMsg.size,
137
+ lineCount: completeMsg.lineCount,
138
138
  };
139
139
 
140
- var completedStore = getClientCompleted(clientId);
141
- completedStore.set(msg.attachmentId, attachment);
142
- store.delete(msg.attachmentId);
140
+ var finishedStore = getClientCompleted(clientId);
141
+ finishedStore.set(completeMsg.attachmentId, attachment);
142
+ completeStore.delete(completeMsg.attachmentId);
143
143
  return;
144
144
  }
145
145
  });