assistme 0.8.3 → 0.8.4

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.
@@ -3015,7 +3015,10 @@ var SkillManager = class {
3015
3015
  }
3016
3016
  // ── Create / Update / Remove ──────────────────────────────────
3017
3017
  async create(name, description, content, options) {
3018
- if (!this.userId) return null;
3018
+ if (!this.userId) {
3019
+ log.warn(`Skill create skipped for "${name}": no userId set`);
3020
+ return null;
3021
+ }
3019
3022
  try {
3020
3023
  const metadata = options?.emoji ? { openclaw: { emoji: options.emoji } } : {};
3021
3024
  const data = await callMcpHandler(
@@ -3060,7 +3063,7 @@ var SkillManager = class {
3060
3063
  log.info(`Skill "${skillName}" created in skills table (pending approval)`);
3061
3064
  return { id, name: skillName };
3062
3065
  } catch (err) {
3063
- log.debug(`Skill create error: ${err}`);
3066
+ log.warn(`Skill create error for "${name}": ${err instanceof Error ? err.message : err}`);
3064
3067
  return null;
3065
3068
  }
3066
3069
  }
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  setSessionBusy,
28
28
  toggleScheduledTask,
29
29
  updateHeartbeat
30
- } from "./chunk-UHGTMSLZ.js";
30
+ } from "./chunk-R7A3MKYO.js";
31
31
  import {
32
32
  HEARTBEAT_INTERVAL_MS,
33
33
  HEARTBEAT_LOG_MAX_ENTRIES,
@@ -19,7 +19,7 @@ import {
19
19
  pollActionResponse,
20
20
  resetEventSequence,
21
21
  setActionRequest
22
- } from "../chunk-UHGTMSLZ.js";
22
+ } from "../chunk-R7A3MKYO.js";
23
23
  import {
24
24
  EDSGER_PRODUCT_SLUG,
25
25
  JobRunner,
@@ -1740,7 +1740,12 @@ function createAgentToolsServer(deps) {
1740
1740
  });
1741
1741
  if (!result) {
1742
1742
  return {
1743
- content: [{ type: "text", text: `Failed to create skill "${args.name}".` }]
1743
+ content: [
1744
+ {
1745
+ type: "text",
1746
+ text: `Failed to create skill "${args.name}". Check logs for details (userId may not be set, or database error).`
1747
+ }
1748
+ ]
1744
1749
  };
1745
1750
  }
1746
1751
  await skillManager.syncToAgentSkills(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistme",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "AssistMe CLI Agent - AI-powered agentic assistant for code, browser, and automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -258,7 +258,10 @@ export class SkillManager {
258
258
  content: string,
259
259
  options?: { source?: string; emoji?: string; keywords?: string[] }
260
260
  ): Promise<{ id: string; name: string } | null> {
261
- if (!this.userId) return null;
261
+ if (!this.userId) {
262
+ log.warn(`Skill create skipped for "${name}": no userId set`);
263
+ return null;
264
+ }
262
265
 
263
266
  try {
264
267
  const metadata = options?.emoji ? { openclaw: { emoji: options.emoji } } : {};
@@ -309,7 +312,7 @@ export class SkillManager {
309
312
  log.info(`Skill "${skillName}" created in skills table (pending approval)`);
310
313
  return { id, name: skillName };
311
314
  } catch (err) {
312
- log.debug(`Skill create error: ${err}`);
315
+ log.warn(`Skill create error for "${name}": ${err instanceof Error ? err.message : err}`);
313
316
  return null;
314
317
  }
315
318
  }
@@ -129,7 +129,12 @@ export function createAgentToolsServer(deps: AgentToolsDeps): McpSdkServerConfig
129
129
 
130
130
  if (!result) {
131
131
  return {
132
- content: [{ type: "text", text: `Failed to create skill "${args.name}".` }],
132
+ content: [
133
+ {
134
+ type: "text",
135
+ text: `Failed to create skill "${args.name}". Check logs for details (userId may not be set, or database error).`,
136
+ },
137
+ ],
133
138
  };
134
139
  }
135
140