@lobu/cli 6.1.1 → 7.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/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 +548 -40
- package/dist/commands/_lib/apply/apply-cmd.js.map +1 -1
- package/dist/commands/_lib/apply/client.d.ts +179 -0
- package/dist/commands/_lib/apply/client.d.ts.map +1 -1
- package/dist/commands/_lib/apply/client.js +308 -28
- package/dist/commands/_lib/apply/client.js.map +1 -1
- package/dist/commands/_lib/apply/desired-state.d.ts +134 -3
- package/dist/commands/_lib/apply/desired-state.d.ts.map +1 -1
- package/dist/commands/_lib/apply/desired-state.js +700 -86
- package/dist/commands/_lib/apply/desired-state.js.map +1 -1
- package/dist/commands/_lib/apply/diff.d.ts +61 -3
- package/dist/commands/_lib/apply/diff.d.ts.map +1 -1
- package/dist/commands/_lib/apply/diff.js +382 -92
- 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/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +9 -2
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/dev.d.ts +8 -0
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +118 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/eval.d.ts.map +1 -1
- package/dist/commands/eval.js +16 -5
- 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 +24 -0
- package/dist/commands/init.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 -0
- package/dist/commands/token.js.map +1 -1
- package/dist/connectors/README.md +2 -2
- package/dist/connectors/apple_health.ts +138 -0
- package/dist/connectors/apple_screen_time.ts +82 -0
- package/dist/connectors/browser-scraper-utils.ts +35 -3
- package/dist/connectors/capterra.ts +5 -1
- package/dist/connectors/g2.ts +5 -1
- package/dist/connectors/github.ts +15 -38
- package/dist/connectors/glassdoor.ts +5 -1
- package/dist/connectors/google_calendar.ts +14 -4
- package/dist/connectors/google_gmail.ts +6 -3
- package/dist/connectors/google_play.ts +10 -3
- package/dist/connectors/index.ts +5 -0
- package/dist/connectors/linkedin.ts +32 -9
- package/dist/connectors/local_directory.ts +91 -0
- package/dist/connectors/revolut.ts +572 -0
- package/dist/connectors/trustpilot.ts +5 -1
- package/dist/connectors/website.ts +1 -1
- package/dist/connectors/whatsapp.ts +9 -1
- 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/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 +68 -114
- package/dist/index.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/server.bundle.mjs +32494 -30475
- package/dist/start-local.bundle.mjs +10840 -7912
- package/dist/templates/TESTING.md.tmpl +9 -9
- package/package.json +6 -6
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type RemoteConnectorDefinition } from "./client.js";
|
|
2
|
+
import { type DesiredState } from "./desired-state.js";
|
|
1
3
|
export interface ApplyOptions {
|
|
2
4
|
cwd?: string;
|
|
3
5
|
dryRun?: boolean;
|
|
@@ -10,5 +12,39 @@ export interface ApplyOptions {
|
|
|
10
12
|
/** Test seam — inject a stubbed fetch. */
|
|
11
13
|
fetchImpl?: typeof fetch;
|
|
12
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Read a response body as a stream, counting *bytes* and aborting as soon as
|
|
17
|
+
* the running total exceeds `maxBytes` — before buffering the rest. Decodes to
|
|
18
|
+
* UTF-8 text only after the (bounded) body is in hand. Exported for testing.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readBoundedBody(res: Response, maxBytes: number, onOverflow: () => never): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Validate connection / auth-profile config against the connector definitions
|
|
23
|
+
* the server knows about. When `skipSchemaForConnectorKeys` is given, those
|
|
24
|
+
* connector keys (the locally-declared `*.connector.ts` / `type: connector`
|
|
25
|
+
* ones) get only the structural checks here — full JSON-schema validation runs
|
|
26
|
+
* later, after install + catalog refetch, against the *fresh* schemas. This
|
|
27
|
+
* avoids rejecting a connection's config against a stale installed schema when
|
|
28
|
+
* the same apply updates that connector.
|
|
29
|
+
*/
|
|
30
|
+
export interface ValidateConnectorStateOptions {
|
|
31
|
+
/**
|
|
32
|
+
* Connector keys whose JSON-schema validation should be skipped in this pass
|
|
33
|
+
* (the locally-declared ones in the *pre*-install pass — they're schema-
|
|
34
|
+
* validated post-install against the fresh catalog).
|
|
35
|
+
*/
|
|
36
|
+
skipSchemaForConnectorKeys?: ReadonlySet<string>;
|
|
37
|
+
/**
|
|
38
|
+
* When true (the *post*-install pass), every connector key referenced by a
|
|
39
|
+
* desired auth profile or connection must be present in the catalog with
|
|
40
|
+
* `installed === true` — otherwise a hard `ValidationError` before any
|
|
41
|
+
* `executePlan` mutation. Catches a typo'd `connector:` ref, or a local
|
|
42
|
+
* `*.connector.ts` whose compiled `definition.key` differs from what the
|
|
43
|
+
* manifest assumed (so it never got installed under the expected key).
|
|
44
|
+
*/
|
|
45
|
+
requireInstalled?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare function validateConnectorState(state: DesiredState, connectorDefinitions: RemoteConnectorDefinition[], opts?: ValidateConnectorStateOptions): void;
|
|
48
|
+
export declare function locallyDeclaredConnectorKeys(state: DesiredState): Set<string>;
|
|
13
49
|
export declare function applyCommand(opts?: ApplyOptions): Promise<void>;
|
|
14
50
|
//# sourceMappingURL=apply-cmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-cmd.d.ts","sourceRoot":"","sources":["../../../../src/commands/_lib/apply/apply-cmd.ts"],"names":[],"mappings":"
|
|
1
|
+
{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