@lobu/runtime-device 21.0.0 → 21.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.
Files changed (48) hide show
  1. package/dist/component.json +1 -1
  2. package/dist/dependencies.bun.lock +5 -5
  3. package/npm-shrinkwrap.json +23 -23
  4. package/package.json +1 -1
  5. package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +0 -4
  6. package/vendor/cli/dist/commands/_lib/apply/client.d.ts +1 -4
  7. package/vendor/cli/dist/commands/_lib/apply/client.js +2 -8
  8. package/vendor/cli/dist/commands/_lib/apply/deployment.js +0 -1
  9. package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +0 -2
  10. package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +0 -1
  11. package/vendor/cli/dist/commands/_lib/apply/diff.js +0 -6
  12. package/vendor/cli/dist/commands/_lib/view-bundler.js +6 -2
  13. package/vendor/cli/dist/commands/memory/_lib/schema.d.ts +0 -1
  14. package/vendor/cli/dist/commands/memory/_lib/schema.js +0 -9
  15. package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +0 -2
  16. package/vendor/cli/dist/connectors/github.ts +269 -194
  17. package/vendor/cli/dist/connectors/google_calendar.ts +36 -132
  18. package/vendor/cli/dist/connectors/jira.ts +13 -4
  19. package/vendor/cli/dist/connectors/producthunt.ts +3 -1
  20. package/vendor/cli/dist/connectors/reddit.ts +34 -4
  21. package/vendor/cli/dist/providers.json +0 -1
  22. package/vendor/cli/dist/runtime-components.json +4 -4
  23. package/vendor/cli/package.json +1 -1
  24. package/vendor/connector-sdk/dist/connector-types.d.ts +0 -2
  25. package/vendor/connector-sdk/package.json +1 -1
  26. package/vendor/connector-worker/dist/daemon/client.d.ts +4 -1
  27. package/vendor/connector-worker/dist/daemon/client.js +3 -0
  28. package/vendor/connector-worker/dist/daemon/executor.js +4 -0
  29. package/vendor/connector-worker/dist/daemon/start.js +2 -2
  30. package/vendor/connector-worker/dist/executor/interface.d.ts +7 -1
  31. package/vendor/connector-worker/dist/executor/isolate.js +40 -0
  32. package/vendor/connector-worker/package.json +1 -1
  33. package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +14 -0
  34. package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +12 -1
  35. package/vendor/core/dist/contracts/tools/manage-automations.d.ts +0 -10
  36. package/vendor/core/dist/contracts/tools/manage-automations.js +0 -33
  37. package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +4 -34
  38. package/vendor/core/dist/contracts/tools/manage-classifiers.js +13 -44
  39. package/vendor/core/dist/contracts/tools/manage-entity.d.ts +0 -9
  40. package/vendor/core/dist/contracts/tools/manage-entity.js +0 -6
  41. package/vendor/core/dist/contracts/tools/view-attach.d.ts +20 -0
  42. package/vendor/core/dist/contracts/tools/view-attach.js +45 -0
  43. package/vendor/core/dist/contracts/worker/protocol.d.ts +17 -0
  44. package/vendor/core/dist/contracts/worker/protocol.js +12 -1
  45. package/vendor/core/dist/index.d.ts +1 -1
  46. package/vendor/core/dist/provider-config-types.d.ts +0 -9
  47. package/vendor/core/dist/sdk-compat.d.ts +1 -1
  48. package/vendor/core/package.json +6 -1
@@ -26,9 +26,18 @@
26
26
  * not change that boundary, it only types what already crosses it.
27
27
  */
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.HeartbeatResponseSchema = exports.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = exports.HeartbeatRequestSchema = exports.AGENT_TURN_BRIDGE_BYTES = exports.TURN_DELTA_MAX_CHARS = exports.PollAuthSignalResponseSchema = exports.PollAuthSignalRequestSchema = exports.EmitAuthArtifactRequestSchema = exports.CompleteAgentTurnResponseSchema = exports.CompleteAgentTurnRequestSchema = exports.AGENT_TURN_INPUT_MAX = exports.TURN_TOOL_EVENT_QUEUE_MAX = exports.TurnToolEventSchema = exports.TURN_TOOL_OUTPUT_MAX_CHARS = exports.CompleteDeviceChatResponseSchema = exports.CompleteDeviceChatRequestSchema = exports.CompleteAutomationResponseSchema = exports.CompleteAutomationRequestSchema = exports.CompleteAuthRequestSchema = exports.CompleteEmbeddingsRequestSchema = exports.EmbeddingEntrySchema = exports.EmbedEventSchema = exports.CompleteActionRequestSchema = exports.CompleteRequestSchema = exports.StreamBatchSchema = exports.ContentItemSchema = exports.ActivatePageResponseSchema = exports.ActivatePageRequestSchema = exports.PollResponseSchema = exports.FeedSourceAckSchema = exports.AgentTurnPollPayloadSchema = exports.DeviceChatPollPayloadSchema = exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = exports.DeviceChatHistoryMessageSchema = exports.AutomationPollPayloadSchema = exports.AutomationPollContextSchema = exports.AutomationPollEventSchema = exports.AutomationPollMetaSchema = exports.AutomationExecutionConfigSchema = exports.PollRequestSchema = exports.WORKER_POLL_MAX_WAIT_SECONDS = exports.FeedNotificationSchema = exports.EXECUTION_BACKENDS = exports.OAuthCredentialsSchema = exports.WorkerExitDiagnosticsSchema = exports.WorkerExitReasonSchema = exports.RunTypeSchema = void 0;
29
+ exports.DispatchChromeActionResponseSchema = exports.DispatchChromeActionRequestSchema = exports.HeartbeatRequestSchema = exports.AGENT_TURN_BRIDGE_BYTES = exports.TURN_DELTA_MAX_CHARS = exports.PollAuthSignalResponseSchema = exports.PollAuthSignalRequestSchema = exports.EmitAuthArtifactRequestSchema = exports.CompleteAgentTurnResponseSchema = exports.CompleteAgentTurnRequestSchema = exports.AGENT_TURN_INPUT_MAX = exports.TURN_TOOL_EVENT_QUEUE_MAX = exports.TurnToolEventSchema = exports.TURN_TOOL_OUTPUT_MAX_CHARS = exports.CompleteDeviceChatResponseSchema = exports.CompleteDeviceChatRequestSchema = exports.CompleteAutomationResponseSchema = exports.CompleteAutomationRequestSchema = exports.CompleteAuthRequestSchema = exports.CompleteEmbeddingsRequestSchema = exports.EmbeddingEntrySchema = exports.EmbedEventSchema = exports.CompleteActionRequestSchema = exports.CompleteRequestSchema = exports.StreamBatchSchema = exports.ContentItemSchema = exports.ActivatePageResponseSchema = exports.ActivatePageRequestSchema = exports.PollResponseSchema = exports.FeedSourceAckSchema = exports.AgentTurnPollPayloadSchema = exports.DeviceChatPollPayloadSchema = exports.DEVICE_CHAT_MAX_CONTEXT_LENGTH = exports.DeviceChatHistoryMessageSchema = exports.AutomationPollPayloadSchema = exports.AutomationPollContextSchema = exports.AutomationPollEventSchema = exports.AutomationPollMetaSchema = exports.AutomationExecutionConfigSchema = exports.PollRequestSchema = exports.WORKER_POLL_MAX_WAIT_SECONDS = exports.FeedNotificationSchema = exports.EXECUTION_BACKENDS = exports.OAuthCredentialsSchema = exports.WorkerExitDiagnosticsSchema = exports.WorkerExitReasonSchema = exports.RunTypeSchema = exports.ConnectorHttpRequestSchema = exports.CONNECTOR_HTTP_MAX_BYTES = exports.CONNECTOR_HTTP_AUTH_CAPABILITY = void 0;
30
+ exports.HeartbeatResponseSchema = void 0;
30
31
  exports.defaultBackendCapacity = defaultBackendCapacity;
31
32
  const typebox_1 = require("@sinclair/typebox");
33
+ exports.CONNECTOR_HTTP_AUTH_CAPABILITY = "http_auth";
34
+ exports.CONNECTOR_HTTP_MAX_BYTES = 4 * 1024 * 1024;
35
+ exports.ConnectorHttpRequestSchema = typebox_1.Type.Object({
36
+ url: typebox_1.Type.String({ maxLength: 16384 }),
37
+ method: typebox_1.Type.String({ maxLength: 32 }),
38
+ headers: typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.String()),
39
+ body: typebox_1.Type.Optional(typebox_1.Type.String({ maxLength: Math.ceil(exports.CONNECTOR_HTTP_MAX_BYTES / 3) * 4 })),
40
+ }, { additionalProperties: false });
32
41
  // Wire mirror of connector-sdk's ConnectorAutomationSignalDraftSchema. Core is
33
42
  // deliberately dependency-free from connector-sdk; both the worker and gateway
34
43
  // compile against this schema at the HTTP boundary.
@@ -638,6 +647,8 @@ exports.PollResponseSchema = typebox_1.Type.Object({
638
647
  entity_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Integer())),
639
648
  credentials: typebox_1.Type.Optional(typebox_1.Type.Union([exports.OAuthCredentialsSchema, typebox_1.Type.Null()])),
640
649
  connection_credentials: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
650
+ /** Gateway-only credential delivery. Requires the http_auth worker capability. */
651
+ http_auth: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
641
652
  connection_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
642
653
  feed_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
643
654
  compiled_code: typebox_1.Type.Optional(typebox_1.Type.String()),
@@ -25,7 +25,7 @@ export * from "./logger";
25
25
  export * from "./modules";
26
26
  export type { OtelConfig, Span, Tracer } from "./otel";
27
27
  export { createChildSpan, createRootSpan, createSpan, flushTracing, getCurrentSpan, getTraceparent, getTracer, initTracing, runInSpanContext, SpanKind, SpanStatusCode, shutdownTracing, withChildSpan, withSpan, } from "./otel";
28
- export type { ConfigProviderMeta, ProviderConfigEntry, ProviderOAuthConfig, ProviderOAuthGrantKind, } from "./provider-config-types";
28
+ export type { ProviderConfigEntry, ProviderOAuthConfig, ProviderOAuthGrantKind, } from "./provider-config-types";
29
29
  export { isSdkCompat, type PiAiApi, resolveSdkCompat, SDK_COMPAT_PROTOCOLS, type SdkCompat, type SdkCompatProtocol, } from "./sdk-compat";
30
30
  export * from "./secret-refs";
31
31
  export * from "./reserved";
@@ -103,8 +103,6 @@ export interface ProviderConfigEntry {
103
103
  * takes precedence when available, so this only needs to be roughly current.
104
104
  */
105
105
  models?: string[];
106
- /** Override provider name for model registry lookup */
107
- registryAlias?: string;
108
106
  /** Whether to show in "Add Provider" catalog (default: true) */
109
107
  catalogVisible?: boolean;
110
108
  /**
@@ -126,11 +124,4 @@ export interface ProviderConfigEntry {
126
124
  model?: string;
127
125
  };
128
126
  }
129
- /** Metadata passed from gateway to worker for config-driven providers. */
130
- export interface ConfigProviderMeta {
131
- sdkCompat?: SdkCompat;
132
- defaultModel?: string;
133
- registryAlias?: string;
134
- baseUrlEnvVar: string;
135
- }
136
127
  //# sourceMappingURL=provider-config-types.d.ts.map
@@ -36,7 +36,7 @@ export interface SdkCompatProtocol {
36
36
  /**
37
37
  * Model-registry provider name a dynamic model maps to. Providers speaking
38
38
  * the same protocol share a registry alias (e.g. all OpenAI-compatible ones
39
- * resolve as "openai") unless a provider overrides it via `registryAlias`.
39
+ * resolve as "openai").
40
40
  */
41
41
  registryAlias: string;
42
42
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobu/core",
3
- "version": "21.0.0",
3
+ "version": "21.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Core types and utilities for Lobu agent platform",
6
6
  "repository": {
@@ -206,6 +206,11 @@
206
206
  "import": "./dist/agent-tooling.js",
207
207
  "require": "./dist/agent-tooling.js"
208
208
  },
209
+ "./contracts/tools/view-attach": {
210
+ "types": "./dist/contracts/tools/view-attach.d.ts",
211
+ "import": "./dist/contracts/tools/view-attach.js",
212
+ "require": "./dist/contracts/tools/view-attach.js"
213
+ },
209
214
  "./contracts/tools/view-path": {
210
215
  "types": "./dist/contracts/tools/view-path.d.ts",
211
216
  "import": "./dist/contracts/tools/view-path.js",