@lawaty/lacode 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2410,8 +2410,9 @@ async function selfUpdateHooks(input, options) {
2410
2410
  if (opts.enabled === false || opts.selfUpdate === false) return {};
2411
2411
  const log = (level, message, extra) => input.client.app.log({ body: { service: "lacode", level, message, extra } }).catch(() => {
2412
2412
  });
2413
- void maybeSelfUpdate({ packageRoot: PACKAGE_ROOT, enabled: opts.enabled, log }).catch(() => {
2414
- });
2413
+ void maybeSelfUpdate({ packageRoot: PACKAGE_ROOT, enabled: opts.enabled, log }).then((result) => {
2414
+ if (result.action !== "disabled") log("debug", `self-update check: ${JSON.stringify(result)}`);
2415
+ }).catch((error) => log("error", `self-update check threw: ${String(error)}`));
2415
2416
  return {};
2416
2417
  }
2417
2418
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lawaty/lacode",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Ultimate opencode setup for Go users — cost-controlled pooled subagents, hang recovery, and notifications for opencode.",
5
5
  "license": "MIT",
6
6
  "type": "module",