@hasna/skills 0.10.28 → 0.10.31

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.
@@ -1,4 +1,4 @@
1
- export declare const INTEGRATION_AGENTS: readonly ["claude", "codex", "gemini", "opencode", "cursor", "hermes"];
1
+ export declare const INTEGRATION_AGENTS: readonly ["claude", "codex", "gemini", "opencode", "cursor", "hermes", "sumi"];
2
2
  export type IntegrationAgent = typeof INTEGRATION_AGENTS[number];
3
3
  export declare function renderAgentHookCommand(command: string, agent: IntegrationAgent, profileId: string, event: string): string;
4
4
  export declare const AGENT_ADAPTERS: {
@@ -26,6 +26,12 @@ export declare const AGENT_ADAPTERS: {
26
26
  readonly events: readonly ["chat.message"];
27
27
  readonly promptContext: true;
28
28
  };
29
+ readonly sumi: {
30
+ readonly root: ".hasna-internal/sumi/config/skills";
31
+ readonly config: ".hasna-internal/sumi/config/sumi.json";
32
+ readonly events: readonly ["prompt", "context"];
33
+ readonly promptContext: true;
34
+ };
29
35
  readonly hermes: {
30
36
  readonly root: ".hermes/skills";
31
37
  readonly config: ".hermes/config.yaml";
@@ -0,0 +1,15 @@
1
+ export declare function sumiConfigDirectory(home: string, env?: NodeJS.ProcessEnv): string;
2
+ export declare function sumiBridgeRoot(home: string): string;
3
+ export declare function sumiConfigPath(home: string): string;
4
+ /** Native V2 plugin, not an OpenCode chat.message factory. Instructions enter
5
+ * transient request context; prompts and the plugin carry no payload fallback. */
6
+ export declare function renderSumiPlugin(command: string, profile: string): string;
7
+ export declare const SUMI_SKILL_PERMISSIONS: readonly [{
8
+ readonly action: "skill";
9
+ readonly resource: "*";
10
+ readonly effect: "deny";
11
+ }, {
12
+ readonly action: "skill";
13
+ readonly resource: "skills-cli";
14
+ readonly effect: "allow";
15
+ }];
@@ -1,2 +1,2 @@
1
1
  /** Shared default discovery roots for inventory and authoring exclusion. */
2
- export declare const NATIVE_SKILL_ROOTS: readonly [readonly ["claude", ".claude/skills"], readonly ["codex", ".codex/skills"], readonly ["codex", ".agents/skills"], readonly ["gemini", ".gemini/skills"], readonly ["codewith", ".codewith/skills"], readonly ["opencode", ".config/opencode/skills"], readonly ["opencode", ".opencode/skills"], readonly ["cursor", ".cursor/skills"], readonly ["hermes", ".hermes/skills"], readonly ["windsurf", ".windsurf/skills"], readonly ["pi", ".pi/agent/skills"], readonly ["amp", ".amp/skills"], readonly ["cline", ".cline/skills"], readonly ["roo", ".roo/skills"], readonly ["copilot", ".github/skills"]];
2
+ export declare const NATIVE_SKILL_ROOTS: readonly [readonly ["claude", ".claude/skills"], readonly ["codex", ".codex/skills"], readonly ["codex", ".agents/skills"], readonly ["gemini", ".gemini/skills"], readonly ["sumi", ".sumi/skills"], readonly ["sumi", ".sumi/skill"], readonly ["codewith", ".codewith/skills"], readonly ["opencode", ".config/opencode/skills"], readonly ["opencode", ".opencode/skills"], readonly ["cursor", ".cursor/skills"], readonly ["hermes", ".hermes/skills"], readonly ["windsurf", ".windsurf/skills"], readonly ["pi", ".pi/agent/skills"], readonly ["amp", ".amp/skills"], readonly ["cline", ".cline/skills"], readonly ["roo", ".roo/skills"], readonly ["copilot", ".github/skills"]];
@@ -14,8 +14,25 @@ export declare function loadBasicRegistry(cwd?: string): SkillMeta[];
14
14
  export declare function loadRegistryProfile(profile?: SkillRegistryProfile, cwd?: string): SkillMeta[];
15
15
  /** Invalidate the registry cache (e.g. after installing a custom skill). */
16
16
  export declare function clearRegistryCache(): void;
17
- export declare function getSkillsByCategory(category: Category): SkillMeta[];
17
+ /** Query a caller catalog without reading configuration; omitted catalogs use the local registry. */
18
+ export declare function getSkillsByCategory(category: Category, catalog?: undefined): SkillMeta[];
19
+ export declare function getSkillsByCategory<T extends {
20
+ readonly category: string;
21
+ }>(category: string, catalog: readonly T[]): T[];
22
+ export declare function getSkillsByCategory<T extends {
23
+ readonly category: string;
24
+ }>(category: string, catalog: readonly T[] | undefined): Array<T | SkillMeta>;
18
25
  export { searchSkills, findSimilarSkills } from "./search.js";
19
26
  export declare function getSkill(name: string): SkillMeta | undefined;
20
- export declare function getSkillsByTag(tag: string): SkillMeta[];
21
- export declare function getAllTags(): string[];
27
+ /** Match tag substrings without changing caller records or their readonly tags. */
28
+ export declare function getSkillsByTag(tag: string, catalog?: undefined): SkillMeta[];
29
+ export declare function getSkillsByTag<T extends {
30
+ readonly tags: readonly string[];
31
+ }>(tag: string, catalog: readonly T[]): T[];
32
+ export declare function getSkillsByTag<T extends {
33
+ readonly tags: readonly string[];
34
+ }>(tag: string, catalog: readonly T[] | undefined): Array<T | SkillMeta>;
35
+ /** Lowercase, deduplicate and sort tags from the explicit catalog or local registry. */
36
+ export declare function getAllTags<T extends {
37
+ readonly tags: readonly string[];
38
+ }>(catalog?: readonly T[]): string[];
@@ -14,6 +14,7 @@ export interface SelectionResolverOptions extends SelectionCacheOptions {
14
14
  sessionId?: string;
15
15
  /** A newly spawned subagent inherits the parent's pinned snapshot, never its dedup state. */
16
16
  parentSessionId?: string;
17
+ nativeParentSessionId?: string | null;
17
18
  }
18
19
  export interface SyncSelectionProfileOptions extends SelectionCacheOptions {
19
20
  client?: ProfileClient;
@@ -7,6 +7,8 @@ export interface SkillContextInput {
7
7
  profileId?: string;
8
8
  restore?: boolean;
9
9
  agentId?: string;
10
+ /** Exact native session custody; null explicitly declares a root. */
11
+ parentSessionId?: string | null;
10
12
  skills?: string[];
11
13
  paths?: string[];
12
14
  }