@hasna/skills 0.2.0 → 0.2.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.
@@ -29,6 +29,12 @@ export interface PushSkillResult {
29
29
  response?: unknown;
30
30
  /** The version the instance recorded (after any --force-new-version bump). */
31
31
  version?: string;
32
+ /**
33
+ * True when the publish was idempotent: the version this push ended on already
34
+ * existed on the instance with these exact bytes, so nothing new was recorded
35
+ * (hasna/apps#1671). Distinct from a fresh "published as X".
36
+ */
37
+ alreadyPublished?: boolean;
32
38
  /** Per-file digests and provenance sent alongside the bundle. */
33
39
  manifest?: SkillVersionManifest;
34
40
  }
@@ -64,4 +70,12 @@ export interface SkillVersionManifest {
64
70
  * paths beyond the machine name.
65
71
  */
66
72
  export declare function buildVersionManifest(skillDir: string, packed: PackedSkillBundle): SkillVersionManifest;
73
+ /**
74
+ * Strip userinfo (username/password) from a git remote URL before it is recorded in a
75
+ * version manifest. Only URL schemes where userinfo is HTTP-style credentials are
76
+ * stripped: an ssh login user (`ssh://git@host/...`, or scp-style `git@host:path`,
77
+ * which never parses as a URL) is the transport user, not an embedded credential, and
78
+ * passes through unchanged.
79
+ */
80
+ export declare function sanitizeGitRemote(url: string | null): string | null;
67
81
  export type { PackedSkillBundle };