@oxygen-agent/cli 1.739.0 → 1.739.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/README.md
CHANGED
|
@@ -6,7 +6,9 @@ import { getCapabilityRouteMatch, inferCapabilityRoute, } from "./capability-dis
|
|
|
6
6
|
// connection routes.
|
|
7
7
|
export function inferUserCapabilityRoute(query) {
|
|
8
8
|
const route = inferCapabilityRoute(query);
|
|
9
|
-
|
|
9
|
+
const providerConnectionIntent = isSimpleProviderConnectionIntent(query);
|
|
10
|
+
if (!providerConnectionIntent
|
|
11
|
+
|| (route?.card.id !== "tables" && route?.card.id !== "workspace-access")) {
|
|
10
12
|
return route;
|
|
11
13
|
}
|
|
12
14
|
return getCapabilityRouteMatch("connected-integrations") ?? route;
|
|
@@ -19,5 +21,9 @@ function isSimpleProviderConnectionIntent(query) {
|
|
|
19
21
|
if (/\b(integration|provider|oauth|byok|api key|connected account)\b/.test(normalized)) {
|
|
20
22
|
return /\b(connect|reconnect|disconnect)\b/.test(normalized);
|
|
21
23
|
}
|
|
22
|
-
|
|
24
|
+
const match = normalized.match(/\b(?:connect|reconnect|disconnect)\s+(?:(?:my|our|the)\s+)?([a-z0-9][a-z0-9.]*)(?:\s+(account|workspace))?\s*$/);
|
|
25
|
+
if (!match)
|
|
26
|
+
return false;
|
|
27
|
+
return !new Set(["this", "that", "them", "us", "me", "account", "workspace"])
|
|
28
|
+
.has(match[1] ?? "");
|
|
23
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const OXYGEN_VERSION = "1.739.
|
|
1
|
+
export const OXYGEN_VERSION = "1.739.1";
|
|
2
2
|
// The GLOBAL CLI compatibility floor: the oldest CLI allowed to call any
|
|
3
3
|
// operational route. Raising it hard-rejects every older CLI from the entire
|
|
4
4
|
// product, so it obeys one law, enforced by scripts/ci/cli-min-version-gate.mjs:
|