@sourcegraph/amp-sdk 0.1.0-20260201005254-g9e2e086 → 0.1.0-20260201074141-g69075bf
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/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4069,7 +4069,7 @@ var AmpOptionsSchema = exports_external.object({
|
|
|
4069
4069
|
toolbox: exports_external.string().describe("Folder path with toolbox scripts").optional(),
|
|
4070
4070
|
skills: exports_external.string().describe("Folder path with custom skills").optional(),
|
|
4071
4071
|
permissions: exports_external.array(PermissionSchema).describe("Permission rules for tool usage").optional(),
|
|
4072
|
-
labels: exports_external.array(exports_external.string()).describe("Labels to add to the thread (repeatable CLI --label)").optional(),
|
|
4072
|
+
labels: exports_external.array(exports_external.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9-]*$/, "Labels must start with alphanumeric and contain only alphanumeric characters and hyphens").min(1, "Label must be at least 1 character").max(32, "Label must be at most 32 characters")).max(20, "Maximum 20 labels allowed").describe("Labels to add to the thread (repeatable CLI --label)").optional(),
|
|
4073
4073
|
enabledTools: exports_external.array(exports_external.string()).describe('Array of tool name patterns to enable. Supports glob patterns (e.g., "mcp__metabase__*"). If not provided, all tools are enabled. If provided, only matching tools are enabled.').optional(),
|
|
4074
4074
|
systemPrompt: exports_external.string().describe("Custom system prompt text to append to the base system prompt for integration-specific customizations").optional()
|
|
4075
4075
|
}).strict();
|
|
@@ -4173,7 +4173,9 @@ async function buildSettingsFile(options, sessionId) {
|
|
|
4173
4173
|
mergedSettings["amp.skills.path"] = options.skills;
|
|
4174
4174
|
}
|
|
4175
4175
|
await mkdir(tempDir, { recursive: true });
|
|
4176
|
-
|
|
4176
|
+
if (process.env.AMP_DEBUG) {
|
|
4177
|
+
console.log("[SDK] Writing settings file:", tempSettingsPath, mergedSettings);
|
|
4178
|
+
}
|
|
4177
4179
|
await writeFile(tempSettingsPath, JSON.stringify(mergedSettings, null, 2), "utf-8");
|
|
4178
4180
|
return {
|
|
4179
4181
|
settingsFilePath: tempSettingsPath,
|
|
@@ -4194,7 +4196,7 @@ function buildEnvironmentVariables(options) {
|
|
|
4194
4196
|
if (options.env) {
|
|
4195
4197
|
Object.assign(env, options.env);
|
|
4196
4198
|
}
|
|
4197
|
-
env.AMP_SDK_VERSION = "0.1.0-
|
|
4199
|
+
env.AMP_SDK_VERSION = "0.1.0-20260201074141-g69075bf";
|
|
4198
4200
|
return env;
|
|
4199
4201
|
}
|
|
4200
4202
|
function spawnAmpCli(args, options) {
|
|
@@ -4403,4 +4405,4 @@ export {
|
|
|
4403
4405
|
AmpOptionsSchema
|
|
4404
4406
|
};
|
|
4405
4407
|
|
|
4406
|
-
//# debugId=
|
|
4408
|
+
//# debugId=9786174B8A0F2FBA64756E2164756E21
|
package/package.json
CHANGED