happyskills 0.11.0 → 0.11.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 +7 -0
- package/package.json +1 -1
- package/src/commands/convert.js +2 -1
- package/src/commands/fork.js +4 -1
- package/src/commands/init.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.11.1] - 2026-03-12
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fix `init` not setting `type: "skill"` in skill.json for regular skills — only kits were getting the `type` field; now all scaffolded skills explicitly set `type`
|
|
14
|
+
- Fix `convert` not setting `type` in skill.json — converted skills now preserve existing `type` or default to `"skill"`
|
|
15
|
+
- Fix `fork` not setting `type` in skill.json — forked skills now preserve the original skill's `type` or default to `"skill"`
|
|
16
|
+
|
|
10
17
|
## [0.11.0] - 2026-03-11
|
|
11
18
|
|
|
12
19
|
### Added
|
package/package.json
CHANGED
package/src/commands/convert.js
CHANGED
|
@@ -16,7 +16,7 @@ const { file_exists } = require('../utils/fs')
|
|
|
16
16
|
const { create_spinner } = require('../ui/spinner')
|
|
17
17
|
const { print_help, print_success, print_error, print_info, print_warn, print_label, print_json } = require('../ui/output')
|
|
18
18
|
const { exit_with_error, UsageError, CliError } = require('../utils/errors')
|
|
19
|
-
const { EXIT_CODES, SKILL_MD } = require('../constants')
|
|
19
|
+
const { EXIT_CODES, SKILL_MD, SKILL_TYPES } = require('../constants')
|
|
20
20
|
|
|
21
21
|
const HELP_TEXT = `Usage: happyskills convert <skill-name> [options]
|
|
22
22
|
|
|
@@ -162,6 +162,7 @@ const run = (args) => catch_errors('Convert failed', async () => {
|
|
|
162
162
|
...(existing_manifest || {}),
|
|
163
163
|
name: skill_name,
|
|
164
164
|
version: merged_version,
|
|
165
|
+
type: (existing_manifest?.type) || SKILL_TYPES.SKILL,
|
|
165
166
|
description: merged_description,
|
|
166
167
|
keywords: merged_keywords
|
|
167
168
|
}
|
package/src/commands/fork.js
CHANGED
|
@@ -8,7 +8,8 @@ const { write_manifest } = require('../manifest/writer')
|
|
|
8
8
|
const { create_spinner } = require('../ui/spinner')
|
|
9
9
|
const { print_help, print_success, print_hint, print_json, code } = require('../ui/output')
|
|
10
10
|
const { exit_with_error, UsageError } = require('../utils/errors')
|
|
11
|
-
const { EXIT_CODES } = require('../constants')
|
|
11
|
+
const { EXIT_CODES, SKILL_TYPES } = require('../constants')
|
|
12
|
+
const { read_manifest } = require('../manifest/reader')
|
|
12
13
|
|
|
13
14
|
const HELP_TEXT = `Usage: happyskills fork <owner/skill> [options]
|
|
14
15
|
|
|
@@ -79,9 +80,11 @@ const run = (args) => catch_errors('Fork failed', async () => {
|
|
|
79
80
|
const [ext_err] = await extract(clone_data, dest)
|
|
80
81
|
if (ext_err) { spinner.fail('Extract failed'); throw e('Extract failed', ext_err) }
|
|
81
82
|
|
|
83
|
+
const [, original_manifest] = await read_manifest(dest)
|
|
82
84
|
const forked_manifest = {
|
|
83
85
|
name,
|
|
84
86
|
version: '0.1.0',
|
|
87
|
+
type: (original_manifest?.type) || SKILL_TYPES.SKILL,
|
|
85
88
|
description: '',
|
|
86
89
|
keywords: [],
|
|
87
90
|
forked_from: {
|
package/src/commands/init.js
CHANGED