@sourcegraph/amp-sdk 0.1.0-20260129161910-gc6c1c3c → 0.1.0-20260130004421-ga9cb51c
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 +29 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -206,10 +206,10 @@ for await (const message of execute({
|
|
|
206
206
|
|
|
207
207
|
Available modes:
|
|
208
208
|
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
-
|
|
212
|
-
-
|
|
209
|
+
- `smart` (default): Balanced mode with full capabilities
|
|
210
|
+
- `rush`: Faster responses with streamlined tool usage
|
|
211
|
+
- `large`: 1M-token long-context workhorse
|
|
212
|
+
- `deep`: Extended reasoning for complex tasks
|
|
213
213
|
|
|
214
214
|
### Thread Labels
|
|
215
215
|
|
|
@@ -229,6 +229,31 @@ for await (const message of execute({
|
|
|
229
229
|
}
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
+
### Thread Visibility
|
|
233
|
+
|
|
234
|
+
Control who can see threads created by `execute()`:
|
|
235
|
+
|
|
236
|
+
```typescript
|
|
237
|
+
for await (const message of execute({
|
|
238
|
+
prompt: 'Analyze this private codebase',
|
|
239
|
+
options: {
|
|
240
|
+
visibility: 'private', // Only you can see this thread
|
|
241
|
+
},
|
|
242
|
+
})) {
|
|
243
|
+
if (message.type === 'result') {
|
|
244
|
+
console.log(message.result)
|
|
245
|
+
break
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Available visibility levels:
|
|
251
|
+
|
|
252
|
+
- `workspace` (default): Visible to all workspace members
|
|
253
|
+
- `private`: Only visible to you
|
|
254
|
+
- `public`: Visible to anyone with the link
|
|
255
|
+
- `group`: Visible to members of your user group (Enterprise)
|
|
256
|
+
|
|
232
257
|
### Tool Permissions
|
|
233
258
|
|
|
234
259
|
Control which tools Amp can use with fine-grained permissions:
|
package/dist/index.js
CHANGED
|
@@ -4194,7 +4194,7 @@ function buildEnvironmentVariables(options) {
|
|
|
4194
4194
|
if (options.env) {
|
|
4195
4195
|
Object.assign(env, options.env);
|
|
4196
4196
|
}
|
|
4197
|
-
env.AMP_SDK_VERSION = "0.1.0-
|
|
4197
|
+
env.AMP_SDK_VERSION = "0.1.0-20260130004421-ga9cb51c";
|
|
4198
4198
|
return env;
|
|
4199
4199
|
}
|
|
4200
4200
|
function spawnAmpCli(args, options) {
|
|
@@ -4403,4 +4403,4 @@ export {
|
|
|
4403
4403
|
AmpOptionsSchema
|
|
4404
4404
|
};
|
|
4405
4405
|
|
|
4406
|
-
//# debugId=
|
|
4406
|
+
//# debugId=9AEAC75BA7A2017864756E2164756E21
|
package/package.json
CHANGED