@prohost/cli 0.12.0 → 0.12.1

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
@@ -4,6 +4,13 @@ Versions follow [semver](https://semver.org/). Publishing is automated: merging
4
4
  a version bump to `main` triggers `.github/workflows/npm-publish-cli.yml`, which
5
5
  builds via `prepack`, runs the suite, publishes, and tags `cli-v<version>`.
6
6
 
7
+ ## 0.12.1
8
+
9
+ - **An account the 0.10.1-row upload un-reports waits for its next report.**
10
+ When the server skips that account's version-1 rows as not reported, its
11
+ other pending days are no longer sent the same tick (which drew a
12
+ `not_reported` skip and a strike); they go after its next accepted report.
13
+
7
14
  ## 0.12.0
8
15
 
9
16
  - **`agent run` handles up to three conversations at once by default.**
@@ -259,10 +259,11 @@ export class UsageService {
259
259
  }
260
260
  // A pair whose version-1 rows are still pending (throttled, partly accepted, or waiting for a
261
261
  // report) holds its rebuilt rows back: sent now, they could be overwritten by those stale rows
262
- // landing on a later tick. They stay dirty and go once the legacy rows settle.
262
+ // landing on a later tick. They stay dirty and go once the legacy rows settle. An account that
263
+ // upload un-reported (`ready` was filtered before it) waits for its next accepted report too,
264
+ // rather than sending its other days into a `not_reported` skip and a strike.
263
265
  const heldByLegacy = legacyUnsentPairs(scan);
264
- if (heldByLegacy.size > 0)
265
- ready = ready.filter((r) => !heldByLegacy.has(pendingKey(r.day, r.accountKey)));
266
+ ready = ready.filter((r) => this.reportedKeys.has(r.accountKey) && !heldByLegacy.has(pendingKey(r.day, r.accountKey)));
266
267
  const legacyReady = new Set(ready.map((r) => pendingKey(r.day, r.accountKey)).filter((pair) => scan.legacy[pair] !== undefined));
267
268
  if (legacyReady.size > 0) {
268
269
  if (!(await this.serverReplacesDays(api, machineId, machine))) {
package/dist/version.d.ts CHANGED
@@ -7,6 +7,6 @@
7
7
  * `package.json`, so a release bump that forgets this file fails the suite
8
8
  * instead of shipping a `User-Agent` that lies about which build is calling.
9
9
  */
10
- export declare const CLI_VERSION = "0.12.0";
10
+ export declare const CLI_VERSION = "0.12.1";
11
11
  /** Sent on every HTTP request the CLI makes back into ProhostAI. */
12
- export declare const USER_AGENT = "prohost-cli/0.12.0";
12
+ export declare const USER_AGENT = "prohost-cli/0.12.1";
package/dist/version.js CHANGED
@@ -7,6 +7,6 @@
7
7
  * `package.json`, so a release bump that forgets this file fails the suite
8
8
  * instead of shipping a `User-Agent` that lies about which build is calling.
9
9
  */
10
- export const CLI_VERSION = '0.12.0';
10
+ export const CLI_VERSION = '0.12.1';
11
11
  /** Sent on every HTTP request the CLI makes back into ProhostAI. */
12
12
  export const USER_AGENT = `prohost-cli/${CLI_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prohost/cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Run your own AI agent as a ProhostAI teammate, and stream your account's webhooks to your laptop.",
5
5
  "type": "module",
6
6
  "license": "MIT",