@vellumai/assistant 0.11.9-dev.202609041617.298544c → 0.11.9-dev.202609041713.aefee3e

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/Dockerfile CHANGED
@@ -33,16 +33,6 @@ COPY --parents packages/*/package.json ./
33
33
  RUN bun install --frozen-lockfile --ignore-scripts \
34
34
  --filter='./assistant' --filter='./assistant/src/api'
35
35
 
36
- # The repo-root .dockerignore decides which skills (and files) ship.
37
- COPY skills ./skills
38
- RUN set -eu; for pkg in /app/skills/*/package.json; do \
39
- [ -e "$pkg" ] || continue; \
40
- dir="$(dirname "$pkg")"; \
41
- echo "Installing dependencies for $dir"; \
42
- (cd "$dir" && (bun install --frozen-lockfile 2>/dev/null || bun install)); \
43
- done
44
-
45
-
46
36
  # Final stage
47
37
  FROM debian:trixie-slim@sha256:4ffb3a1511099754cddc70eb1b12e50ffdb67619aa0ab6c13fcd800a78ef7c7a AS runner
48
38
 
@@ -131,6 +121,9 @@ COPY packages/twilio-client /app/packages/twilio-client
131
121
 
132
122
  COPY assistant /app/assistant
133
123
 
124
+ # The repo-root .dockerignore decides which skills (and files) ship.
125
+ COPY skills /app/skills
126
+
134
127
  # Materialize the git-ignored offline plugin manifest from its canonical source.
135
128
  # `assistant/src/cli/lib/plugin-catalog-local.ts` statically imports this JSON
136
129
  # (loaded even when platform features are enabled), so it must exist in the image
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.11.9-dev.202609041617.298544c",
3
+ "version": "0.11.9-dev.202609041713.aefee3e",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -48,6 +48,18 @@ describe("PROVIDER_SEED_DATA managed mode wiring", () => {
48
48
  );
49
49
  expect(gated).toEqual([]);
50
50
 
51
+ // `selections:read` is documented by Figma but not offered in the app's
52
+ // OAuth scope list, so requesting it fails the whole authorization. It
53
+ // stays in availableScopes for BYO apps that do have it.
54
+ expect(figma.defaultScopes).not.toContain("selections:read");
55
+ const availableScopes = figma.availableScopes;
56
+ expect(Array.isArray(availableScopes)).toBe(true);
57
+ if (Array.isArray(availableScopes)) {
58
+ expect(availableScopes.map(({ scope }) => scope)).toContain(
59
+ "selections:read",
60
+ );
61
+ }
62
+
51
63
  // GET /v1/me backs both the ping and the identity label.
52
64
  expect(figma.defaultScopes).toContain("current_user:read");
53
65
  });
@@ -980,7 +980,9 @@ export const PROVIDER_SEED_DATA: Record<
980
980
  // on it. Enterprise-only and org-admin-only scopes (file_variables:*,
981
981
  // library_analytics:read, org:*) are offered but not requested by
982
982
  // default, because Figma rejects the whole authorization request if the
983
- // app cannot grant a requested scope.
983
+ // app cannot grant a requested scope. `selections:read` is withheld for
984
+ // that same reason: it is not offered in the app's OAuth scope list, so
985
+ // requesting it would fail the entire authorization.
984
986
  defaultScopes: [
985
987
  "current_user:read",
986
988
  "file_content:read",
@@ -995,7 +997,6 @@ export const PROVIDER_SEED_DATA: Record<
995
997
  "library_content:read",
996
998
  "library_assets:read",
997
999
  "team_library_content:read",
998
- "selections:read",
999
1000
  ],
1000
1001
  availableScopes: [
1001
1002
  {