@a5c-ai/babysitter-sdk 0.0.169 → 0.0.170-staging.00aac85c
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/dist/cli/commands/configure.d.ts +124 -0
- package/dist/cli/commands/configure.d.ts.map +1 -0
- package/dist/cli/commands/configure.js +514 -0
- package/dist/cli/commands/health.d.ts +89 -0
- package/dist/cli/commands/health.d.ts.map +1 -0
- package/dist/cli/commands/health.js +579 -0
- package/dist/cli/commands/hookLog.d.ts +15 -0
- package/dist/cli/commands/hookLog.d.ts.map +1 -0
- package/dist/cli/commands/hookLog.js +286 -0
- package/dist/cli/commands/hookRun.d.ts +20 -0
- package/dist/cli/commands/hookRun.d.ts.map +1 -0
- package/dist/cli/commands/hookRun.js +544 -0
- package/dist/cli/commands/runExecuteTasks.d.ts +42 -0
- package/dist/cli/commands/runExecuteTasks.d.ts.map +1 -0
- package/dist/cli/commands/runExecuteTasks.js +377 -0
- package/dist/cli/commands/runIterate.d.ts +5 -1
- package/dist/cli/commands/runIterate.d.ts.map +1 -1
- package/dist/cli/commands/runIterate.js +75 -6
- package/dist/cli/commands/session.d.ts +97 -0
- package/dist/cli/commands/session.d.ts.map +1 -0
- package/dist/cli/commands/session.js +922 -0
- package/dist/cli/commands/skill.d.ts +87 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +869 -0
- package/dist/cli/completionProof.d.ts +4 -0
- package/dist/cli/completionProof.d.ts.map +1 -0
- package/dist/cli/{completionSecret.js → completionProof.js} +7 -7
- package/dist/cli/main.d.ts +14 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +649 -16
- package/dist/config/defaults.d.ts +165 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +281 -0
- package/dist/config/index.d.ts +25 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +35 -0
- package/dist/hooks/dispatcher.d.ts.map +1 -1
- package/dist/hooks/dispatcher.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/runtime/constants.d.ts +1 -1
- package/dist/runtime/constants.d.ts.map +1 -1
- package/dist/runtime/createRun.d.ts.map +1 -1
- package/dist/runtime/createRun.js +7 -3
- package/dist/runtime/exceptions.d.ts +186 -3
- package/dist/runtime/exceptions.d.ts.map +1 -1
- package/dist/runtime/exceptions.js +416 -15
- package/dist/runtime/types.d.ts +1 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/session/index.d.ts +9 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +30 -0
- package/dist/session/parse.d.ts +45 -0
- package/dist/session/parse.d.ts.map +1 -0
- package/dist/session/parse.js +159 -0
- package/dist/session/types.d.ts +194 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +45 -0
- package/dist/session/write.d.ts +50 -0
- package/dist/session/write.d.ts.map +1 -0
- package/dist/session/write.js +196 -0
- package/dist/storage/createRunDir.d.ts.map +1 -1
- package/dist/storage/createRunDir.js +1 -0
- package/dist/storage/paths.d.ts +5 -1
- package/dist/storage/paths.d.ts.map +1 -1
- package/dist/storage/paths.js +6 -1
- package/dist/storage/types.d.ts +3 -1
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/tasks/kinds/index.d.ts.map +1 -1
- package/dist/tasks/kinds/index.js +6 -1
- package/dist/testing/runHarness.d.ts.map +1 -1
- package/dist/testing/runHarness.js +5 -1
- package/package.json +1 -2
- package/dist/cli/completionSecret.d.ts +0 -4
- package/dist/cli/completionSecret.d.ts.map +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill, agent, and process discovery CLI commands.
|
|
3
|
+
* Replaces bash logic from skill-context-resolver.sh and skill-discovery.sh
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Parsed arguments for skill commands.
|
|
7
|
+
*/
|
|
8
|
+
export interface SkillCommandArgs {
|
|
9
|
+
pluginRoot?: string;
|
|
10
|
+
runId?: string;
|
|
11
|
+
cacheTtl?: number;
|
|
12
|
+
sourceType?: 'github' | 'well-known';
|
|
13
|
+
url?: string;
|
|
14
|
+
json: boolean;
|
|
15
|
+
runsDir?: string;
|
|
16
|
+
includeRemote?: boolean;
|
|
17
|
+
summaryOnly?: boolean;
|
|
18
|
+
processPath?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Discovered skill metadata.
|
|
22
|
+
*/
|
|
23
|
+
export interface SkillMetadata {
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
category: string;
|
|
27
|
+
source: 'local' | 'local-plugin' | 'remote';
|
|
28
|
+
file?: string;
|
|
29
|
+
url?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Discovered agent metadata.
|
|
33
|
+
*/
|
|
34
|
+
export interface AgentMetadata {
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
role?: string;
|
|
38
|
+
category: string;
|
|
39
|
+
source: 'local' | 'local-plugin' | 'remote';
|
|
40
|
+
file?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Discovered process metadata.
|
|
44
|
+
*/
|
|
45
|
+
export interface ProcessMetadata {
|
|
46
|
+
name: string;
|
|
47
|
+
category: string;
|
|
48
|
+
source: 'library' | 'repo';
|
|
49
|
+
file: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Result from internal discovery.
|
|
53
|
+
*/
|
|
54
|
+
export interface DiscoverSkillsResult {
|
|
55
|
+
skills: SkillMetadata[];
|
|
56
|
+
agents: AgentMetadata[];
|
|
57
|
+
processes?: ProcessMetadata[];
|
|
58
|
+
summary: string;
|
|
59
|
+
cached: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Internal discovery logic, extracted for reuse by other CLI commands
|
|
63
|
+
* (e.g. session:iteration-message, hookRun stop handler).
|
|
64
|
+
*
|
|
65
|
+
* Returns a structured result instead of writing to stdout.
|
|
66
|
+
*/
|
|
67
|
+
export declare function discoverSkillsInternal(options: {
|
|
68
|
+
pluginRoot: string;
|
|
69
|
+
runId?: string;
|
|
70
|
+
cacheTtl?: number;
|
|
71
|
+
runsDir?: string;
|
|
72
|
+
includeRemote?: boolean;
|
|
73
|
+
processPath?: string;
|
|
74
|
+
includeProcesses?: boolean;
|
|
75
|
+
}): Promise<DiscoverSkillsResult>;
|
|
76
|
+
/**
|
|
77
|
+
* Handle skill:discover command.
|
|
78
|
+
* Scans for available skills, agents, and processes in plugin and repo directories.
|
|
79
|
+
* Thin wrapper around discoverSkillsInternal that handles CLI I/O.
|
|
80
|
+
*/
|
|
81
|
+
export declare function handleSkillDiscover(args: SkillCommandArgs): Promise<number>;
|
|
82
|
+
/**
|
|
83
|
+
* Handle skill:fetch-remote command.
|
|
84
|
+
* Fetches skills from external sources (GitHub or well-known).
|
|
85
|
+
*/
|
|
86
|
+
export declare function handleSkillFetchRemote(args: SkillCommandArgs): Promise<number>;
|
|
87
|
+
//# sourceMappingURL=skill.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/skill.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAA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