Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

feat: restore skill, tag and tag-value commands (HAT-1265) - #28

Merged
beengud merged 2 commits into
mainfrom
hat-1265-restore-skill-tag
Nov 11, 2026
Merged

beengud merged 2 commits into
mainfrom
hat-1265-restore-skill-tag

Conversation

@beengud

@beengud beengud commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • src/rest/client.ts: wire SkillsApi, TagsApi, TagValuesApi into ObserveRestSDK (the tenant spec 1.0.230307 exposes them; MetricsApi, ExternalSharesApi, V2KnowledgeGraphApi stay trimmed).
  • src/app.ts: re-enable skill, tag, tag-value plus the hidden pre-rename tag-key alias (upstream refactor(tag): rename tag-key command to tag observeinc/cli#54), which clears the TS2741 on hideRoute.
  • README.md: active/disabled command note; prettier realigned the command table (was failing bun run format on main).

Jira: HAT-1265

Evidence

  • tsc: 260 → 245 errors; 0 remaining under src/{app.ts,rest/client.ts,commands/{skill,tag,tag-value},rest/{skill,tag,tag-value},lib/skills}.
  • bun test src/commands/{skill,tag,tag-value} src/lib/skills src/rest: 131 pass / 1 fail; the failure is src/rest/inbound-share/created.test.ts, pre-existing on main (trimmed area).
  • eslint clean on the touched areas; prettier clean.
  • bun run build: 6/6 targets.
  • Live, tenant 109601619518 (observe-darwin-arm64): skill list → Found 16; tag list --limit 5 → 5; tag-key list --limit 2 → 2 (alias works, hidden in help); tag-value list --match pnp --json → k8s.namespace.name pnp-prod/dev/test.

🤖 Generated with Claude Code

nhl-beengud and others added 2 commits November 11, 2026 09:14
The tenant OpenAPI spec (1.0.230307) exposes Skills, Tags and TagValues and
the regenerated REST client already carries SkillsApi/TagsApi/TagValuesApi,
so wire them back into ObserveRestSDK and re-enable the three route maps in
src/app.ts, plus the hidden pre-rename `tag-key` alias upstream keeps (observeinc#54),
which also clears the TS2741 on hideRoute that the build-only CI never saw.

tsc drops from 260 to 245 errors (all 15 in the restored areas, none left
there); the unit tests for skill/tag/tag-value already passed against the
mocked layer and still do. README: the "active commands" note lists what is
live and what stays trimmed (metric, inbound-share, auth, gql-backed
commands); prettier --write realigned the command table that was failing
`bun run format` on main.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The note above the table already said which top-level commands are
trimmed; the table rows for auth, metric, query, datastream and
datastream-token still read as live. Review follow-up on #28.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@beengud
beengud merged commit 9624f01 into main Nov 11, 2026
4 checks passed
@beengud
beengud deleted the hat-1265-restore-skill-tag branch November 11, 2026 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants