@volter/supercode-teams 0.2.153 → 0.2.154
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/machine.mjs +3 -2
- package/package.json +1 -1
package/machine.mjs
CHANGED
|
@@ -1556,6 +1556,7 @@ export class TeamsMachine extends MachineCore {
|
|
|
1556
1556
|
const session = await this.#paneByContext(params.pane);
|
|
1557
1557
|
if (!session) throw new Error(`no pane with context ${params.pane}`);
|
|
1558
1558
|
const doc = readJson(this.p.suspended, { v: 1, panes: {} });
|
|
1559
|
+
let delivery;
|
|
1559
1560
|
if (method === 'panes.suspend') {
|
|
1560
1561
|
this.suspended.add(params.pane);
|
|
1561
1562
|
doc.panes[params.pane] = { at: Date.now(), by: principal };
|
|
@@ -1563,11 +1564,11 @@ export class TeamsMachine extends MachineCore {
|
|
|
1563
1564
|
} else {
|
|
1564
1565
|
this.suspended.delete(params.pane);
|
|
1565
1566
|
delete doc.panes[params.pane];
|
|
1566
|
-
if (params.input) await this.host.sendInput(session.id, submission(params.input), { submitMode: params.submitMode ?? 'single' });
|
|
1567
1567
|
}
|
|
1568
1568
|
writeJson(this.p.suspended, doc);
|
|
1569
|
+
if (method === 'panes.resume' && params.input) delivery = await this.#deliverPaneText(session, params.pane, params.input, { messageIds: params.message_ids });
|
|
1569
1570
|
act(method, `pane:${params.pane}`, 'ok', method === 'panes.resume' && params.input ? 'with input' : null);
|
|
1570
|
-
return { pane: params.pane, suspended: method === 'panes.suspend' };
|
|
1571
|
+
return { pane: params.pane, suspended: method === 'panes.suspend', ...(delivery ? { delivery } : {}) };
|
|
1571
1572
|
}
|
|
1572
1573
|
case 'panes.input': {
|
|
1573
1574
|
// Input as a request (the terminal host's own sendInput, with its paste/settle/submit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.154",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
|
|
6
6
|
"license": "MIT",
|