agents 0.30.1 → 0.32.0
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/README.md +2 -1
- package/dist/{agent-routing-CDbpVjYq.d.ts → agent-routing-vVMA7m8Y.d.ts} +69 -608
- package/dist/agent-routing.d.ts +1 -1
- package/dist/agent-tool-types.d.ts +1 -1
- package/dist/{agent-tools-C8DH8Yii.d.ts → agent-tools-gGXXkf1z.d.ts} +2 -2
- package/dist/agent-tools.d.ts +1 -1
- package/dist/agent-tools.js +0 -1
- package/dist/agent-tools.js.map +1 -1
- package/dist/{ai-iXw0uOGj.d.ts → ai-CDn3Abax.d.ts} +30 -4
- package/dist/{ai-sdk-DRPh2rRa.js → ai-sdk-Kon40i0q.js} +2 -36
- package/dist/ai-sdk-Kon40i0q.js.map +1 -0
- package/dist/browser/ai.d.ts +1 -1
- package/dist/browser/ai.js +16 -3
- package/dist/browser/ai.js.map +1 -1
- package/dist/browser/index.d.ts +64 -16
- package/dist/browser/index.js +4 -4
- package/dist/browser/tools/ai-sdk.d.ts +7 -5
- package/dist/browser/tools/ai-sdk.js +4 -4
- package/dist/browser/tools/ai-sdk.js.map +1 -1
- package/dist/browser/tools/pi.d.ts +9 -15
- package/dist/browser/tools/pi.js +6 -14
- package/dist/browser/tools/pi.js.map +1 -1
- package/dist/browser/tools/tanstack-ai.d.ts +48 -25
- package/dist/browser/tools/tanstack-ai.js +8 -4
- package/dist/browser/tools/tanstack-ai.js.map +1 -1
- package/dist/{browser-DccPw_wW.js → browser-1eUbPvC2.js} +413 -14
- package/dist/browser-1eUbPvC2.js.map +1 -0
- package/dist/{browser-DlXhSAdf.d.ts → browser-D9RNpJuT.d.ts} +254 -20
- package/dist/browser-tool-BhjCcNVE.d.ts +71 -0
- package/dist/browser-tool-DRan7Lk6.js +497 -0
- package/dist/browser-tool-DRan7Lk6.js.map +1 -0
- package/dist/capability-id-B3J8Nok_.js +13 -0
- package/dist/capability-id-B3J8Nok_.js.map +1 -0
- package/dist/catalog-BpOejOsE.js +239 -0
- package/dist/catalog-BpOejOsE.js.map +1 -0
- package/dist/catalog-BpiVV1OF.d.ts +173 -0
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/chat-sdk/index.js +1 -1
- package/dist/client-4OlMIJx-.js.map +1 -1
- package/dist/{client-BnYbNT3z.js → client-DMWujQJ1.js} +68 -244
- package/dist/client-DMWujQJ1.js.map +1 -0
- package/dist/{client-C27CtRZr.d.ts → client-eSfgYvd3.d.ts} +9 -7
- package/dist/client.d.ts +1 -1
- package/dist/{cloudflare-Dzvc7V2N.js → cloudflare-CUUm_9q9.js} +26 -4
- package/dist/cloudflare-CUUm_9q9.js.map +1 -0
- package/dist/{connector-DAXBOIIi.js → connector-CM-uuxKM.js} +96 -8
- package/dist/connector-CM-uuxKM.js.map +1 -0
- package/dist/{connector-20DJ6p4k.d.ts → connector-DZ71EjE-.d.ts} +109 -9
- package/dist/{do-oauth-client-provider-DfsUcpc3.d.ts → do-oauth-client-provider-DtNqv7oj.d.ts} +26 -2
- package/dist/{index-YSKgfgg9.d.ts → emitter-BJZtCVjQ.d.ts} +6 -140
- package/dist/emitter-DPOVcCln.js +15 -0
- package/dist/emitter-DPOVcCln.js.map +1 -0
- package/dist/experimental/channels/web/index.js +1 -1
- package/dist/experimental/webmcp.js +1 -1
- package/dist/{handler-stateless-Bly_nSH3.js → handler-stateless-B5hU3dxK.js} +35 -2
- package/dist/handler-stateless-B5hU3dxK.js.map +1 -0
- package/dist/{handler-stateless-DxYpJ_XF.d.ts → handler-stateless-C90kD5_R.d.ts} +3 -47
- package/dist/harness/container/index.d.ts +15 -15
- package/dist/harness/container/index.js +0 -1
- package/dist/harness/container/index.js.map +1 -1
- package/dist/harness/container/runtime/index.js +2 -2
- package/dist/harness/opencode/index.js +0 -1
- package/dist/harness/opencode/index.js.map +1 -1
- package/dist/harness/pi/index.d.ts +15 -7
- package/dist/harness/pi/index.js +74 -151
- package/dist/harness/pi/index.js.map +1 -1
- package/dist/harness/think/index.d.ts +2 -1
- package/dist/{images-xaDv2Fqe.js → images-CfuRCjwq.js} +1 -5
- package/dist/images-CfuRCjwq.js.map +1 -0
- package/dist/{index-DCxk3OSJ.d.ts → index-8k4qsX1T.d.ts} +2 -28
- package/dist/index.d.ts +15 -16
- package/dist/index.js +3 -3
- package/dist/internal-hosts-Kfp5A392.d.ts +230 -0
- package/dist/internal-kmw70xwR.js.map +1 -1
- package/dist/invoker-BC1SZ3q1.js +26 -0
- package/dist/invoker-BC1SZ3q1.js.map +1 -0
- package/dist/invoker-DoLFPJZV.d.ts +21 -0
- package/dist/markdown-BZ-VLtA1.js +86 -0
- package/dist/markdown-BZ-VLtA1.js.map +1 -0
- package/dist/mcp/client/do-oauth-client-provider.d.ts +4 -2
- package/dist/mcp/client/do-oauth-client-provider.js +15 -1
- package/dist/mcp/client/do-oauth-client-provider.js.map +1 -1
- package/dist/mcp/client/index.d.ts +15 -1
- package/dist/mcp/client/index.js +2 -2
- package/dist/mcp/client/x402.d.ts +7 -5
- package/dist/mcp/client/x402.js +34 -1
- package/dist/mcp/client/x402.js.map +1 -1
- package/dist/mcp/index.d.ts +561 -27
- package/dist/mcp/index.js +180 -3
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server/index.d.ts +1 -1
- package/dist/mcp/server/index.js +1 -1
- package/dist/models/ai-sdk/index.d.ts +2 -2
- package/dist/models/ai-sdk/index.js +1 -1
- package/dist/models/opencode/index.d.ts +2 -2
- package/dist/models/opencode/index.js +1 -1
- package/dist/models/pi-ai/index.d.ts +3 -28
- package/dist/models/pi-ai/index.js +160 -18
- package/dist/models/pi-ai/index.js.map +1 -1
- package/dist/observability/ai/index.js +1 -2
- package/dist/observability/ai/index.js.map +1 -1
- package/dist/observability/index.d.ts +170 -9
- package/dist/observability/index.js +386 -11
- package/dist/observability/index.js.map +1 -1
- package/dist/protocol-BEgrJYC5.d.ts +29 -29
- package/dist/react.d.ts +2 -2
- package/dist/resource-B59OV2a2.js +325 -0
- package/dist/resource-B59OV2a2.js.map +1 -0
- package/dist/routing/index.d.ts +1 -1
- package/dist/script-CFDLTk5b.d.ts +91 -0
- package/dist/script-workspace-BpdAYq1R.d.ts +41 -0
- package/dist/serializable.d.ts +1 -1
- package/dist/{session-store-yvwq1f9x.js → session-7CDgVE0z.js} +455 -33
- package/dist/session-7CDgVE0z.js.map +1 -0
- package/dist/{session-store-_IK6dV-w.d.ts → session-store-B7Ca-u1t.d.ts} +8 -1
- package/dist/settings-Dk2il2Hf.js.map +1 -1
- package/dist/skill-DRBcIBjC.d.ts +221 -0
- package/dist/skills/index.d.ts +275 -36
- package/dist/skills/index.js +265 -1534
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/runner.d.ts +37 -0
- package/dist/skills/runner.js +912 -0
- package/dist/skills/runner.js.map +1 -0
- package/dist/skills/tools/ai-sdk.d.ts +36 -0
- package/dist/skills/tools/ai-sdk.js +94 -0
- package/dist/skills/tools/ai-sdk.js.map +1 -0
- package/dist/source-9RQzlEhM.d.ts +112 -0
- package/dist/{src-DfLzdwlK.js → src-DoGNJ4Ud.js} +21 -6
- package/dist/src-DoGNJ4Ud.js.map +1 -0
- package/dist/sub-routing.d.ts +12 -12
- package/dist/tool-CTp72Jb_.d.ts +10 -10
- package/dist/tool-CxKsvxjm.js.map +1 -1
- package/dist/tool-DkT_DJBm.js.map +1 -1
- package/dist/tool-DoVberpN.d.ts +22 -22
- package/dist/tool-helpers-BI7ifO2S.js +255 -0
- package/dist/tool-helpers-BI7ifO2S.js.map +1 -0
- package/dist/{transport-CPh7YGiw.d.ts → transport-5moD2pW5.d.ts} +1 -43
- package/dist/types-D2naO3rA.d.ts +49 -0
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +10 -258
- package/dist/vite.js.map +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/websockets/index.js +1 -1
- package/dist/{websockets-CyoeosdO.js → websockets-C6SJtWCJ.js} +1 -2
- package/dist/{websockets-CyoeosdO.js.map → websockets-C6SJtWCJ.js.map} +1 -1
- package/dist/workflow-types.d.ts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.js +0 -1
- package/dist/workflows.js.map +1 -1
- package/docs/browse-the-web.md +247 -413
- package/docs/harnesses/pi.md +36 -30
- package/docs/index.md +4 -4
- package/docs/mcp-client.md +25 -1
- package/docs/mcp-servers.md +26 -7
- package/docs/models-pi-ai.md +9 -11
- package/docs/models.md +1 -8
- package/docs/observability.md +5 -3
- package/docs/securing-mcp-servers.md +113 -302
- package/package.json +31 -17
- package/dist/ai-sdk-DRPh2rRa.js.map +0 -1
- package/dist/browser-DccPw_wW.js.map +0 -1
- package/dist/browser-tool-B1mhifin.js +0 -616
- package/dist/browser-tool-B1mhifin.js.map +0 -1
- package/dist/browser-tool-Cxjk5sgG.d.ts +0 -92
- package/dist/client-BnYbNT3z.js.map +0 -1
- package/dist/cloudflare-Dzvc7V2N.js.map +0 -1
- package/dist/connector-DAXBOIIi.js.map +0 -1
- package/dist/handler-stateless-Bly_nSH3.js.map +0 -1
- package/dist/images-xaDv2Fqe.js.map +0 -1
- package/dist/index-iv9FTXX9.d.ts +0 -311
- package/dist/invoker-CG0_p_Wq.d.ts +0 -20
- package/dist/invoker-CHMnoxIA.js +0 -57
- package/dist/invoker-CHMnoxIA.js.map +0 -1
- package/dist/session-store-yvwq1f9x.js.map +0 -1
- package/dist/skills/compile.d.ts +0 -40
- package/dist/skills/compile.js +0 -65
- package/dist/skills/compile.js.map +0 -1
- package/dist/src-DfLzdwlK.js.map +0 -1
- package/dist/tool-helpers-O5BDVEAY.js +0 -58
- package/dist/tool-helpers-O5BDVEAY.js.map +0 -1
- package/skills-module.d.ts +0 -22
package/dist/skills/index.d.ts
CHANGED
|
@@ -1,52 +1,291 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
a as SkillParseErrorCode,
|
|
3
|
+
c as parseSkillName,
|
|
4
|
+
d as SkillResourceInfo,
|
|
5
|
+
f as SkillResourceKind,
|
|
6
|
+
h as SkillResult,
|
|
7
|
+
i as SkillParseError,
|
|
8
|
+
l as InvalidSkillResourcePathError,
|
|
9
|
+
m as parseSkillResourcePath,
|
|
10
|
+
n as Skill,
|
|
11
|
+
o as SkillParseResult,
|
|
12
|
+
p as SkillResourcePath,
|
|
13
|
+
r as SkillName,
|
|
14
|
+
s as isModelInvocable,
|
|
15
|
+
t as ParseSkillOptions,
|
|
16
|
+
u as SkillResource
|
|
17
|
+
} from "../skill-DRBcIBjC.js";
|
|
18
|
+
import {
|
|
19
|
+
a as SkillSource,
|
|
20
|
+
i as SkillResourceNotFoundError,
|
|
21
|
+
n as ListedSkill,
|
|
22
|
+
o as SkillSourceError,
|
|
23
|
+
r as SkillListing,
|
|
24
|
+
t as InvalidSkill
|
|
25
|
+
} from "../source-9RQzlEhM.js";
|
|
26
|
+
import {
|
|
27
|
+
a as SkillDiagnostic,
|
|
28
|
+
c as formatSkillDiagnostic,
|
|
29
|
+
i as SkillCatalogResource,
|
|
30
|
+
l as loadSkillCatalog,
|
|
31
|
+
n as SkillCatalog,
|
|
32
|
+
o as SkillResourceError,
|
|
33
|
+
r as SkillCatalogEntry,
|
|
34
|
+
s as UnknownSkillError,
|
|
35
|
+
t as LoadSkillCatalogOptions,
|
|
36
|
+
u as renderSkillResource
|
|
37
|
+
} from "../catalog-BpiVV1OF.js";
|
|
38
|
+
import {
|
|
39
|
+
a as SkillScriptRunner,
|
|
40
|
+
i as SkillScriptRequest,
|
|
41
|
+
n as SkillScriptContext,
|
|
42
|
+
r as SkillScriptFile,
|
|
43
|
+
t as SkillRunContext
|
|
44
|
+
} from "../script-CFDLTk5b.js";
|
|
45
|
+
import { t as SkillScriptWorkspace } from "../script-workspace-BpdAYq1R.js";
|
|
46
|
+
|
|
47
|
+
//#region src/skills/markdown.d.ts
|
|
48
|
+
/**
|
|
49
|
+
* Parse a `SKILL.md` file.
|
|
50
|
+
*
|
|
51
|
+
* Follows the spec's guide for agents: a skill that breaks a rule still
|
|
52
|
+
* parses, with each broken rule in `warnings`. Frontmatter that only fails
|
|
53
|
+
* because of unquoted values containing `: ` (for example
|
|
54
|
+
* `description: Use when: the user asks`), which many clients accept, is
|
|
55
|
+
* read again with those values quoted. The parse fails only when the skill
|
|
56
|
+
* cannot be used: no frontmatter, YAML that still does not parse, no
|
|
57
|
+
* description, or an unsafe name.
|
|
58
|
+
*
|
|
59
|
+
* To check a skill before storing it, require `warnings` to be empty.
|
|
60
|
+
*
|
|
61
|
+
* @param markdown - The full file: YAML frontmatter, then Markdown.
|
|
62
|
+
* @param options - `directory` to check the name against.
|
|
63
|
+
* @returns The parsed skill and warnings, or a `SkillParseError`.
|
|
64
|
+
*/
|
|
65
|
+
declare function parseSkill(
|
|
66
|
+
markdown: string,
|
|
67
|
+
options?: ParseSkillOptions
|
|
68
|
+
): SkillParseResult;
|
|
69
|
+
/**
|
|
70
|
+
* Render a skill back to `SKILL.md` text.
|
|
71
|
+
*
|
|
72
|
+
* @param skill - The parsed skill.
|
|
73
|
+
* @returns Frontmatter and body that {@link parseSkill} reads back to an
|
|
74
|
+
* equal skill.
|
|
75
|
+
*/
|
|
76
|
+
declare function formatSkill(skill: Skill): string;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/skills/workspace.d.ts
|
|
79
|
+
/**
|
|
80
|
+
* The parts of a `@cloudflare/computer` Workspace a skill source reads. A
|
|
81
|
+
* local `Workspace`, a client from `getWorkspace()`, and Think's
|
|
82
|
+
* `this.workspace` all fit.
|
|
83
|
+
*/
|
|
84
|
+
interface SkillWorkspace {
|
|
85
|
+
/** The Workspace filesystem. */
|
|
86
|
+
readonly fs: {
|
|
87
|
+
/** Walk a directory tree. */ find(
|
|
88
|
+
directory: string,
|
|
89
|
+
pattern?: string,
|
|
90
|
+
options?: {
|
|
91
|
+
exclude?: string[];
|
|
92
|
+
}
|
|
93
|
+
): Promise<
|
|
94
|
+
ReadonlyArray<{
|
|
95
|
+
path: string;
|
|
96
|
+
type: string;
|
|
97
|
+
}>
|
|
98
|
+
> /** Read a file's bytes. */;
|
|
99
|
+
readFile(path: string): Promise<ReadableStream<Uint8Array>>;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/** Options for {@link workspace}. */
|
|
103
|
+
interface WorkspaceSkillSourceOptions {
|
|
104
|
+
/**
|
|
105
|
+
* Absolute directory that holds the skill directories. Defaults to
|
|
106
|
+
* `/workspace/.agents/skills`, the cross-client Agent Skills location.
|
|
107
|
+
*/
|
|
108
|
+
readonly root?: string;
|
|
109
|
+
/** Source id for diagnostics. Defaults to `workspace:<root>`. */
|
|
110
|
+
readonly id?: string;
|
|
111
|
+
}
|
|
112
|
+
/** Default skills directory inside a Workspace. */
|
|
113
|
+
declare const DEFAULT_WORKSPACE_SKILLS_ROOT = "/workspace/.agents/skills";
|
|
114
|
+
/**
|
|
115
|
+
* Create a source that reads skills from a Computer Workspace.
|
|
116
|
+
*
|
|
117
|
+
* Skills are plain files: every `<root>/<skill-name>/SKILL.md` is a skill,
|
|
118
|
+
* and the files beside it are its resources. The Workspace is read on every
|
|
119
|
+
* listing, so skills the agent or a user adds, edits, or deletes take effect
|
|
120
|
+
* the next time the catalog loads. A missing root lists no skills.
|
|
121
|
+
*
|
|
122
|
+
* @param target - The Workspace to read.
|
|
123
|
+
* @param options - Skills root and source id.
|
|
124
|
+
* @returns A source backed by the Workspace.
|
|
125
|
+
* @throws TypeError when `root` is not a normalized absolute path.
|
|
126
|
+
*/
|
|
127
|
+
declare function workspace(
|
|
128
|
+
target: SkillWorkspace,
|
|
129
|
+
options?: WorkspaceSkillSourceOptions
|
|
130
|
+
): SkillSource;
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/skills/r2.d.ts
|
|
133
|
+
/** Options for {@link r2}. */
|
|
134
|
+
interface R2SkillSourceOptions {
|
|
135
|
+
/** Key prefix that holds the skill directories, such as `skills/`. */
|
|
136
|
+
readonly prefix?: string;
|
|
137
|
+
/** Source id for diagnostics. Defaults to `r2:<prefix>`. */
|
|
138
|
+
readonly id?: string;
|
|
139
|
+
/** Only serve these skill names. Serves every skill when omitted. */
|
|
140
|
+
readonly skills?: readonly string[];
|
|
141
|
+
/**
|
|
142
|
+
* How long a bucket listing is reused before the bucket is listed again.
|
|
143
|
+
* Defaults to 60 seconds; `0` lists on every call.
|
|
144
|
+
*/
|
|
145
|
+
readonly refreshIntervalMs?: number;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Create a read-only source backed by an R2 bucket.
|
|
149
|
+
*
|
|
150
|
+
* The bucket holds the Agent Skills layout under `prefix`:
|
|
151
|
+
* `<prefix><skill-name>/SKILL.md`, plus any bundled files beside it.
|
|
152
|
+
*
|
|
153
|
+
* @param bucket - The R2 binding.
|
|
154
|
+
* @param options - Prefix, id, name allowlist, and listing cache interval.
|
|
155
|
+
* @returns A source that reads skills from the bucket.
|
|
156
|
+
*/
|
|
157
|
+
declare function r2(
|
|
158
|
+
bucket: R2Bucket,
|
|
159
|
+
options?: R2SkillSourceOptions
|
|
160
|
+
): SkillSource;
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/skills/manifest.d.ts
|
|
163
|
+
/** Skills defined in code, for tests and small fixed sets. */
|
|
164
|
+
interface SkillManifest {
|
|
165
|
+
/** Source id used in diagnostics. */
|
|
166
|
+
readonly id: string;
|
|
167
|
+
/** The skills, in priority order. */
|
|
168
|
+
readonly skills: readonly SkillManifestEntry[];
|
|
169
|
+
/**
|
|
170
|
+
* @deprecated Ignored. Catalogs fingerprint the prompt they render, so
|
|
171
|
+
* sources no longer carry a fingerprint.
|
|
172
|
+
*/
|
|
173
|
+
readonly fingerprint?: string;
|
|
174
|
+
}
|
|
175
|
+
/** One skill in a {@link SkillManifest}, written as `SKILL.md` fields. */
|
|
176
|
+
interface SkillManifestEntry {
|
|
177
|
+
/** Spec-valid skill name. */
|
|
178
|
+
readonly name: string;
|
|
179
|
+
/** What the skill does and when to use it. */
|
|
180
|
+
readonly description: string;
|
|
181
|
+
/** Markdown instructions. */
|
|
182
|
+
readonly body: string;
|
|
183
|
+
/** License name or bundled license file. */
|
|
184
|
+
readonly license?: string;
|
|
185
|
+
/** Environment requirements. */
|
|
186
|
+
readonly compatibility?: string;
|
|
187
|
+
/**
|
|
188
|
+
* String key-value metadata. Scalar values are converted to strings, as
|
|
189
|
+
* in `SKILL.md`; nested values make the entry invalid.
|
|
190
|
+
*/
|
|
191
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
192
|
+
/** Space-separated pre-approved tools. */
|
|
193
|
+
readonly allowedTools?: string;
|
|
194
|
+
/** Files bundled with the skill. */
|
|
195
|
+
readonly resources?: readonly SkillManifestResource[];
|
|
196
|
+
/** @deprecated Ignored. */
|
|
197
|
+
readonly version?: string;
|
|
198
|
+
/** @deprecated Ignored; the entry fields define the skill. */
|
|
199
|
+
readonly rawContent?: string;
|
|
200
|
+
}
|
|
201
|
+
/** A file in a {@link SkillManifestEntry}. */
|
|
202
|
+
interface SkillManifestResource {
|
|
203
|
+
/** Path relative to the skill directory. */
|
|
204
|
+
readonly path: string;
|
|
205
|
+
/** UTF-8 text, or base64 when `encoding` is `"base64"`. */
|
|
206
|
+
readonly content: string;
|
|
207
|
+
/** Overrides the encoding inferred from the file extension. */
|
|
208
|
+
readonly encoding?: "text" | "base64";
|
|
209
|
+
/** Overrides the MIME type inferred from the file extension. */
|
|
210
|
+
readonly mimeType?: string;
|
|
211
|
+
/** Overrides the kind inferred from the top-level directory. */
|
|
212
|
+
readonly kind?: SkillResourceKind;
|
|
213
|
+
/** @deprecated Ignored; the size is the content's length. */
|
|
214
|
+
readonly size?: number;
|
|
215
|
+
/** @deprecated Ignored; scripts are always run as stored. */
|
|
216
|
+
readonly precompiled?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Create a source from skills defined in code.
|
|
220
|
+
*
|
|
221
|
+
* Entries pass the same checks as `SKILL.md` files from other sources:
|
|
222
|
+
* broken spec rules become warnings, and entries without a usable
|
|
223
|
+
* name or description are reported as invalid. Useful for tests and for small fixed skill sets
|
|
224
|
+
* that do not need a Workspace or bucket.
|
|
225
|
+
*
|
|
226
|
+
* @param definition - The skills to serve.
|
|
227
|
+
* @returns A source that always lists the same skills.
|
|
228
|
+
*/
|
|
229
|
+
declare function manifest(definition: SkillManifest): SkillSource;
|
|
230
|
+
/**
|
|
231
|
+
* Create a source from skills defined in code.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated Use {@link manifest}.
|
|
234
|
+
* @param definition - The skills to serve.
|
|
235
|
+
* @returns A source that always lists the same skills.
|
|
236
|
+
*/
|
|
237
|
+
declare const fromManifest: typeof manifest;
|
|
238
|
+
//#endregion
|
|
27
239
|
export {
|
|
240
|
+
DEFAULT_WORKSPACE_SKILLS_ROOT,
|
|
241
|
+
type InvalidSkill,
|
|
242
|
+
InvalidSkillResourcePathError,
|
|
243
|
+
type ListedSkill,
|
|
244
|
+
type LoadSkillCatalogOptions,
|
|
245
|
+
type ParseSkillOptions,
|
|
28
246
|
type R2SkillSourceOptions,
|
|
29
|
-
type
|
|
30
|
-
type
|
|
247
|
+
type Skill,
|
|
248
|
+
type SkillCatalog,
|
|
249
|
+
type SkillCatalogEntry,
|
|
250
|
+
type SkillCatalogResource,
|
|
251
|
+
type SkillDiagnostic,
|
|
252
|
+
type SkillListing,
|
|
31
253
|
type SkillManifest,
|
|
32
254
|
type SkillManifestEntry,
|
|
33
255
|
type SkillManifestResource,
|
|
34
|
-
|
|
35
|
-
|
|
256
|
+
type SkillName,
|
|
257
|
+
SkillParseError,
|
|
258
|
+
type SkillParseErrorCode,
|
|
259
|
+
type SkillParseResult,
|
|
36
260
|
type SkillResource,
|
|
37
|
-
type
|
|
261
|
+
type SkillResourceError,
|
|
262
|
+
type SkillResourceInfo,
|
|
263
|
+
type SkillResourceKind,
|
|
264
|
+
SkillResourceNotFoundError,
|
|
265
|
+
type SkillResourcePath,
|
|
266
|
+
type SkillResult,
|
|
38
267
|
type SkillRunContext,
|
|
39
268
|
type SkillScriptContext,
|
|
269
|
+
type SkillScriptFile,
|
|
40
270
|
type SkillScriptRequest,
|
|
41
271
|
type SkillScriptRunner,
|
|
272
|
+
type SkillScriptWorkspace,
|
|
42
273
|
type SkillSource,
|
|
274
|
+
SkillSourceError,
|
|
43
275
|
type SkillWorkspace,
|
|
44
|
-
|
|
45
|
-
type
|
|
46
|
-
|
|
276
|
+
UnknownSkillError,
|
|
277
|
+
type WorkspaceSkillSourceOptions,
|
|
278
|
+
formatSkill,
|
|
279
|
+
formatSkillDiagnostic,
|
|
47
280
|
fromManifest,
|
|
48
|
-
|
|
49
|
-
|
|
281
|
+
isModelInvocable,
|
|
282
|
+
loadSkillCatalog,
|
|
283
|
+
manifest,
|
|
284
|
+
parseSkill,
|
|
285
|
+
parseSkillName,
|
|
286
|
+
parseSkillResourcePath,
|
|
50
287
|
r2,
|
|
51
|
-
|
|
288
|
+
renderSkillResource,
|
|
289
|
+
workspace
|
|
52
290
|
};
|
|
291
|
+
//# sourceMappingURL=index.d.ts.map
|