@parall/parall 1.57.1 → 1.57.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.
@@ -51502,6 +51502,9 @@ function formatApprovalDecisionReason(status, reason) {
51502
51502
  return "";
51503
51503
  return `Reason (JSON): ${JSON.stringify(normalized)}`;
51504
51504
  }
51505
+ function threadWatcherHint(threadRootId) {
51506
+ return `[Hint: watcher \u2014 you were not addressed in this reply. Reply only if you add something new; otherwise run \`parall no-reply\`. If this thread is not relevant to you, or you have nothing more to contribute, run \`parall messages unwatch prll://${threadRootId}\` so later replies stop waking you.]`;
51507
+ }
51505
51508
  function buildEventBody(event) {
51506
51509
  const lines = [];
51507
51510
  if (event.type === "message") {
@@ -51521,6 +51524,9 @@ function buildEventBody(event) {
51521
51524
  }
51522
51525
  if (event.deliveryReason)
51523
51526
  lines.push(`[Delivery: ${sanitizeMeta(event.deliveryReason)}]`);
51527
+ if (event.deliveryReason === "watcher" && event.threadRootId) {
51528
+ lines.push(threadWatcherHint(sanitizeMeta(event.threadRootId)));
51529
+ }
51524
51530
  if (event.unreadCount != null && event.unreadCount > 1) {
51525
51531
  const countStr = event.unreadCount >= 1e3 ? "999+" : String(event.unreadCount);
51526
51532
  const sinceStr = event.unreadSince ? ` | since: prll://${event.unreadSince}` : "";
@@ -52017,6 +52023,7 @@ var ENDPOINTS = {
52017
52023
  WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
52018
52024
  WIKI_RESTORE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/restore`,
52019
52025
  WIKI_TREE: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree`,
52026
+ WIKI_TREE_LAST_COMMITS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/tree/last-commits`,
52020
52027
  WIKI_BLOB: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/blob`,
52021
52028
  WIKI_COPY: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/copy`,
52022
52029
  WIKI_NODE_SECTIONS: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}/node-sections`,
@@ -54158,8 +54165,27 @@ var ParallClient = class _ParallClient extends AttachmentClient {
54158
54165
  const res = await this.request("GET", ENDPOINTS.WIKIS_DELETED(orgId));
54159
54166
  return res.data;
54160
54167
  }
54161
- async getWikiTree(orgId, wikiId, params) {
54162
- return this.request("GET", ENDPOINTS.WIKI_TREE(orgId, wikiId), void 0, params);
54168
+ /**
54169
+ * List the direct children of a wiki directory. The response carries
54170
+ * `head_sha`, the immutable commit it was read at; render the rows first
54171
+ * and fetch their dates with `getWikiTreeLastCommits` pinned to it.
54172
+ * `last_commit: true` is the legacy single-request form (dates composed
54173
+ * server-side); prefer the two-phase flow so the structure is never held
54174
+ * back by history reads. Pass `signal` to abort on navigation.
54175
+ */
54176
+ async getWikiTree(orgId, wikiId, params, opts) {
54177
+ return this.request("GET", ENDPOINTS.WIKI_TREE(orgId, wikiId), void 0, params, false, opts);
54178
+ }
54179
+ /**
54180
+ * Second phase of a directory listing: last-commit dates for the direct
54181
+ * children of `path` at `ref`, which must be the `head_sha` a
54182
+ * `getWikiTree` response carried (a branch name is rejected). Merge the
54183
+ * dates only while the returned `head_sha` still matches the rows on
54184
+ * screen; a failure just leaves the dates blank. Pass `signal` to abort
54185
+ * on navigation.
54186
+ */
54187
+ async getWikiTreeLastCommits(orgId, wikiId, params, opts) {
54188
+ return this.request("GET", ENDPOINTS.WIKI_TREE_LAST_COMMITS(orgId, wikiId), void 0, params, false, opts);
54163
54189
  }
54164
54190
  /**
54165
54191
  * Resolve a server-returned, host-relative media URL (a wiki `signed_url`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/parall",
3
- "version": "1.57.1",
3
+ "version": "1.57.2",
4
4
  "description": "OpenClaw channel plugin for Parall IM",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  "openclaw.plugin.json"
17
17
  ],
18
18
  "dependencies": {
19
- "@parall/agent-core": "1.57.1",
20
- "@parall/sdk": "1.57.1"
19
+ "@parall/agent-core": "1.57.2",
20
+ "@parall/sdk": "1.57.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^22.0.0",