@productbrain/mcp 0.0.1-beta.15907 → 0.0.1-beta.15915
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/{chunk-RLADPZ3R.js → chunk-LKFTMBK5.js} +8 -7
- package/dist/chunk-LKFTMBK5.js.map +1 -0
- package/dist/{chunk-AFTQ7UO6.js → chunk-TLR7A2WH.js} +11 -7
- package/dist/chunk-TLR7A2WH.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{setup-EAUM27VM.js → setup-KM6C74M2.js} +4 -3
- package/dist/setup-KM6C74M2.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-AFTQ7UO6.js.map +0 -1
- package/dist/chunk-RLADPZ3R.js.map +0 -1
- package/dist/setup-EAUM27VM.js.map +0 -1
|
@@ -454,7 +454,9 @@ function quoteDataLines(lines, tag) {
|
|
|
454
454
|
var API_KEY_PREFIX = "pb_sk_";
|
|
455
455
|
var AGENT_KEY_PREFIX = "pb_agent_";
|
|
456
456
|
var isApiKeyShaped = (token) => token.startsWith(API_KEY_PREFIX) || token.startsWith(AGENT_KEY_PREFIX);
|
|
457
|
-
var
|
|
457
|
+
var API_KEYS_PAGE = "API keys";
|
|
458
|
+
var KEY_SCOPE_WORDS = { read: "Read only", readwrite: "Read + Write" };
|
|
459
|
+
var API_KEY_FORMAT_LINE = `A key starts with ${API_KEY_PREFIX} or ${AGENT_KEY_PREFIX}. Get one from Settings, ${API_KEYS_PAGE}.`;
|
|
458
460
|
|
|
459
461
|
// src/lib/replyLines.ts
|
|
460
462
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "async_hooks";
|
|
@@ -1264,7 +1266,7 @@ var GATE_PATTERNS = [
|
|
|
1264
1266
|
{
|
|
1265
1267
|
pattern: /read.?only.*scope/i,
|
|
1266
1268
|
code: "READONLY_SCOPE",
|
|
1267
|
-
recovery:
|
|
1269
|
+
recovery: `This API key cannot write. Use a ${KEY_SCOPE_WORDS.readwrite} key.`,
|
|
1268
1270
|
action: { tool: "workspace", description: "Check key scope", parameters: { action: "whoami" } }
|
|
1269
1271
|
}
|
|
1270
1272
|
];
|
|
@@ -1993,6 +1995,12 @@ export {
|
|
|
1993
1995
|
formatSeatSentence,
|
|
1994
1996
|
formatInviteSentence,
|
|
1995
1997
|
ORGANISATION_VALIDATION_REFUSALS,
|
|
1998
|
+
API_KEY_PREFIX,
|
|
1999
|
+
AGENT_KEY_PREFIX,
|
|
2000
|
+
isApiKeyShaped,
|
|
2001
|
+
API_KEYS_PAGE,
|
|
2002
|
+
KEY_SCOPE_WORDS,
|
|
2003
|
+
API_KEY_FORMAT_LINE,
|
|
1996
2004
|
authorityRecovery,
|
|
1997
2005
|
returnedRefusal,
|
|
1998
2006
|
withAcceptPrompt,
|
|
@@ -2003,10 +2011,6 @@ export {
|
|
|
2003
2011
|
classifyError,
|
|
2004
2012
|
retryIsFutile,
|
|
2005
2013
|
runWithCommandId,
|
|
2006
|
-
API_KEY_PREFIX,
|
|
2007
|
-
AGENT_KEY_PREFIX,
|
|
2008
|
-
isApiKeyShaped,
|
|
2009
|
-
API_KEY_FORMAT_LINE,
|
|
2010
2014
|
warnOnProdFallthrough,
|
|
2011
2015
|
startTimingLine,
|
|
2012
2016
|
START_NOTES_NOT_LOADED_LINE,
|
|
@@ -2041,4 +2045,4 @@ export {
|
|
|
2041
2045
|
appUrl,
|
|
2042
2046
|
apiKeysUrl
|
|
2043
2047
|
};
|
|
2044
|
-
//# sourceMappingURL=chunk-
|
|
2048
|
+
//# sourceMappingURL=chunk-TLR7A2WH.js.map
|