faux-studio 0.4.1 → 0.4.3
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 +2 -2
- package/dist/index.js +4 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ faux-studio runs locally and bridges your AI client to Figma Desktop:
|
|
|
50
50
|
|
|
51
51
|
## Requirements
|
|
52
52
|
|
|
53
|
-
- Node.js
|
|
53
|
+
- Node.js 20+
|
|
54
54
|
- Figma Desktop (running)
|
|
55
55
|
- Faux account (created on first auth)
|
|
56
56
|
|
|
@@ -65,7 +65,7 @@ faux-studio runs locally and bridges your AI client to Figma Desktop:
|
|
|
65
65
|
|
|
66
66
|
- Website: [faux.design](https://faux.design)
|
|
67
67
|
- Setup guide: [faux.design/docs/setup](https://faux.design/docs/setup)
|
|
68
|
-
- Issues: [github.com/
|
|
68
|
+
- Issues: [github.com/Faux-Technologies/faux-studio/issues](https://github.com/Faux-Technologies/faux-studio/issues)
|
|
69
69
|
|
|
70
70
|
## Publishing a New Version
|
|
71
71
|
|
package/dist/index.js
CHANGED
|
@@ -10514,16 +10514,8 @@ var KeychainCredentialStore = class {
|
|
|
10514
10514
|
async function tryCreateKeychainStore() {
|
|
10515
10515
|
try {
|
|
10516
10516
|
const { AsyncEntry } = await import("@napi-rs/keyring");
|
|
10517
|
-
const probe = new AsyncEntry(KEYCHAIN_SERVICE, "__probe__");
|
|
10518
|
-
await probe.setPassword("probe");
|
|
10519
|
-
try {
|
|
10520
|
-
const val = await probe.getPassword();
|
|
10521
|
-
if (val !== "probe") throw new Error("Keychain probe read-back mismatch");
|
|
10522
|
-
} finally {
|
|
10523
|
-
await probe.deletePassword().catch(() => {
|
|
10524
|
-
});
|
|
10525
|
-
}
|
|
10526
10517
|
const entry = new AsyncEntry(KEYCHAIN_SERVICE, KEYCHAIN_ACCOUNT);
|
|
10518
|
+
await entry.getPassword();
|
|
10527
10519
|
return new KeychainCredentialStore(entry);
|
|
10528
10520
|
} catch (err) {
|
|
10529
10521
|
warn(
|
|
@@ -10624,6 +10616,7 @@ async function authenticate() {
|
|
|
10624
10616
|
log("Opening browser for Figma sign-in...");
|
|
10625
10617
|
openBrowser(authUrl);
|
|
10626
10618
|
log('Waiting for you to click "Allow" in the browser...');
|
|
10619
|
+
await new Promise((r) => setTimeout(r, 5e3));
|
|
10627
10620
|
const deadline = Date.now() + POLL_TIMEOUT_MS;
|
|
10628
10621
|
while (Date.now() < deadline) {
|
|
10629
10622
|
await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
|
|
@@ -25944,7 +25937,7 @@ Resources provide quick read-only access to Figma state without tool calls:
|
|
|
25944
25937
|
- Create components for reusable UI patterns.`;
|
|
25945
25938
|
function createMcpServer(deps) {
|
|
25946
25939
|
const server2 = new Server(
|
|
25947
|
-
{ name: "faux-studio", version: "0.4.
|
|
25940
|
+
{ name: "faux-studio", version: "0.4.3" },
|
|
25948
25941
|
{
|
|
25949
25942
|
capabilities: { tools: { listChanged: true }, resources: {}, logging: {} },
|
|
25950
25943
|
instructions: INSTRUCTIONS
|
|
@@ -26397,6 +26390,7 @@ Call setup_figma again once the plugin shows "Ready".`,
|
|
|
26397
26390
|
};
|
|
26398
26391
|
}
|
|
26399
26392
|
async function main() {
|
|
26393
|
+
log(`faux-studio v${"0.4.3"}`);
|
|
26400
26394
|
try {
|
|
26401
26395
|
auth = await ensureAuth();
|
|
26402
26396
|
} catch (err) {
|