@senpi/runtime 1.1.0-dev.runtime-phase-2.20260513122539 → 1.1.0-dev.runtime-phase-2.20260514134437
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/dist/cli/senpi-cli-config.d.ts +15 -1
- package/dist/cli/senpi-cli-config.d.ts.map +1 -1
- package/dist/cli/senpi-cli-config.js +19 -2
- package/dist/cli/senpi-cli-config.js.map +1 -1
- package/dist/cli/senpi-commands.d.ts.map +1 -1
- package/dist/cli/senpi-commands.js +4 -1
- package/dist/cli/senpi-commands.js.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -10
- package/dist/index.js.map +1 -1
- package/dist/runtime/auto-update/coordinator.d.ts +13 -0
- package/dist/runtime/auto-update/coordinator.d.ts.map +1 -1
- package/dist/runtime/auto-update/coordinator.js +14 -0
- package/dist/runtime/auto-update/coordinator.js.map +1 -1
- package/dist/skills-manager/bootstrap.d.ts.map +1 -1
- package/dist/skills-manager/bootstrap.js +34 -16
- package/dist/skills-manager/bootstrap.js.map +1 -1
- package/dist/skills-manager/constants.d.ts +20 -1
- package/dist/skills-manager/constants.d.ts.map +1 -1
- package/dist/skills-manager/constants.js +26 -1
- package/dist/skills-manager/constants.js.map +1 -1
- package/dist/skills-manager/coordinator.d.ts +147 -20
- package/dist/skills-manager/coordinator.d.ts.map +1 -1
- package/dist/skills-manager/coordinator.js +260 -86
- package/dist/skills-manager/coordinator.js.map +1 -1
- package/dist/skills-manager/state-store.d.ts +27 -4
- package/dist/skills-manager/state-store.d.ts.map +1 -1
- package/dist/skills-manager/state-store.js +42 -16
- package/dist/skills-manager/state-store.js.map +1 -1
- package/dist/skills-manager/types.d.ts +46 -8
- package/dist/skills-manager/types.d.ts.map +1 -1
- package/dist/skills-manager/utils.d.ts +17 -0
- package/dist/skills-manager/utils.d.ts.map +1 -1
- package/dist/skills-manager/utils.js +43 -11
- package/dist/skills-manager/utils.js.map +1 -1
- package/dist/skills-manager/version-manager.d.ts +93 -8
- package/dist/skills-manager/version-manager.d.ts.map +1 -1
- package/dist/skills-manager/version-manager.js +185 -28
- package/dist/skills-manager/version-manager.js.map +1 -1
- package/openclaw.plugin.json +7 -9
- package/package.json +1 -1
|
@@ -40,29 +40,165 @@ export function parseSkillMdVersion(content) {
|
|
|
40
40
|
return versionMatch ? versionMatch[1].trim() : null;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Extract the `description` value from a SKILL.md YAML frontmatter block.
|
|
44
|
+
*
|
|
45
|
+
* Skill descriptions can be authored a few different ways. This helper
|
|
46
|
+
* handles the real-world shapes that appear in the senpi-skills repo today:
|
|
47
|
+
*
|
|
48
|
+
* 1. Single-line, double-quoted:
|
|
49
|
+
* description: "Configure, deploy, ..."
|
|
50
|
+
* 2. Single-line, single-quoted or unquoted:
|
|
51
|
+
* description: Manage runtimes ...
|
|
52
|
+
* 3. YAML block scalar (folded or literal, optional chomping indicator):
|
|
53
|
+
* description: >
|
|
54
|
+
* A short summary
|
|
55
|
+
* continues on this line.
|
|
56
|
+
* description: >- # strip trailing newlines (this PR's senpi-skills repo)
|
|
57
|
+
* A short summary
|
|
58
|
+
* description: | # literal — preserves newlines (collapsed to spaces here)
|
|
59
|
+
* A short summary
|
|
60
|
+
* description: |+ # keep trailing newlines (same handling)
|
|
61
|
+
*
|
|
62
|
+
* The block scalar header is `[>|][-+]?` per the YAML 1.2 spec:
|
|
63
|
+
* `>` = folded, `|` = literal; `-` strips trailing newlines,
|
|
64
|
+
* `+` keeps them, no indicator clips. For notification rendering we
|
|
65
|
+
* always collapse to a single line joined by spaces, so the chomping
|
|
66
|
+
* indicator only affects whether we match the block-scalar branch.
|
|
67
|
+
*
|
|
68
|
+
* Returns null when the field is absent or the frontmatter block is missing.
|
|
69
|
+
*
|
|
70
|
+
* Note: kept as a regex extractor rather than introducing a full YAML
|
|
71
|
+
* parse here — `parseSkillMdVersion` uses the same approach, and skill
|
|
72
|
+
* frontmatters are constrained enough that the regex covers the shapes we
|
|
73
|
+
* actually encounter. If we ever adopt a full YAML parser for this file,
|
|
74
|
+
* both helpers should switch together.
|
|
46
75
|
*/
|
|
47
|
-
export
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
76
|
+
export function parseSkillMdDescription(content) {
|
|
77
|
+
const match = /^---\r?\n([\s\S]*?)\r?\n---/.exec(content.trim());
|
|
78
|
+
if (!match)
|
|
79
|
+
return null;
|
|
80
|
+
const frontmatter = match[1];
|
|
81
|
+
// Shape 3: block scalar — `description:` followed by a `>` or `|` header
|
|
82
|
+
// (optionally with a `-` / `+` chomping indicator) on its own line, then
|
|
83
|
+
// indented continuation lines. Stop at the first un-indented line or the
|
|
84
|
+
// end of frontmatter. We collapse the indent and join lines into a single
|
|
85
|
+
// string so the notification renderer doesn't emit raw YAML continuations.
|
|
86
|
+
//
|
|
87
|
+
// Pre-fix this regex was `[>|]` (no indicator). A SKILL.md authored with
|
|
88
|
+
// `description: >-` (the YAML strip-trailing-newlines variant — what the
|
|
89
|
+
// senpi-skills repo actually uses) didn't match, fell through to the
|
|
90
|
+
// inline branch, and ended up capturing the literal "`>-`" as the value.
|
|
91
|
+
// That's the bug report this fixes: the Telegram notification showed
|
|
92
|
+
// `>-` instead of the real description.
|
|
93
|
+
const foldedMatch = /(?:^|\n)description:[ \t]*[>|][-+]?[ \t]*\r?\n([\s\S]*?)(?=\n[^\s]|\n?$)/i.exec(frontmatter);
|
|
94
|
+
if (foldedMatch) {
|
|
95
|
+
const lines = foldedMatch[1]
|
|
96
|
+
.split(/\r?\n/)
|
|
97
|
+
.map((l) => l.replace(/^[ \t]+/, "").trim())
|
|
98
|
+
.filter((l) => l.length > 0);
|
|
99
|
+
if (lines.length > 0)
|
|
100
|
+
return lines.join(" ");
|
|
52
101
|
}
|
|
53
|
-
|
|
54
|
-
|
|
102
|
+
// Shapes 1 + 2: single-line value. Allow optional surrounding quotes.
|
|
103
|
+
// The value runs to the end of the line; trailing whitespace + matching
|
|
104
|
+
// closing quote stripped.
|
|
105
|
+
const inlineMatch = /(?:^|\n)description:[ \t]*(?:"((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|([^\r\n]+?))[ \t]*(?:\r?\n|$)/i
|
|
106
|
+
.exec(frontmatter);
|
|
107
|
+
if (inlineMatch) {
|
|
108
|
+
// Unescape `\"` and `\\` for double-quoted form; single-quoted is taken
|
|
109
|
+
// literally per YAML (no escapes). Unquoted form passes through.
|
|
110
|
+
const raw = inlineMatch[1] ?? inlineMatch[2] ?? inlineMatch[3] ?? "";
|
|
111
|
+
const value = inlineMatch[1]
|
|
112
|
+
? raw.replace(/\\(["\\])/g, "$1")
|
|
113
|
+
: raw;
|
|
114
|
+
const trimmed = value.trim();
|
|
115
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
// `summarizeDescription` (sentence-cut + char-cap truncator) was removed
|
|
120
|
+
// alongside the notification reformat in PR #78. The new nested-bullet
|
|
121
|
+
// notification format renders the full description verbatim so users get
|
|
122
|
+
// the complete context for the skill they're being notified about.
|
|
123
|
+
// Telegram's own 4096-char message limit is the only remaining ceiling,
|
|
124
|
+
// and skill descriptions in the senpi-skills repo are nowhere near that.
|
|
125
|
+
/**
|
|
126
|
+
* Read both the installed version and description for a skill from its local
|
|
127
|
+
* SKILL.md. Shared core for `readLocalVersion` and `readLocalDescription` so a
|
|
128
|
+
* tick that needs both pays a single file read per dir rather than two.
|
|
129
|
+
*
|
|
130
|
+
* Multi-dir search path: tries each entry in order and returns the first
|
|
131
|
+
* readable SKILL.md's parsed fields. Either field may be null if absent in
|
|
132
|
+
* the frontmatter — that's distinct from "no SKILL.md found at all" (which
|
|
133
|
+
* returns nulls only after every dir has been tried).
|
|
134
|
+
*/
|
|
135
|
+
export async function readLocalSkillMetadata(skillsDir, skillName, logger) {
|
|
136
|
+
const dirs = typeof skillsDir === "string" ? [skillsDir] : skillsDir;
|
|
137
|
+
for (const dir of dirs) {
|
|
138
|
+
const filePath = join(dir, skillName, "SKILL.md");
|
|
139
|
+
try {
|
|
140
|
+
const content = await readFile(filePath, "utf8");
|
|
141
|
+
// First readable SKILL.md wins, even if its fields are missing —
|
|
142
|
+
// a present-but-versionless file is meaningful state (skill predates
|
|
143
|
+
// versioning), not a "not found" signal that should let the next dir
|
|
144
|
+
// override it.
|
|
145
|
+
return {
|
|
146
|
+
version: parseSkillMdVersion(content),
|
|
147
|
+
description: parseSkillMdDescription(content),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
catch (err) {
|
|
151
|
+
if (err.code === "ENOENT") {
|
|
152
|
+
continue; // try next dir
|
|
153
|
+
}
|
|
55
154
|
logger?.warn(`[senpi-skills-manager] failed to read SKILL.md for "${skillName}" | path=${filePath} err=${formatErr(err)}`);
|
|
155
|
+
// Non-ENOENT (permissions, I/O error) — log and keep trying the
|
|
156
|
+
// remaining dirs rather than short-circuit; if one mirror is broken,
|
|
157
|
+
// a healthy mirror further down the path should still serve metadata.
|
|
56
158
|
}
|
|
57
|
-
return null;
|
|
58
159
|
}
|
|
160
|
+
return { version: null, description: null };
|
|
59
161
|
}
|
|
60
162
|
/**
|
|
61
|
-
*
|
|
163
|
+
* Read the installed version for a skill from its local SKILL.md.
|
|
164
|
+
*
|
|
165
|
+
* Accepts either a single dir (legacy callers) or an array of dirs (new
|
|
166
|
+
* multi-dir search path). When given an array, tries each entry in order and
|
|
167
|
+
* returns the first non-null match — this mirrors the documented behaviour
|
|
168
|
+
* that `skillsDir[0]` is the *primary* (writes go here) and the remaining
|
|
169
|
+
* entries are read-only fallbacks scanned during version checks.
|
|
170
|
+
*
|
|
171
|
+
* Returns null when no readable SKILL.md is found across any of the
|
|
172
|
+
* candidate dirs, or when the version field is absent. Logs a warning per
|
|
173
|
+
* dir for unexpected errors (anything other than ENOENT).
|
|
174
|
+
*/
|
|
175
|
+
export async function readLocalVersion(skillsDir, skillName, logger) {
|
|
176
|
+
return (await readLocalSkillMetadata(skillsDir, skillName, logger)).version;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Read the installed description for a skill from its local SKILL.md.
|
|
180
|
+
* Multi-dir search path semantics identical to `readLocalVersion`.
|
|
181
|
+
*
|
|
182
|
+
* Returns null when no readable SKILL.md is found across any of the
|
|
183
|
+
* candidate dirs, or when the description field is absent.
|
|
184
|
+
*/
|
|
185
|
+
export async function readLocalDescription(skillsDir, skillName, logger) {
|
|
186
|
+
return (await readLocalSkillMetadata(skillsDir, skillName, logger)).description;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Fetch the remote SKILL.md for a skill and return both the version and the
|
|
190
|
+
* description in one network round-trip.
|
|
191
|
+
*
|
|
192
|
+
* Notification text uses the description from the **remote** SKILL.md (not
|
|
193
|
+
* the local one) so the "About:" line reflects the version the user is being
|
|
194
|
+
* asked about — a description on disk for v1.x may be stale relative to the
|
|
195
|
+
* v2.0.0 the major-update notification is announcing.
|
|
62
196
|
*
|
|
63
|
-
* Returns null when the skill does not exist in the remote repo
|
|
64
|
-
* that's a legitimate state ("skill removed or not yet
|
|
65
|
-
* error, so it should not pollute failure counters.
|
|
197
|
+
* Returns null fields when the skill does not exist in the remote repo
|
|
198
|
+
* (HTTP 404) — that's a legitimate state ("skill removed or not yet
|
|
199
|
+
* published"), not an error, so it should not pollute failure counters.
|
|
200
|
+
* Both fields may also be null when the remote SKILL.md is present but
|
|
201
|
+
* its frontmatter omits the corresponding field.
|
|
66
202
|
*
|
|
67
203
|
* Throws on transient/operational failures (network errors, timeouts, 5xx
|
|
68
204
|
* responses, body-parse failures) so the caller's failure-recording path can
|
|
@@ -70,7 +206,7 @@ export async function readLocalVersion(skillsDir, skillName, logger) {
|
|
|
70
206
|
*
|
|
71
207
|
* @param fetchImpl Injectable for unit testing — defaults to global `fetch`.
|
|
72
208
|
*/
|
|
73
|
-
export async function
|
|
209
|
+
export async function fetchRemoteSkillMetadata(skillName, rawBaseUrl = SKILLS_RAW_BASE_URL, fetchImpl = fetch) {
|
|
74
210
|
const url = `${rawBaseUrl}/${encodeURIComponent(skillName)}/SKILL.md`;
|
|
75
211
|
let res;
|
|
76
212
|
try {
|
|
@@ -79,22 +215,36 @@ export async function fetchRemoteVersion(skillName, rawBaseUrl = SKILLS_RAW_BASE
|
|
|
79
215
|
catch (err) {
|
|
80
216
|
throw new Error(`Network error fetching remote SKILL.md for "${skillName}": ${formatErr(err)}`);
|
|
81
217
|
}
|
|
82
|
-
// 404 = skill is not in the remote repo. Treated as "no remote
|
|
218
|
+
// 404 = skill is not in the remote repo. Treated as "no remote metadata"
|
|
83
219
|
// rather than a failure so the caller can skip cleanly without escalating.
|
|
84
220
|
if (res.status === 404) {
|
|
85
|
-
return null;
|
|
221
|
+
return { version: null, description: null };
|
|
86
222
|
}
|
|
87
223
|
if (!res.ok) {
|
|
88
224
|
throw new Error(`Failed to fetch remote SKILL.md for "${skillName}": HTTP ${res.status} ${res.statusText}`);
|
|
89
225
|
}
|
|
90
226
|
try {
|
|
91
227
|
const text = await res.text();
|
|
92
|
-
return
|
|
228
|
+
return {
|
|
229
|
+
version: parseSkillMdVersion(text),
|
|
230
|
+
description: parseSkillMdDescription(text),
|
|
231
|
+
};
|
|
93
232
|
}
|
|
94
233
|
catch (err) {
|
|
95
234
|
throw new Error(`Failed to read response body for "${skillName}": ${formatErr(err)}`);
|
|
96
235
|
}
|
|
97
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* Fetch the remote SKILL.md for a skill and return its version.
|
|
239
|
+
*
|
|
240
|
+
* Thin wrapper over {@link fetchRemoteSkillMetadata} kept for backward
|
|
241
|
+
* compatibility with callers (and tests) that only need the version field.
|
|
242
|
+
* New code that wants both version + description in a single round-trip
|
|
243
|
+
* should call `fetchRemoteSkillMetadata` directly.
|
|
244
|
+
*/
|
|
245
|
+
export async function fetchRemoteVersion(skillName, rawBaseUrl = SKILLS_RAW_BASE_URL, fetchImpl = fetch) {
|
|
246
|
+
return (await fetchRemoteSkillMetadata(skillName, rawBaseUrl, fetchImpl)).version;
|
|
247
|
+
}
|
|
98
248
|
/**
|
|
99
249
|
* Compare the local and remote versions for a skill and return a classified diff.
|
|
100
250
|
*
|
|
@@ -107,36 +257,43 @@ export async function fetchRemoteVersion(skillName, rawBaseUrl = SKILLS_RAW_BASE
|
|
|
107
257
|
* skip.
|
|
108
258
|
*/
|
|
109
259
|
export async function checkSkillVersion(skillsDir, skillName, rawBaseUrl = SKILLS_RAW_BASE_URL, fetchImpl = fetch, logger) {
|
|
260
|
+
// Fetch the remote SKILL.md once and extract both version + description.
|
|
261
|
+
// Description is reported back to the coordinator so notifications can
|
|
262
|
+
// surface the *remote* (i.e. upcoming-version) description rather than the
|
|
263
|
+
// local one, which may be stale relative to the version the notification
|
|
264
|
+
// is announcing.
|
|
265
|
+
//
|
|
110
266
|
// Log the specific fetch failure for traceability, then re-throw so the
|
|
111
267
|
// coordinator records it as a check failure (consecutiveFailures,
|
|
112
268
|
// lastFailureReason). 404 is intentionally returned as null inside
|
|
113
|
-
//
|
|
114
|
-
const
|
|
115
|
-
logger?.warn(`[senpi-skills-manager] failed to fetch remote
|
|
269
|
+
// fetchRemoteSkillMetadata and never reaches this catch.
|
|
270
|
+
const remoteMetadataPromise = fetchRemoteSkillMetadata(skillName, rawBaseUrl, fetchImpl).catch((err) => {
|
|
271
|
+
logger?.warn(`[senpi-skills-manager] failed to fetch remote SKILL.md for "${skillName}" | err=${formatErr(err)}`);
|
|
116
272
|
throw err;
|
|
117
273
|
});
|
|
118
|
-
const [localVersion,
|
|
274
|
+
const [localVersion, remoteMetadata] = await Promise.all([
|
|
119
275
|
readLocalVersion(skillsDir, skillName, logger),
|
|
120
|
-
|
|
276
|
+
remoteMetadataPromise,
|
|
121
277
|
]);
|
|
278
|
+
const { version: remoteVersion, description: remoteDescription } = remoteMetadata;
|
|
122
279
|
const normalizedRemote = normalizeVersion(remoteVersion ?? "");
|
|
123
280
|
if (!remoteVersion || !parseSemver(normalizedRemote)) {
|
|
124
|
-
return { localVersion, remoteVersion, updateKind: "unknown" };
|
|
281
|
+
return { localVersion, remoteVersion, updateKind: "unknown", remoteDescription };
|
|
125
282
|
}
|
|
126
283
|
// Skill has never had a version in SKILL.md (null) — predates the versioning
|
|
127
284
|
// system or was installed before the field was added. Treat as a minor update
|
|
128
285
|
// so it is auto-applied without requiring a manual major-version approval.
|
|
129
286
|
if (localVersion === null) {
|
|
130
|
-
return { localVersion, remoteVersion, updateKind: "minor" };
|
|
287
|
+
return { localVersion, remoteVersion, updateKind: "minor", remoteDescription };
|
|
131
288
|
}
|
|
132
289
|
const normalizedLocal = normalizeVersion(localVersion);
|
|
133
290
|
// Local version string exists but is not valid semver even after normalisation
|
|
134
291
|
// (e.g. "latest", "nightly"). We cannot safely compare, so skip.
|
|
135
292
|
if (!parseSemver(normalizedLocal)) {
|
|
136
|
-
return { localVersion, remoteVersion, updateKind: "unknown" };
|
|
293
|
+
return { localVersion, remoteVersion, updateKind: "unknown", remoteDescription };
|
|
137
294
|
}
|
|
138
295
|
// classifyUpdate returns AutoUpdateKind which is a strict subset of SkillUpdateKind
|
|
139
296
|
const updateKind = classifyUpdate(normalizedLocal, normalizedRemote);
|
|
140
|
-
return { localVersion, remoteVersion, updateKind };
|
|
297
|
+
return { localVersion, remoteVersion, updateKind, remoteDescription };
|
|
141
298
|
}
|
|
142
299
|
//# sourceMappingURL=version-manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-manager.js","sourceRoot":"","sources":["../../src/skills-manager/version-manager.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,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IAC9E,2EAA2E;IAC3E,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;QAC1B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACjF,CAAC;IAED,MAAM,eAAe,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAEvD,+EAA+E;IAC/E,iEAAiE;IACjE,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC;QAClC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;IACnF,CAAC;IAED,oFAAoF;IACpF,MAAM,UAAU,GAAG,cAAc,CAAC,eAAe,EAAE,gBAAgB,CAAoB,CAAC;IACxF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC;AACxE,CAAC"}
|
package/openclaw.plugin.json
CHANGED
|
@@ -74,11 +74,10 @@
|
|
|
74
74
|
"skillsManager": {
|
|
75
75
|
"type": "object",
|
|
76
76
|
"additionalProperties": false,
|
|
77
|
-
"description": "Skills manager configuration.
|
|
77
|
+
"description": "Skills manager configuration. Checks the senpi-skills repo for updates to declared skills after each plugin auto-update tick and applies patch/minor updates automatically (major updates are notify-only). Cadence is inherited from `autoUpdate.pollIntervalMinutes`; this block has no independent poll interval. Omit this block to use defaults.",
|
|
78
78
|
"default": {
|
|
79
79
|
"enabled": true,
|
|
80
|
-
"skills": ["senpi-trading-runtime"]
|
|
81
|
-
"pollIntervalMinutes": 60
|
|
80
|
+
"skills": ["senpi-trading-runtime"]
|
|
82
81
|
},
|
|
83
82
|
"properties": {
|
|
84
83
|
"enabled": {
|
|
@@ -86,12 +85,11 @@
|
|
|
86
85
|
"description": "Enable or disable the skills manager (default: true)"
|
|
87
86
|
},
|
|
88
87
|
"skillsDir": {
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"description": "Minutes between version checks (default: 60, range: 1-1440)"
|
|
88
|
+
"oneOf": [
|
|
89
|
+
{ "type": "string" },
|
|
90
|
+
{ "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }
|
|
91
|
+
],
|
|
92
|
+
"description": "Directory (or directories) where managed skills are installed. Accepts a single string for one dir, or an array for a search path. With multiple, the first is the *primary* (writes go here on bootstrap/install); the rest are read-only mirrors scanned during version checks and discovery. Default: /data/.openclaw/skills. Env override: SENPI_SKILLS_DIR (comma-separated for multi-dir; use the JSON array form for paths containing commas)."
|
|
95
93
|
},
|
|
96
94
|
"skills": {
|
|
97
95
|
"type": "array",
|
package/package.json
CHANGED