@lunnoa/client 2.0.0 → 2.1.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/README.md +13 -40
- package/dist/cli.js +6 -6
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -31
- package/dist/index.d.ts +22 -31
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +3 -3
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +15 -22
- package/dist/react.d.ts +15 -22
- package/dist/react.js +3 -3
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/skills/lunnoa-client/SKILL.md +32 -32
- package/skills/lunnoa-solution-design/SKILL.md +9 -8
package/dist/react.cjs
CHANGED
|
@@ -58,7 +58,7 @@ function isBrowserEnvironment() {
|
|
|
58
58
|
function assertApiKeyAllowedInEnvironment(apiKey) {
|
|
59
59
|
if (isBrowserEnvironment()) {
|
|
60
60
|
throw new Error(
|
|
61
|
-
"Refusing to use a Lunnoa API key (lna_...) in a browser environment. API keys are
|
|
61
|
+
"Refusing to use a Lunnoa API key (lna_...) in a browser environment. API keys are for the CLI and operator scripts, not for app login. Anyone opening dev tools could read the key and act as the service account across its whole workspace. Sign the end user in with lunnoa.auth.login and pass their JWT as `accessToken`."
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
if (!apiKey.startsWith(API_KEY_PREFIX)) {
|
|
@@ -140,7 +140,7 @@ var HttpClient = class {
|
|
|
140
140
|
}
|
|
141
141
|
if (!options.apiKey && !options.accessToken && !options.tokenStore) {
|
|
142
142
|
throw new Error(
|
|
143
|
-
"LunnoaClient requires an
|
|
143
|
+
"LunnoaClient requires an accessToken or tokenStore (Lunnoa user JWT), or an apiKey for operator scripts."
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
if (options.apiKey) {
|
|
@@ -2091,7 +2091,7 @@ var WorkflowsResource = class {
|
|
|
2091
2091
|
var LunnoaClient = class {
|
|
2092
2092
|
/** The underlying HTTP layer, exposed for advanced/escape-hatch requests. */
|
|
2093
2093
|
http;
|
|
2094
|
-
/** Login, refresh, SSO discovery, and session helpers
|
|
2094
|
+
/** Login, refresh, SSO discovery, and session helpers for Lunnoa users. */
|
|
2095
2095
|
auth;
|
|
2096
2096
|
agents;
|
|
2097
2097
|
tasks;
|