@scopebond/hook 0.15.0 → 0.15.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/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAoqBA,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,GAAE,MAAmB,GAAG,MAAM,GAAG,IAAI,CAS7F"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAqqBA,6EAA6E;AAC7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,GAAE,MAAmB,GAAG,MAAM,GAAG,IAAI,CAS7F"}
package/dist/cli.js CHANGED
@@ -35,6 +35,7 @@ import { mapClaudeToolUse, mapCodexToolUse, mapCursorEvent, fillPushBranch } fro
35
35
  import { createHookRuntime } from "./runtime.js";
36
36
  import { useDigestKey, loadOrCreateDigestKey } from "./minimize.js";
37
37
  import { scaffold, harnessSnippet, placeHook } from "./init.js";
38
+ import { onboardingSteps } from "./onboarding.js";
38
39
  import { userHome, userHarnessFile, resolveConfigDir, writeHarnessConfig, removeHarnessConfig, cursorDetected, codexDetected, absoluteHookCommand, isHarnessConfigured, purgeHome, harnessScopes, harnessScopeLabel, configuredHookCommands, hookCommandResolves, projectHarnessFile, localHarnessFile, gitShareState, isMachineSpecificCommand, trustProjectPolicy, untrustedProjectPolicy, isTrustedProject, wireLifecycleHooks, unwireLifecycleHooks, } from "./install.js";
39
40
  import { openObservations, describeObservations, observationStatus, stopReasonFromClaude, exitFromClaudeFailure, HEARTBEAT_INTERVAL_MS, OBSERVATIONS_SCOPE, } from "./obs-emitter.js";
40
41
  import { OBSERVATION_DB, ObservationStore } from "./obs-store.js";
@@ -481,7 +482,7 @@ function runInit(args) {
481
482
  // `scopebond-hook` binary on PATH, so a bare `scopebond-hook log` would fail.
482
483
  console.log(`Next: run one command in the agent, then \`${cliCommand("log")}\` to see the receipt`);
483
484
  console.log(`and \`${cliCommand("verify")}\` to check it offline. Try \`${cliCommand('test "rm -rf /"')}\`.`);
484
- console.log(`To send receipts to a workspace: ${cliCommand("connect <workspace-url> <enrollment>")}`);
485
+ console.log(onboardingSteps({ harness, command: cliCommand, project: true }).join("\n"));
485
486
  }
486
487
  function decisionOf(payload) {
487
488
  const rr = String(payload.realtime_result ?? "");
@@ -956,6 +957,7 @@ async function finishConnect(dir, url, bundle, harness, args) {
956
957
  console.log(`Observations: ${observing.reason}`);
957
958
  console.log("");
958
959
  console.log("Run your agent — the first action appears in your workspace within seconds.");
960
+ console.log(onboardingSteps({ harness, command: cliCommand, connected: true }).join("\n"));
959
961
  }
960
962
  catch (error) {
961
963
  const message = error.message;
@@ -1355,7 +1357,7 @@ function runInstall(args) {
1355
1357
  console.log("");
1356
1358
  console.log(`A project's own .scopebond policy applies only after you trust it there (${cliCommand("trust")}).`);
1357
1359
  console.log(`Check it: ${cliCommand("doctor")} · see decisions: ${cliCommand("log")}`);
1358
- console.log(`To send receipts to a workspace: ${cliCommand("connect <workspace-url> <enrollment>")}`);
1360
+ console.log(onboardingSteps({ harness: harnesses[0], command: cliCommand }).join("\n"));
1359
1361
  }
1360
1362
  /** Size and count of the local receipt store, plus its write-ahead log. Signed evidence
1361
1363
  * accumulates in the user's project directory and there is no automatic deletion — so