mindwire 0.1.5 → 0.1.7

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/index.cjs CHANGED
@@ -469,7 +469,7 @@ var Run = class _Run {
469
469
  };
470
470
 
471
471
  // src/version.ts
472
- var SDK_VERSION = "0.1.5" ;
472
+ var SDK_VERSION = "0.1.7" ;
473
473
 
474
474
  // src/daemon-binary.ts
475
475
  function supported(platform, arch) {
package/dist/index.js CHANGED
@@ -466,7 +466,7 @@ var Run = class _Run {
466
466
  };
467
467
 
468
468
  // src/version.ts
469
- var SDK_VERSION = "0.1.5" ;
469
+ var SDK_VERSION = "0.1.7" ;
470
470
 
471
471
  // src/daemon-binary.ts
472
472
  function supported(platform, arch) {
package/dist/types.d.ts CHANGED
@@ -129,6 +129,8 @@ export interface ResultInfo {
129
129
  /** The unified stream item. Optional fields are populated per `type`. */
130
130
  export interface Event {
131
131
  type: EventType;
132
+ /** Text/thinking item identity. A non-delta snapshot replaces this item's earlier text. */
133
+ itemId?: string;
132
134
  sessionId?: string;
133
135
  /** Assistant/thinking text body. */
134
136
  text?: string;
@@ -313,6 +315,13 @@ export type FieldScope = "unified" | "custom";
313
315
  export interface Option {
314
316
  value: string;
315
317
  label: string;
318
+ /** Contextual help shown when this option is selected. */
319
+ help?: string;
320
+ }
321
+ /** Show and submit a field only when the referenced field has this value, after resolving defaults. */
322
+ export interface FieldCondition {
323
+ key: string;
324
+ equals: string;
316
325
  }
317
326
  export interface Field {
318
327
  key: string;
@@ -323,11 +332,20 @@ export interface Field {
323
332
  /** Stable cross-agent key; equals `key` for custom fields. */
324
333
  canon?: string;
325
334
  required?: boolean;
335
+ /** A required field may be left blank when any named alternative has a value. */
336
+ requiredUnless?: string[];
337
+ /** Optional or alternative inputs that auth forms may initially collapse. */
338
+ advanced?: boolean;
326
339
  placeholder?: string;
327
340
  help?: string;
328
341
  /** For `select` / `multiselect`. */
329
342
  options?: Option[];
330
343
  default?: string;
344
+ visibleWhen?: FieldCondition;
345
+ /** Native select presentation; unknown hints fall back to the client's default control. */
346
+ presentation?: "segmented" | "menu" | (string & {});
347
+ /** Text keyboard hint. */
348
+ inputMode?: "url" | (string & {});
331
349
  }
332
350
  export interface Section {
333
351
  title: string;
@@ -508,6 +526,13 @@ export interface CustomProvider {
508
526
  /** Whether a secret is stored for this provider. The key value is never returned. */
509
527
  hasKey: boolean;
510
528
  }
529
+ /** Daemon-owned grouping, order, and context for an authentication form. */
530
+ export interface AuthSection {
531
+ id: string;
532
+ title: string;
533
+ help?: string;
534
+ fieldKeys: string[];
535
+ }
511
536
  /** One way to authenticate an agent. Field-based methods collect `fields`; interactive ones drive a begin→step→status flow. */
512
537
  export interface AuthMethod {
513
538
  id: string;
@@ -522,6 +547,7 @@ export interface AuthMethod {
522
547
  interactive?: boolean;
523
548
  /** Reuses the settings `Field` shape. */
524
549
  fields?: Field[];
550
+ sections?: AuthSection[];
525
551
  }
526
552
  /** The current step of an in-progress auth flow. */
527
553
  export interface AuthState {
@@ -532,6 +558,7 @@ export interface AuthState {
532
558
  message?: string;
533
559
  /** Inputs the client should collect next. */
534
560
  fields?: Field[];
561
+ sections?: AuthSection[];
535
562
  }
536
563
  /** The resting state: is the agent authenticated, and via which method. */
537
564
  export interface AuthStatus {
@@ -571,6 +598,8 @@ export interface ToolPart {
571
598
  /** One ordered piece of an assistant turn. */
572
599
  export interface Part {
573
600
  type: "text" | "thinking" | "tool" | "interaction" | "compaction" | (string & {});
601
+ /** Streaming item identity, when the agent supplies it. */
602
+ id?: string;
574
603
  text?: string;
575
604
  durationMs?: number;
576
605
  tokens?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindwire",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "devDependencies": {