@stackable-labs/mcp-app-extension 1.21.1 → 1.22.0

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 CHANGED
@@ -1897,15 +1897,19 @@ The dev command:
1897
1897
  The CLI outputs a query param like:
1898
1898
 
1899
1899
  \`\`\`
1900
- ?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
1900
+ ?_stackable_dev=ext-123:eyJ1cmwiOiJodHRwczovL2FiYy50cnljbG91ZGZsYXJlLmNvbSIsInRva2VuIjoiZXlKaGJHY2lPaUpJVXp...
1901
1901
  \`\`\`
1902
1902
 
1903
- Copy this and **append it to the host site's URL** (the site or product where your
1904
- extension is installed/authorized) to load your local extension instead of the
1905
- production bundle. For example:
1903
+ The value after the colon is a \`base64url\`-encoded JSON \`{url, token}\` blob (the
1904
+ default, when the CLI obtained a dev session token) or a plain URL (legacy
1905
+ fallback when no token was available).
1906
+
1907
+ Copy the full param and **append it to the host site's URL** (the site or product
1908
+ where your extension is installed/authorized) to load your local extension instead
1909
+ of the production bundle. For example:
1906
1910
 
1907
1911
  \`\`\`
1908
- https://your-host-site.com/dashboard?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
1912
+ https://your-host-site.com/dashboard?_stackable_dev=ext-123:eyJ1cmwi...
1909
1913
  \`\`\`
1910
1914
 
1911
1915
  This override is **browser-session only** \u2014 no database changes, no shared state.
@@ -2086,16 +2090,27 @@ ${CLI.dev}
2086
2090
 
2087
2091
  ### Host-Site Override
2088
2092
 
2089
- The CLI outputs a query param like:
2093
+ The CLI outputs a query param you append to your deployed host site's URL (the
2094
+ site or product where your extension is installed/authorized) to load your local
2095
+ extension instead of the production bundle. The override is browser-session only \u2014
2096
+ no DB changes, no shared state. Each developer gets isolated overrides.
2097
+
2098
+ **Blob format (default \u2014 when authenticated):** the value after the colon is a
2099
+ \`base64url\`-encoded JSON \`{url, token}\` blob; the token is verified by the host:
2100
+
2101
+ \`\`\`
2102
+ ?_stackable_dev=ext-123:eyJ1cmwiOiJodHRwczovL2FiYy50cnljbG91ZGZsYXJlLmNvbSIsInRva2VuIjoiZXlKaGJHY2lPaUpJVXp...
2103
+ \`\`\`
2104
+
2105
+ **Legacy format (fallback \u2014 when no token):** plain URL after the colon:
2090
2106
 
2091
2107
  \`\`\`
2092
- ?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
2108
+ ?_stackable_dev=ext-123:https://abc.trycloudflare.com
2093
2109
  \`\`\`
2094
2110
 
2095
- Append this to your deployed host site's URL (the site or product where your
2096
- extension is installed/authorized) to load your local extension instead of the production
2097
- bundle. The override is browser-session only \u2014 no DB changes, no shared state.
2098
- Each developer gets isolated overrides.
2111
+ The CLI also surfaces a \`_stackable_staging=...\` variant (blob-only) for testing
2112
+ against staging-mode handling. For multiple extensions, comma-join entries in a
2113
+ single param \u2014 mixed blob + legacy is fine.
2099
2114
 
2100
2115
  ## validate *(coming soon)*
2101
2116
 
package/dist/server.js CHANGED
@@ -1890,15 +1890,19 @@ The dev command:
1890
1890
  The CLI outputs a query param like:
1891
1891
 
1892
1892
  \`\`\`
1893
- ?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
1893
+ ?_stackable_dev=ext-123:eyJ1cmwiOiJodHRwczovL2FiYy50cnljbG91ZGZsYXJlLmNvbSIsInRva2VuIjoiZXlKaGJHY2lPaUpJVXp...
1894
1894
  \`\`\`
1895
1895
 
1896
- Copy this and **append it to the host site's URL** (the site or product where your
1897
- extension is installed/authorized) to load your local extension instead of the
1898
- production bundle. For example:
1896
+ The value after the colon is a \`base64url\`-encoded JSON \`{url, token}\` blob (the
1897
+ default, when the CLI obtained a dev session token) or a plain URL (legacy
1898
+ fallback when no token was available).
1899
+
1900
+ Copy the full param and **append it to the host site's URL** (the site or product
1901
+ where your extension is installed/authorized) to load your local extension instead
1902
+ of the production bundle. For example:
1899
1903
 
1900
1904
  \`\`\`
1901
- https://your-host-site.com/dashboard?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
1905
+ https://your-host-site.com/dashboard?_stackable_dev=ext-123:eyJ1cmwi...
1902
1906
  \`\`\`
1903
1907
 
1904
1908
  This override is **browser-session only** \u2014 no database changes, no shared state.
@@ -2079,16 +2083,27 @@ ${CLI.dev}
2079
2083
 
2080
2084
  ### Host-Site Override
2081
2085
 
2082
- The CLI outputs a query param like:
2086
+ The CLI outputs a query param you append to your deployed host site's URL (the
2087
+ site or product where your extension is installed/authorized) to load your local
2088
+ extension instead of the production bundle. The override is browser-session only \u2014
2089
+ no DB changes, no shared state. Each developer gets isolated overrides.
2090
+
2091
+ **Blob format (default \u2014 when authenticated):** the value after the colon is a
2092
+ \`base64url\`-encoded JSON \`{url, token}\` blob; the token is verified by the host:
2093
+
2094
+ \`\`\`
2095
+ ?_stackable_dev=ext-123:eyJ1cmwiOiJodHRwczovL2FiYy50cnljbG91ZGZsYXJlLmNvbSIsInRva2VuIjoiZXlKaGJHY2lPaUpJVXp...
2096
+ \`\`\`
2097
+
2098
+ **Legacy format (fallback \u2014 when no token):** plain URL after the colon:
2083
2099
 
2084
2100
  \`\`\`
2085
- ?_stackable_dev=ext-123%3Ahttps%3A%2F%2Fabc.trycloudflare.com
2101
+ ?_stackable_dev=ext-123:https://abc.trycloudflare.com
2086
2102
  \`\`\`
2087
2103
 
2088
- Append this to your deployed host site's URL (the site or product where your
2089
- extension is installed/authorized) to load your local extension instead of the production
2090
- bundle. The override is browser-session only \u2014 no DB changes, no shared state.
2091
- Each developer gets isolated overrides.
2104
+ The CLI also surfaces a \`_stackable_staging=...\` variant (blob-only) for testing
2105
+ against staging-mode handling. For multiple extensions, comma-join entries in a
2106
+ single param \u2014 mixed blob + legacy is fine.
2092
2107
 
2093
2108
  ## validate *(coming soon)*
2094
2109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/mcp-app-extension",
3
- "version": "1.21.1",
3
+ "version": "1.22.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mcp-app-extension": "./dist/index.js"