This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
feat: restore skill, tag and tag-value commands (HAT-1265) - #28
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/rest/client.ts: wireSkillsApi,TagsApi,TagValuesApiintoObserveRestSDK(the tenant spec 1.0.230307 exposes them;MetricsApi,ExternalSharesApi,V2KnowledgeGraphApistay trimmed).src/app.ts: re-enableskill,tag,tag-valueplus the hidden pre-renametag-keyalias (upstream refactor(tag): renametag-keycommand totagobserveinc/cli#54), which clears theTS2741onhideRoute.README.md: active/disabled command note; prettier realigned the command table (was failingbun run formaton main).Jira: HAT-1265
Evidence
tsc: 260 → 245 errors; 0 remaining undersrc/{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 issrc/rest/inbound-share/created.test.ts, pre-existing on main (trimmed area).bun run build: 6/6 targets.observe-darwin-arm64):skill list→ Found 16;tag list --limit 5→ 5;tag-key list --limit 2→ 2 (alias works, hidden inhelp);tag-value list --match pnp --json→k8s.namespace.namepnp-prod/dev/test.🤖 Generated with Claude Code