@betterlu/agentlu 2.0.0 → 2.0.2

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 (2) hide show
  1. package/dist/generated.d.ts +83 -12
  2. package/package.json +1 -1
@@ -26,7 +26,7 @@ export interface WireHouseholdSignalResult {
26
26
  export interface WireCreateResponse {
27
27
  /** Execution backend. */
28
28
  "backend"?: "pi";
29
- /** Model id, or an agent name (stock OpenAI clients can only set `model`). Harness-qualified ids run other runtimes: `google/<id>` selects an Antigravity model on the Google agent. */
29
+ /** Model id, or an agent name (stock OpenAI clients can only set `model`). Google ACP is internal to the second-opinion feature and is not addressable through `/v1`. */
30
30
  "model"?: string;
31
31
  "input"?: string | Array<{
32
32
  "role": "user" | "assistant" | "system" | "developer";
@@ -51,7 +51,7 @@ export interface WireCreateResponse {
51
51
  /** System message for this run. */
52
52
  "instructions"?: string;
53
53
  "stream"?: boolean;
54
- /** `false` requests ephemeral execution. Eligible text-only, tool-less Pi and Google runs avoid a Session; attachments, tools, and continuations still use a Session when required. The ApiResponse remains available to the console, but its request/output bodies are purged after 24 hours (rows created with an `Idempotency-Key` keep them, so a retry can still replay the answer). */
54
+ /** `false` requests ephemeral execution. Eligible text-only, tool-less Pi runs avoid a Session; attachments, tools, and continuations still use a Session when required. The ApiResponse remains available to the console, but its request/output bodies are purged after 24 hours (rows created with an `Idempotency-Key` keep them, so a retry can still replay the answer). */
55
55
  "store"?: boolean;
56
56
  "background"?: boolean;
57
57
  /** Continue the thread that produced this response. */
@@ -85,7 +85,7 @@ export interface WireCreateResponse {
85
85
  "tool_choice"?: "auto" | "none" | "required";
86
86
  "metadata"?: Record<string, string>;
87
87
  "include"?: Array<"reasoning" | "rounds" | "subagents" | "artifacts">;
88
- /** Agent id. Built-in agents, `direct`, the `research` alias, declared app agents (`<app>/<name>`), and household agents (`household/<slug>`) are accepted; unknown ids return HTTP 400 `unknown_agent`. */
88
+ /** Agent id. Built-in agents, `direct`, the `research` alias, declared app agents (`<app>/<name>`), and household agents (`household/<slug>`) are accepted; unknown ids return HTTP 400 `unknown_agent`. Google chat is retired; use `assistant` and enable Google second opinion for an independent answer. */
89
89
  "agent"?: string;
90
90
  /** Thinking level. Explicit `effort: "off"` is honored; other requests are clamped to the selected model's supported capabilities. The SDK does not promise provider benchmark parity. */
91
91
  "reasoning"?: {
@@ -164,7 +164,7 @@ export interface WireRegisterClientRequest {
164
164
  /** Run defaults applied when a request omits the field: request > registered client default > use-case tier > agent/profile default. The built-in `store` default is true. Register one client per use-case (e.g. mealu-enrich) with its system prompt and tools baked in. */
165
165
  "defaults"?: {
166
166
  "backend"?: "pi";
167
- "agent"?: "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
167
+ "agent"?: "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
168
168
  "model"?: string;
169
169
  "modelRoute"?: "chat.quick" | "chat.household" | "chat.deep" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
170
170
  "instructions"?: string;
@@ -215,7 +215,7 @@ export interface WireRegisterClientRequest {
215
215
  /** Run defaults applied when a request omits the field: request > registered client default > use-case tier > agent/profile default. The built-in `store` default is true. Register one client per use-case (e.g. mealu-enrich) with its system prompt and tools baked in. */
216
216
  export interface WireClientDefaults {
217
217
  "backend"?: "pi";
218
- "agent"?: "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
218
+ "agent"?: "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
219
219
  /** Configured model id. Stock clients may also use an agent name here; prefer explicit `agent` for machine calls. */
220
220
  "model"?: string;
221
221
  /** Task route whose pool order and effort apply to automatic model selection. Mutually exclusive with model. Explicit request models, builtin chat agents, and agent model pins win; app-owned and api agents inherit the client route. */
@@ -281,7 +281,7 @@ export interface WireAppAgentDeclaration {
281
281
  }
282
282
  export interface WireCreateThreadRequest {
283
283
  "title"?: string;
284
- "agent"?: "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom" | "research" | string;
284
+ "agent"?: "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom" | "research" | "google" | string;
285
285
  "model"?: string;
286
286
  "person"?: string | null;
287
287
  "owner"?: "client" | "person";
@@ -317,7 +317,7 @@ export interface WireResponse {
317
317
  "created_at": number;
318
318
  "status": "queued" | "in_progress" | "completed" | "failed" | "incomplete" | "cancelled";
319
319
  "backend": "pi";
320
- "agent": "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom";
320
+ "agent": "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom";
321
321
  "model": string;
322
322
  "conversation"?: {
323
323
  "id": string;
@@ -338,6 +338,41 @@ export interface WireResponse {
338
338
  "arguments": string;
339
339
  "status"?: "completed" | "incomplete";
340
340
  "output"?: string;
341
+ "browser"?: {
342
+ "sessionId"?: string;
343
+ "username"?: "larry" | "misa";
344
+ "ownerId"?: string;
345
+ "tabId"?: string;
346
+ "url"?: string;
347
+ "title"?: string;
348
+ "status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted";
349
+ "action"?: string;
350
+ "reason"?: string;
351
+ "observationId"?: string;
352
+ "screenshots"?: Array<{
353
+ "id": string;
354
+ "createdAt": string;
355
+ "width": number;
356
+ "height": number;
357
+ }>;
358
+ };
359
+ "android"?: {
360
+ "sessionId"?: string;
361
+ "username"?: string;
362
+ "device"?: string;
363
+ "deviceName"?: string;
364
+ "ownerId"?: string;
365
+ "status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted" | "reserved";
366
+ "action"?: string;
367
+ "reason"?: string;
368
+ "observationId"?: string;
369
+ "leaseId"?: string;
370
+ "readiness"?: "stopped" | "booting" | "ready" | "failed";
371
+ "control"?: "idle" | "agent" | "needs_human" | "human" | "reserved" | "interrupted";
372
+ "foregroundPackage"?: string;
373
+ "viewerPath"?: string;
374
+ "reservationExpiresAt"?: string;
375
+ };
341
376
  [key: string]: unknown;
342
377
  } | {
343
378
  "type": "message";
@@ -466,9 +501,10 @@ export interface WireChatCompletion {
466
501
  "total_tokens": number;
467
502
  [key: string]: unknown;
468
503
  };
469
- /** agentlu extension: `response_id` is the /v1/responses id for this run, `output_parsed` is the validated JSON for a structured `response_format`, `warnings` carries non-fatal degradations. */
504
+ /** agentlu extension: `response_id` is the /v1/responses id for this run, `model_route` is the task route used for automatic model selection, `output_parsed` is the validated JSON for a structured `response_format`, `warnings` carries non-fatal degradations. */
470
505
  "agentlu"?: {
471
506
  "response_id"?: string;
507
+ "model_route"?: "chat.quick" | "chat.household" | "chat.deep" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
472
508
  "tier"?: "direct" | "agent";
473
509
  "output_parsed"?: unknown;
474
510
  "warnings"?: string[];
@@ -507,7 +543,7 @@ export interface WireThread {
507
543
  "created_at": number;
508
544
  "updated_at": number;
509
545
  "title": string;
510
- "agent": "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom";
546
+ "agent": "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom";
511
547
  "model": string | null;
512
548
  /** "api" for threads created through /v1; "chat" when a human started it. */
513
549
  "origin": string;
@@ -546,7 +582,7 @@ export interface WireClient {
546
582
  "allow_person_threads"?: boolean;
547
583
  "defaults"?: {
548
584
  "backend"?: "pi";
549
- "agent"?: "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
585
+ "agent"?: "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom" | "direct" | string | "research";
550
586
  "model"?: string;
551
587
  "modelRoute"?: "chat.quick" | "chat.household" | "chat.deep" | "device" | "background.digest" | "utility" | "memory.extract" | "memory.judge" | "memory.consolidate";
552
588
  "instructions"?: string;
@@ -627,7 +663,7 @@ export interface WireResponseList {
627
663
  "created_at": number;
628
664
  "status": "queued" | "in_progress" | "completed" | "failed" | "incomplete" | "cancelled";
629
665
  "backend": "pi";
630
- "agent": "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom";
666
+ "agent": "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom";
631
667
  "model": string;
632
668
  "conversation"?: {
633
669
  "id": string;
@@ -648,6 +684,41 @@ export interface WireResponseList {
648
684
  "arguments": string;
649
685
  "status"?: "completed" | "incomplete";
650
686
  "output"?: string;
687
+ "browser"?: {
688
+ "sessionId"?: string;
689
+ "username"?: "larry" | "misa";
690
+ "ownerId"?: string;
691
+ "tabId"?: string;
692
+ "url"?: string;
693
+ "title"?: string;
694
+ "status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted";
695
+ "action"?: string;
696
+ "reason"?: string;
697
+ "observationId"?: string;
698
+ "screenshots"?: Array<{
699
+ "id": string;
700
+ "createdAt": string;
701
+ "width": number;
702
+ "height": number;
703
+ }>;
704
+ };
705
+ "android"?: {
706
+ "sessionId"?: string;
707
+ "username"?: string;
708
+ "device"?: string;
709
+ "deviceName"?: string;
710
+ "ownerId"?: string;
711
+ "status": "active" | "needs_human" | "human_control" | "idle" | "closed" | "interrupted" | "reserved";
712
+ "action"?: string;
713
+ "reason"?: string;
714
+ "observationId"?: string;
715
+ "leaseId"?: string;
716
+ "readiness"?: "stopped" | "booting" | "ready" | "failed";
717
+ "control"?: "idle" | "agent" | "needs_human" | "human" | "reserved" | "interrupted";
718
+ "foregroundPackage"?: string;
719
+ "viewerPath"?: string;
720
+ "reservationExpiresAt"?: string;
721
+ };
651
722
  [key: string]: unknown;
652
723
  } | {
653
724
  "type": "message";
@@ -762,7 +833,7 @@ export interface WireThreadList {
762
833
  "created_at": number;
763
834
  "updated_at": number;
764
835
  "title": string;
765
- "agent": "auto" | "fast" | "thorough" | "assistant" | "google" | "api" | "digest" | "herald" | "cradle" | "custom";
836
+ "agent": "auto" | "fast" | "thorough" | "assistant" | "api" | "digest" | "herald" | "cradle" | "custom";
766
837
  "model": string | null;
767
838
  "origin": string;
768
839
  "end_user"?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterlu/agentlu",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Client for the agentlu service API (/v1). Or just use the openai SDK pointed at http://localhost:8912/v1.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",