@lunnoa/client 1.5.0 → 2.0.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 +6 -7
- package/dist/cli.js +39 -108
- package/dist/index.cjs +11 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +147 -416
- package/dist/index.d.ts +147 -416
- package/dist/index.js +12 -41
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +11 -40
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +73 -215
- package/dist/react.d.ts +73 -215
- package/dist/react.js +11 -40
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/skills/lunnoa-client/SKILL.md +6 -6
- package/skills/lunnoa-solution-design/SKILL.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunnoa/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "TypeScript SDK for building applications on top of Lunnoa Automate — typed client for the Public API (agents, workflows, executions, entities, knowledge, queues), SSE agent chat streaming, and deployment-specific codegen",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -57,14 +57,15 @@ Run these before inventing resources or shipping UI code:
|
|
|
57
57
|
3. **Discover before inventing** — prefer the CLI (JSON for agents), then
|
|
58
58
|
the SDK: `npx @lunnoa/client tools list --json --for-agent`,
|
|
59
59
|
`tools get <actionId> --json`, `apps list`, `connections list`,
|
|
60
|
-
`agents|workflows|entity-types|tables
|
|
60
|
+
`agents|workflows|entity-types|tables list`, `tables get <slugOrId>`,
|
|
61
61
|
`features`.
|
|
62
62
|
SDK equivalents: `workflowApps.list()`, `agents.list`, `workflows.list`,
|
|
63
63
|
`entityTypes.list`, `tables.list`, `discovery.enabledFeatures()`.
|
|
64
64
|
Do not invent catalogue action ids.
|
|
65
65
|
4. **Run vs deploy** — Ad-hoc: `actions.run` / `runs.start` /
|
|
66
66
|
`workflows.execute`. Durable shared automation: CLI
|
|
67
|
-
`npx @lunnoa/client workflows|agents deploy
|
|
67
|
+
`npx @lunnoa/client workflows|agents deploy`. Upsert is by slug
|
|
68
|
+
inside the workspace on the API key. URL and API key are enough.
|
|
68
69
|
5. **Toolkit boundary** — Client `defineAction` ≠ toolkit `createAction`.
|
|
69
70
|
|
|
70
71
|
---
|
|
@@ -319,7 +320,6 @@ const result = await lunnoa.actions.run({
|
|
|
319
320
|
appId: 'http',
|
|
320
321
|
actionId: 'http_action_send-request',
|
|
321
322
|
// connectionId: '<Connection.id UUID>', // required if needsConnection + multiple
|
|
322
|
-
// projectId: '<project UUID>', // required if multiple projects
|
|
323
323
|
input: { method: 'GET', url: 'https://example.com' },
|
|
324
324
|
name: 'Ping example',
|
|
325
325
|
});
|
|
@@ -390,11 +390,11 @@ npx @lunnoa/client connections list --app gmail --json
|
|
|
390
390
|
`tools get` returns `inputConfig` / `inputFields` and a `defineAction` sketch.
|
|
391
391
|
`tools list` is compact; use `get` for the schema. `--json` is for coding agents.
|
|
392
392
|
|
|
393
|
-
Deploy to Automate UI (upsert by slug; prefer CLI):
|
|
393
|
+
Deploy to Automate UI (upsert by slug inside the workspace on the API key; prefer CLI):
|
|
394
394
|
|
|
395
395
|
```bash
|
|
396
|
-
npx @lunnoa/client workflows deploy ./ping.ts --url … --api-key …
|
|
397
|
-
npx @lunnoa/client agents deploy ./triage.ts --url … --api-key …
|
|
396
|
+
npx @lunnoa/client workflows deploy ./ping.ts --url … --api-key …
|
|
397
|
+
npx @lunnoa/client agents deploy ./triage.ts --url … --api-key …
|
|
398
398
|
```
|
|
399
399
|
|
|
400
400
|
`defineAction` binds catalogue actions only. Toolkit `createAction` is a
|
|
@@ -145,11 +145,11 @@ can execute. Use this shape:
|
|
|
145
145
|
|
|
146
146
|
### Auth
|
|
147
147
|
- Pattern: A (server API key) | B (browser JWT)
|
|
148
|
-
- Notes: <CORS, BFF,
|
|
148
|
+
- Notes: <CORS, BFF, env vars LUNNOA_URL and LUNNOA_API_KEY>
|
|
149
149
|
|
|
150
150
|
### Discovery (run first)
|
|
151
151
|
- [ ] `npx @lunnoa/client tools list --json --for-agent` then `tools get <id>`
|
|
152
|
-
- [ ] agents / workflows / entity-types / tables
|
|
152
|
+
- [ ] agents / workflows / entity-types / tables list — reuse before create
|
|
153
153
|
- [ ] codegen — if building typed entity/workflow accessors
|
|
154
154
|
|
|
155
155
|
### Resources (every row says REUSED or CREATED)
|