@cjhyy/code-shell-link 0.9.42 → 0.9.44
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/catalog.js +2 -2
- package/dist/file-selection.js +2 -0
- package/dist/management-types.d.ts +2 -1
- package/package.json +1 -1
package/dist/catalog.js
CHANGED
|
@@ -377,7 +377,7 @@ export const LINK_PROVIDER_MANIFESTS = [
|
|
|
377
377
|
id: "figma",
|
|
378
378
|
displayName: "Figma",
|
|
379
379
|
category: "design",
|
|
380
|
-
description: text("
|
|
380
|
+
description: text("按需读取设计结构、节点、渲染图、填充图片和评论。", "Read design structure, nodes, rendered images, image fills, and comments on demand."),
|
|
381
381
|
brandText: "Fi",
|
|
382
382
|
icon: "figma",
|
|
383
383
|
accent: "violet",
|
|
@@ -402,7 +402,7 @@ export const LINK_PROVIDER_MANIFESTS = [
|
|
|
402
402
|
{ ...managedOAuth("Figma"), id: "figma-oauth" },
|
|
403
403
|
],
|
|
404
404
|
fileSelection: { kind: "figma-file", action: "get_file", resourceGroup: "files" },
|
|
405
|
-
actionIds: ["get_file", "get_comments"],
|
|
405
|
+
actionIds: ["get_file", "get_comments", "get_nodes", "get_images", "get_image_fills"],
|
|
406
406
|
},
|
|
407
407
|
];
|
|
408
408
|
export function getLinkProviderManifest(providerId) {
|
package/dist/file-selection.js
CHANGED
|
@@ -55,6 +55,8 @@ export function resolveLinkFileSelection(providerId, input) {
|
|
|
55
55
|
url.password ||
|
|
56
56
|
url.port)
|
|
57
57
|
throw new Error("Invalid Figma file URL");
|
|
58
|
+
if (/^\/make(?:\/|$)/.test(url.pathname))
|
|
59
|
+
throw new Error("unsupported_file_type: Figma Make links are not supported by Figma file REST actions; use a Design, FigJam, or file link");
|
|
58
60
|
key =
|
|
59
61
|
/^\/(?:file|design|board)\/([A-Za-z0-9_-]{1,200})(?:\/|$)/.exec(url.pathname)?.[1] ?? "";
|
|
60
62
|
}
|
|
@@ -156,7 +156,8 @@ export interface LinkConnectionInput {
|
|
|
156
156
|
label: string;
|
|
157
157
|
connectionId?: string;
|
|
158
158
|
expectedRevision: string | null;
|
|
159
|
-
/**
|
|
159
|
+
/** One user-pasted Figma file for initial or existing-account authorization.
|
|
160
|
+
* Previously authorized files are recovered by the Host, never this input. */
|
|
160
161
|
resourceUrl?: string;
|
|
161
162
|
}
|
|
162
163
|
export interface TokenConnectionInput extends LinkConnectionInput {
|