mindwire 0.1.3 → 0.1.6

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.
@@ -39,6 +39,8 @@ export interface OblienConfig {
39
39
  memoryMb?: number;
40
40
  /** Disk (MB) for a new workspace. */
41
41
  diskMb?: number;
42
+ /** Existing MindWire daemon bearer token for this workspace. Reuse it to probe without redeploying. */
43
+ daemonToken?: string;
42
44
  /** Called as soon as the workspace identity is known, before daemon installation begins. */
43
45
  onWorkspace?: (workspaceId: string) => void | Promise<void>;
44
46
  /** Lifecycle: `temporary` (auto-reaped) or `permanent`. */
package/dist/types.d.ts CHANGED
@@ -313,6 +313,13 @@ export type FieldScope = "unified" | "custom";
313
313
  export interface Option {
314
314
  value: string;
315
315
  label: string;
316
+ /** Contextual help shown when this option is selected. */
317
+ help?: string;
318
+ }
319
+ /** Show and submit a field only when the referenced field has this value, after resolving defaults. */
320
+ export interface FieldCondition {
321
+ key: string;
322
+ equals: string;
316
323
  }
317
324
  export interface Field {
318
325
  key: string;
@@ -323,11 +330,20 @@ export interface Field {
323
330
  /** Stable cross-agent key; equals `key` for custom fields. */
324
331
  canon?: string;
325
332
  required?: boolean;
333
+ /** A required field may be left blank when any named alternative has a value. */
334
+ requiredUnless?: string[];
335
+ /** Optional or alternative inputs that auth forms may initially collapse. */
336
+ advanced?: boolean;
326
337
  placeholder?: string;
327
338
  help?: string;
328
339
  /** For `select` / `multiselect`. */
329
340
  options?: Option[];
330
341
  default?: string;
342
+ visibleWhen?: FieldCondition;
343
+ /** Native select presentation; unknown hints fall back to the client's default control. */
344
+ presentation?: "segmented" | "menu" | (string & {});
345
+ /** Text keyboard hint. */
346
+ inputMode?: "url" | (string & {});
331
347
  }
332
348
  export interface Section {
333
349
  title: string;
@@ -508,6 +524,13 @@ export interface CustomProvider {
508
524
  /** Whether a secret is stored for this provider. The key value is never returned. */
509
525
  hasKey: boolean;
510
526
  }
527
+ /** Daemon-owned grouping, order, and context for an authentication form. */
528
+ export interface AuthSection {
529
+ id: string;
530
+ title: string;
531
+ help?: string;
532
+ fieldKeys: string[];
533
+ }
511
534
  /** One way to authenticate an agent. Field-based methods collect `fields`; interactive ones drive a begin→step→status flow. */
512
535
  export interface AuthMethod {
513
536
  id: string;
@@ -522,6 +545,7 @@ export interface AuthMethod {
522
545
  interactive?: boolean;
523
546
  /** Reuses the settings `Field` shape. */
524
547
  fields?: Field[];
548
+ sections?: AuthSection[];
525
549
  }
526
550
  /** The current step of an in-progress auth flow. */
527
551
  export interface AuthState {
@@ -532,6 +556,7 @@ export interface AuthState {
532
556
  message?: string;
533
557
  /** Inputs the client should collect next. */
534
558
  fields?: Field[];
559
+ sections?: AuthSection[];
535
560
  }
536
561
  /** The resting state: is the agent authenticated, and via which method. */
537
562
  export interface AuthStatus {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindwire",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "devDependencies": {