@nextclaw/x-harness 0.2.1 → 0.2.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.
package/SOURCE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Corresponding source
2
2
 
3
- Version 0.2.1, commit 66d1ce5637601897d7d769f74d56eacffc2e865e.
3
+ Version 0.2.2, commit 2aaac6a777b93bca44fce2ccaa5baae01113ee13.
4
4
 
5
- Complete source, build scripts and dependencies: https://github.com/Peiiii/x-harness/tree/66d1ce5637601897d7d769f74d56eacffc2e865e
5
+ Complete source, build scripts and dependencies: https://github.com/Peiiii/x-harness/tree/2aaac6a777b93bca44fce2ccaa5baae01113ee13
6
6
 
7
7
  Clone this revision, run npm ci, npm run bootstrap and npm run release:build.
8
8
 
@@ -83,7 +83,7 @@ export class GrowthPolicy {
83
83
  hour: "2-digit",
84
84
  hourCycle: "h23",
85
85
  }).format(now));
86
- if (hour < 7 || hour >= 22)
86
+ if ((hour < 7 || hour >= 22) && !this.authorizedWindow(state, "follow"))
87
87
  return {
88
88
  status: "needsDecision",
89
89
  reason: "outside-contract-write-window",
@@ -58,6 +58,7 @@ export class PlatformWriting {
58
58
  async handleFindSubmission(action) {
59
59
  if (action.kind === "follow") {
60
60
  let value = await this.#followStage(action, "verify-read", () => this.#readPerson(action));
61
+ const verificationAlerts = [...(value.alerts ?? [])];
61
62
  if (!value.needsStateCheck) {
62
63
  const absent = this.#browser.capabilities?.("refreshPerson") ?? [
63
64
  "refreshPerson",
@@ -77,6 +78,10 @@ export class PlatformWriting {
77
78
  }));
78
79
  value = await this.#followStage(action, "verify-after-refresh", () => this.#readPerson(action));
79
80
  }
81
+ value = {
82
+ ...value,
83
+ alerts: [...new Set([...verificationAlerts, ...(value.alerts ?? [])])],
84
+ };
80
85
  return {
81
86
  ...value,
82
87
  verified: !value.needsStateCheck &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/x-harness",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Typed X task harness with compact business results and explicit diagnostics.",
6
6
  "main": "./dist/index.js",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "66d1ce5637601897d7d769f74d56eacffc2e865e"
45
+ "gitHead": "2aaac6a777b93bca44fce2ccaa5baae01113ee13"
46
46
  }