@wibeco/bridge 0.2.2 → 0.2.3

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.
@@ -295,8 +295,8 @@ async function shareProgressCommand(options, cwd = process.cwd()) {
295
295
  }
296
296
  const summary = options.summary?.trim() ?? "";
297
297
  const wordCount = summary.split(/\s+/).filter(Boolean).length;
298
- if (wordCount < 8 || wordCount > 22 || summary.length > 500) {
299
- throw new Error("Progress summary must contain 8\u201322 words.");
298
+ if (wordCount < 20 || wordCount > 55 || summary.length > 500) {
299
+ throw new Error("Progress summary must contain 20\u201355 words.");
300
300
  }
301
301
  const title = options.title?.trim();
302
302
  if (title && title.length > 120) {
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  setupCommand,
7
7
  shareProgressCommand,
8
8
  statusCommand
9
- } from "./chunk-XMEA243L.js";
9
+ } from "./chunk-QDJNDFHB.js";
10
10
  import {
11
11
  runPresenceHeartbeat
12
12
  } from "./chunk-A7KGZ7NX.js";
@@ -21,7 +21,7 @@ Commands:
21
21
  Use --reauthorize only to replace a rejected or revoked device token.
22
22
  status
23
23
  emit --adapter <name> --event <hook-name> (JSON payload on stdin)
24
- share-progress --summary <8-22 words> [--title <title>] [--phase <phase>] [--confidence <0-1>]
24
+ share-progress --summary <20-55 words> [--title <title>] [--phase <phase>] [--confidence <0-1>]
25
25
  doctor [--repository <owner/repo>]`;
26
26
  async function main() {
27
27
  const [command, ...args] = process.argv.slice(2);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  emitCommand
4
- } from "./chunk-XMEA243L.js";
4
+ } from "./chunk-QDJNDFHB.js";
5
5
  import "./chunk-A7KGZ7NX.js";
6
6
 
7
7
  // src/codex-hook.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wibeco/bridge",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Privacy-first live activity bridge for Cursor, Claude Code, and Codex.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,6 +7,10 @@ The emit command always returns a valid empty JSON object to Cursor and fails op
7
7
  delivery can never block an agent tool call.
8
8
  Session hooks own a metadata-only heartbeat every 45 seconds and stop it at session end. Routine
9
9
  prompt, tool, shell, and MCP lifecycle hooks are never reclassified as presence.
10
+ The always-applied activity rule normally publishes only a task plan and a richer completion
11
+ summary through Wibe MCP. Material blockers and major direction changes on longer tasks are the
12
+ only intermediate updates. `wibe share-progress` is the device-authenticated fallback when MCP is
13
+ unavailable.
10
14
 
11
15
  Run `wibe setup` to authorize a revocable, project-scoped device token. Interactive credentials are
12
16
  stored in the operating-system keychain; hooks do not require repository secrets. The mapper drops
@@ -6,9 +6,9 @@ alwaysApply: true
6
6
  # Wibe activity
7
7
 
8
8
  - This repository is connected to Wibe project `${WIBE_PROJECT_ID}`.
9
- - After a plan is settled, share it with `wibe_share_plan` when that tool is available.
10
- - After a meaningful implementation, validation, blocker, or completion milestone, call `wibe_share_progress`.
11
- - Write one concrete 822 word sentence. Use present progressive for active work and past tense for completed work.
12
- - Mention validation or blockers when material. Never include prompts, source code, secrets, raw commands, praise, hype, or speculation.
13
- - Do not publish routine tool calls or repeated updates. Wait at least 90 seconds between progress updates unless reporting a blocker or completion.
9
+ - For most tasks, publish only two updates: the settled plan and the completed outcome.
10
+ - Share the plan with `wibe_share_plan` when available. Use `wibe_share_progress` at completion, or earlier only for a material blocker or a major direction change on work lasting over ten minutes.
11
+ - Write one or two concrete sentences totaling 2055 words. Explain the user-facing goal, what changed, and validation or blockers when material.
12
+ - Use present progressive for active work and past tense for completed work. Never include prompts, source code, secrets, raw commands, routine tool calls, praise, hype, or speculation.
13
+ - Do not repeat information already shared or publish separate updates for editing, testing, committing, or pushing.
14
14
  - If the Wibe MCP tools are unavailable, run `npx --yes --package @wibeco/bridge@latest wibe share-progress --summary "<summary>" --phase <planning|implementing|validating|blocked|shipped>`.