@lobu/runtime-device 24.2.0 → 24.4.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 +43 -129
- package/npm-shrinkwrap.json +206 -690
- package/package.json +1 -1
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +21 -3
- package/vendor/cli/dist/bundled-skills/lobu-connect/SKILL.md +6 -0
- package/vendor/cli/dist/commands/chat.d.ts +0 -12
- package/vendor/cli/dist/commands/chat.js +1 -1
- package/vendor/cli/dist/commands/daemon.js +36 -19
- package/vendor/cli/dist/commands/doctor.d.ts +0 -6
- package/vendor/cli/dist/commands/doctor.js +1 -1
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.d.ts +0 -8
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +1 -1
- package/vendor/cli/dist/config/define.d.ts +1 -1
- package/vendor/cli/dist/connectors/gchat.ts +31 -1
- package/vendor/cli/dist/connectors/postgres.ts +9 -5
- package/vendor/cli/dist/internal/cli-update-check.d.ts +33 -0
- package/vendor/cli/dist/internal/cli-update-check.js +98 -0
- package/vendor/cli/dist/internal/credentials.js +10 -36
- package/vendor/cli/dist/internal/gateway-url.d.ts +0 -8
- package/vendor/cli/dist/internal/gateway-url.js +1 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +1 -1
- package/vendor/connector-sdk/dist/connector-types.d.ts +29 -0
- package/vendor/connector-sdk/dist/index.d.ts +3 -1
- package/vendor/connector-sdk/dist/index.js +4 -0
- package/vendor/connector-sdk/dist/redact.d.ts +10 -0
- package/vendor/{connector-worker/dist/executor → connector-sdk/dist}/redact.js +0 -49
- package/vendor/connector-sdk/dist/types.d.ts +2 -1
- package/vendor/connector-sdk/package.json +6 -1
- package/vendor/connector-worker/dist/daemon/acp-adapters/THIRD_PARTY_LICENSES.txt +1 -1
- package/vendor/connector-worker/dist/daemon/acp-adapters/claude.js +7339 -2136
- package/vendor/connector-worker/dist/daemon/agent-turn.js +58 -3
- package/vendor/connector-worker/dist/daemon/automation.js +1 -1
- package/vendor/connector-worker/dist/daemon/client.d.ts +15 -1
- package/vendor/connector-worker/dist/daemon/client.js +57 -4
- package/vendor/connector-worker/dist/daemon/executor.d.ts +0 -28
- package/vendor/connector-worker/dist/daemon/executor.js +27 -12
- package/vendor/connector-worker/dist/daemon/index.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/index.js +1 -1
- package/vendor/connector-worker/dist/daemon/log.js +2 -1
- package/vendor/connector-worker/dist/daemon/poll-loop.js +32 -8
- package/vendor/connector-worker/dist/daemon/start.d.ts +0 -1
- package/vendor/connector-worker/dist/daemon/start.js +1 -1
- package/vendor/connector-worker/dist/daemon/terminal-delivery.d.ts +1 -0
- package/vendor/connector-worker/dist/daemon/terminal-delivery.js +10 -6
- package/vendor/connector-worker/dist/executor/isolate.js +1 -1
- package/vendor/connector-worker/dist/isolate/bridge.d.ts +6 -2
- package/vendor/connector-worker/dist/isolate/bridge.js +14 -8
- package/vendor/connector-worker/package.json +2 -2
- package/vendor/core/dist/connector-query-errors.d.ts +6 -0
- package/vendor/core/dist/connector-query-errors.js +4 -0
- package/vendor/core/dist/contracts/tools/manage-automations.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +1 -1
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +49 -20
- package/vendor/core/dist/contracts/tools/manage-entity.js +23 -5
- package/vendor/core/dist/contracts/worker/device-automation.d.ts +1 -1
- package/vendor/core/dist/contracts/worker/device-automation.js +1 -1
- package/vendor/core/dist/errors.d.ts +0 -20
- package/vendor/core/dist/errors.js +1 -25
- package/vendor/core/dist/index.d.ts +1 -0
- package/vendor/core/dist/index.js +4 -1
- package/vendor/core/dist/logger.js +8 -2
- package/vendor/core/dist/otel.d.ts +13 -2
- package/vendor/core/dist/otel.js +98 -44
- package/vendor/core/dist/trace-context.d.ts +12 -0
- package/vendor/core/dist/trace-context.js +50 -0
- package/vendor/core/dist/utils/ajv.js +3 -1
- package/vendor/core/package.json +26 -5
- package/vendor/connector-worker/dist/executor/http-status.d.ts +0 -16
- package/vendor/connector-worker/dist/executor/http-status.js +0 -21
- package/vendor/connector-worker/dist/executor/redact.d.ts +0 -29
|
@@ -15,7 +15,7 @@ import { validateEntityMetrics } from './metrics.js';
|
|
|
15
15
|
export { validateEntityMetrics };
|
|
16
16
|
export type { Dimension, EntityMetrics, EventSet, FactMatchRule, Measure, MetricReadMode, MetricTier, Segment, } from './metrics.js';
|
|
17
17
|
export type { ConnectorActionSpec, ConnectorClass, ConnectorFeedSpec, ConnectorSpec, } from './define-connector.js';
|
|
18
|
-
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorOperations, ConnectorRuntimeInfo, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedObserveContext, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadMatch, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, FeedWebhookDeclaration, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, RuntimeFeedWebhook, SyncContext, SyncCredentials, SyncResult, WebhookRecordContext, WebhookRecordNormalizer, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
18
|
+
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorOperations, ConnectorRuntimeInfo, ConnectorWebhookGoogleJwtVerification, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedObserveContext, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadMatch, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, FeedWebhookDeclaration, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, RuntimeFeedWebhook, SyncContext, SyncCredentials, SyncResult, WebhookRecordContext, WebhookRecordNormalizer, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
19
19
|
import { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone } from './identity-normalize.js';
|
|
20
20
|
export { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone, };
|
|
21
21
|
export type { IdentityNamespace, IdentityNamespaceDefinition, IdentityNormalizerKind, IdentitySubjectKind, } from './identity-namespaces.js';
|
|
@@ -58,4 +58,6 @@ export type { FileDelta, FileSystemSource, Snapshot } from './file-source.js';
|
|
|
58
58
|
export { connect } from './net.js';
|
|
59
59
|
export type { ConnectFn, Socket, SocketAddress, SocketOptions, } from './net.js';
|
|
60
60
|
export { assertFeedReadWindow, validateFeedReadWindow } from './feed-read-window.js';
|
|
61
|
+
export { isSecretOutputKey, redactOutput } from './redact.js';
|
|
62
|
+
export { scrubDiagnosticValue } from '@lobu/core/diagnostic-scrubber';
|
|
61
63
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -46,4 +46,8 @@ export { extensionNetworkSync } from './extension-network.js';
|
|
|
46
46
|
// =============================================================================
|
|
47
47
|
export { connect } from './net.js';
|
|
48
48
|
export { assertFeedReadWindow, validateFeedReadWindow } from './feed-read-window.js';
|
|
49
|
+
// The worker's output redaction catalog, shared so a connector that returns
|
|
50
|
+
// third-party text (logs, messages) can scrub it with the same patterns.
|
|
51
|
+
export { isSecretOutputKey, redactOutput } from './redact.js';
|
|
52
|
+
export { scrubDiagnosticValue } from '@lobu/core/diagnostic-scrubber';
|
|
49
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Redact secrets from connector output before it leaves the worker.
|
|
3
|
+
*
|
|
4
|
+
* Patterns are deliberately broad — false positives are preferred to leaking a
|
|
5
|
+
* real credential into the runs table. Add new patterns here when a connector
|
|
6
|
+
* surfaces a new sensitive shape.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSecretOutputKey(key: string): boolean;
|
|
9
|
+
export declare function redactOutput(text: string): string;
|
|
10
|
+
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -127,53 +127,4 @@ export function redactOutput(text) {
|
|
|
127
127
|
}
|
|
128
128
|
return result;
|
|
129
129
|
}
|
|
130
|
-
/**
|
|
131
|
-
* Streaming redactor for live tee to parent stdout/stderr. Buffers up to the
|
|
132
|
-
* last newline so that secrets split across stream chunk boundaries — for
|
|
133
|
-
* example "Authorization: Bear" + "er abc..." in two `data` events — still
|
|
134
|
-
* get matched by `redactOutput()`. The persisted `output_tail` already runs
|
|
135
|
-
* `redactOutput()` over the full ring-buffer string and is unaffected; this
|
|
136
|
-
* class exists solely to make the live-forwarded stream as safe as the
|
|
137
|
-
* persisted tail.
|
|
138
|
-
*
|
|
139
|
-
* `flush()` MUST be called on stream end to release any trailing partial
|
|
140
|
-
* line; otherwise its (redacted) content is dropped from the live tee but
|
|
141
|
-
* still appears in the persisted tail.
|
|
142
|
-
*/
|
|
143
|
-
export class StreamRedactor {
|
|
144
|
-
carryover = '';
|
|
145
|
-
// Safety cap for input with no newlines at all; emit the prefix and keep
|
|
146
|
-
// a sliding window of the last MAX_BUFFER chars to catch boundary splits
|
|
147
|
-
// up to that length.
|
|
148
|
-
static MAX_BUFFER = 8192;
|
|
149
|
-
process(chunk, emit) {
|
|
150
|
-
if (!chunk)
|
|
151
|
-
return;
|
|
152
|
-
const combined = this.carryover + chunk;
|
|
153
|
-
const lastNewline = combined.lastIndexOf('\n');
|
|
154
|
-
if (lastNewline >= 0) {
|
|
155
|
-
const complete = combined.slice(0, lastNewline + 1);
|
|
156
|
-
this.carryover = combined.slice(lastNewline + 1);
|
|
157
|
-
emit(redactOutput(complete));
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
if (combined.length > StreamRedactor.MAX_BUFFER) {
|
|
161
|
-
// No newline but we have to bound memory. Redact the whole buffer
|
|
162
|
-
// before emitting — slicing would re-introduce a boundary mid-secret.
|
|
163
|
-
// Carryover resets; the next chunk starts fresh, accepting that a
|
|
164
|
-
// secret split across the cap boundary may be redacted twice (safe)
|
|
165
|
-
// but never split within a regex match.
|
|
166
|
-
emit(redactOutput(combined));
|
|
167
|
-
this.carryover = '';
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
this.carryover = combined;
|
|
171
|
-
}
|
|
172
|
-
flush(emit) {
|
|
173
|
-
if (this.carryover) {
|
|
174
|
-
emit(redactOutput(this.carryover));
|
|
175
|
-
this.carryover = '';
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
130
|
//# sourceMappingURL=redact.js.map
|
|
@@ -38,7 +38,8 @@ export interface Env {
|
|
|
38
38
|
GOOGLE_CLIENT_SECRET?: string;
|
|
39
39
|
APPLE_CLIENT_ID?: string;
|
|
40
40
|
APPLE_CLIENT_SECRET?: string;
|
|
41
|
-
|
|
41
|
+
CLOUDFLARE_EMAIL_ACCOUNT_ID?: string;
|
|
42
|
+
CLOUDFLARE_EMAIL_API_TOKEN?: string;
|
|
42
43
|
EMAIL_FROM_AUTH?: string;
|
|
43
44
|
EMAIL_FROM_INVITES?: string;
|
|
44
45
|
EMAIL_REPLY_TO?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/connector-sdk",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.0",
|
|
4
4
|
"description": "Lobu memory SDK — build pluggable connectors for Lobu memory",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,10 +75,15 @@
|
|
|
75
75
|
"./device-manifest-hash": {
|
|
76
76
|
"types": "./dist/device-manifest-hash.d.ts",
|
|
77
77
|
"import": "./dist/device-manifest-hash.js"
|
|
78
|
+
},
|
|
79
|
+
"./redact": {
|
|
80
|
+
"types": "./dist/redact.d.ts",
|
|
81
|
+
"import": "./dist/redact.js"
|
|
78
82
|
}
|
|
79
83
|
},
|
|
80
84
|
"files": [
|
|
81
85
|
"dist",
|
|
86
|
+
"src/redact.ts",
|
|
82
87
|
"!**/*.map"
|
|
83
88
|
],
|
|
84
89
|
"sideEffects": false,
|
|
@@ -587,7 +587,7 @@ License: SEE LICENSE IN README.md
|
|
|
587
587
|
© Anthropic PBC. All rights reserved. Use is subject to the Legal Agreements outlined here: https://code.claude.com/docs/en/legal-and-compliance.
|
|
588
588
|
|
|
589
589
|
|
|
590
|
-
zod@4.
|
|
590
|
+
zod@4.6.7
|
|
591
591
|
License: MIT
|
|
592
592
|
MIT License
|
|
593
593
|
|