@mars-sea/dsh-commandcode-provider 0.11.0 → 0.11.1
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/CHANGELOG.md +5 -0
- package/README.md +6 -5
- package/README.zh-CN.md +6 -5
- package/lib/client.js +42 -10
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1555,6 +1555,15 @@ interface Config {
|
|
|
1555
1555
|
* Defaults to true.
|
|
1556
1556
|
*/
|
|
1557
1557
|
webSearch?: boolean;
|
|
1558
|
+
/**
|
|
1559
|
+
* Whether the Web sidebar shows the plans & quota card
|
|
1560
|
+
* (`sidebar.footer.action`). Defaults to false: the card is opt-in, so an
|
|
1561
|
+
* unset document renders no quota surface in the sidebar and mounts no
|
|
1562
|
+
* background usage poll for it. Only the sidebar entry is affected — the
|
|
1563
|
+
* dashboard cell behind it stays registered, it simply has no trigger until
|
|
1564
|
+
* the toggle is on. Read by the browser client; the adapter ignores it.
|
|
1565
|
+
*/
|
|
1566
|
+
showSidebarQuota?: boolean;
|
|
1558
1567
|
/**
|
|
1559
1568
|
* Language override for the `/commandcode` Host-side command's user-facing
|
|
1560
1569
|
* copy. Host commands cannot read the client's `ctx.locale`, so this is
|
package/lib/index.js
CHANGED
|
@@ -5638,6 +5638,7 @@ const Config = z.object({
|
|
|
5638
5638
|
*/
|
|
5639
5639
|
modelVisibility: z.dict(z.boolean()),
|
|
5640
5640
|
webSearch: z.boolean().default(true),
|
|
5641
|
+
showSidebarQuota: z.boolean().default(false),
|
|
5641
5642
|
accounts: z.array(z.object({
|
|
5642
5643
|
label: z.string(),
|
|
5643
5644
|
apiKeyEnv: z.string().role("credential-ref"),
|