Skip to content

Rename npm package from @ocw/sdk to @openclawwatch/sdk - #2

Merged
anilmurty merged 1 commit into
mainfrom
rename-npm-package
Apr 6, 2026
Merged

anilmurty merged 1 commit into
mainfrom
rename-npm-package

Conversation

@anilmurty

Copy link
Copy Markdown
Contributor

Summary

  • Replace all @ocw/sdk references with @openclawwatch/sdk across 8 files
  • Covers docs (README, CHANGELOG, CONTRIBUTING, CLAUDE.md), spec files (.claude/), and sdk-ts/package-lock.json
  • sdk-ts/package.json was already renamed in PR Add PyPI and npm publish workflows #1

Test plan

  • grep -r "@ocw/sdk" . returns zero results

🤖 Generated with Claude Code

@anilmurty
anilmurty merged commit 2e5b169 into main Apr 6, 2026
4 checks passed
@anilmurty
anilmurty deleted the rename-npm-package branch April 6, 2026 22:16
anilmurty added a commit that referenced this pull request Jun 18, 2026
Iterate findings carrying the estimated_recoverable_usd contract field instead
of a hardcoded ['cache','script','trim'] list, so a future analyzer (e.g. reuse)
surfaces on Overview with no UI change. cache-recommend / budget-projection lack
the field and stay excluded by contract. Addresses the PR #125 review nit (AC #2).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
anshss added a commit to anshss/tokenjam that referenced this pull request Jun 30, 2026
Verified end-to-end that the Timeline (StorySection) already renders
recursive subagent logs: a StoryStep renders a SubagentBlock per spawned
subagent, SubagentBlock re-renders the child's steps via renderTimelineSteps,
and renderTimelineSteps renders a StoryStep each — a closed cycle, so nested
delegations nest arbitrarily deep, each level independently expandable
(caret ▾/▸), matching Approach/Map. Caps are honest (depth/size/cycle each
map to an explicit "… omitted …"/"… already shown …" note, never a silent
drop).

Confirmed visually against seeded session 3024587f… (13 subagents): expanding
step Metabuilder-Labs#2 surfaces its nested "subagent: Investigate session map + PR 306"
block; expanding that renders its Task + 38 own steps. No overflow.

No UI change needed (affordance already consistent). Adds two static-grep
regression tests asserting the recursion cycle + honest cap markers stay
wired, so a future edit can't silently flatten the Timeline.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
Every other dollar-bearing read route (/cost, /optimize, /budget, /traces,
/status) returns a `framing` block (core/framing.py, #191), but the session
detail endpoint did not. During the origin/main merge SessionDetailView's
Overview / subagents / traces cost cells were routed through
fmtFramedDollar(..., framing) to satisfy main's global framing regression,
yet framing resolved to null there — so fmtFramedDollar silently fell back to
raw fmtCost and subscription users (e.g. Claude Max) saw verbatim dollars on
the session detail page that are suppressed everywhere else.

Compute a framing block in get_session_detail via compute_framing (the single
source of truth) with a window-independent plan mix scoped to the session's
agent (plan_determination_mix, mirroring /status and /traces), passing the
session's own token total + cost as window totals so the subscription
token-share denominator is present. No UI change needed — SessionDetailView
already reads data.framing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
…lar (#17)

claimed "no UI change needed," but two dollar-bearing cells in the served
SPA still called bare `fmtCost(...)`. For a Max-subscription user
(framing.display_rule = suppress_dollars_for_subscription_share) this
leaked raw dollars: the session-detail "Cost & Tokens" / "Implied API
value" panel rendered e.g. "$198.9709" (and "$0.0000" on empty sessions),
and the Status "Archived sessions" table cost column showed raw "$0.0000".
The panel only relabeled the header for subscription users while still
emitting the raw figure — the exact honesty leak #191/#2 exist to prevent.

Both cells now route through the existing `fmtFramedDollar(value, framing)`
helper, matching how Traces/Cost/Optimize/Analytics render: subscription
users see token-share ("% of cycle"), local sees "—", and only api/unknown
plans see raw "$". The `framing` block is already in scope in both views —
SessionDetailView reads `data.framing` off /sessions/{id}; the Status view
reads `data.framing` off /status (already consumed by the agent cards'
"Cost today" cell). No backend change needed.

Guarded by two new static-grep regressions in
tests/unit/test_lens_ui_regression.py asserting the bare-fmtCost patterns
are gone and the framed forms are present (there is no JS runner in the
Python CI job; the served source is the unit under test).

Co-Authored-By: Claude <[email protected]>
anilmurty pushed a commit that referenced this pull request Jul 2, 2026
Verified end-to-end that the Timeline (StorySection) already renders
recursive subagent logs: a StoryStep renders a SubagentBlock per spawned
subagent, SubagentBlock re-renders the child's steps via renderTimelineSteps,
and renderTimelineSteps renders a StoryStep each — a closed cycle, so nested
delegations nest arbitrarily deep, each level independently expandable
(caret ▾/▸), matching Approach/Map. Caps are honest (depth/size/cycle each
map to an explicit "… omitted …"/"… already shown …" note, never a silent
drop).

Confirmed visually against seeded session 3024587f… (13 subagents): expanding
step #2 surfaces its nested "subagent: Investigate session map + PR 306"
block; expanding that renders its Task + 38 own steps. No overflow.

No UI change needed (affordance already consistent). Adds two static-grep
regression tests asserting the recursion cycle + honest cap markers stay
wired, so a future edit can't silently flatten the Timeline.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant