@indigoai-us/hq-cli 5.318.0 → 5.318.1-beta.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.318.1-beta.0] — 2026-10-02
6
+ - Let `hq access` use ACL-checked company presigned reads when STS vend rejects a truncated write-policy scope.
7
+ - Let `hq sync now` skip unchanged server-owned cloud placeholders while keeping their warnings visible, so the sync can complete.
8
+
5
9
  ## [5.318.0] — 2026-10-02
6
10
  - `hq lanes autopilot run` now marks missing lead registry entries as stale and includes a command to remove each stale row.
7
11
  - Keep retired policies retired regardless of YAML field order in the session helper.
@@ -221,10 +221,20 @@ export async function runAccess(input) {
221
221
  }
222
222
  catch (err) {
223
223
  const status = httpStatusOf(err);
224
+ const vendError = typeof err === "object" && err !== null
225
+ ? err
226
+ : undefined;
224
227
  if (status === 403) {
225
228
  vendDenied = true;
226
229
  steps.push("vend: 403 (no-access)");
227
230
  }
231
+ else if ((status === 422 || vendError?.statusCode === 422) &&
232
+ vendError?.code === "POLICY_WRITE_SCOPE_TRUNCATED") {
233
+ // This failure means the company-wide STS write policy could not fit.
234
+ // Company reads use the separate ACL-filtered presign API, which remains
235
+ // the authority for listing and materializing this particular object.
236
+ steps.push("vend: write policy truncated; using presigned read");
237
+ }
228
238
  else if (status === 404) {
229
239
  steps.push("vend: 404");
230
240
  }
@@ -1697,6 +1697,7 @@ async function runNowSingle(hqRoot, company, personal, message, onConflict, mode
1697
1697
  hqRoot,
1698
1698
  progressRecorder: trackingProgressRecorder(planLimitTracker, pushProgressCompany),
1699
1699
  skipUnchanged: true,
1700
+ serverOwnedPathPolicy: "skip",
1700
1701
  propagateDeletes: true,
1701
1702
  propagateDeletePolicy: resolveDeletePolicy(),
1702
1703
  ...(onConflict ? { onConflict } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigoai-us/hq-cli",
3
- "version": "5.318.0",
3
+ "version": "5.318.1-beta.0",
4
4
  "description": "HQ by Indigo management CLI — modules and cloud sync",
5
5
  "main": "dist/index.js",
6
6
  "bin": {