@corsair-dev/studio 0.1.5 → 0.1.6
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/server/index.js
CHANGED
|
@@ -682,7 +682,7 @@ function toAiMessages(stored) {
|
|
|
682
682
|
return result;
|
|
683
683
|
}
|
|
684
684
|
function buildAiTools(corsairClient) {
|
|
685
|
-
const defs = buildCorsairToolDefs({ corsair: corsairClient
|
|
685
|
+
const defs = buildCorsairToolDefs({ corsair: corsairClient });
|
|
686
686
|
const tools = {};
|
|
687
687
|
for (const def of defs) {
|
|
688
688
|
tools[def.name] = tool({
|
|
@@ -936,7 +936,11 @@ var BASE_FIELDS = {
|
|
|
936
936
|
account: ["access_token", "refresh_token", "expires_at"]
|
|
937
937
|
},
|
|
938
938
|
api_key: { integration: [], account: ["api_key"] },
|
|
939
|
-
bot_token: { integration: [], account: ["bot_token"] }
|
|
939
|
+
bot_token: { integration: [], account: ["bot_token"] },
|
|
940
|
+
managed: {
|
|
941
|
+
integration: [],
|
|
942
|
+
account: ["access_token", "refresh_token", "expires_at"]
|
|
943
|
+
}
|
|
940
944
|
};
|
|
941
945
|
function getCustomFields(plugin, authType) {
|
|
942
946
|
const authConfig = plugin.authConfig;
|
|
@@ -1003,7 +1007,11 @@ var BASE = {
|
|
|
1003
1007
|
]
|
|
1004
1008
|
},
|
|
1005
1009
|
api_key: { integration: [], account: ["api_key", "webhook_signature"] },
|
|
1006
|
-
bot_token: { integration: [], account: ["bot_token", "webhook_signature"] }
|
|
1010
|
+
bot_token: { integration: [], account: ["bot_token", "webhook_signature"] },
|
|
1011
|
+
managed: {
|
|
1012
|
+
integration: [],
|
|
1013
|
+
account: ["access_token", "refresh_token", "expires_at"]
|
|
1014
|
+
}
|
|
1007
1015
|
};
|
|
1008
1016
|
var getCredentials = async (ctx) => {
|
|
1009
1017
|
const body = await readJsonBody(ctx.req);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials-internal.d.ts","sourceRoot":"","sources":["../../../../src/server/handlers/credentials-internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials-internal.d.ts","sourceRoot":"","sources":["../../../../src/server/handlers/credentials-internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAoB,MAAM,cAAc,CAAC;AAkB/E,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,OAAO,CAAC;CACb,CAAC;AAEF,wBAAgB,eAAe,CAC9B,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,SAAS,GACjB;IAAE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAOhE;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC9C,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACrD,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACjD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAmCzB;AAYD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,CAK7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/server/handlers/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/server/handlers/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AA2B1C,eAAO,MAAM,cAAc,EAAE,SAuE5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAmE5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsair-dev/studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Local dashboard for inspecting and configuring your Corsair instance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"kysely": "^0.28.9",
|
|
21
21
|
"typescript": "^5.9.3",
|
|
22
22
|
"zod": "^4.1.13",
|
|
23
|
-
"@corsair-dev/mcp": "0.1.
|
|
24
|
-
"corsair": "0.1.
|
|
25
|
-
"@corsair-dev/cli": "0.1.
|
|
23
|
+
"@corsair-dev/mcp": "0.1.24",
|
|
24
|
+
"corsair": "0.1.103",
|
|
25
|
+
"@corsair-dev/cli": "0.1.19"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@tailwindcss/vite": "^4.0.0",
|