@lobu/runtime-device 24.4.0 → 24.6.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/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +77 -64
- package/dist/verify.mjs +1 -1
- package/npm-shrinkwrap.json +176 -141
- package/package.json +3 -2
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +65 -11
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +20 -13
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +48 -100
- package/vendor/cli/dist/commands/_lib/apply/client.js +76 -27
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +1 -1
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +7 -11
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +9 -40
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +4 -4
- package/vendor/cli/dist/commands/_lib/apply/diff.js +37 -33
- package/vendor/cli/dist/commands/_lib/apply/map-config.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +79 -92
- package/vendor/cli/dist/commands/_lib/apply/shared.d.ts +3 -6
- package/vendor/cli/dist/commands/_lib/apply/shared.js +8 -19
- package/vendor/cli/dist/commands/_lib/view-bundler.js +9 -1
- package/vendor/cli/dist/commands/dev.js +21 -7
- package/vendor/cli/dist/commands/doctor.js +1 -8
- package/vendor/cli/dist/commands/init.js +4 -5
- package/vendor/cli/dist/config/define.d.ts +27 -28
- package/vendor/cli/dist/config/define.js +4 -5
- package/vendor/cli/dist/connectors/linkedin-identity.ts +43 -0
- package/vendor/cli/dist/connectors/linkedin.ts +154 -3
- package/vendor/cli/dist/connectors/postgres.ts +77 -48
- package/vendor/cli/dist/connectors/x-like-follow.ts +329 -0
- package/vendor/cli/dist/connectors/x.ts +709 -80
- package/vendor/cli/dist/internal/api-client.d.ts +2 -0
- package/vendor/cli/dist/internal/api-client.js +6 -1
- package/vendor/cli/dist/internal/connector-compiler.js +3 -1
- package/vendor/cli/dist/internal/node-binary.d.ts +22 -0
- package/vendor/cli/dist/internal/node-binary.js +73 -0
- package/vendor/cli/dist/internal/node-version.d.ts +7 -12
- package/vendor/cli/dist/internal/node-version.js +16 -20
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +2 -2
- package/vendor/cli/package.json +3 -2
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +8 -2
- package/vendor/connector-sdk/dist/reaction-sdk.d.ts +5 -1
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/compile/index.d.ts +4 -3
- package/vendor/connector-worker/dist/compile/index.js +6 -3
- package/vendor/connector-worker/dist/daemon/acp-adapters/claude.js +1 -1
- package/vendor/connector-worker/dist/daemon/agent-turn.js +21 -10
- package/vendor/connector-worker/dist/daemon/client.d.ts +25 -8
- package/vendor/connector-worker/dist/daemon/client.js +25 -3
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.js +7 -1
- package/vendor/connector-worker/dist/daemon/poll-loop.d.ts +17 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.js +75 -6
- package/vendor/connector-worker/dist/daemon/resource-admission.d.ts +19 -0
- package/vendor/connector-worker/dist/daemon/resource-admission.js +59 -0
- package/vendor/connector-worker/dist/daemon/resources.d.ts +20 -0
- package/vendor/connector-worker/dist/daemon/resources.js +163 -0
- package/vendor/connector-worker/dist/daemon/start.js +29 -4
- package/vendor/connector-worker/dist/daemon/worker.d.ts +2 -0
- package/vendor/connector-worker/dist/daemon/worker.js +4 -0
- package/vendor/connector-worker/dist/executor/select.d.ts +1 -1
- package/vendor/connector-worker/dist/executor/select.js +1 -1
- package/vendor/connector-worker/dist/isolate/ivm-types.d.ts +1 -2
- package/vendor/connector-worker/dist/isolate/ivm-types.js +1 -2
- package/vendor/connector-worker/dist/isolate/load.d.ts +10 -12
- package/vendor/connector-worker/dist/isolate/load.js +23 -27
- package/vendor/connector-worker/dist/self-check/index.d.ts +2 -2
- package/vendor/connector-worker/dist/self-check/index.js +2 -2
- package/vendor/connector-worker/package.json +3 -4
- package/vendor/core/dist/contracts/agent-settings.d.ts +61 -6
- package/vendor/core/dist/contracts/agent-settings.js +10 -7
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +473 -98
- package/vendor/core/dist/contracts/tools/manage-agents.js +111 -2
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +21 -18
- package/vendor/core/dist/contracts/tools/manage-automations.js +15 -15
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-inference-providers.d.ts +445 -0
- package/vendor/core/dist/contracts/tools/manage-inference-providers.js +133 -0
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +4 -4
- package/vendor/core/dist/contracts/tools/manage-views.js +5 -3
- package/vendor/core/dist/contracts/tools/view-host.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/view-host.js +28 -0
- package/vendor/core/dist/contracts/tools/view-runtime.d.ts +2 -4
- package/vendor/core/dist/contracts/tools/view-runtime.js +19 -7
- package/vendor/core/dist/contracts/worker/device-automation.js +4 -2
- package/vendor/core/dist/error-report.d.ts +73 -0
- package/vendor/core/dist/error-report.js +346 -0
- package/vendor/core/dist/index.d.ts +3 -1
- package/vendor/core/dist/index.js +4 -1
- package/vendor/core/dist/logger.js +7 -4
- package/vendor/core/dist/otel-fetch.d.ts +19 -0
- package/vendor/core/dist/otel-fetch.js +96 -0
- package/vendor/core/dist/otel.d.ts +9 -0
- package/vendor/core/dist/otel.js +28 -7
- package/vendor/core/dist/reserved.d.ts +1 -1
- package/vendor/core/dist/reserved.js +6 -4
- package/vendor/core/dist/tool-result.d.ts +8 -0
- package/vendor/core/dist/tool-result.js +61 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +1 -1
- package/vendor/core/dist/worker/auth.js +4 -0
- package/vendor/core/package.json +16 -1
- package/vendor/views/dist/api.d.ts +290 -0
- package/vendor/views/dist/api.js +714 -0
- package/vendor/views/dist/bridge.d.ts +157 -0
- package/vendor/views/dist/bridge.js +372 -0
- package/vendor/views/dist/components.d.ts +172 -0
- package/vendor/views/dist/components.js +376 -0
- package/vendor/views/dist/index.d.ts +13 -0
- package/vendor/views/dist/index.js +3 -0
- package/vendor/views/dist/native.d.ts +327 -0
- package/vendor/views/dist/native.js +57 -0
- package/vendor/views/package.json +53 -0
- /package/vendor/cli/dist/vendor/ora/{.bun-tag-fde20e9a6df212fa → .bun-tag-77bb9b258a474a18} +0 -0
- /package/vendor/ora/{.bun-tag-fde20e9a6df212fa → .bun-tag-77bb9b258a474a18} +0 -0
- /package/vendor/postgres/{.bun-tag-22d644c2873790db → .bun-tag-c81dacd34e959a7a} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-device",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"npm-shrinkwrap.json"
|
|
15
15
|
],
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=26 <27"
|
|
18
18
|
},
|
|
19
19
|
"overrides": {
|
|
20
20
|
"sharp": "^0.35.3"
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@lobu/cli": "file:vendor/cli",
|
|
37
37
|
"@lobu/connector-worker": "file:vendor/connector-worker",
|
|
38
38
|
"@lobu/core": "file:vendor/core",
|
|
39
|
+
"@lobu/views": "file:vendor/views",
|
|
39
40
|
"ora": "file:vendor/ora"
|
|
40
41
|
}
|
|
41
42
|
}
|
|
@@ -50,7 +50,7 @@ If the user gave permission to research and has a public domain, research the co
|
|
|
50
50
|
|
|
51
51
|
### 3. Discover the surface before choosing how to scaffold
|
|
52
52
|
|
|
53
|
-
Check Node is
|
|
53
|
+
Check Node is 26.x, then run `lobu context list` and identify the named Lobu Cloud context; do not assume the active context still points to cloud after a local run. If a managed or cloud connector was chosen and there is no session, ask for the login email at that point, explain that Lobu will email an approval link, and run `lobu login --email <confirmed-address> --context <cloud-name>`. The person approving must sign in with that same email; knowing an address never grants access. After a successful login, an empty organization membership list is a tenancy/discovery result, not an authentication failure: call `client.organizations.list()` and explain the result. Never revoke or repeat login with `--force` unless the user separately approves that re-authentication.
|
|
54
54
|
|
|
55
55
|
Use ClientSDK through Lobu MCP with the explicit cloud context. From the CLI, account discovery works before selecting an active org with `lobu memory run query_sdk '{"title":"Find managed connection providers","script":"export default async (_ctx, client) => client.organizations.list()"}'`; `lobu call` over REST requires an active org. Call `client.organizations.list()` to find public organizations offering managed connections. Call `client.catalog.listInstalled({ kinds: ["connectors"] })`; if the connector is not installed, call `client.catalog.listCatalog({ kinds: ["connectors"] })`. Inspect the selected entry's `detail.auth_schema`, `detail.options_schema`, `detail.feeds_schema`, and `detail.automation_events` instead of guessing field names. On account-scoped `/mcp`, select an authorized home workspace first with `const home = await client.org(homeSlug)` and call `home.connections.connectManaged`; put the public provider org in `managed_by_org`, rather than selecting that provider org with `client.org`. This call runs against cloud, not the embedded runtime. If a matching live managed offer exists, explain it and call `client.connections.connectManaged` only after consent. Complete the returned user authorization, then run `lobu context use <cloud-name>` immediately before executing its `local_bootstrap_command` from the parent directory where the new project should be created; use `--here` only after entering an empty directory, and do not create a blank Lobu scaffold first. Ask for bring-your-own OAuth credentials only if no managed offer exists or the user prefers their own app.
|
|
56
56
|
|
|
@@ -236,7 +236,13 @@ Search before create to avoid duplicates. Prefer a read or dry run before mutati
|
|
|
236
236
|
|
|
237
237
|
## Custom Views
|
|
238
238
|
|
|
239
|
-
Before authoring UI, inspect available native entity/event pages, existing views (`client.views.list()` and `client.views.get({ key })`), and the project's shared components and overrides. Honor explicit user designs
|
|
239
|
+
Before authoring UI, inspect available native entity/event pages, existing views (`client.views.list()` and `client.views.get({ key })`), and the project's shared components and overrides. Honor explicit user designs and reuse UI from the top down:
|
|
240
|
+
|
|
241
|
+
1. Use the largest existing surface or component that meets the task. Configure its segment, filters, search, saved preset and layout before replacing its UI.
|
|
242
|
+
2. If that surface cannot meet a concrete requirement, compose its exported parts, such as an individual table, board, graph or shared collection controls when available. Preserve shared selection and action handling instead of rebuilding that logic.
|
|
243
|
+
3. If those parts still do not fit, use smaller shared primitives and write custom UI only for the remaining gap. Explain the unmet requirement that forced each step down.
|
|
244
|
+
|
|
245
|
+
Check the current exports and target host before choosing an import; native renderer registrations do not imply React exports. Surface a missing export as a platform gap rather than inventing an API or silently copying the native implementation. `@lobu/views/components` currently supplies theme-aware defaults such as `Card`, `DataTable`, filters, charts, links and query-state components. When exploration needs specialized linked charts, drilldowns, scenario controls or Canvas/SVG, compose a React view from the suitable existing components.
|
|
240
246
|
|
|
241
247
|
Native JSON templates use the target renderer's registered component names and overrides; inspect what that host actually supplies. React views compose imported components in their own bundle, independently of that native renderer map.
|
|
242
248
|
|
|
@@ -245,7 +251,7 @@ Views are custom React panels attached to entity types, records, events, or the
|
|
|
245
251
|
Module shape (the server resolves React, React DOM, `@lobu/views` and `@lobu/views/components`; other dependencies need the CLI path with `node_modules` present):
|
|
246
252
|
|
|
247
253
|
```tsx
|
|
248
|
-
import { defineView,
|
|
254
|
+
import { defineView, tool, useAction, useParams, useQuery } from "@lobu/views";
|
|
249
255
|
import {
|
|
250
256
|
Card,
|
|
251
257
|
DataTable,
|
|
@@ -266,11 +272,9 @@ export const view = defineView({
|
|
|
266
272
|
|
|
267
273
|
export default function Pipeline() {
|
|
268
274
|
const [params, setParams] = useParams();
|
|
269
|
-
const deals = useQuery
|
|
270
|
-
sql`SELECT id, title FROM deal WHERE stage = ${params.stage} LIMIT 100`
|
|
271
|
-
);
|
|
275
|
+
const deals = useQuery(tool("manage_entity", { action: "list", entity_type: "deal", filters: [{ field: "stage", op: "eq", value: String(params.stage) }], limit: 100 }));
|
|
272
276
|
const markWon = useAction("markWon");
|
|
273
|
-
const rows = deals.data ?? [];
|
|
277
|
+
const rows = deals.data?.entities ?? [];
|
|
274
278
|
// Keep the filter mounted across query states: an early return on
|
|
275
279
|
// loading/error would unmount the focused input on every keystroke
|
|
276
280
|
// (each keystroke re-queries). Render states inline instead.
|
|
@@ -286,7 +290,7 @@ export default function Pipeline() {
|
|
|
286
290
|
<EmptyState title="No deals in this stage." />
|
|
287
291
|
)}
|
|
288
292
|
{!deals.loading && !deals.error && rows.length > 0 && (
|
|
289
|
-
<DataTable columns={[{ key: "
|
|
293
|
+
<DataTable columns={[{ key: "name", header: "Name" }]} rows={rows} keyOf={(r) => r.id ?? r.slug} />
|
|
290
294
|
)}
|
|
291
295
|
{deals.truncated && <TruncatedNotice shown={rows.length} />}
|
|
292
296
|
</Card>
|
|
@@ -312,14 +316,64 @@ Workspace attachment does not render individual events. For an event presentatio
|
|
|
312
316
|
|
|
313
317
|
Before reporting a view working, open each attached surface, including an event page and peek when declared. Exercise filtering, drilldown, keyboard navigation, and a narrow pane; check loading, missing/error, and truncated data states. Refresh and reopen an earlier event of the kind to verify the view stays on that event rather than jumping to the newest one. Views render in an iframe, so an empty parent-page DOM is not evidence the view is empty; inspect the frame through an authorized browser or accessibility surface. A successful compile proves only that the bundle was built.
|
|
314
318
|
|
|
319
|
+
Import reusable UI from **`@lobu/views/components`**. Discover this kit with `search_sdk({ query: "@lobu/views/components" })` or a component name. Start with the largest suitable native surface; compose smaller parts only for needs it does not cover:
|
|
320
|
+
|
|
321
|
+
| Need | Component and minimum input |
|
|
322
|
+
| --- | --- |
|
|
323
|
+
| Complete entity list | `EntityListPage title={title} table={tableProps}` |
|
|
324
|
+
| SQL, computed TypeScript or local rows | `EntityListPage title={title}` with `DataTable columns={columns} rows={rows} keyOf={keyOf}` as children |
|
|
325
|
+
| Complete record body | `EntityRecordPage entity={entity} owner={workspace} schema={schema}` |
|
|
326
|
+
| Entity table or individual fields | `EntityTableView`, `RecordSpecSheet`, `SchemaValue`, `EntityAvatar` |
|
|
327
|
+
| Saved resource identity and navigation | `AutomationReference`, `AgentReference`, `ConnectorReference` |
|
|
328
|
+
| Automation instructions, sources, triggers, outputs and code | `AutomationDefinition value={definition}` |
|
|
329
|
+
| Agent identity, models and settings | `AgentDefinition value={definition}` |
|
|
330
|
+
| Connector actions, feeds, schemas and source | `ConnectorDefinition value={definition}` |
|
|
331
|
+
| Current / Proposed comparison | Existing `Tabs` with the same definition component in each panel |
|
|
332
|
+
| Optional technical details | `JsonDiff before={current} after={proposed}` inside collapsed `<details>` |
|
|
333
|
+
|
|
334
|
+
The host supplies native JS/CSS, React and live theme. Do not copy product markup or bundle a second React. Exported prop types describe the shared contracts. Use `Button`, `Badge`, `Card`, chart and state components for surrounding UI.
|
|
335
|
+
|
|
336
|
+
**Page bodies are controlled.** Supply data and slots; they fetch nothing and authorize no writes. `EntityListPage` accepts `title`, optional `actions`/`controls`, and either `table: EntityTableViewProps` or `children`. Its `loading`, `error`, `onRetry` and `empty` affect only results, keeping controls mounted. Native table props include rows, schema, linked lookups, sorting and pagination; honor `metadata.has_more`. For SQL/TypeScript rows use `DataTable`, without inventing entity IDs or types. `EntityRecordPage` renders the native title/avatar and schema fields; `actions`, `details`, `summary`, and `children` supply editing, links, activity and tabs. Default `layout="record"` adapts to width; `layout="content"` retains the header while children own the layout. A `null` title/details/summary hides that slot. Preserve zero and false.
|
|
337
|
+
|
|
338
|
+
**References resolve saved identity.** Pass `mode="live"`, mounted `workspace`, optional `appearance="inline" | "row"` (default row), and `automationId` (positive decimal string), `agentId`, or `connectorKey` plus optional numeric `connectionId`. Discover IDs first. These reuse product rows and visiting-user permission checks; they accept no authored name/status or mutation callbacks. Invalid selectors, another workspace, missing records and refused reads show unavailable. A connector definition does not imply a connected account. Reads refresh on mount, focus, reconnect and host invalidation, without interval polling.
|
|
339
|
+
|
|
340
|
+
**Definitions render supplied objects.** All three have the same signature: `{ value: Record<string, unknown> }`. Pass the existing saved definition or complete proposed snapshot, not a patch. Automation fields include `name`, `description`, `prompt`, `sources`, `triggers`, `outputs`, `reaction_script`; Agent fields include `name`, `description`, `identity_md`, `settings`; Connector fields include `name`, `description`, `version`, `actions_schema`, `feeds_schema`, `source_code`. Remaining nested settings stay inspectable. Missing fields differ from empty values. Bodies fetch nothing, execute no supplied code, and add no save/approval controls. Label authored objects as Snapshot or Proposal preview; use a reference for live identity. Never supply credentials.
|
|
341
|
+
|
|
342
|
+
Show changes as **Current / Proposed**, defaulting to Proposed, with the same native body on both sides. Keep JSON diff optional. Rendering does not save or apply anything and needs no new proposal endpoint. For an existing approval, render its held current/proposed snapshots; do not merge in newer live values. Writes remain on existing declared `useAction` paths or native authorized editor/review pages. An authored preview must not imply a held approval or authority to apply it.
|
|
343
|
+
|
|
344
|
+
```tsx
|
|
345
|
+
import {
|
|
346
|
+
Card, ConnectorDefinition, JsonDiff,
|
|
347
|
+
Tabs, TabsList, TabsTrigger, TabsContent,
|
|
348
|
+
} from "@lobu/views/components";
|
|
349
|
+
|
|
350
|
+
// current and proposed are complete definition objects from authorized reads
|
|
351
|
+
// and the requested edit. Use AgentDefinition or AutomationDefinition identically.
|
|
352
|
+
<Card title="Connector proposal preview" description="Nothing has been applied.">
|
|
353
|
+
<Tabs defaultValue="proposed">
|
|
354
|
+
<TabsList label="Definition version">
|
|
355
|
+
<TabsTrigger value="current">Current</TabsTrigger>
|
|
356
|
+
<TabsTrigger value="proposed">Proposed</TabsTrigger>
|
|
357
|
+
</TabsList>
|
|
358
|
+
<TabsContent value="current"><ConnectorDefinition value={current} /></TabsContent>
|
|
359
|
+
<TabsContent value="proposed"><ConnectorDefinition value={proposed} /></TabsContent>
|
|
360
|
+
</Tabs>
|
|
361
|
+
<details><summary>Technical diff</summary><JsonDiff before={current} after={proposed} /></details>
|
|
362
|
+
</Card>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
Use `useHost().openRecord({ entity_id, entity_type? }, { mode: "peek" })` for a record's native peek. String source keys require the type. The promise reports the actual `{ mode: "peek" | "page" }`; a host without native peek opens the server-returned record URL. Errors remain errors. `useHost().theme` follows live theme changes; native components inherit the host palette and typography automatically. Use semantic host style variables and avoid hardcoded light/dark colors.
|
|
366
|
+
|
|
315
367
|
Rules that are load-bearing, not style:
|
|
316
368
|
|
|
317
|
-
-
|
|
369
|
+
- Use structured reads: `useQuery(tool("manage_entity", { action: "list", entity_type: type, filters, limit: 100 }))`. The host admits entity `list/get/list_links` and entity-type schema `list/get` reads; tools marked read-only are also available. Use existing tool input/result contracts and preserve server authorization. Send structured arguments, never TypeScript inside a string. `sql` remains available; script-string queries are compatibility support for installed views. `query_sql` allows 500 rows max with a 5 second timeout — branch on the typed `errorCode` (e.g. `UPSTREAM_TIMEOUT`), never on message text, and render `truncated` honestly instead of passing partial data off as complete. Each `query_sql` cell is bounded too: strings keep their first 4,000 Unicode code points plus "… [truncated]"; JSON values over 16 KiB become `{ _truncated: true, bytes }` (attachments become null with `attachments_truncated`). `truncatedColumns` names the affected columns. Select smaller elements or fields, for example one array element per row with `jsonb_array_elements(...)`, and paginate as needed; each returned cell is still subject to these limits.
|
|
318
370
|
- Never aggregate history in a view: no `GROUP BY`, `DISTINCT ON`, per-row regexp, or leading-wildcard `LIKE` over `events` or other growing tables. For "latest state" views, have an Automation maintain keyed event outputs (each run supersedes the previous event with the same key) and read the current head with `read_knowledge`.
|
|
319
|
-
- Writes go only through declared view actions (`useAction` → `invoke_view_action`), which emit the declared event kind and can activate workspace-triggered Automations. Action `value` payloads are capped at 4000 JSON chars — save content first, then pass the id. A subject shown from a superseded event rejects with 409; refetch and ask the user to re-confirm rather than retrying blindly.
|
|
320
|
-
- Link with `Link` from `@lobu/views/components` (or `useHost().openLink`): `href="<type>/<slug>"` opens that record in the workspace,
|
|
371
|
+
- `run_sdk` is not exposed to views. Writes go only through declared view actions (`useAction` → `invoke_view_action`), which emit the declared event kind and can activate workspace-triggered Automations. Action `value` payloads are capped at 4000 JSON chars — save content first, then pass the id. A subject shown from a superseded event rejects with 409; refetch and ask the user to re-confirm rather than retrying blindly.
|
|
372
|
+
- Link with `Link` from `@lobu/views/components` (or `useHost().openLink`): `href="<type>/<slug>"` opens that record in the workspace, supported links within the same workspace open in the peek pane, other app links navigate normally, and external URLs open a new tab. A plain `<a href>` goes nowhere inside the sandboxed frame.
|
|
373
|
+
- For several offers, publish one event with a card for each held proposal. Obtain the real pending approval through the existing agent/Automation write method under its normal policy, then read its returned event ID to obtain the canonical review URL. Link each card to that exact review; the host opens it in peek. Each offer has its own run and decision. Use native Current/Proposed fields for updates and the proposed definition for creation. A resource snapshot alone is a preview, not an approval: never fabricate Approve/Reject buttons or imply that a missing resource ID creates anything. Existing settings `?run_id=` links remain compatible; new offers use the proposal review instead of the settings page.
|
|
321
374
|
- Views run in a sandboxed frame with no direct network: no fetch, no third-party calls at runtime. Reuse local React components through relative imports and `source_files: { entrypoint, files }` plus `dependencies: {}` for local-only components with `views.set`, or use `viewFromFile` + `lobu apply`. Extra npm dependencies need the CLI-bundled `compiled_code`; listing `dependencies` alone does not install packages.
|
|
322
375
|
- Never early-return the whole view on loading/error: each filter keystroke re-queries, so an early return unmounts the focused input mid-typing. Keep filters mounted and render query states inline in the results area.
|
|
376
|
+
- Before calling a view verified, exercise the exact compiled artifact and host runtime in a sandboxed browser: representative data, loading, empty and error states, filters, sort/pagination, links/peek, declared actions, light/dark and narrow layouts. Fix failures and rerun. Registration compiles the module and requires an isolated browser check of the exact candidate against bounded empty/error/loading fixtures in light/dark themes and inline/fullscreen modes for every distinct attached scope (at most eight per module; each scope is its own bounded runner request). A failed check returns 422; an unavailable runner returns 503; both preserve the saved view. Fixture validation does not prove successful workspace data or every interaction. Distinguish compiled, browser-verified, stored and deployed; never claim more than the evidence.
|
|
323
377
|
- Params sync to the URL on Lobu hosts only; elsewhere they stay frame-local. `refetch()` re-reads on demand; only Lobu hosts push live data-changed refreshes.
|
|
324
378
|
|
|
325
379
|
## Connectors, Feeds, and Operations
|
|
@@ -205,7 +205,7 @@ export async function fetchRemoteSnapshot(client, state, only, prune = false) {
|
|
|
205
205
|
const remoteAgentIds = new Set(agents.map((a) => a.agentId));
|
|
206
206
|
const targetAgentIds = desiredAgentIds.filter((id) => remoteAgentIds.has(id));
|
|
207
207
|
for (const agentId of targetAgentIds) {
|
|
208
|
-
agentSettings.set(agentId, await client.getAgentSettings(agentId));
|
|
208
|
+
agentSettings.set(agentId, await client.getAgentSettings(agentId, agents.find((agent) => agent.agentId === agentId)));
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
const entityTypes = only === "agents" ? [] : await client.listEntityTypes();
|
|
@@ -302,6 +302,14 @@ async function installConnectorDefinitions(client, state, catalog, plan) {
|
|
|
302
302
|
const def = row.desired;
|
|
303
303
|
if (!def)
|
|
304
304
|
continue;
|
|
305
|
+
const key = def.key ?? def.declaredKeyHint;
|
|
306
|
+
const remote = catalog.find((entry) => entry.installed && entry.key === key);
|
|
307
|
+
if (row.verb === "update" && !remote?.version) {
|
|
308
|
+
throw new ApiError(`Cannot safely update connector '${key}': its active version is missing. Refresh the catalog and retry.`);
|
|
309
|
+
}
|
|
310
|
+
const target = row.verb === "update" && remote?.version
|
|
311
|
+
? { connector_key: remote.key, expected_version: remote.version }
|
|
312
|
+
: undefined;
|
|
305
313
|
let result;
|
|
306
314
|
if (def.sourcePath) {
|
|
307
315
|
const artifact = def.compiledArtifact;
|
|
@@ -313,16 +321,16 @@ async function installConnectorDefinitions(client, state, catalog, plan) {
|
|
|
313
321
|
compiledCode: artifact.compiledCode,
|
|
314
322
|
sourceFiles: artifact.sourceFiles,
|
|
315
323
|
dependencies: artifact.dependencies,
|
|
316
|
-
});
|
|
324
|
+
}, target);
|
|
317
325
|
}
|
|
318
326
|
else if (def.sourceCode !== undefined) {
|
|
319
327
|
// `source_url` connector: source was fetched into `sourceCode` and has no
|
|
320
328
|
// local project/node_modules to bundle against — upload it raw and let
|
|
321
329
|
// the gateway compile it (the pre-existing path).
|
|
322
|
-
result = await client.installConnector({ sourceCode: def.sourceCode });
|
|
330
|
+
result = await client.installConnector({ sourceCode: def.sourceCode }, target);
|
|
323
331
|
}
|
|
324
332
|
else {
|
|
325
|
-
result = await client.installConnector({ sourceUrl: def.sourceUrl });
|
|
333
|
+
result = await client.installConnector({ sourceUrl: def.sourceUrl }, target);
|
|
326
334
|
}
|
|
327
335
|
if (result.connectorKey) {
|
|
328
336
|
locallySuppliedKeys.add(result.connectorKey);
|
|
@@ -641,8 +649,8 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
641
649
|
min_cooldown_seconds: w.minCooldownSeconds,
|
|
642
650
|
tags: w.tags,
|
|
643
651
|
agent_kind: w.agentKind,
|
|
644
|
-
execution_config: w.
|
|
645
|
-
? automationExecutionConfig(w.model, undefined, w.
|
|
652
|
+
execution_config: w.executionConfig !== undefined || w.model !== undefined
|
|
653
|
+
? automationExecutionConfig(w.model, undefined, w.executionConfig)
|
|
646
654
|
: undefined,
|
|
647
655
|
outputs: w.outputs,
|
|
648
656
|
});
|
|
@@ -672,7 +680,7 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
672
680
|
// update reaches the server. Push first (idempotent, no drift signal
|
|
673
681
|
// because it's not returned by Automation lists) so the rule sees it.
|
|
674
682
|
// Removal (`reaction: null`) is handled in step (b2) below, after the
|
|
675
|
-
//
|
|
683
|
+
// scalar updates — never here.
|
|
676
684
|
if (w.reactionScript) {
|
|
677
685
|
await ctx.client.setReactionScript(automationId, w.reactionScript.sourceCode);
|
|
678
686
|
}
|
|
@@ -701,15 +709,14 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
701
709
|
: {}),
|
|
702
710
|
...(scalarForUpdate.includes("execution_config")
|
|
703
711
|
? {
|
|
704
|
-
execution_config: automationExecutionConfig(w.model, remote?.execution_config, w.
|
|
712
|
+
execution_config: automationExecutionConfig(w.model, remote?.execution_config, w.executionConfig),
|
|
705
713
|
}
|
|
706
714
|
: {}),
|
|
707
715
|
});
|
|
708
716
|
}
|
|
709
|
-
// b2)
|
|
710
|
-
//
|
|
711
|
-
// clears the row via set_reaction_script("")
|
|
712
|
-
// job switching to a script executor never runs both paths.
|
|
717
|
+
// b2) Explicit module removal follows scalar updates so the remaining
|
|
718
|
+
// definition is validated with its final owner and execution settings.
|
|
719
|
+
// `reaction: null` clears the row via set_reaction_script("").
|
|
713
720
|
// Omitted reactions are never touched: the diff only reports
|
|
714
721
|
// `reaction_script` when declared.
|
|
715
722
|
if (changed.has("reaction_script") && w.reactionScript === null) {
|
|
@@ -726,7 +733,7 @@ export async function executePlan(ctx, pendingAuth) {
|
|
|
726
733
|
? { name: w.name }
|
|
727
734
|
: {}),
|
|
728
735
|
...(versionBound.has("description")
|
|
729
|
-
? { description: w.description ??
|
|
736
|
+
? { description: w.description ?? "" }
|
|
730
737
|
: {}),
|
|
731
738
|
...(versionBound.has("prompt") ? { prompt: w.prompt } : {}),
|
|
732
739
|
...(versionBound.has("skills")
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { EntityMetrics } from "@lobu/connector-sdk";
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
2
|
+
import { type AgentSettings } from "@lobu/core";
|
|
3
|
+
import type { FlatActionInput } from "@lobu/core/contracts/tools/action-input";
|
|
4
|
+
import type { AuthProfileCreateInput, AuthProfileUpdateInput } from "@lobu/core/contracts/tools/manage-auth-profiles";
|
|
5
|
+
import type { LegacyAutomationExecutionConfig, ManageAutomationsArgs } from "@lobu/core/contracts/tools/manage-automations";
|
|
6
|
+
import type { ConnectionCreateInput, ConnectionUpdateInput, InstallConnectorInput, UpdateConnectorSourceInput } from "@lobu/core/contracts/tools/manage-connections";
|
|
7
|
+
import type { FeedCreateInput, FeedUpdateInput } from "@lobu/core/contracts/tools/manage-feeds";
|
|
8
|
+
import type { InferenceCapabilityBlock, InferenceModality, InferenceProviderCreateInput } from "@lobu/core/contracts/tools/manage-inference-providers";
|
|
9
|
+
import type { ViewSetInput } from "@lobu/core/contracts/tools/manage-views";
|
|
6
10
|
import { ApiError } from "../../memory/_lib/errors.js";
|
|
7
11
|
import type { DeploymentSummary } from "./deployment.js";
|
|
8
12
|
import type { DesiredAgentMetadata, DesiredEntityType, DesiredRelationshipType } from "./desired-state.js";
|
|
@@ -124,12 +128,7 @@ export interface RemoteView {
|
|
|
124
128
|
last_writer: string;
|
|
125
129
|
updated_at: string;
|
|
126
130
|
}
|
|
127
|
-
export
|
|
128
|
-
source_code: string;
|
|
129
|
-
compiled_code?: string;
|
|
130
|
-
source_files?: SourceFiles;
|
|
131
|
-
dependencies?: SourceDependencies;
|
|
132
|
-
}
|
|
131
|
+
export type SetViewPayload = ViewSetInput;
|
|
133
132
|
export interface RemoteAutomation {
|
|
134
133
|
slug: string;
|
|
135
134
|
name?: string;
|
|
@@ -138,8 +137,8 @@ export interface RemoteAutomation {
|
|
|
138
137
|
triggers?: import("@lobu/core/contracts/tools/manage-automations").AutomationTrigger[];
|
|
139
138
|
device_worker_id?: string | null;
|
|
140
139
|
goal_id?: number | null;
|
|
141
|
-
agent_kind?:
|
|
142
|
-
execution_config?:
|
|
140
|
+
agent_kind?: ManageAutomationsArgs["agent_kind"];
|
|
141
|
+
execution_config?: LegacyAutomationExecutionConfig | null;
|
|
143
142
|
min_cooldown_seconds?: number | null;
|
|
144
143
|
tags?: string[] | null;
|
|
145
144
|
sources?: AutomationSource[] | null;
|
|
@@ -220,18 +219,17 @@ export interface RemoteFeed {
|
|
|
220
219
|
* diff's changed-field list rather than listing every field unconditionally.
|
|
221
220
|
*/
|
|
222
221
|
export interface UpdateConnectionPayload {
|
|
223
|
-
name?:
|
|
224
|
-
authProfileSlug?:
|
|
225
|
-
appAuthProfileSlug?:
|
|
226
|
-
config?:
|
|
227
|
-
deviceWorkerId?:
|
|
222
|
+
name?: ConnectionUpdateInput["display_name"];
|
|
223
|
+
authProfileSlug?: ConnectionUpdateInput["auth_profile_slug"];
|
|
224
|
+
appAuthProfileSlug?: ConnectionUpdateInput["app_auth_profile_slug"];
|
|
225
|
+
config?: NonNullable<ConnectionUpdateInput["config"]>;
|
|
226
|
+
deviceWorkerId?: ConnectionUpdateInput["device_worker_id"];
|
|
228
227
|
}
|
|
229
228
|
/** The mutable fields of a feed update — same absent-means-unwritten rule. */
|
|
230
229
|
export interface UpdateFeedPayload {
|
|
231
|
-
name?:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
config?: Record<string, unknown>;
|
|
230
|
+
name?: FeedUpdateInput["display_name"];
|
|
231
|
+
schedule?: FeedUpdateInput["schedule"];
|
|
232
|
+
config?: NonNullable<FeedUpdateInput["config"]>;
|
|
235
233
|
}
|
|
236
234
|
interface InstallConnectorResult {
|
|
237
235
|
connectorKey: string;
|
|
@@ -287,6 +285,7 @@ interface ApplyClientConfig {
|
|
|
287
285
|
export declare class ApplyClient {
|
|
288
286
|
private readonly orgSlug;
|
|
289
287
|
private readonly http;
|
|
288
|
+
private readonly agentRevisions;
|
|
290
289
|
constructor(cfg: ApplyClientConfig, fetchImpl?: typeof fetch);
|
|
291
290
|
/**
|
|
292
291
|
* Delegates the fetch/parse/non-ok-error pipeline to the shared
|
|
@@ -317,11 +316,8 @@ export declare class ApplyClient {
|
|
|
317
316
|
* to the org-scoped IDs issue.
|
|
318
317
|
*/
|
|
319
318
|
upsertAgent(agent: DesiredAgentMetadata): Promise<RemoteAgent>;
|
|
320
|
-
patchAgentMetadata(agentId: string,
|
|
321
|
-
|
|
322
|
-
description?: string;
|
|
323
|
-
}): Promise<void>;
|
|
324
|
-
getAgentSettings(agentId: string): Promise<AgentSettings | null>;
|
|
319
|
+
patchAgentMetadata(agentId: string, updates: Partial<DesiredAgentMetadata>): Promise<void>;
|
|
320
|
+
getAgentSettings(agentId: string, metadata?: RemoteAgent): Promise<AgentSettings | null>;
|
|
325
321
|
patchAgentSettings(agentId: string, settings: Partial<AgentSettings>): Promise<void>;
|
|
326
322
|
/**
|
|
327
323
|
* Record this apply run as a deployment (`POST /api/<org>/deployments`).
|
|
@@ -344,13 +340,7 @@ export declare class ApplyClient {
|
|
|
344
340
|
/** List the org's inference providers (never returns the api key). */
|
|
345
341
|
listInferenceProviders(): Promise<RemoteInferenceProvider[]>;
|
|
346
342
|
/** Create an org inference provider. 409 (surfaced as ApiError) on slug conflict. */
|
|
347
|
-
createInferenceProvider(body:
|
|
348
|
-
slug: string;
|
|
349
|
-
kind: string;
|
|
350
|
-
displayName?: string;
|
|
351
|
-
apiKey: string;
|
|
352
|
-
capabilities?: Partial<Record<InferenceModality, InferenceCapabilityBlock>>;
|
|
353
|
-
}): Promise<RemoteInferenceProvider>;
|
|
343
|
+
createInferenceProvider(body: InferenceProviderCreateInput): Promise<RemoteInferenceProvider>;
|
|
354
344
|
/** Upsert one modality's capability block (`{ base_url?, model?, models_endpoint? }`). */
|
|
355
345
|
updateInferenceProviderCapabilities(slug: string, modality: InferenceModality, block: InferenceCapabilityBlock): Promise<void>;
|
|
356
346
|
/**
|
|
@@ -453,26 +443,8 @@ export declare class ApplyClient {
|
|
|
453
443
|
* Create an Automation owned by `agentId`. Duplicate-slug surfaces as a
|
|
454
444
|
* structured error the caller swallows for idempotency.
|
|
455
445
|
*/
|
|
456
|
-
createAutomation(payload: {
|
|
457
|
-
|
|
458
|
-
agentId: string;
|
|
459
|
-
name?: string;
|
|
460
|
-
description?: string;
|
|
461
|
-
prompt: string;
|
|
462
|
-
skills?: Array<{
|
|
463
|
-
name: string;
|
|
464
|
-
content: string;
|
|
465
|
-
}>;
|
|
466
|
-
reaction_script?: string;
|
|
467
|
-
triggers?: import("@lobu/core/contracts/tools/manage-automations").AutomationTrigger[];
|
|
468
|
-
sources?: AutomationSource[];
|
|
469
|
-
reactions_guidance?: string;
|
|
470
|
-
device_worker_id?: string;
|
|
471
|
-
min_cooldown_seconds?: number;
|
|
472
|
-
tags?: string[];
|
|
473
|
-
agent_kind?: string;
|
|
474
|
-
execution_config?: Record<string, unknown> | null;
|
|
475
|
-
outputs?: Record<string, unknown> | null;
|
|
446
|
+
createAutomation(payload: FlatActionInput<ManageAutomationsArgs, "slug" | "name" | "description" | "prompt" | "skills" | "reaction_script" | "triggers" | "sources" | "reactions_guidance" | "device_worker_id" | "min_cooldown_seconds" | "tags" | "agent_kind" | "execution_config" | "outputs", "slug" | "prompt"> & {
|
|
447
|
+
agentId: ManageAutomationsArgs["managed_agent_id"];
|
|
476
448
|
}): Promise<{
|
|
477
449
|
automation_id?: string;
|
|
478
450
|
}>;
|
|
@@ -485,38 +457,14 @@ export declare class ApplyClient {
|
|
|
485
457
|
* `null` clears nullable fields (device_worker_id, agent_kind) per the
|
|
486
458
|
* server contract.
|
|
487
459
|
*/
|
|
488
|
-
updateAutomation(payload:
|
|
489
|
-
automation_id: string;
|
|
490
|
-
triggers?: import("@lobu/core/contracts/tools/manage-automations").AutomationTrigger[];
|
|
491
|
-
managed_agent_id?: string;
|
|
492
|
-
device_worker_id?: string | null;
|
|
493
|
-
min_cooldown_seconds?: number;
|
|
494
|
-
tags?: string[];
|
|
495
|
-
agent_kind?: string | null;
|
|
496
|
-
execution_config?: Record<string, unknown> | null;
|
|
497
|
-
}): Promise<void>;
|
|
460
|
+
updateAutomation(payload: FlatActionInput<ManageAutomationsArgs, "automation_id" | "triggers" | "managed_agent_id" | "device_worker_id" | "min_cooldown_seconds" | "tags" | "agent_kind" | "execution_config", "automation_id">): Promise<void>;
|
|
498
461
|
/**
|
|
499
462
|
* Create a new automation_versions row carrying the version-bound fields, then
|
|
500
463
|
* upgrade the automation's `current_version_id` to that new version. Server
|
|
501
464
|
* inherits unset fields from the previous version row.
|
|
502
465
|
* name/description/prompt/sources are version-owned (update rejects them).
|
|
503
466
|
*/
|
|
504
|
-
createAutomationVersion(payload: {
|
|
505
|
-
automation_id: string;
|
|
506
|
-
name?: string;
|
|
507
|
-
description?: string | null;
|
|
508
|
-
prompt?: string;
|
|
509
|
-
skills?: Array<{
|
|
510
|
-
name: string;
|
|
511
|
-
content: string;
|
|
512
|
-
}>;
|
|
513
|
-
sources?: AutomationSource[];
|
|
514
|
-
outputs?: Record<string, unknown> | null;
|
|
515
|
-
reactions_guidance?: string;
|
|
516
|
-
change_notes?: string;
|
|
517
|
-
/** When set, written atomically with the new version (set_as_current). */
|
|
518
|
-
triggers?: import("@lobu/core/contracts/tools/manage-automations").AutomationTrigger[];
|
|
519
|
-
}): Promise<{
|
|
467
|
+
createAutomationVersion(payload: FlatActionInput<ManageAutomationsArgs, "automation_id" | "name" | "description" | "prompt" | "skills" | "sources" | "outputs" | "reactions_guidance" | "change_notes" | "triggers", "automation_id">): Promise<{
|
|
520
468
|
version?: number;
|
|
521
469
|
}>;
|
|
522
470
|
/**
|
|
@@ -541,7 +489,7 @@ export declare class ApplyClient {
|
|
|
541
489
|
* connector by id or pass connector source; server returns the resolved
|
|
542
490
|
* connectorKey plus updated.
|
|
543
491
|
*/
|
|
544
|
-
installConnector(payload: CliInstallConnectorPayload): Promise<InstallConnectorResult>;
|
|
492
|
+
installConnector(payload: CliInstallConnectorPayload, target?: Required<Pick<UpdateConnectorSourceInput, "connector_key" | "expected_version">>): Promise<InstallConnectorResult>;
|
|
545
493
|
uninstallConnector(connectorKey: string): Promise<void>;
|
|
546
494
|
/**
|
|
547
495
|
* Re-activate a retained connector version (org-local pointer flip — the
|
|
@@ -552,16 +500,16 @@ export declare class ApplyClient {
|
|
|
552
500
|
listAuthProfiles(): Promise<RemoteAuthProfile[]>;
|
|
553
501
|
getAuthProfileBySlug(slug: string): Promise<RemoteAuthProfile | null>;
|
|
554
502
|
createAuthProfile(payload: {
|
|
555
|
-
slug:
|
|
556
|
-
connector:
|
|
557
|
-
kind:
|
|
558
|
-
name?:
|
|
559
|
-
credentials?:
|
|
503
|
+
slug: NonNullable<AuthProfileCreateInput["slug"]>;
|
|
504
|
+
connector: AuthProfileCreateInput["connector_key"];
|
|
505
|
+
kind: AuthProfileCreateInput["profile_kind"];
|
|
506
|
+
name?: AuthProfileCreateInput["display_name"];
|
|
507
|
+
credentials?: AuthProfileCreateInput["credentials"];
|
|
560
508
|
}): Promise<EnsureAuthProfileResult>;
|
|
561
509
|
updateAuthProfile(payload: {
|
|
562
|
-
slug:
|
|
563
|
-
name?:
|
|
564
|
-
credentials?:
|
|
510
|
+
slug: AuthProfileUpdateInput["auth_profile_slug"];
|
|
511
|
+
name?: AuthProfileUpdateInput["display_name"];
|
|
512
|
+
credentials?: AuthProfileUpdateInput["credentials"];
|
|
565
513
|
}): Promise<EnsureAuthProfileResult>;
|
|
566
514
|
/** Re-issue a connect token for an existing interactive-auth profile. */
|
|
567
515
|
reconnectAuthProfile(slug: string): Promise<string | undefined>;
|
|
@@ -586,23 +534,23 @@ export declare class ApplyClient {
|
|
|
586
534
|
changed: boolean;
|
|
587
535
|
}>;
|
|
588
536
|
createConnection(payload: {
|
|
589
|
-
slug:
|
|
590
|
-
connector:
|
|
591
|
-
name?:
|
|
592
|
-
authProfileSlug?:
|
|
593
|
-
appAuthProfileSlug?:
|
|
594
|
-
config?:
|
|
595
|
-
deviceWorkerId?:
|
|
537
|
+
slug: NonNullable<ConnectionCreateInput["slug"]>;
|
|
538
|
+
connector: ConnectionCreateInput["connector_key"];
|
|
539
|
+
name?: ConnectionCreateInput["display_name"];
|
|
540
|
+
authProfileSlug?: ConnectionCreateInput["auth_profile_slug"];
|
|
541
|
+
appAuthProfileSlug?: ConnectionCreateInput["app_auth_profile_slug"];
|
|
542
|
+
config?: ConnectionCreateInput["config"];
|
|
543
|
+
deviceWorkerId?: ConnectionCreateInput["device_worker_id"];
|
|
596
544
|
}): Promise<RemoteConnection>;
|
|
597
545
|
updateConnection(connectionId: number, payload: UpdateConnectionPayload): Promise<RemoteConnection>;
|
|
598
546
|
listFeeds(connectionId: number): Promise<RemoteFeed[]>;
|
|
599
547
|
createFeed(payload: {
|
|
600
|
-
connectionId:
|
|
601
|
-
feedKey:
|
|
602
|
-
name?:
|
|
548
|
+
connectionId: FeedCreateInput["connection_id"];
|
|
549
|
+
feedKey: FeedCreateInput["feed_key"];
|
|
550
|
+
name?: FeedCreateInput["display_name"];
|
|
603
551
|
/** Cron string, or null for manual-only. */
|
|
604
|
-
schedule?:
|
|
605
|
-
config?:
|
|
552
|
+
schedule?: FeedCreateInput["schedule"];
|
|
553
|
+
config?: FeedCreateInput["config"];
|
|
606
554
|
}): Promise<RemoteFeed>;
|
|
607
555
|
updateFeed(feedId: number, payload: UpdateFeedPayload): Promise<RemoteFeed>;
|
|
608
556
|
}
|