@moxuli/moremote 0.1.8 → 0.1.9

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  Optional, independent Apache-2.0 computer companion for MoRemote and an **unmodified Paseo 0.15.3** daemon. Existing official-only clients keep working without this project or its cloud.
4
4
 
5
5
  Canonical repository/command: `moremote-cli`; public npm package:
6
- **`@moxuli/moremote`** (release **0.1.8**); source entry: `bin/moremote-cli.js`.
6
+ **`@moxuli/moremote`** (release **0.1.9**); source entry: `bin/moremote-cli.js`.
7
7
  There is no unscoped npm alias or automatic adoption of foreign/old state.
8
8
 
9
9
  ## Install the published package
@@ -3,4 +3,4 @@ import { CloudClient } from './cloud-client.js';
3
3
  import type { OperationJournal } from './journal.js';
4
4
  import { LiveActivityPublisher, type LiveSnapshot } from './live-activity.js';
5
5
  /** Independent durable acknowledgements sharing one transport request. */
6
- export declare function publishEvents(pair: Pair, cloud: CloudClient, journal: OperationJournal, publisher: LiveActivityPublisher, snapshot: LiveSnapshot | null, detailsCurrent: boolean): Promise<void>;
6
+ export declare function publishEvents(pair: Pair, cloud: CloudClient, journal: OperationJournal, publisher: LiveActivityPublisher, snapshot: LiveSnapshot | null, detailsCurrent: boolean, allowUngatedRequests?: boolean): Promise<void>;
@@ -1,7 +1,11 @@
1
1
  import { LIMITS } from './limits.js';
2
2
  /** Independent durable acknowledgements sharing one transport request. */
3
- export async function publishEvents(pair, cloud, journal, publisher, snapshot, detailsCurrent) {
4
- const pending = journal.attention(pair.pairId, Date.now()).filter(item => detailsCurrent || !['question', 'permission'].includes(item.body.kind));
3
+ export async function publishEvents(pair, cloud, journal, publisher, snapshot, detailsCurrent, allowUngatedRequests = false) {
4
+ const now = Date.now();
5
+ // Never starve question/permission alerts forever when optional quick-reply
6
+ // state hydration exceeds capacity or fails transiently.
7
+ const pending = journal.attention(pair.pairId, now).filter(item => detailsCurrent || allowUngatedRequests || !['question', 'permission'].includes(item.body.kind)
8
+ || (typeof item.body.envelope?.issuedAt === 'number' && now - item.body.envelope.issuedAt >= 15000));
5
9
  if (!cloud.liveActivityV2) {
6
10
  for (const item of pending) {
7
11
  await cloud.attention(item.body);
@@ -104,6 +104,13 @@ export class OfficialClient {
104
104
  else
105
105
  this.readTerminal(event);
106
106
  }
107
+ else {
108
+ // Recover pending question/permission prompts immediately when agent_attention_required
109
+ // arrives without a preceding agent_permission_request.
110
+ this.fenceRequestReads(p.agentId, ++this.observationOrder);
111
+ void this.readCurrent(p.agentId, agent => { for (const r of agent?.pendingPermissions || [])
112
+ this.emitRequest(p.agentId, r); }).catch(() => { });
113
+ }
107
114
  }
108
115
  if (message.type === 'agent_permission_request') {
109
116
  const p = message.payload;
@@ -9,7 +9,7 @@ export async function projectSnapshot(source, pair, journal, generation) {
9
9
  const occurrence = journal.currentOccurrence(source.daemonServerId, task.agentId, pending.requestId);
10
10
  if (!occurrence || occurrence.generation !== generation || occurrence.fingerprint !== digest(canonical(pending.request)))
11
11
  continue;
12
- if (Buffer.byteLength(task.agentId) > 256 || Buffer.byteLength(pending.requestId) > 256 || Buffer.byteLength(JSON.stringify(pending.request)) > 8192)
12
+ if (Buffer.byteLength(task.agentId) > 256 || Buffer.byteLength(pending.requestId) > 256 || Buffer.byteLength(JSON.stringify(pending.request)) > 24576)
13
13
  throw Error('NOTIFICATION_REQUEST_LIMIT');
14
14
  const requestBinding = await occurrenceBinding(pair, occurrence);
15
15
  if (journal.isCurrent(occurrence))
package/dist/runtime.js CHANGED
@@ -320,11 +320,14 @@ export async function runRuntime(dir, version) {
320
320
  if (!active)
321
321
  continue;
322
322
  let detailsCurrent = false;
323
+ let allowUngatedRequests = false;
323
324
  try {
324
325
  const payload = await projectSnapshot({ ...official.notificationSnapshot(), hostName: snapshot.hostName, measuredAt: snapshot.measuredAt }, pair, journal, official.generation);
325
326
  detailsCurrent = await statePublisher.publish(pair, cloud, payload);
326
327
  }
327
328
  catch (error) {
329
+ if (error instanceof Error && (error.message === 'NOTIFICATION_REQUEST_LIMIT' || error.message === 'NOTIFICATION_STATE_LIMIT'))
330
+ allowUngatedRequests = true;
328
331
  failure = error;
329
332
  if (await observeRelayRetirement(config, dir, pair, cloud, error))
330
333
  continue;
@@ -336,7 +339,7 @@ export async function runRuntime(dir, version) {
336
339
  failure = error;
337
340
  }
338
341
  try {
339
- await publishEvents(pair, cloud, journal, livePublisher, official.liveActivitySnapshot(), detailsCurrent);
342
+ await publishEvents(pair, cloud, journal, livePublisher, official.liveActivitySnapshot(), detailsCurrent, allowUngatedRequests);
340
343
  }
341
344
  catch (error) {
342
345
  failure = error;
package/docs/STATE.md CHANGED
@@ -1,21 +1,23 @@
1
1
  # Project state
2
2
 
3
- ## Release candidate0.1.8 — 2026-11-15
4
-
5
- The owner authorized CLI publication of the accepted title-provenance correction.
6
- Package/lock root versions are0.1.8, with unchanged dependencies and compatibility
7
- tuple. Independent follow-up closed all4initial blockers and independently passed
8
- 11CLI tests; this is an independent-context same-provider review after the other
9
- provider's account hold, not a cross-provider approval. The first hosted candidate
10
- exposed a private-pathname retirement race before tagging; the final read-only
11
- correction and observed-mutation fence have two independent security-context
12
- approvals and36/36resource tests. Fresh `npm ci` audits0; final default check passes
13
- 279/279with types/build, and actual packaged upgrade/failure rollback/aliased
14
- frontend/clean-stop smoke passes. Original test deadlines are unchanged. Release
15
- identity validation passes. Final hosted CI/publication and receiver acceptance are pending;
16
- no0.1.8public availability is claimed yet. See [[2026-11-15-title-provenance-release]].
17
-
18
- ## Local title-provenance correction — unreleased
3
+ ## Public0.1.8 — 2026-11-15
4
+
5
+ Reviewed sourced545c23 is public as0.1.8. All3OS CI43718667202 and release
6
+ 43719303096 pass, including actual packaged upgrade/rollback. POSIX checks pass
7
+ 279/279; Windows passes246with33explicit platform skips and zero failures.
8
+ Final resource security regressions pass36/36with two independent same-provider
9
+ security contexts; unavailable cross-provider review is not claimed as approval.
10
+
11
+ Anonymous registry read reports latest0.1.8; an exact-version install with empty
12
+ npm credential configuration and isolated HOME prints0.1.8. Its106package files
13
+ equal the archive bytes. Local tested/npm/GitHub tarballs and SHA256SUMS match:
14
+ `2ce3f482208d8f5b8d8cbe3a34cacead401ec278d2f4b6e11ec4b0de81f66179`.
15
+ The public archive is170832bytes. Initial failed CI/RED evidence and npm processing
16
+ delay are preserved in [[2026-11-15-title-provenance-release]]. Dependencies and
17
+ compatibility tuple remain unchanged. No everyday service or real provider
18
+ session was modified by release/receiver acceptance. Do not republish or retag0.1.8.
19
+
20
+ ## Earlier local title-provenance checkpoint — before0.1.8
19
21
 
20
22
  The activity endpoint accepts bounded encrypted source hints and resolves current
21
23
  official workspace names through an active-only owned read subscription. A separate
@@ -73,7 +73,41 @@ smoke. The focused real enrollment consumer passes1/1. A separate temporary
73
73
  failure probe disables its synthetic claim and deliberately uses a1500msprobe
74
74
  admission deadline; it retains the failure and exits with owned-child/server
75
75
  teardown in2.685s. That probe does not alter the repository's15s/20sassertions.
76
- Final hosted platform checks/publication/receiver acceptance remain pending.
76
+ Final hosted and receiver results follow below.
77
+
78
+ ## Public release and independent receiver acceptance
79
+
80
+ Source `d545c23a9dfcbd6c9b1983a907488d61cbcad785` is the immutablev0.1.8tag.
81
+ CI43718667202 succeeds on Ubuntu24.04, macOS15 and Windows2025, including actual
82
+ packaged upgrade/rollback. POSIX suites pass279/279with zero skips; Windows
83
+ passes246and explicitly skips33platform-specific cases, with zero failures.
84
+ Release43719303096 repeats the complete Linux check/upgrade smoke and produces
85
+ byte-deterministic validated archives before accepting npm publication and
86
+ creating the public GitHub Release. No initial failed candidate was tagged.
87
+
88
+ The first anonymous npm exact-version read remained404while npm explicitly
89
+ reported background processing; acceptance waited without republishing. At
90
+ 2026-11-15T13:39Z the anonymous registry exposes0.1.8and latest0.1.8. An exact
91
+ public install uses empty user/global npm configuration, no npm authentication
92
+ environment and temporary HOME/prefix/cache; the real frontend prints0.1.8.
93
+ All106installed package files match the public archive. No native service or
94
+ real provider session is installed, restarted or upgraded by this acceptance.
95
+
96
+ Anonymous npm and GitHub downloads equal the original tested local archive and
97
+ the GitHub SHA256SUMS attachment. The170832-byte archive SHA256 is:
98
+
99
+ `2ce3f482208d8f5b8d8cbe3a34cacead401ec278d2f4b6e11ec4b0de81f66179`.
100
+
101
+ The npm integrity/SHA1 values also match independently calculated archive hashes.
102
+ GitHub's anonymous API was rate-limited; existing authenticated CLI readback
103
+ confirms non-draft/non-prerelease metadata, while asset downloads remain anonymous.
104
+ No credential/account configuration was changed. Public release:
105
+ [v0.1.8](https://github.com/moxuli/moremote-cli/releases/tag/v0.1.8).
106
+
107
+ Local acceptance evidence retains public metadata, final job logs, anonymous
108
+ installation output, archive bytes/checksums, reviewed source hashes, the exact
109
+ initial failed candidate and all stated RED/GREEN/review records. Publication is
110
+ complete;0.1.8must never be republished or retagged to include later documentation.
77
111
 
78
112
  ## Publication boundary
79
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moxuli/moremote",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Optional encrypted notification and scoped-action companion for Paseo",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",