@hasna/skills 0.10.0 → 0.10.2

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/bin/worker.js CHANGED
@@ -24125,7 +24125,7 @@ import { randomUUID as randomUUID6 } from "crypto";
24125
24125
  // package.json
24126
24126
  var package_default = {
24127
24127
  name: "@hasna/skills",
24128
- version: "0.10.0",
24128
+ version: "0.10.2",
24129
24129
  description: "Skills library for AI coding agents",
24130
24130
  type: "module",
24131
24131
  bin: {
@@ -36401,15 +36401,11 @@ function resolveServerConfig(env = process.env) {
36401
36401
  requestBodyLimitBytes: parsePositiveInt(env.HASNA_SKILLS_REQUEST_BODY_LIMIT_BYTES, 1e6),
36402
36402
  skillBundleLimitBytes: parsePositiveInt(env.HASNA_SKILLS_BUNDLE_LIMIT_BYTES, 25000000),
36403
36403
  tombstoneWindowMs: parsePositiveInt(env.HASNA_SKILLS_TOMBSTONE_WINDOW_MS, 7 * 24 * 60 * 60 * 1000),
36404
- publicBaseUrl: (env.SKILLS_PUBLIC_BASE_URL || localOrigin(host, port)).replace(/\/+$/, ""),
36404
+ publicBaseUrl: (env.SKILLS_PUBLIC_BASE_URL || "").replace(/\/+$/, ""),
36405
36405
  nodeEnv,
36406
36406
  allowEphemeralStore: env.HASNA_SKILLS_ALLOW_EPHEMERAL_STORE === "1"
36407
36407
  };
36408
36408
  }
36409
- function localOrigin(host, port) {
36410
- const hostname = host === "0.0.0.0" || host === "::" ? "localhost" : host;
36411
- return `http://${hostname.includes(":") ? `[${hostname}]` : hostname}:${port}`;
36412
- }
36413
36409
  function parsePositiveInt(value, fallback) {
36414
36410
  const parsed = Number.parseInt(value ?? "", 10);
36415
36411
  return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
@@ -1,3 +1,3 @@
1
- /** Called once by the program's preAction hook, before `--profile` is applied. */
1
+ /** Called once by the program's preAction hook. */
2
2
  export declare function recordEnvironmentProfile(value: string | undefined): void;
3
3
  export declare function getEnvironmentProfile(): string | undefined;