@vibesdotdev/integrations-anthropic 0.0.0-stage → 1.0.0-rc.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/LICENSE +126 -0
- package/README.md +57 -2
- package/dist/ai/anthropic-router-codec.d.ts +32 -0
- package/dist/ai/anthropic-router-codec.d.ts.map +1 -0
- package/dist/ai/anthropic-router-codec.js +321 -0
- package/dist/ai/anthropic-router-codec.js.map +1 -0
- package/dist/ai/anthropic.plugin.d.ts +6 -0
- package/dist/ai/anthropic.plugin.d.ts.map +1 -0
- package/dist/ai/anthropic.plugin.js +116 -0
- package/dist/ai/anthropic.plugin.js.map +1 -0
- package/dist/ai/catalog.d.ts +87 -0
- package/dist/ai/catalog.d.ts.map +1 -0
- package/dist/ai/catalog.js +64 -0
- package/dist/ai/catalog.js.map +1 -0
- package/dist/ai/claude-code-session.d.ts +56 -0
- package/dist/ai/claude-code-session.d.ts.map +1 -0
- package/dist/ai/claude-code-session.js +75 -0
- package/dist/ai/claude-code-session.js.map +1 -0
- package/dist/ai/claude-code-turn-env.d.ts +10 -0
- package/dist/ai/claude-code-turn-env.d.ts.map +1 -0
- package/dist/ai/claude-code-turn-env.js +19 -0
- package/dist/ai/claude-code-turn-env.js.map +1 -0
- package/dist/ai/hostile.d.ts +23 -0
- package/dist/ai/hostile.d.ts.map +1 -0
- package/dist/ai/hostile.js +22 -0
- package/dist/ai/hostile.js.map +1 -0
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +4 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/metadata/assets/logos/providers/anthropic.svg +1 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-3-5-haiku-20241022.json +77 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-3-5-sonnet-20241022.json +42 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-4-opus-20250514.json +79 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-4-sonnet-20250514.json +79 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-haiku-4-5.json +80 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-haiku-5-5.json +39 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-opus-4-1.json +78 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-opus-4-5.json +80 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-opus-4-6.json +80 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-opus-4-7.json +81 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-sonnet-4-5.json +80 -0
- package/dist/ai/metadata/provider-models/anthropic/anthropic-claude-sonnet-4-6.json +80 -0
- package/dist/ai/metadata/providers/anthropic.json +22 -0
- package/dist/ai/providers/anthropic/anthropic.provider.impl.d.ts +62 -0
- package/dist/ai/providers/anthropic/anthropic.provider.impl.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/anthropic.provider.impl.js +430 -0
- package/dist/ai/providers/anthropic/anthropic.provider.impl.js.map +1 -0
- package/dist/ai/providers/anthropic/detection/index.d.ts +8 -0
- package/dist/ai/providers/anthropic/detection/index.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/detection/index.js +8 -0
- package/dist/ai/providers/anthropic/detection/index.js.map +1 -0
- package/dist/ai/providers/anthropic/detection/system.d.ts +12 -0
- package/dist/ai/providers/anthropic/detection/system.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/detection/system.js +34 -0
- package/dist/ai/providers/anthropic/detection/system.js.map +1 -0
- package/dist/ai/providers/anthropic/docs/ai.providers.anthropic.docs.descriptor.d.ts +4 -0
- package/dist/ai/providers/anthropic/docs/ai.providers.anthropic.docs.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/docs/ai.providers.anthropic.docs.descriptor.js +212 -0
- package/dist/ai/providers/anthropic/docs/ai.providers.anthropic.docs.descriptor.js.map +1 -0
- package/dist/ai/providers/anthropic/index.d.ts +4 -0
- package/dist/ai/providers/anthropic/index.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/index.js +4 -0
- package/dist/ai/providers/anthropic/index.js.map +1 -0
- package/dist/ai/providers/anthropic/recommendations.d.ts +24 -0
- package/dist/ai/providers/anthropic/recommendations.d.ts.map +1 -0
- package/dist/ai/providers/anthropic/recommendations.js +192 -0
- package/dist/ai/providers/anthropic/recommendations.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/config.anthropic.descriptor.d.ts +4194 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/config.anthropic.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/config.anthropic.descriptor.js +52 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/config.anthropic.descriptor.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/schemas/index.d.ts +46 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/schemas/index.js +22 -0
- package/dist/ai/providers/cloud/frontier/anthropic/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/index.d.ts +5 -0
- package/dist/ai/providers/cloud/frontier/anthropic/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/index.js +4 -0
- package/dist/ai/providers/cloud/frontier/anthropic/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/provider.anthropic.descriptor.d.ts +183 -0
- package/dist/ai/providers/cloud/frontier/anthropic/provider.anthropic.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/anthropic/provider.anthropic.descriptor.js +115 -0
- package/dist/ai/providers/cloud/frontier/anthropic/provider.anthropic.descriptor.js.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.failures.d.ts +46 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.failures.d.ts.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.failures.js +183 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.failures.js.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.descriptor.d.ts +34 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.descriptor.js +29 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.descriptor.js.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.impl.d.ts +48 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.impl.d.ts.map +1 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.impl.js +557 -0
- package/dist/ai/specs/anthropic-messages/anthropic-messages.spec.impl.js.map +1 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.descriptor.d.ts +26 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.descriptor.d.ts.map +1 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.descriptor.js +15 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.descriptor.js.map +1 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.impl.d.ts +35 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.impl.d.ts.map +1 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.impl.js +210 -0
- package/dist/ai/specs/claude-code-exec/claude-code-exec.spec.impl.js.map +1 -0
- package/dist/external/acp-server.consumer.plugin.d.ts +3 -0
- package/dist/external/acp-server.consumer.plugin.d.ts.map +1 -0
- package/dist/external/acp-server.consumer.plugin.js +29 -0
- package/dist/external/acp-server.consumer.plugin.js.map +1 -0
- package/dist/external/acp-server.d.ts +19 -0
- package/dist/external/acp-server.d.ts.map +1 -0
- package/dist/external/acp-server.js +198 -0
- package/dist/external/acp-server.js.map +1 -0
- package/dist/external/claude-code-hooks.d.ts +51 -0
- package/dist/external/claude-code-hooks.d.ts.map +1 -0
- package/dist/external/claude-code-hooks.js +252 -0
- package/dist/external/claude-code-hooks.js.map +1 -0
- package/dist/external/claude-code-installer.d.ts +10 -0
- package/dist/external/claude-code-installer.d.ts.map +1 -0
- package/dist/external/claude-code-installer.js +604 -0
- package/dist/external/claude-code-installer.js.map +1 -0
- package/dist/external/claude-code-operations.d.ts +217 -0
- package/dist/external/claude-code-operations.d.ts.map +1 -0
- package/dist/external/claude-code-operations.js +101 -0
- package/dist/external/claude-code-operations.js.map +1 -0
- package/dist/external/claude-code-plugin.json +7 -0
- package/dist/external/claude-code-presets.d.ts +813 -0
- package/dist/external/claude-code-presets.d.ts.map +1 -0
- package/dist/external/claude-code-presets.js +157 -0
- package/dist/external/claude-code-presets.js.map +1 -0
- package/dist/external/claude-code.descriptor.d.ts +160 -0
- package/dist/external/claude-code.descriptor.d.ts.map +1 -0
- package/dist/external/claude-code.descriptor.js +5 -0
- package/dist/external/claude-code.descriptor.js.map +1 -0
- package/dist/external/claude-code.manifest.d.ts +5 -0
- package/dist/external/claude-code.manifest.d.ts.map +1 -0
- package/dist/external/claude-code.manifest.js +205 -0
- package/dist/external/claude-code.manifest.js.map +1 -0
- package/dist/external/external.plugin.d.ts +6 -0
- package/dist/external/external.plugin.d.ts.map +1 -0
- package/dist/external/external.plugin.js +56 -0
- package/dist/external/external.plugin.js.map +1 -0
- package/dist/external/index.d.ts +6 -0
- package/dist/external/index.d.ts.map +1 -0
- package/dist/external/index.js +6 -0
- package/dist/external/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/package.json +108 -4
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
export declare const claudeCodeInstallOperationDescriptor: {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: "external/operation";
|
|
4
|
+
hostId: string;
|
|
5
|
+
operation: string;
|
|
6
|
+
effect: "process" | "read" | "write";
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
description?: string | undefined;
|
|
9
|
+
tags?: string[] | undefined;
|
|
10
|
+
hardware?: string[] | undefined;
|
|
11
|
+
enabled?: boolean | undefined;
|
|
12
|
+
priority?: number | undefined;
|
|
13
|
+
capabilityId?: string | undefined;
|
|
14
|
+
requiredContext?: string[] | undefined;
|
|
15
|
+
optionalContext?: string[] | undefined;
|
|
16
|
+
config?: unknown;
|
|
17
|
+
retention?: string | {
|
|
18
|
+
reason: string;
|
|
19
|
+
maxAgeDays?: number | undefined;
|
|
20
|
+
maxEntries?: number | undefined;
|
|
21
|
+
maxBytes?: number | undefined;
|
|
22
|
+
cascadeFrom?: string | undefined;
|
|
23
|
+
ageField?: string | undefined;
|
|
24
|
+
enforcedBy?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const claudeCodeUninstallOperationDescriptor: {
|
|
29
|
+
id: string;
|
|
30
|
+
kind: "external/operation";
|
|
31
|
+
hostId: string;
|
|
32
|
+
operation: string;
|
|
33
|
+
effect: "process" | "read" | "write";
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
tags?: string[] | undefined;
|
|
37
|
+
hardware?: string[] | undefined;
|
|
38
|
+
enabled?: boolean | undefined;
|
|
39
|
+
priority?: number | undefined;
|
|
40
|
+
capabilityId?: string | undefined;
|
|
41
|
+
requiredContext?: string[] | undefined;
|
|
42
|
+
optionalContext?: string[] | undefined;
|
|
43
|
+
config?: unknown;
|
|
44
|
+
retention?: string | {
|
|
45
|
+
reason: string;
|
|
46
|
+
maxAgeDays?: number | undefined;
|
|
47
|
+
maxEntries?: number | undefined;
|
|
48
|
+
maxBytes?: number | undefined;
|
|
49
|
+
cascadeFrom?: string | undefined;
|
|
50
|
+
ageField?: string | undefined;
|
|
51
|
+
enforcedBy?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
54
|
+
};
|
|
55
|
+
export declare const claudeCodeStatusOperationDescriptor: {
|
|
56
|
+
id: string;
|
|
57
|
+
kind: "external/operation";
|
|
58
|
+
hostId: string;
|
|
59
|
+
operation: string;
|
|
60
|
+
effect: "process" | "read" | "write";
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
tags?: string[] | undefined;
|
|
64
|
+
hardware?: string[] | undefined;
|
|
65
|
+
enabled?: boolean | undefined;
|
|
66
|
+
priority?: number | undefined;
|
|
67
|
+
capabilityId?: string | undefined;
|
|
68
|
+
requiredContext?: string[] | undefined;
|
|
69
|
+
optionalContext?: string[] | undefined;
|
|
70
|
+
config?: unknown;
|
|
71
|
+
retention?: string | {
|
|
72
|
+
reason: string;
|
|
73
|
+
maxAgeDays?: number | undefined;
|
|
74
|
+
maxEntries?: number | undefined;
|
|
75
|
+
maxBytes?: number | undefined;
|
|
76
|
+
cascadeFrom?: string | undefined;
|
|
77
|
+
ageField?: string | undefined;
|
|
78
|
+
enforcedBy?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
81
|
+
};
|
|
82
|
+
export declare const claudeCodeBackupOperationDescriptor: {
|
|
83
|
+
id: string;
|
|
84
|
+
kind: "external/operation";
|
|
85
|
+
hostId: string;
|
|
86
|
+
operation: string;
|
|
87
|
+
effect: "process" | "read" | "write";
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
description?: string | undefined;
|
|
90
|
+
tags?: string[] | undefined;
|
|
91
|
+
hardware?: string[] | undefined;
|
|
92
|
+
enabled?: boolean | undefined;
|
|
93
|
+
priority?: number | undefined;
|
|
94
|
+
capabilityId?: string | undefined;
|
|
95
|
+
requiredContext?: string[] | undefined;
|
|
96
|
+
optionalContext?: string[] | undefined;
|
|
97
|
+
config?: unknown;
|
|
98
|
+
retention?: string | {
|
|
99
|
+
reason: string;
|
|
100
|
+
maxAgeDays?: number | undefined;
|
|
101
|
+
maxEntries?: number | undefined;
|
|
102
|
+
maxBytes?: number | undefined;
|
|
103
|
+
cascadeFrom?: string | undefined;
|
|
104
|
+
ageField?: string | undefined;
|
|
105
|
+
enforcedBy?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
108
|
+
};
|
|
109
|
+
export declare const claudeCodeBackupsOperationDescriptor: {
|
|
110
|
+
id: string;
|
|
111
|
+
kind: "external/operation";
|
|
112
|
+
hostId: string;
|
|
113
|
+
operation: string;
|
|
114
|
+
effect: "process" | "read" | "write";
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
tags?: string[] | undefined;
|
|
118
|
+
hardware?: string[] | undefined;
|
|
119
|
+
enabled?: boolean | undefined;
|
|
120
|
+
priority?: number | undefined;
|
|
121
|
+
capabilityId?: string | undefined;
|
|
122
|
+
requiredContext?: string[] | undefined;
|
|
123
|
+
optionalContext?: string[] | undefined;
|
|
124
|
+
config?: unknown;
|
|
125
|
+
retention?: string | {
|
|
126
|
+
reason: string;
|
|
127
|
+
maxAgeDays?: number | undefined;
|
|
128
|
+
maxEntries?: number | undefined;
|
|
129
|
+
maxBytes?: number | undefined;
|
|
130
|
+
cascadeFrom?: string | undefined;
|
|
131
|
+
ageField?: string | undefined;
|
|
132
|
+
enforcedBy?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
135
|
+
};
|
|
136
|
+
export declare const claudeCodeRestoreOperationDescriptor: {
|
|
137
|
+
id: string;
|
|
138
|
+
kind: "external/operation";
|
|
139
|
+
hostId: string;
|
|
140
|
+
operation: string;
|
|
141
|
+
effect: "process" | "read" | "write";
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
144
|
+
tags?: string[] | undefined;
|
|
145
|
+
hardware?: string[] | undefined;
|
|
146
|
+
enabled?: boolean | undefined;
|
|
147
|
+
priority?: number | undefined;
|
|
148
|
+
capabilityId?: string | undefined;
|
|
149
|
+
requiredContext?: string[] | undefined;
|
|
150
|
+
optionalContext?: string[] | undefined;
|
|
151
|
+
config?: unknown;
|
|
152
|
+
retention?: string | {
|
|
153
|
+
reason: string;
|
|
154
|
+
maxAgeDays?: number | undefined;
|
|
155
|
+
maxEntries?: number | undefined;
|
|
156
|
+
maxBytes?: number | undefined;
|
|
157
|
+
cascadeFrom?: string | undefined;
|
|
158
|
+
ageField?: string | undefined;
|
|
159
|
+
enforcedBy?: string | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
162
|
+
};
|
|
163
|
+
export declare const claudeCodeBuildOperationDescriptor: {
|
|
164
|
+
id: string;
|
|
165
|
+
kind: "external/operation";
|
|
166
|
+
hostId: string;
|
|
167
|
+
operation: string;
|
|
168
|
+
effect: "process" | "read" | "write";
|
|
169
|
+
name?: string | undefined;
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
tags?: string[] | undefined;
|
|
172
|
+
hardware?: string[] | undefined;
|
|
173
|
+
enabled?: boolean | undefined;
|
|
174
|
+
priority?: number | undefined;
|
|
175
|
+
capabilityId?: string | undefined;
|
|
176
|
+
requiredContext?: string[] | undefined;
|
|
177
|
+
optionalContext?: string[] | undefined;
|
|
178
|
+
config?: unknown;
|
|
179
|
+
retention?: string | {
|
|
180
|
+
reason: string;
|
|
181
|
+
maxAgeDays?: number | undefined;
|
|
182
|
+
maxEntries?: number | undefined;
|
|
183
|
+
maxBytes?: number | undefined;
|
|
184
|
+
cascadeFrom?: string | undefined;
|
|
185
|
+
ageField?: string | undefined;
|
|
186
|
+
enforcedBy?: string | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
189
|
+
};
|
|
190
|
+
export declare const claudeCodeAssetsOperationDescriptor: {
|
|
191
|
+
id: string;
|
|
192
|
+
kind: "external/operation";
|
|
193
|
+
hostId: string;
|
|
194
|
+
operation: string;
|
|
195
|
+
effect: "process" | "read" | "write";
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
tags?: string[] | undefined;
|
|
199
|
+
hardware?: string[] | undefined;
|
|
200
|
+
enabled?: boolean | undefined;
|
|
201
|
+
priority?: number | undefined;
|
|
202
|
+
capabilityId?: string | undefined;
|
|
203
|
+
requiredContext?: string[] | undefined;
|
|
204
|
+
optionalContext?: string[] | undefined;
|
|
205
|
+
config?: unknown;
|
|
206
|
+
retention?: string | {
|
|
207
|
+
reason: string;
|
|
208
|
+
maxAgeDays?: number | undefined;
|
|
209
|
+
maxEntries?: number | undefined;
|
|
210
|
+
maxBytes?: number | undefined;
|
|
211
|
+
cascadeFrom?: string | undefined;
|
|
212
|
+
ageField?: string | undefined;
|
|
213
|
+
enforcedBy?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
cli?: false | Record<string, unknown> | undefined;
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=claude-code-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-operations.d.ts","sourceRoot":"","sources":["../../src/external/claude-code-operations.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;CAUjD,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ9C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;CAO9C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ/C,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;CAa/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB7C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;CAO9C,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { createExternalOperationDescriptor } from '@vibesdotdev/external';
|
|
2
|
+
const scope = { flags: '-g, --global', description: 'Use global scope' };
|
|
3
|
+
const dryRun = { flags: '--dry-run', description: 'Preview changes' };
|
|
4
|
+
const scopedWrite = { homeWrite: { whenOption: 'global', equals: true } };
|
|
5
|
+
export const claudeCodeInstallOperationDescriptor = createExternalOperationDescriptor({
|
|
6
|
+
id: 'anthropic/claude-code/install',
|
|
7
|
+
hostId: 'claude-code',
|
|
8
|
+
operation: 'install',
|
|
9
|
+
name: 'Claude Code install',
|
|
10
|
+
description: 'Install Vibes hooks, MCP, commands, and agents into Claude Code',
|
|
11
|
+
cli: {
|
|
12
|
+
effects: scopedWrite,
|
|
13
|
+
options: [
|
|
14
|
+
scope,
|
|
15
|
+
dryRun,
|
|
16
|
+
{ flags: '--skip-backup', description: 'Skip configuration backup' },
|
|
17
|
+
{ flags: '--hooks-only', description: 'Install only hooks' },
|
|
18
|
+
{ flags: '--mcp-only', description: 'Install only MCP' },
|
|
19
|
+
{ flags: '--vibes-path <path>', description: 'Vibes executable' }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export const claudeCodeUninstallOperationDescriptor = createExternalOperationDescriptor({
|
|
24
|
+
id: 'anthropic/claude-code/uninstall',
|
|
25
|
+
hostId: 'claude-code',
|
|
26
|
+
operation: 'uninstall',
|
|
27
|
+
name: 'Claude Code uninstall',
|
|
28
|
+
description: 'Remove Vibes-owned Claude Code projection files',
|
|
29
|
+
cli: {
|
|
30
|
+
effects: scopedWrite,
|
|
31
|
+
options: [scope, dryRun, { flags: '--skip-backup', description: 'Skip configuration backup' }]
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export const claudeCodeStatusOperationDescriptor = createExternalOperationDescriptor({
|
|
35
|
+
id: 'anthropic/claude-code/status',
|
|
36
|
+
hostId: 'claude-code',
|
|
37
|
+
operation: 'status',
|
|
38
|
+
name: 'Claude Code status',
|
|
39
|
+
description: 'Inspect Claude Code integration status',
|
|
40
|
+
effect: 'read',
|
|
41
|
+
cli: { options: [scope] }
|
|
42
|
+
});
|
|
43
|
+
export const claudeCodeBackupOperationDescriptor = createExternalOperationDescriptor({
|
|
44
|
+
id: 'anthropic/claude-code/backup',
|
|
45
|
+
hostId: 'claude-code',
|
|
46
|
+
operation: 'backup',
|
|
47
|
+
name: 'Claude Code backup',
|
|
48
|
+
description: 'Create a Claude Code configuration backup',
|
|
49
|
+
cli: { effects: scopedWrite, options: [scope, dryRun] }
|
|
50
|
+
});
|
|
51
|
+
export const claudeCodeBackupsOperationDescriptor = createExternalOperationDescriptor({
|
|
52
|
+
id: 'anthropic/claude-code/backups',
|
|
53
|
+
hostId: 'claude-code',
|
|
54
|
+
operation: 'backups',
|
|
55
|
+
name: 'Claude Code backups',
|
|
56
|
+
description: 'List Claude Code configuration backups',
|
|
57
|
+
effect: 'read',
|
|
58
|
+
cli: { options: [scope] }
|
|
59
|
+
});
|
|
60
|
+
export const claudeCodeRestoreOperationDescriptor = createExternalOperationDescriptor({
|
|
61
|
+
id: 'anthropic/claude-code/restore',
|
|
62
|
+
hostId: 'claude-code',
|
|
63
|
+
operation: 'restore',
|
|
64
|
+
name: 'Claude Code restore',
|
|
65
|
+
description: 'Restore a Claude Code configuration backup',
|
|
66
|
+
cli: {
|
|
67
|
+
arguments: [
|
|
68
|
+
{ name: 'backup', description: 'Backup timestamp', required: true, variadic: false }
|
|
69
|
+
],
|
|
70
|
+
effects: scopedWrite,
|
|
71
|
+
options: [scope, dryRun]
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
export const claudeCodeBuildOperationDescriptor = createExternalOperationDescriptor({
|
|
75
|
+
id: 'anthropic/claude-code/build',
|
|
76
|
+
hostId: 'claude-code',
|
|
77
|
+
operation: 'build',
|
|
78
|
+
name: 'Claude Code build',
|
|
79
|
+
description: 'Build a portable Claude Code plugin directory',
|
|
80
|
+
// Declared, not defaulted: `build` writes only under `--output` (a plugin directory), never the user's Vibes home.
|
|
81
|
+
effect: 'write',
|
|
82
|
+
cli: {
|
|
83
|
+
effects: { homeWrite: 'none' },
|
|
84
|
+
options: [
|
|
85
|
+
{ flags: '-o, --output <dir>', description: 'Output directory', default: './vibes-plugin' },
|
|
86
|
+
{ flags: '--name <name>', description: 'Plugin name' },
|
|
87
|
+
{ flags: '--version <version>', description: 'Plugin version' },
|
|
88
|
+
{ flags: '--vibes-path <path>', description: 'Vibes executable' },
|
|
89
|
+
dryRun
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
export const claudeCodeAssetsOperationDescriptor = createExternalOperationDescriptor({
|
|
94
|
+
id: 'anthropic/claude-code/assets',
|
|
95
|
+
hostId: 'claude-code',
|
|
96
|
+
operation: 'assets',
|
|
97
|
+
name: 'Claude Code assets',
|
|
98
|
+
description: 'Install Claude Code commands and agents',
|
|
99
|
+
cli: false
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=claude-code-operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code-operations.js","sourceRoot":"","sources":["../../src/external/claude-code-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAE1E,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,kBAAkB,EAAW,CAAC;AAClF,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAW,CAAC;AAC/E,MAAM,WAAW,GAAG,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,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