@opentabs-dev/opentabs-plugin-bitbucket 0.0.82 → 0.0.83
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-content.d.ts","sourceRoot":"","sources":["../../src/tools/get-file-content.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-file-content.d.ts","sourceRoot":"","sources":["../../src/tools/get-file-content.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;;;;;kBAsBzB,CAAC"}
|
|
@@ -12,17 +12,14 @@ export const getFileContent = defineTool({
|
|
|
12
12
|
workspace: z.string().describe('Workspace slug or UUID'),
|
|
13
13
|
repo_slug: z.string().describe('Repository slug'),
|
|
14
14
|
path: z.string().describe('File path relative to repository root'),
|
|
15
|
-
ref: z
|
|
16
|
-
.string()
|
|
17
|
-
.optional()
|
|
18
|
-
.describe('Branch name, tag, or commit SHA — defaults to the default branch. If not provided, uses "main"'),
|
|
15
|
+
ref: z.string().optional().describe('Branch name, tag, or commit SHA — defaults to the repository default branch'),
|
|
19
16
|
}),
|
|
20
17
|
output: z.object({
|
|
21
18
|
content: z.string().describe('Raw file content'),
|
|
22
19
|
path: z.string().describe('File path'),
|
|
23
20
|
}),
|
|
24
21
|
handle: async (params) => {
|
|
25
|
-
const ref = params.ref ?? '
|
|
22
|
+
const ref = params.ref ?? 'HEAD';
|
|
26
23
|
const content = await apiRaw(`/repositories/${params.workspace}/${params.repo_slug}/src/${ref}/${params.path}`);
|
|
27
24
|
return { content, path: params.path };
|
|
28
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../src/tools/get-file-content.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EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QAClE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6EAA6E,CAAC;KACnH,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;KACvC,CAAC;IACF,MAAM,EAAE,KAAK,EAAC,MAAM,EAAC,EAAE;QACrB,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC;QACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,iBAAiB,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAChH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IACxC,CAAC;CACF,CAAC,CAAC"}
|
package/dist/tools.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sdkVersion": "0.0.
|
|
2
|
+
"sdkVersion": "0.0.82",
|
|
3
3
|
"iconSvg": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z\" fill=\"#2684FF\"/></svg>",
|
|
4
4
|
"iconInactiveSvg": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z\" fill=\"#999999\"/></svg>",
|
|
5
5
|
"iconDarkSvg": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z\" fill=\"#2684FF\"/></svg>",
|
|
@@ -2075,7 +2075,7 @@
|
|
|
2075
2075
|
"description": "File path relative to repository root"
|
|
2076
2076
|
},
|
|
2077
2077
|
"ref": {
|
|
2078
|
-
"description": "Branch name, tag, or commit SHA — defaults to the default branch
|
|
2078
|
+
"description": "Branch name, tag, or commit SHA — defaults to the repository default branch",
|
|
2079
2079
|
"type": "string"
|
|
2080
2080
|
}
|
|
2081
2081
|
},
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.83",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/adapter.iife.js",
|
|
10
10
|
"keywords": [
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"zod": "^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@opentabs-dev/plugin-sdk": "^0.0.
|
|
51
|
+
"@opentabs-dev/plugin-sdk": "^0.0.82"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@opentabs-dev/plugin-tools": "^0.0.
|
|
54
|
+
"@opentabs-dev/plugin-tools": "^0.0.82",
|
|
55
55
|
"@biomejs/biome": "2.4.6",
|
|
56
56
|
"jiti": "^2.6.1",
|
|
57
57
|
"typescript": "^5.9.3",
|