@adhdev/mesh-shared 1.0.60-rc.35 → 1.0.60-rc.36

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.
@@ -63,7 +63,14 @@ export declare const LIVENESS_RESULTS: readonly ["alive", "unknown", "read_faile
63
63
  export type LivenessResult = typeof LIVENESS_RESULTS[number];
64
64
  export declare const PROVIDER_FAILURES: readonly ["auth_failed", "billing_failed"];
65
65
  export type ProviderFailure = typeof PROVIDER_FAILURES[number];
66
- export declare const SESSION_ERROR_REASONS: readonly ["provider_error", "adapter_error", "spawn_failed", "auth_failed", "billing_failed", "unknown"];
66
+ /**
67
+ * `daemon_restart` (wiring-unification follow-up, design §5): a boot-time
68
+ * reconciliation observes this for a plain attempt whose session is gone
69
+ * after a restart — the daemon never saw the session's own exit, so it is
70
+ * not `provider_error`/`adapter_error`/etc.; it is the daemon itself
71
+ * reporting "this session no longer exists".
72
+ */
73
+ export declare const SESSION_ERROR_REASONS: readonly ["provider_error", "adapter_error", "spawn_failed", "auth_failed", "billing_failed", "unknown", "daemon_restart"];
67
74
  export type SessionErrorReason = typeof SESSION_ERROR_REASONS[number];
68
75
  export declare const CANCEL_REASONS: readonly ["operator_cancel", "intentional_cleanup", "task_removed", "mission_abandoned", "superseded"];
69
76
  export type CancelReason = typeof CANCEL_REASONS[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/mesh-shared",
3
- "version": "1.0.60-rc.35",
3
+ "version": "1.0.60-rc.36",
4
4
  "description": "ADHDev mesh-shared — pure mesh/git status normalizers shared by daemon-core and web-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -90,7 +90,14 @@ export type LivenessResult = typeof LIVENESS_RESULTS[number]
90
90
  export const PROVIDER_FAILURES = ['auth_failed', 'billing_failed'] as const
91
91
  export type ProviderFailure = typeof PROVIDER_FAILURES[number]
92
92
 
93
- export const SESSION_ERROR_REASONS = ['provider_error', 'adapter_error', 'spawn_failed', 'auth_failed', 'billing_failed', 'unknown'] as const
93
+ /**
94
+ * `daemon_restart` (wiring-unification follow-up, design §5): a boot-time
95
+ * reconciliation observes this for a plain attempt whose session is gone
96
+ * after a restart — the daemon never saw the session's own exit, so it is
97
+ * not `provider_error`/`adapter_error`/etc.; it is the daemon itself
98
+ * reporting "this session no longer exists".
99
+ */
100
+ export const SESSION_ERROR_REASONS = ['provider_error', 'adapter_error', 'spawn_failed', 'auth_failed', 'billing_failed', 'unknown', 'daemon_restart'] as const
94
101
  export type SessionErrorReason = typeof SESSION_ERROR_REASONS[number]
95
102
 
96
103
  export const CANCEL_REASONS = ['operator_cancel', 'intentional_cleanup', 'task_removed', 'mission_abandoned', 'superseded'] as const