happyskills 0.33.0 → 0.33.1
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/api/repos.js +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.33.1] - 2026-04-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fix `search --smart` not sending auth token for unauthenticated-by-default requests — private and workspace skills were invisible even when logged in
|
|
14
|
+
|
|
10
15
|
## [0.33.0] - 2026-04-08
|
|
11
16
|
|
|
12
17
|
### Added
|
package/package.json
CHANGED
package/src/api/repos.js
CHANGED
|
@@ -82,7 +82,6 @@ const get_blob = (owner, repo, sha) => catch_errors(`Get blob ${owner}/${repo}/$
|
|
|
82
82
|
})
|
|
83
83
|
|
|
84
84
|
const semantic_search = (query, options = {}) => catch_errors('Semantic search failed', async () => {
|
|
85
|
-
const needs_auth = !!(options.workspace_slug || options.scope === 'mine' || options.scope === 'personal')
|
|
86
85
|
const body = {
|
|
87
86
|
q: query,
|
|
88
87
|
tags: options.tags ? options.tags.split(',').map(t => t.trim()).filter(Boolean) : null,
|
|
@@ -92,7 +91,10 @@ const semantic_search = (query, options = {}) => catch_errors('Semantic search f
|
|
|
92
91
|
workspace_slugs: options.workspace_slug ? options.workspace_slug.split(',').map(s => s.trim()).filter(Boolean) : null,
|
|
93
92
|
scope: options.workspace_slug ? null : (options.scope || null),
|
|
94
93
|
}
|
|
95
|
-
|
|
94
|
+
// Always attempt auth for smart search — if the user is logged in, the API
|
|
95
|
+
// returns public + accessible private skills. If not logged in, the client
|
|
96
|
+
// silently skips the auth header and the API defaults to public-only.
|
|
97
|
+
const [errors, data] = await client.post('/repos:semantic-search', body, { auth: true })
|
|
96
98
|
if (errors) throw errors[errors.length - 1]
|
|
97
99
|
return data
|
|
98
100
|
})
|