@anthropic-ai/claude-agent-sdk 0.3.322 → 0.3.324
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 +1 -1
- package/bridge.mjs +104 -84
- package/browser-sdk.js +78 -67
- package/core-4tdxk2rb.mjs +16 -0
- package/core-7sc5aw3j.mjs +17 -0
- package/core-de9edyhn.mjs +19 -0
- package/core-dtdat34e.mjs +45 -0
- package/core-hjrk2537.mjs +16 -0
- package/core-mjr5v0tc.mjs +17 -0
- package/core-nbx2rjdx.mjs +18 -0
- package/core-qe0dk8na.mjs +16 -0
- package/core-qkncpzfw.mjs +42 -0
- package/core-s4as5f4b.mjs +18 -0
- package/core-ttsjec9g.mjs +17 -0
- package/core.d.ts +3 -0
- package/core.mjs +11 -11
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +21 -14
- package/sdk-tools.d.ts +182 -12
- package/sdk.d.ts +298 -73
- package/sdk.mjs +96 -85
- package/core-8zdh6hy9.mjs +0 -45
- package/core-b5da77cd.mjs +0 -34
- package/core-f2yzhw4m.mjs +0 -18
- package/core-j29a9c1a.mjs +0 -17
package/manifest.json
CHANGED
|
@@ -1,54 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.324",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-11-
|
|
4
|
+
"commit": "81a533c7e2e9adf7b768db2a4b834484a1f90020",
|
|
5
|
+
"buildDate": "2026-11-13T15:54:24Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "4f91ea2cc07280b01768fc581fdb9209420e040aed1765120ff8a01daa7c0a74",
|
|
10
|
+
"size": 348014368
|
|
11
11
|
},
|
|
12
12
|
"darwin-x64": {
|
|
13
13
|
"binary": "claude",
|
|
14
|
-
"checksum": "
|
|
15
|
-
"size":
|
|
14
|
+
"checksum": "b02d5345916f2c8ec78ef05084c8904c40445d8c46ab1a9518b6c29f92e1b54c",
|
|
15
|
+
"size": 362756992
|
|
16
16
|
},
|
|
17
17
|
"linux-arm64": {
|
|
18
18
|
"binary": "claude",
|
|
19
|
-
"checksum": "
|
|
20
|
-
"size":
|
|
19
|
+
"checksum": "dafaf839aba19d081f7a7c69ef0fd0570528f1493a5f3d532cfb6b939ce97f3e",
|
|
20
|
+
"size": 365290936
|
|
21
21
|
},
|
|
22
22
|
"linux-x64": {
|
|
23
23
|
"binary": "claude",
|
|
24
|
-
"checksum": "
|
|
25
|
-
"size":
|
|
24
|
+
"checksum": "bf6a59f62a3116d673260b6098cf35898cfdf336e677d73c3416fdb51f03c2f7",
|
|
25
|
+
"size": 366436880
|
|
26
26
|
},
|
|
27
27
|
"linux-arm64-musl": {
|
|
28
28
|
"binary": "claude",
|
|
29
|
-
"checksum": "
|
|
30
|
-
"size":
|
|
29
|
+
"checksum": "9014f016cb5220f716adab38b18c7b8ee229ccf7cbe3af999b46a7c13701d090",
|
|
30
|
+
"size": 350385096
|
|
31
31
|
},
|
|
32
32
|
"linux-x64-musl": {
|
|
33
33
|
"binary": "claude",
|
|
34
|
-
"checksum": "
|
|
35
|
-
"size":
|
|
34
|
+
"checksum": "72c905db2103852fb48b1df9cf194044c82b50d1e31cde107524ac155a6983d7",
|
|
35
|
+
"size": 352800008
|
|
36
36
|
},
|
|
37
37
|
"win32-x64": {
|
|
38
38
|
"binary": "claude.exe",
|
|
39
|
-
"checksum": "
|
|
40
|
-
"size":
|
|
39
|
+
"checksum": "06465fda1b2df163eb14f7d279dc93c504c183706709d395d826868724daf816",
|
|
40
|
+
"size": 373058208
|
|
41
41
|
},
|
|
42
42
|
"win32-arm64": {
|
|
43
43
|
"binary": "claude.exe",
|
|
44
|
-
"checksum": "
|
|
45
|
-
"size":
|
|
44
|
+
"checksum": "27a7eabddb795c1c5a42b0d7e5b6529330ab0fdd9f020b652129b913900f683c",
|
|
45
|
+
"size": 355068064
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"sdkCompat": {
|
|
49
49
|
"testedWrapperVersions": [
|
|
50
|
-
"0.3.288",
|
|
51
|
-
"0.3.289",
|
|
52
50
|
"0.3.290",
|
|
53
51
|
"0.3.291",
|
|
54
52
|
"0.3.292",
|
|
@@ -76,7 +74,9 @@
|
|
|
76
74
|
"0.3.317",
|
|
77
75
|
"0.3.318",
|
|
78
76
|
"0.3.319",
|
|
79
|
-
"0.3.321"
|
|
77
|
+
"0.3.321",
|
|
78
|
+
"0.3.322",
|
|
79
|
+
"0.3.323"
|
|
80
80
|
],
|
|
81
81
|
"harnessSchema": 1
|
|
82
82
|
}
|
package/manifest.zst.json
CHANGED
|
@@ -1,62 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.324",
|
|
3
3
|
"manifestSignatureEnforcement": "flag",
|
|
4
|
-
"commit": "
|
|
5
|
-
"buildDate": "2026-11-
|
|
4
|
+
"commit": "81a533c7e2e9adf7b768db2a4b834484a1f90020",
|
|
5
|
+
"buildDate": "2026-11-13T15:56:40Z",
|
|
6
6
|
"platforms": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"binary": "claude.zst",
|
|
9
|
-
"checksum": "
|
|
10
|
-
"size":
|
|
9
|
+
"checksum": "842e6edd25b4b5cd0957aca2ee843a5b7baa48738664b6146153af93eacb4d3f",
|
|
10
|
+
"size": 119857772,
|
|
11
11
|
"bundle": {
|
|
12
|
-
"checksum": "
|
|
13
|
-
"size":
|
|
12
|
+
"checksum": "6c80e65135b6ebab602ce18be3f2a2c28902bbb02bb6e1222c539800727c6675",
|
|
13
|
+
"size": 119858434
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"darwin-x64": {
|
|
17
17
|
"binary": "claude.zst",
|
|
18
|
-
"checksum": "
|
|
19
|
-
"size":
|
|
18
|
+
"checksum": "0f28759d50c3532da0a3a2539cc0d8778cd2e6a9cdc12af72d3d90900023d3c9",
|
|
19
|
+
"size": 127390262,
|
|
20
20
|
"bundle": {
|
|
21
|
-
"checksum": "
|
|
22
|
-
"size":
|
|
21
|
+
"checksum": "01a935c91f393edf73f6e279cfae9af368d2ad12c2e04b073f1fde4dd11d42a3",
|
|
22
|
+
"size": 127404092
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"linux-arm64": {
|
|
26
26
|
"binary": "claude.zst",
|
|
27
|
-
"checksum": "
|
|
28
|
-
"size":
|
|
27
|
+
"checksum": "9796d44749ab190d2c592ef4cad1f68b86b75052c6a45bca4b8156767dc86196",
|
|
28
|
+
"size": 131126498
|
|
29
29
|
},
|
|
30
30
|
"linux-x64": {
|
|
31
31
|
"binary": "claude.zst",
|
|
32
|
-
"checksum": "
|
|
33
|
-
"size":
|
|
32
|
+
"checksum": "05bcebc41499adc6da8a73b2f992d09c5224b62cc3544145893cb541801e2520",
|
|
33
|
+
"size": 132577747
|
|
34
34
|
},
|
|
35
35
|
"linux-arm64-musl": {
|
|
36
36
|
"binary": "claude.zst",
|
|
37
|
-
"checksum": "
|
|
38
|
-
"size":
|
|
37
|
+
"checksum": "ab4ace471d682a5191e135bdc2ac46f03f9b83cbe04ec75e8b8adb37114d8877",
|
|
38
|
+
"size": 125299469
|
|
39
39
|
},
|
|
40
40
|
"linux-x64-musl": {
|
|
41
41
|
"binary": "claude.zst",
|
|
42
|
-
"checksum": "
|
|
43
|
-
"size":
|
|
42
|
+
"checksum": "02b5deddb854079c45181126996a4ad527705f0147ba55bae10ca0657b5f1cae",
|
|
43
|
+
"size": 126817737
|
|
44
44
|
},
|
|
45
45
|
"win32-x64": {
|
|
46
46
|
"binary": "claude.exe.zst",
|
|
47
|
-
"checksum": "
|
|
48
|
-
"size":
|
|
47
|
+
"checksum": "5643d07d91a347257c40aad0311ba572fde2fb78180e881252b75f1ac90924d8",
|
|
48
|
+
"size": 135070073
|
|
49
49
|
},
|
|
50
50
|
"win32-arm64": {
|
|
51
51
|
"binary": "claude.exe.zst",
|
|
52
|
-
"checksum": "
|
|
53
|
-
"size":
|
|
52
|
+
"checksum": "5aaa31535e0eaf08a296770a8ec184637704c1bb6d4672e82d304d4397255aa7",
|
|
53
|
+
"size": 128919487
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"sdkCompat": {
|
|
57
57
|
"testedWrapperVersions": [
|
|
58
|
-
"0.3.288",
|
|
59
|
-
"0.3.289",
|
|
60
58
|
"0.3.290",
|
|
61
59
|
"0.3.291",
|
|
62
60
|
"0.3.292",
|
|
@@ -84,7 +82,9 @@
|
|
|
84
82
|
"0.3.317",
|
|
85
83
|
"0.3.318",
|
|
86
84
|
"0.3.319",
|
|
87
|
-
"0.3.321"
|
|
85
|
+
"0.3.321",
|
|
86
|
+
"0.3.322",
|
|
87
|
+
"0.3.323"
|
|
88
88
|
],
|
|
89
89
|
"harnessSchema": 1
|
|
90
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthropic-ai/claude-agent-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.324",
|
|
4
4
|
"main": "sdk.mjs",
|
|
5
5
|
"types": "sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"zod": "^4.0.0"
|
|
62
62
|
},
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.
|
|
65
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.
|
|
66
|
-
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.
|
|
67
|
-
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.
|
|
68
|
-
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.
|
|
69
|
-
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.
|
|
70
|
-
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.
|
|
71
|
-
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.324",
|
|
65
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.324",
|
|
66
|
+
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.324",
|
|
67
|
+
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.324",
|
|
68
|
+
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.324",
|
|
69
|
+
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.324",
|
|
70
|
+
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.324",
|
|
71
|
+
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.324"
|
|
72
72
|
},
|
|
73
73
|
"files": [
|
|
74
74
|
"sdk.mjs",
|
|
@@ -85,10 +85,17 @@
|
|
|
85
85
|
"extractFromBunfs.d.ts",
|
|
86
86
|
"manifest.json",
|
|
87
87
|
"manifest.zst.json",
|
|
88
|
-
"core-
|
|
89
|
-
"core-
|
|
90
|
-
"core-
|
|
91
|
-
"core-
|
|
88
|
+
"core-4tdxk2rb.mjs",
|
|
89
|
+
"core-7sc5aw3j.mjs",
|
|
90
|
+
"core-de9edyhn.mjs",
|
|
91
|
+
"core-dtdat34e.mjs",
|
|
92
|
+
"core-hjrk2537.mjs",
|
|
93
|
+
"core-mjr5v0tc.mjs",
|
|
94
|
+
"core-nbx2rjdx.mjs",
|
|
95
|
+
"core-qe0dk8na.mjs",
|
|
96
|
+
"core-qkncpzfw.mjs",
|
|
97
|
+
"core-s4as5f4b.mjs",
|
|
98
|
+
"core-ttsjec9g.mjs"
|
|
92
99
|
],
|
|
93
|
-
"claudeCodeVersion": "2.1.
|
|
100
|
+
"claudeCodeVersion": "2.1.324"
|
|
94
101
|
}
|
package/sdk-tools.d.ts
CHANGED
|
@@ -720,6 +720,8 @@ export type ProjectsOutput =
|
|
|
720
720
|
name?: string;
|
|
721
721
|
doc_uuid?: string;
|
|
722
722
|
text?: string;
|
|
723
|
+
image_attached?: boolean;
|
|
724
|
+
page?: number;
|
|
723
725
|
}[];
|
|
724
726
|
docs?: string[];
|
|
725
727
|
}
|
|
@@ -3012,9 +3014,37 @@ export interface ProposeSkillsInput {
|
|
|
3012
3014
|
*/
|
|
3013
3015
|
evidence?: string[];
|
|
3014
3016
|
/**
|
|
3015
|
-
*
|
|
3017
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3018
|
+
*
|
|
3019
|
+
* @minItems 1
|
|
3020
|
+
* @maxItems 100
|
|
3021
|
+
*/
|
|
3022
|
+
edits?: [
|
|
3023
|
+
{
|
|
3024
|
+
/**
|
|
3025
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3026
|
+
*/
|
|
3027
|
+
old_string: string;
|
|
3028
|
+
/**
|
|
3029
|
+
* Text to put in its place
|
|
3030
|
+
*/
|
|
3031
|
+
new_string: string;
|
|
3032
|
+
},
|
|
3033
|
+
...{
|
|
3034
|
+
/**
|
|
3035
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3036
|
+
*/
|
|
3037
|
+
old_string: string;
|
|
3038
|
+
/**
|
|
3039
|
+
* Text to put in its place
|
|
3040
|
+
*/
|
|
3041
|
+
new_string: string;
|
|
3042
|
+
}[]
|
|
3043
|
+
];
|
|
3044
|
+
/**
|
|
3045
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3016
3046
|
*/
|
|
3017
|
-
skillMd
|
|
3047
|
+
skillMd?: string;
|
|
3018
3048
|
}
|
|
3019
3049
|
]
|
|
3020
3050
|
| [
|
|
@@ -3037,9 +3067,37 @@ export interface ProposeSkillsInput {
|
|
|
3037
3067
|
*/
|
|
3038
3068
|
evidence?: string[];
|
|
3039
3069
|
/**
|
|
3040
|
-
*
|
|
3070
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3071
|
+
*
|
|
3072
|
+
* @minItems 1
|
|
3073
|
+
* @maxItems 100
|
|
3041
3074
|
*/
|
|
3042
|
-
|
|
3075
|
+
edits?: [
|
|
3076
|
+
{
|
|
3077
|
+
/**
|
|
3078
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3079
|
+
*/
|
|
3080
|
+
old_string: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* Text to put in its place
|
|
3083
|
+
*/
|
|
3084
|
+
new_string: string;
|
|
3085
|
+
},
|
|
3086
|
+
...{
|
|
3087
|
+
/**
|
|
3088
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3089
|
+
*/
|
|
3090
|
+
old_string: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* Text to put in its place
|
|
3093
|
+
*/
|
|
3094
|
+
new_string: string;
|
|
3095
|
+
}[]
|
|
3096
|
+
];
|
|
3097
|
+
/**
|
|
3098
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3099
|
+
*/
|
|
3100
|
+
skillMd?: string;
|
|
3043
3101
|
},
|
|
3044
3102
|
{
|
|
3045
3103
|
/**
|
|
@@ -3060,9 +3118,37 @@ export interface ProposeSkillsInput {
|
|
|
3060
3118
|
*/
|
|
3061
3119
|
evidence?: string[];
|
|
3062
3120
|
/**
|
|
3063
|
-
*
|
|
3121
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3122
|
+
*
|
|
3123
|
+
* @minItems 1
|
|
3124
|
+
* @maxItems 100
|
|
3125
|
+
*/
|
|
3126
|
+
edits?: [
|
|
3127
|
+
{
|
|
3128
|
+
/**
|
|
3129
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3130
|
+
*/
|
|
3131
|
+
old_string: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Text to put in its place
|
|
3134
|
+
*/
|
|
3135
|
+
new_string: string;
|
|
3136
|
+
},
|
|
3137
|
+
...{
|
|
3138
|
+
/**
|
|
3139
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3140
|
+
*/
|
|
3141
|
+
old_string: string;
|
|
3142
|
+
/**
|
|
3143
|
+
* Text to put in its place
|
|
3144
|
+
*/
|
|
3145
|
+
new_string: string;
|
|
3146
|
+
}[]
|
|
3147
|
+
];
|
|
3148
|
+
/**
|
|
3149
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3064
3150
|
*/
|
|
3065
|
-
skillMd
|
|
3151
|
+
skillMd?: string;
|
|
3066
3152
|
}
|
|
3067
3153
|
]
|
|
3068
3154
|
| [
|
|
@@ -3085,9 +3171,37 @@ export interface ProposeSkillsInput {
|
|
|
3085
3171
|
*/
|
|
3086
3172
|
evidence?: string[];
|
|
3087
3173
|
/**
|
|
3088
|
-
*
|
|
3174
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3175
|
+
*
|
|
3176
|
+
* @minItems 1
|
|
3177
|
+
* @maxItems 100
|
|
3178
|
+
*/
|
|
3179
|
+
edits?: [
|
|
3180
|
+
{
|
|
3181
|
+
/**
|
|
3182
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3183
|
+
*/
|
|
3184
|
+
old_string: string;
|
|
3185
|
+
/**
|
|
3186
|
+
* Text to put in its place
|
|
3187
|
+
*/
|
|
3188
|
+
new_string: string;
|
|
3189
|
+
},
|
|
3190
|
+
...{
|
|
3191
|
+
/**
|
|
3192
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3193
|
+
*/
|
|
3194
|
+
old_string: string;
|
|
3195
|
+
/**
|
|
3196
|
+
* Text to put in its place
|
|
3197
|
+
*/
|
|
3198
|
+
new_string: string;
|
|
3199
|
+
}[]
|
|
3200
|
+
];
|
|
3201
|
+
/**
|
|
3202
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3089
3203
|
*/
|
|
3090
|
-
skillMd
|
|
3204
|
+
skillMd?: string;
|
|
3091
3205
|
},
|
|
3092
3206
|
{
|
|
3093
3207
|
/**
|
|
@@ -3108,9 +3222,37 @@ export interface ProposeSkillsInput {
|
|
|
3108
3222
|
*/
|
|
3109
3223
|
evidence?: string[];
|
|
3110
3224
|
/**
|
|
3111
|
-
*
|
|
3225
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3226
|
+
*
|
|
3227
|
+
* @minItems 1
|
|
3228
|
+
* @maxItems 100
|
|
3112
3229
|
*/
|
|
3113
|
-
|
|
3230
|
+
edits?: [
|
|
3231
|
+
{
|
|
3232
|
+
/**
|
|
3233
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3234
|
+
*/
|
|
3235
|
+
old_string: string;
|
|
3236
|
+
/**
|
|
3237
|
+
* Text to put in its place
|
|
3238
|
+
*/
|
|
3239
|
+
new_string: string;
|
|
3240
|
+
},
|
|
3241
|
+
...{
|
|
3242
|
+
/**
|
|
3243
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3244
|
+
*/
|
|
3245
|
+
old_string: string;
|
|
3246
|
+
/**
|
|
3247
|
+
* Text to put in its place
|
|
3248
|
+
*/
|
|
3249
|
+
new_string: string;
|
|
3250
|
+
}[]
|
|
3251
|
+
];
|
|
3252
|
+
/**
|
|
3253
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3254
|
+
*/
|
|
3255
|
+
skillMd?: string;
|
|
3114
3256
|
},
|
|
3115
3257
|
{
|
|
3116
3258
|
/**
|
|
@@ -3131,9 +3273,37 @@ export interface ProposeSkillsInput {
|
|
|
3131
3273
|
*/
|
|
3132
3274
|
evidence?: string[];
|
|
3133
3275
|
/**
|
|
3134
|
-
*
|
|
3276
|
+
* For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order. They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter.
|
|
3277
|
+
*
|
|
3278
|
+
* @minItems 1
|
|
3279
|
+
* @maxItems 100
|
|
3280
|
+
*/
|
|
3281
|
+
edits?: [
|
|
3282
|
+
{
|
|
3283
|
+
/**
|
|
3284
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3285
|
+
*/
|
|
3286
|
+
old_string: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* Text to put in its place
|
|
3289
|
+
*/
|
|
3290
|
+
new_string: string;
|
|
3291
|
+
},
|
|
3292
|
+
...{
|
|
3293
|
+
/**
|
|
3294
|
+
* Text to replace. It must occur exactly once in that SKILL.md
|
|
3295
|
+
*/
|
|
3296
|
+
old_string: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* Text to put in its place
|
|
3299
|
+
*/
|
|
3300
|
+
new_string: string;
|
|
3301
|
+
}[]
|
|
3302
|
+
];
|
|
3303
|
+
/**
|
|
3304
|
+
* For a new skill or a full rewrite. The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.
|
|
3135
3305
|
*/
|
|
3136
|
-
skillMd
|
|
3306
|
+
skillMd?: string;
|
|
3137
3307
|
}
|
|
3138
3308
|
];
|
|
3139
3309
|
}
|