@lobu/cli 6.1.1 → 7.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/dist/commands/_lib/apply/apply-cmd.d.ts +36 -0
- package/dist/commands/_lib/apply/apply-cmd.d.ts.map +1 -1
- package/dist/commands/_lib/apply/apply-cmd.js +696 -40
- package/dist/commands/_lib/apply/apply-cmd.js.map +1 -1
- package/dist/commands/_lib/apply/client.d.ts +285 -0
- package/dist/commands/_lib/apply/client.d.ts.map +1 -1
- package/dist/commands/_lib/apply/client.js +469 -28
- package/dist/commands/_lib/apply/client.js.map +1 -1
- package/dist/commands/_lib/apply/desired-state.d.ts +187 -3
- package/dist/commands/_lib/apply/desired-state.d.ts.map +1 -1
- package/dist/commands/_lib/apply/desired-state.js +879 -88
- package/dist/commands/_lib/apply/desired-state.js.map +1 -1
- package/dist/commands/_lib/apply/diff.d.ts +72 -3
- package/dist/commands/_lib/apply/diff.d.ts.map +1 -1
- package/dist/commands/_lib/apply/diff.js +473 -84
- package/dist/commands/_lib/apply/diff.js.map +1 -1
- package/dist/commands/_lib/apply/prompt.d.ts +6 -0
- package/dist/commands/_lib/apply/prompt.d.ts.map +1 -1
- package/dist/commands/_lib/apply/prompt.js +16 -0
- package/dist/commands/_lib/apply/prompt.js.map +1 -1
- package/dist/commands/_lib/apply/render.d.ts +9 -0
- package/dist/commands/_lib/apply/render.d.ts.map +1 -1
- package/dist/commands/_lib/apply/render.js +80 -3
- package/dist/commands/_lib/apply/render.js.map +1 -1
- package/dist/commands/_lib/connector-loader.d.ts +3 -0
- package/dist/commands/_lib/connector-loader.d.ts.map +1 -0
- package/dist/commands/_lib/connector-loader.js +129 -0
- package/dist/commands/_lib/connector-loader.js.map +1 -0
- package/dist/commands/_lib/connector-run-cmd.d.ts +35 -0
- package/dist/commands/_lib/connector-run-cmd.d.ts.map +1 -0
- package/dist/commands/_lib/connector-run-cmd.js +351 -0
- package/dist/commands/_lib/connector-run-cmd.js.map +1 -0
- package/dist/commands/_lib/export/export-cmd.d.ts +35 -0
- package/dist/commands/_lib/export/export-cmd.d.ts.map +1 -0
- package/dist/commands/_lib/export/export-cmd.js +329 -0
- package/dist/commands/_lib/export/export-cmd.js.map +1 -0
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +11 -14
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +28 -7
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/connector.d.ts +3 -0
- package/dist/commands/connector.d.ts.map +1 -0
- package/dist/commands/connector.js +5 -0
- package/dist/commands/connector.js.map +1 -0
- package/dist/commands/dev.d.ts +23 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +273 -8
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +2 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/eval.js +28 -18
- package/dist/commands/eval.js.map +1 -1
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +29 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +22 -16
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/memory/_lib/browser-auth-cmd.d.ts.map +1 -1
- package/dist/commands/memory/_lib/browser-auth-cmd.js +15 -144
- package/dist/commands/memory/_lib/browser-auth-cmd.js.map +1 -1
- package/dist/commands/memory/_lib/schema.d.ts +28 -1
- package/dist/commands/memory/_lib/schema.d.ts.map +1 -1
- package/dist/commands/memory/_lib/schema.js +120 -4
- package/dist/commands/memory/_lib/schema.js.map +1 -1
- package/dist/commands/memory/_lib/seed-cmd.d.ts.map +1 -1
- package/dist/commands/memory/_lib/seed-cmd.js +41 -18
- package/dist/commands/memory/_lib/seed-cmd.js.map +1 -1
- package/dist/commands/org.d.ts +4 -0
- package/dist/commands/org.d.ts.map +1 -1
- package/dist/commands/org.js +10 -0
- package/dist/commands/org.js.map +1 -1
- package/dist/commands/token.d.ts +9 -0
- package/dist/commands/token.d.ts.map +1 -1
- package/dist/commands/token.js +54 -3
- package/dist/commands/token.js.map +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +4 -13
- package/dist/commands/validate.js.map +1 -1
- package/dist/config/loader.js +2 -2
- package/dist/config/loader.js.map +1 -1
- package/dist/connectors/README.md +2 -3
- package/dist/connectors/apple_health.ts +138 -0
- package/dist/connectors/apple_photos.ts +178 -0
- package/dist/connectors/apple_screen_time.ts +82 -0
- package/dist/connectors/browser/evaluate.ts +120 -0
- package/dist/connectors/browser/fill_form.ts +107 -0
- package/dist/connectors/browser/page_text.ts +108 -0
- package/dist/connectors/browser-scraper-utils.ts +111 -3
- package/dist/connectors/capterra.ts +5 -1
- package/dist/connectors/chrome_tabs.ts +74 -0
- package/dist/connectors/g2.ts +5 -1
- package/dist/connectors/github.ts +16 -38
- package/dist/connectors/glassdoor.ts +5 -1
- package/dist/connectors/google_calendar.ts +28 -6
- package/dist/connectors/google_gmail.ts +6 -3
- package/dist/connectors/google_play.ts +32 -5
- package/dist/connectors/hackernews.ts +37 -2
- package/dist/connectors/index.ts +14 -1
- package/dist/connectors/linkedin.ts +32 -9
- package/dist/connectors/local_directory.ts +91 -0
- package/dist/connectors/reddit.ts +1 -0
- package/dist/connectors/revolut.ts +569 -0
- package/dist/connectors/rss.ts +33 -8
- package/dist/connectors/trustpilot.ts +36 -21
- package/dist/connectors/website.ts +8 -69
- package/dist/connectors/whatsapp.ts +21 -22
- package/dist/connectors/whatsapp_local.ts +125 -0
- package/dist/connectors/x.ts +17 -7
- package/dist/db/migrations/20260510220000_connector_required_capability.sql +47 -0
- package/dist/db/migrations/20260512000000_device_worker_connection_binding.sql +113 -0
- package/dist/db/migrations/20260512131703_connections_slug.sql +131 -0
- package/dist/db/migrations/20260513000000_chat_user_identities.sql +24 -0
- package/dist/db/migrations/20260513120000_auth_profiles_device_binding.sql +50 -0
- package/dist/db/migrations/20260513150000_auth_profiles_cdp_url.sql +43 -0
- package/dist/db/migrations/20260513200000_notifications_as_events.sql +86 -0
- package/dist/db/migrations/20260514000000_scheduled_jobs.sql +97 -0
- package/dist/db/migrations/20260514120000_auth_profiles_connector_key_nullable.sql +42 -0
- package/dist/db/migrations/20260514130000_connection_action_modes.sql +103 -0
- package/dist/db/migrations/20260514160000_auth_profiles_mirror_mode.sql +32 -0
- package/dist/db/migrations/20260515120000_agents_per_org_pk.sql +66 -0
- package/dist/db/migrations/20260515150000_geo_enrichment.sql +208 -0
- package/dist/db/migrations/20260515160000_drop_agents_org_id_unique.sql +24 -0
- package/dist/db/migrations/20260515170000_auth_profiles_default_for_connector.sql +23 -0
- package/dist/db/migrations/20260516120000_agents_per_org_pk_swap.sql +125 -0
- package/dist/db/migrations/20260516200000_events_search_tsv.sql +134 -0
- package/dist/db/migrations/20260516200100_events_lifecycle_changes_index.sql +25 -0
- package/dist/db/migrations/20260517010000_drop_unused_indexes.sql +49 -0
- package/dist/db/migrations/20260517020000_softdelete_orphan_feeds.sql +56 -0
- package/dist/db/migrations/20260517030000_pat_worker_id_binding.sql +27 -0
- package/dist/db/migrations/20260517040000_archive_orphan_watchers.sql +30 -0
- package/dist/db/migrations/20260517050000_watcher_agent_id_not_null.sql +34 -0
- package/dist/db/migrations/20260517060000_watcher_schema_additions.sql +78 -0
- package/dist/db/migrations/20260517150000_goals_primitive.sql +55 -0
- package/dist/db/migrations/20260517160000_drop_goals_primitive.sql +45 -0
- package/dist/db/migrations/20260518000000_pending_interactions.sql +49 -0
- package/dist/db/migrations/20260518010000_runs_heartbeat_reaper_index.sql +22 -0
- package/dist/eval/client.d.ts.map +1 -1
- package/dist/eval/client.js +11 -0
- package/dist/eval/client.js.map +1 -1
- package/dist/eval/grader.js +2 -1
- package/dist/eval/grader.js.map +1 -1
- package/dist/eval/types.d.ts +2 -0
- package/dist/eval/types.d.ts.map +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -114
- package/dist/index.js.map +1 -1
- package/dist/internal/context.d.ts +9 -0
- package/dist/internal/context.d.ts.map +1 -1
- package/dist/internal/context.js +41 -6
- package/dist/internal/context.js.map +1 -1
- package/dist/internal/credentials.d.ts +5 -0
- package/dist/internal/credentials.d.ts.map +1 -1
- package/dist/internal/credentials.js +75 -1
- package/dist/internal/credentials.js.map +1 -1
- package/dist/internal/gateway-url.d.ts +14 -0
- package/dist/internal/gateway-url.d.ts.map +1 -1
- package/dist/internal/gateway-url.js +19 -0
- package/dist/internal/gateway-url.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/local-env.d.ts.map +1 -1
- package/dist/internal/local-env.js +9 -2
- package/dist/internal/local-env.js.map +1 -1
- package/dist/server.bundle.mjs +42251 -36931
- package/dist/start-local.bundle.mjs +16437 -9882
- package/dist/templates/TESTING.md.tmpl +9 -9
- package/package.json +8 -6
- package/dist/connectors/google_photos.ts +0 -776
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ConnectorDefinition } from "@lobu/connector-sdk";
|
|
1
2
|
import type { AgentSettings } from "@lobu/core";
|
|
2
3
|
export declare function buildStablePlatformId(agentId: string, type: string, name?: string): string;
|
|
3
4
|
export interface DesiredAgentMetadata {
|
|
@@ -12,6 +13,8 @@ export interface DesiredPlatform {
|
|
|
12
13
|
name?: string;
|
|
13
14
|
/** Raw config from lobu.toml — values may still contain `$VAR` references. */
|
|
14
15
|
config: Record<string, string>;
|
|
16
|
+
/** Declarative channel bindings (`"<teamId>/<channelId>"`); Slack only. */
|
|
17
|
+
channels?: string[];
|
|
15
18
|
}
|
|
16
19
|
export interface DesiredEntityType {
|
|
17
20
|
slug: string;
|
|
@@ -31,6 +34,118 @@ export interface DesiredRelationshipType {
|
|
|
31
34
|
}>;
|
|
32
35
|
metadata?: Record<string, unknown>;
|
|
33
36
|
}
|
|
37
|
+
export interface DesiredWatcher {
|
|
38
|
+
slug: string;
|
|
39
|
+
/** Owning agent id. Every watcher belongs to exactly one agent. */
|
|
40
|
+
agent: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
schedule?: string;
|
|
44
|
+
prompt: string;
|
|
45
|
+
/** Parsed JSON Schema object describing the LLM output. */
|
|
46
|
+
extractionSchema: Record<string, unknown>;
|
|
47
|
+
/** Optional SQL data sources; server applies a default when omitted. */
|
|
48
|
+
sources?: Array<{
|
|
49
|
+
name: string;
|
|
50
|
+
query: string;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Reaction script — TypeScript source compiled + executed in an isolate at
|
|
54
|
+
* watcher-firing time. Authored as a sibling `.ts` file (`reaction_script:
|
|
55
|
+
* ./funnel-digest.ts` in the YAML), the CLI reads it and pushes raw source
|
|
56
|
+
* via `set_reaction_script`. Inline strings are rejected so the IDE can
|
|
57
|
+
* type-check the script.
|
|
58
|
+
*/
|
|
59
|
+
reactionScript?: {
|
|
60
|
+
sourcePath: string;
|
|
61
|
+
sourceCode: string;
|
|
62
|
+
};
|
|
63
|
+
/** LLM guidance for the watcher's downstream reaction agent. */
|
|
64
|
+
reactionsGuidance?: string;
|
|
65
|
+
/** UUID of a device worker to pin this watcher's runs to (see `device_workers.id`). */
|
|
66
|
+
deviceWorkerId?: string;
|
|
67
|
+
/** MCP client id that should auto-run this watcher. */
|
|
68
|
+
schedulerClientId?: string;
|
|
69
|
+
/** Where firings surface — defaults to canvas server-side. */
|
|
70
|
+
notificationChannel?: "canvas" | "notification" | "both";
|
|
71
|
+
/** Priority class used by the dispatcher interrupt budget. */
|
|
72
|
+
notificationPriority?: "low" | "normal" | "high";
|
|
73
|
+
/** Minimum seconds between two firings of this watcher (0 = no cooldown). */
|
|
74
|
+
minCooldownSeconds?: number;
|
|
75
|
+
/** Free-form tags for filtering. */
|
|
76
|
+
tags?: string[];
|
|
77
|
+
/** Optional agent-kind override (e.g. "background", "notifier"). */
|
|
78
|
+
agentKind?: string;
|
|
79
|
+
/** Optional JSON template for renderer. */
|
|
80
|
+
jsonTemplate?: unknown;
|
|
81
|
+
/** Stable key generation across windows. */
|
|
82
|
+
keyingConfig?: Record<string, unknown>;
|
|
83
|
+
/** Classifier definitions for extraction (server-side feature). */
|
|
84
|
+
classifiers?: unknown[];
|
|
85
|
+
/** Handlebars prompt for condensing windows into a rollup. */
|
|
86
|
+
condensationPrompt?: string;
|
|
87
|
+
/** How many leaf windows to condense into one rollup (default 4 server-side). */
|
|
88
|
+
condensationWindowCount?: number;
|
|
89
|
+
}
|
|
90
|
+
export interface DesiredFeed {
|
|
91
|
+
/** Feed key from the connector definition (`FeedDefinition.key`). */
|
|
92
|
+
feedKey: string;
|
|
93
|
+
name?: string;
|
|
94
|
+
schedule?: string;
|
|
95
|
+
config?: Record<string, unknown>;
|
|
96
|
+
}
|
|
97
|
+
export interface DesiredConnection {
|
|
98
|
+
/** Stable public identifier — diff key. */
|
|
99
|
+
slug: string;
|
|
100
|
+
/** Connector key (e.g. `github`, `hackernews`). */
|
|
101
|
+
connector: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
/** Slug of the runtime/account auth profile (`auth:` in the manifest). */
|
|
104
|
+
authProfileSlug?: string;
|
|
105
|
+
/** Slug of the OAuth-app auth profile (`app_auth:` in the manifest). */
|
|
106
|
+
appAuthProfileSlug?: string;
|
|
107
|
+
config?: Record<string, unknown>;
|
|
108
|
+
/**
|
|
109
|
+
* Optional UUID pinning the connection's syncs/actions to a specific device
|
|
110
|
+
* worker (`device_workers.id`). Required for connectors that declare a
|
|
111
|
+
* `required_capability`; omit it for serverless-on-Lobu runs.
|
|
112
|
+
*/
|
|
113
|
+
deviceWorkerId?: string;
|
|
114
|
+
feeds: DesiredFeed[];
|
|
115
|
+
/** Relative path of the YAML file the doc came from (for error messages). */
|
|
116
|
+
sourceFile: string;
|
|
117
|
+
}
|
|
118
|
+
export type DesiredAuthProfileKind = "env" | "oauth_app" | "oauth_account" | "browser_session";
|
|
119
|
+
export interface DesiredAuthProfile {
|
|
120
|
+
/** Stable slug — diff key. */
|
|
121
|
+
slug: string;
|
|
122
|
+
connector: string;
|
|
123
|
+
kind: DesiredAuthProfileKind;
|
|
124
|
+
name?: string;
|
|
125
|
+
/**
|
|
126
|
+
* key→value credentials. Values may be `$ENV` references (collected into
|
|
127
|
+
* `requiredSecrets`). Only meaningful for `kind: env | oauth_app`; must be
|
|
128
|
+
* absent/empty for `oauth_account | browser_session`.
|
|
129
|
+
*/
|
|
130
|
+
credentials?: Record<string, string>;
|
|
131
|
+
sourceFile: string;
|
|
132
|
+
}
|
|
133
|
+
export interface DesiredConnectorDefinition {
|
|
134
|
+
/** Connector key — diff key (`null` until the server compiles a `.ts`). */
|
|
135
|
+
key: string | null;
|
|
136
|
+
/** Local `.ts` path (absolute) — mutually exclusive with `sourceUrl`. */
|
|
137
|
+
sourcePath?: string;
|
|
138
|
+
/** Remote URL — mutually exclusive with `sourcePath`. */
|
|
139
|
+
sourceUrl?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Raw TypeScript source read from `sourcePath`, pushed verbatim to the
|
|
142
|
+
* server (which compiles, extracts metadata, and returns the real `key`).
|
|
143
|
+
* Absent when `sourceUrl` is used.
|
|
144
|
+
*/
|
|
145
|
+
sourceCode?: string;
|
|
146
|
+
/** For error messages — the `.connector.ts` file or `type: connector` doc. */
|
|
147
|
+
sourceFile: string;
|
|
148
|
+
}
|
|
34
149
|
export interface DesiredAgent {
|
|
35
150
|
metadata: DesiredAgentMetadata;
|
|
36
151
|
/**
|
|
@@ -44,25 +159,94 @@ export interface DesiredAgent {
|
|
|
44
159
|
*/
|
|
45
160
|
settings: Partial<AgentSettings>;
|
|
46
161
|
platforms: DesiredPlatform[];
|
|
162
|
+
/**
|
|
163
|
+
* Provider API keys resolved from `[[providers]] key = "$VAR"` in lobu.toml
|
|
164
|
+
* that need to be pushed into `agent_secrets` after the settings PATCH.
|
|
165
|
+
* Empty when no provider declared a `key` (or all keys are empty/unset).
|
|
166
|
+
* The actual secret value lives only in process memory; never serialized.
|
|
167
|
+
*/
|
|
168
|
+
providerKeys: {
|
|
169
|
+
providerId: string;
|
|
170
|
+
value: string;
|
|
171
|
+
}[];
|
|
47
172
|
}
|
|
48
173
|
export interface DesiredState {
|
|
49
174
|
agents: DesiredAgent[];
|
|
175
|
+
/**
|
|
176
|
+
* `[memory]` metadata from lobu.toml — the org slug `lobu apply` defaults to,
|
|
177
|
+
* the resolved `organization_id` (written back once known), and the
|
|
178
|
+
* name/description shown when telling the operator to create the org.
|
|
179
|
+
*/
|
|
180
|
+
memory?: {
|
|
181
|
+
org?: string;
|
|
182
|
+
organizationId?: string;
|
|
183
|
+
name?: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
};
|
|
50
186
|
memorySchema: {
|
|
51
187
|
entityTypes: DesiredEntityType[];
|
|
52
188
|
relationshipTypes: DesiredRelationshipType[];
|
|
53
189
|
};
|
|
190
|
+
/** Watchers declared under `[memory].models` YAML files. */
|
|
191
|
+
watchers: DesiredWatcher[];
|
|
192
|
+
/**
|
|
193
|
+
* Data-source connectors declared in `[memory].connectors` dir:
|
|
194
|
+
* `*.connector.ts` files (+ `type: connector` manifests), `type: connection`
|
|
195
|
+
* docs, and `type: auth_profile` docs.
|
|
196
|
+
*/
|
|
197
|
+
connectors: {
|
|
198
|
+
definitions: DesiredConnectorDefinition[];
|
|
199
|
+
authProfiles: DesiredAuthProfile[];
|
|
200
|
+
connections: DesiredConnection[];
|
|
201
|
+
};
|
|
54
202
|
/**
|
|
55
|
-
* Names of env vars referenced as `$NAME` anywhere in lobu.toml
|
|
56
|
-
* surfaces these to the user
|
|
57
|
-
* secrets fail loud instead of
|
|
203
|
+
* Names of env vars referenced as `$NAME` anywhere in lobu.toml or in
|
|
204
|
+
* connector auth-profile credentials. The CLI surfaces these to the user
|
|
205
|
+
* before mutating remote state so missing secrets fail loud instead of
|
|
206
|
+
* expanding to empty strings.
|
|
58
207
|
*/
|
|
59
208
|
requiredSecrets: string[];
|
|
60
209
|
}
|
|
210
|
+
export interface ResolvedConnectorSchemas {
|
|
211
|
+
/** Connector key → `optionsSchema` (JSON Schema), if declared. */
|
|
212
|
+
optionsSchema?: Record<string, unknown>;
|
|
213
|
+
/** Every feed key declared by the connector (`connector.feeds` keys). */
|
|
214
|
+
feedKeys: Set<string>;
|
|
215
|
+
/** Feed key → `configSchema` (JSON Schema), for keys that declare one. */
|
|
216
|
+
feedConfigSchemas: Map<string, Record<string, unknown>>;
|
|
217
|
+
/** Allowed auth-profile kinds for the connector (from `authSchema.methods`). */
|
|
218
|
+
authKinds: Set<string>;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Build per-connector validation schemas from a connector definition. Accepts
|
|
222
|
+
* either a typed `ConnectorDefinition` (from `@lobu/connector-sdk`) or the
|
|
223
|
+
* snake_cased shape the server's `manage_connections list_connector_definitions`
|
|
224
|
+
* returns (`options_schema`, `feeds_schema`, `auth_schema`).
|
|
225
|
+
*/
|
|
226
|
+
export declare function resolveConnectorSchemas(def: ConnectorDefinition | {
|
|
227
|
+
options_schema?: Record<string, unknown> | null;
|
|
228
|
+
feeds_schema?: Record<string, unknown> | null;
|
|
229
|
+
auth_schema?: Record<string, unknown> | null;
|
|
230
|
+
}): ResolvedConnectorSchemas;
|
|
231
|
+
/**
|
|
232
|
+
* Validate a single connection (+ its feeds) and its referenced auth-profile
|
|
233
|
+
* kinds against a resolved connector schema. Pass `null` to skip schema
|
|
234
|
+
* checks (e.g. a connector that only exists as a local `.ts` not yet
|
|
235
|
+
* compiled by the server) — structural checks have already run at load time.
|
|
236
|
+
*/
|
|
237
|
+
export declare function validateConnectionAgainstConnector(connection: DesiredConnection, authProfiles: ReadonlyMap<string, DesiredAuthProfile>, schemas: ResolvedConnectorSchemas | null): void;
|
|
238
|
+
export declare function validateAuthProfileAgainstConnector(profile: DesiredAuthProfile, schemas: ResolvedConnectorSchemas | null): void;
|
|
61
239
|
export interface LoadDesiredStateOptions {
|
|
62
240
|
/** Project root (directory containing `lobu.toml`). */
|
|
63
241
|
cwd: string;
|
|
64
242
|
/** Env to resolve `$VAR` refs against; defaults to `process.env`. */
|
|
65
243
|
env?: NodeJS.ProcessEnv;
|
|
244
|
+
/**
|
|
245
|
+
* When set, only the named resource family is loaded — `"agents"` and
|
|
246
|
+
* `"memory"` both skip the `connectors/` dir (and its `$VAR` credential
|
|
247
|
+
* expansion), so `--only agents` doesn't require connector secrets.
|
|
248
|
+
*/
|
|
249
|
+
only?: "agents" | "memory";
|
|
66
250
|
}
|
|
67
251
|
export declare function loadDesiredState(opts: LoadDesiredStateOptions): Promise<{
|
|
68
252
|
state: DesiredState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desired-state.d.ts","sourceRoot":"","sources":["../../../../src/commands/_lib/apply/desired-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"desired-state.d.ts","sourceRoot":"","sources":["../../../../src/commands/_lib/apply/desired-state.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAkC,MAAM,YAAY,CAAC;AAqDhF,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GACZ,MAAM,CAIR;AAID,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI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