@hanzo/rooms 0.1.14 → 0.1.15

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/dist/RightPane.js CHANGED
@@ -103,13 +103,8 @@ function outputs(said) {
103
103
  said.forEach((m, turn) => {
104
104
  if (m.role !== 'assistant')
105
105
  return;
106
- // Files a turn carried by reference: their names in the turn, their bytes in the workspace.
107
- const read = told(words(m));
108
- for (const f of read.carried?.attached ?? []) {
109
- out.push({ id: `sw${turn}.${f.id}`, name: f.name, kind: f.type.startsWith('image/') ? 'image' : 'file', file: f.id, mime: f.type });
110
- }
111
106
  let n = 0;
112
- for (const [, info, body] of read.text.matchAll(FENCE)) {
107
+ for (const [, info, body] of words(m).matchAll(FENCE)) {
113
108
  n += 1;
114
109
  const named = fenceName(info, n);
115
110
  out.push({
@@ -139,8 +134,13 @@ function sources(said, held) {
139
134
  pictures(m).forEach((href, i) => {
140
135
  out.push({ id: `s${turn}.${i}`, name: 'Attached image', kind: 'image', href });
141
136
  });
137
+ // Files a turn carried by reference: their names in the turn, their bytes in the workspace.
138
+ const read = told(words(m));
139
+ for (const f of read.carried?.attached ?? []) {
140
+ out.push({ id: `sw${turn}.${f.id}`, name: f.name, kind: f.type.startsWith('image/') ? 'image' : 'file', file: f.id, mime: f.type });
141
+ }
142
142
  let n = 0;
143
- for (const [, info, body] of words(m).matchAll(FENCE)) {
143
+ for (const [, info, body] of read.text.matchAll(FENCE)) {
144
144
  n += 1;
145
145
  const named = info.trim();
146
146
  if (!suffix(named))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/rooms",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "The workspace rooms — Home, Chat, Inbox, Contacts, Meet, Cal, Drive, Board, Work, Bots — and the frame that holds them, once, for every Hanzo surface.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",