@pluno/product-agent-web 0.1.316 → 0.1.318

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 (36) hide show
  1. package/README.md +4 -0
  2. package/dist/adapters/web/accountPresentation.d.ts +3 -3
  3. package/dist/adapters/web/featureHttp.d.ts +6 -20
  4. package/dist/adapters/web/featureLifecycle.d.ts +2 -15
  5. package/dist/adapters/web/featureOwner.d.ts +5 -6
  6. package/dist/adapters/web/featurePresentation.d.ts +4 -4
  7. package/dist/core/account/contracts.d.ts +6 -18
  8. package/dist/core/account/selectors.d.ts +2 -2
  9. package/dist/core/account/state.d.ts +1 -1
  10. package/dist/core/features/contracts.d.ts +37 -338
  11. package/dist/core/features/reducer.d.ts +5 -7
  12. package/dist/core/features/selectors.d.ts +1 -1
  13. package/dist/core/features/state.d.ts +1 -1
  14. package/dist/core/index.d.ts +0 -2
  15. package/dist/core/interactions/actions.d.ts +7 -7
  16. package/dist/core/interactions/contracts.d.ts +8 -121
  17. package/dist/core/interactions/selectors.d.ts +5 -25
  18. package/dist/core/interactions/state.d.ts +1 -1
  19. package/dist/index.d.ts +1 -29
  20. package/dist/product-agent-runtime.cjs +1 -1
  21. package/dist/product-agent-runtime.js +221 -265
  22. package/dist/product-agent-sdk.js +4423 -5276
  23. package/dist/product-agent-widget.js +4991 -6608
  24. package/dist/runtime.d.ts +1 -1
  25. package/dist/runtimeState.d.ts +0 -10
  26. package/dist/scheduledCheckIn.d.ts +0 -5
  27. package/dist/shareCard.d.ts +0 -25
  28. package/dist/widget.d.ts +2 -26
  29. package/package.json +1 -1
  30. package/dist/adapters/web/deviceHints.d.ts +0 -2
  31. package/dist/core/account/reducer.d.ts +0 -2
  32. package/dist/core/features/appearance.d.ts +0 -10
  33. package/dist/core/interactions/preferenceOpenings.d.ts +0 -22
  34. package/dist/core/interactions/reducer.d.ts +0 -6
  35. package/dist/featureActionFeedback.d.ts +0 -19
  36. package/dist/modelSelection.d.ts +0 -62
@@ -1,89 +1,19 @@
1
- import type { PAProductAgentModel } from "../model-selection/contracts";
2
- import type { UiFlightEvidence } from './uiFlightEvidence';
3
- import type { PAAccountData, PAAccountState, PAFeatureAuthority, PAFeaturePreferences } from '../account/contracts';
4
- import type { PAEffectHandlers, PAEffectResultEvent } from '../kernel/effects';
5
- import type { PAQueryState, PARequestId } from '../kernel/state';
6
- import type { PATransportedError } from '../protocol/errors';
7
- import type { PAInteractionState, PAFeatureName, PAPreferencePrompt, PAPreferencePrompts, PAUserDecision, PAUserDecisionInput, PAInteractionProjection, PADeviceFact } from '../interactions/contracts';
1
+ import type { PAAccountData, PAAccountState, PAFeatureAuthority } from "../account/contracts";
2
+ import type { PAEffectHandlers, PAEffectResultEvent } from "../kernel/effects";
3
+ import type { PAQueryState, PARequestId } from "../kernel/state";
4
+ import type { PATransportedError } from "../protocol/errors";
5
+ import type { PAInteractionState, PAInteractionProjection } from "../interactions/contracts";
8
6
  export type PAFeaturePage = Readonly<{
9
7
  clientScopeId: string;
10
8
  origin: string;
11
9
  pageUrl: string;
12
10
  }>;
13
- export type PAContextStatus = Readonly<{
14
- origin?: string;
15
- latestRun?: Readonly<{
16
- id: string;
17
- status: string;
18
- createdAt: string;
19
- completedAt: string | null;
20
- error: string | null;
21
- }> | null;
22
- status: string;
23
- runId: string | null;
24
- updatedAt: string | null;
25
- hasContext: boolean | null;
26
- }>;
27
- export type PAProactiveEventMatcher = Readonly<{
28
- eventTypeRegex: string;
29
- urlRegex: string;
30
- targetRoleRegex?: string;
31
- targetNameRegex?: string;
32
- targetAncestorRegex?: string;
33
- }>;
34
- export type PAProactivePageMatcher = Readonly<{
35
- urlRegex: string;
36
- textRegex?: string;
37
- roleRegex?: string;
38
- nameRegex?: string;
39
- }>;
40
- export type PAProactiveSuggestion = Readonly<{
41
- id: string;
42
- suggestedQuery: string;
43
- condition: Readonly<{
44
- template: 'page_visit';
45
- urlRegex: string;
46
- }> | Readonly<{
47
- template: 'semantic_interaction';
48
- event: PAProactiveEventMatcher;
49
- }> | Readonly<{
50
- template: 'event_sequence';
51
- steps: readonly PAProactiveEventMatcher[];
52
- withinSeconds: number;
53
- }> | Readonly<{
54
- template: 'page_state_after_event';
55
- event: PAProactiveEventMatcher;
56
- state: PAProactivePageMatcher;
57
- withinSeconds: number;
58
- }>;
59
- }>;
60
11
  export type PAOriginAppearance = Readonly<{
61
12
  accent: string;
62
- colorScheme: 'light' | 'dark';
13
+ colorScheme: "light" | "dark";
63
14
  fontFamily: string;
64
15
  scribbleStyle: boolean;
65
16
  }>;
66
- export type PADeepFlowStep = Readonly<{
67
- index: number;
68
- kind: string;
69
- title: string;
70
- detail?: string | null;
71
- status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled';
72
- linkedSessionId?: string | null;
73
- linkedContextRefreshRunId?: string | null;
74
- }>;
75
- export type PADeepFlow = Readonly<{
76
- id: string;
77
- type: 'deep_exploration';
78
- origin: string;
79
- status: 'idle' | 'running' | 'succeeded' | 'failed' | 'cancelled';
80
- currentStepIndex: number;
81
- startedAt: string;
82
- completedAt?: string | null;
83
- error?: string | null;
84
- detail?: string | null;
85
- steps: readonly PADeepFlowStep[];
86
- }>;
87
17
  export type PAFeedbackContext = Readonly<{
88
18
  communityId: string | null;
89
19
  sessionId: string | null;
@@ -110,149 +40,39 @@ export type PAFeedbackContext = Readonly<{
110
40
  sdkPreviewOpen: boolean | null;
111
41
  }>;
112
42
  export type PAFeatureQuery = Readonly<{
113
- kind: 'preferences';
114
- refreshSecurity?: boolean;
115
- }> | Readonly<{
116
- kind: 'account' | 'preferencePrompts' | 'decisions' | 'userContext' | 'hostedEligibility' | 'userSuggestedTasks';
43
+ kind: "account";
117
44
  }> | (PAFeaturePage & Readonly<{
118
- kind: 'starterPrompts';
45
+ kind: "starterPrompts";
119
46
  includeUserSuggestions: boolean;
120
47
  }>) | (PAFeaturePage & Readonly<{
121
- kind: 'originContext';
122
- trigger?: 'auth' | 'page' | 'manual' | 'poll';
123
- }>) | (PAFeaturePage & Readonly<{
124
- kind: 'appearance';
125
- }>) | Readonly<{
126
- kind: 'contextRun';
127
- runId: string;
128
- }>;
48
+ kind: "appearance";
49
+ }>);
129
50
  export type PAFeatureResult = Readonly<{
130
- kind: 'account';
51
+ kind: "account";
131
52
  value: PAAccountData;
132
53
  }> | Readonly<{
133
- kind: 'preferences';
134
- value: PAFeaturePreferences;
135
- }> | Readonly<{
136
- kind: 'preferencePrompts';
137
- value: PAPreferencePrompts;
138
- }> | Readonly<{
139
- kind: 'preferencePrompt';
140
- feature: PAFeatureName;
141
- value: PAPreferencePrompt;
142
- }> | Readonly<{
143
- kind: 'decisions';
144
- decisions: readonly PAUserDecision[];
145
- }> | Readonly<{
146
- kind: 'decision';
147
- value: PAUserDecision;
148
- }> | Readonly<{
149
- kind: 'starterPrompts';
54
+ kind: "starterPrompts";
150
55
  origin: string;
151
56
  prompts: readonly string[];
152
57
  runtimeHelpersJavascript?: string | null;
153
58
  }> | Readonly<{
154
- kind: 'userSuggestedTasks';
155
- prompts: readonly string[];
156
- morningReportOpening: string | null;
157
- signupAt: string;
158
- proactiveSuggestions: readonly PAProactiveSuggestion[];
159
- }> | Readonly<{
160
- kind: 'originContext' | 'userContext' | 'contextRun';
161
- value: PAContextStatus;
162
- }> | Readonly<{
163
- kind: 'appearance';
59
+ kind: "appearance";
164
60
  origin: string;
165
61
  value: PAOriginAppearance | null;
166
- stored?: Readonly<{
167
- createdAt: string;
168
- updatedAt: string;
169
- metadata: import('../protocol/json').PAJsonValue;
170
- }>;
171
- }> | Readonly<{
172
- kind: 'hostedEligibility';
173
- eligible: boolean;
174
62
  }> | Readonly<{
175
- kind: 'ack';
63
+ kind: "ack";
176
64
  success: boolean;
177
65
  }>;
178
66
  export type PAFeatureMutation = Readonly<{
179
- kind: 'preference';
180
- feature: PAFeatureName;
181
- enabled: boolean;
182
- }> | Readonly<{
183
- kind: 'preferenceAcknowledge';
184
- feature: PAFeatureName;
185
- action: 'enable' | 'allow' | 'not_now' | 'dont_enable';
186
- expectedRevision: number;
187
- }> | Readonly<{
188
- kind: 'preferenceSnooze';
189
- feature: PAFeatureName;
190
- expectedRevision: number;
191
- }> | (Readonly<{
192
- kind: 'decision';
193
- }> & PAUserDecisionInput) | Readonly<{
194
- kind: 'feedback';
195
- message: string;
196
- context: PAFeedbackContext;
197
- }> | Readonly<{
198
- kind: 'proactiveFeedback';
199
- suggestionId: string;
200
- suggestedQuery: string;
201
- message: string;
202
- context: PAFeedbackContext;
203
- }> | Readonly<{
204
- kind: 'targetFeedback';
205
- targetId: string;
206
- rating: 'positive' | 'negative';
207
- comment?: string;
208
- }> | Readonly<{
209
- kind: 'report';
210
- sessionId: string | null;
67
+ kind: "feedback";
211
68
  message: string;
212
69
  context: PAFeedbackContext;
213
- uiEvidence: readonly UiFlightEvidence[];
214
- widgetEvidenceAvailable: boolean;
215
70
  }> | Readonly<{
216
- kind: 'generatePrompts';
71
+ kind: "generatePrompts";
217
72
  page: PAFeaturePage;
218
73
  includeUserSuggestions?: boolean;
219
74
  htmlContent: string;
220
75
  pageTitle: string;
221
- }> | Readonly<{
222
- kind: 'refreshContext';
223
- origin: string;
224
- communityId: string | null;
225
- }> | Readonly<{
226
- kind: 'refreshUserContext';
227
- communityId: string | null;
228
- }> | Readonly<{
229
- kind: 'stopContext';
230
- runId: string;
231
- }> | Readonly<{
232
- kind: 'sampleStyle';
233
- origin: string;
234
- page: PAFeaturePage;
235
- }> | Readonly<{
236
- kind: 'saveStyle';
237
- origin: string;
238
- value: PAOriginAppearance;
239
- }> | Readonly<{
240
- kind: 'deleteStyle';
241
- origin: string;
242
- }> | Readonly<{
243
- kind: 'scribble';
244
- origin: string;
245
- enabled: boolean;
246
- }> | Readonly<{
247
- kind: 'scribblePreference';
248
- enabled: boolean;
249
- }> | Readonly<{
250
- kind: 'personalInstructions';
251
- value: string;
252
- }> | Readonly<{
253
- kind: 'blockedOrigins';
254
- origins: readonly string[];
255
- expectedSecurityVersion: number;
256
76
  }>;
257
77
  export type PAFeaturePending = Readonly<{
258
78
  requestId: string;
@@ -262,51 +82,20 @@ export type PAFeaturePending = Readonly<{
262
82
  generation: number;
263
83
  startedAt?: number;
264
84
  operation: PAFeatureQuery | PAFeatureMutation;
265
- mode: 'query' | 'mutation';
85
+ mode: "query" | "mutation";
266
86
  result: PAFeatureResult | null;
267
- status: 'queued' | 'pending' | 'done' | 'error';
87
+ status: "queued" | "pending" | "done" | "error";
268
88
  error: PATransportedError | null;
269
89
  }>;
270
90
  export type PAFeatureState = Readonly<{
271
91
  localScribbleStyle: boolean | null;
272
- appearanceEpochs: Readonly<Record<string, number>>;
273
- appearanceQueries: Readonly<Record<string, PAFeaturePage & Readonly<{
274
- kind: 'appearance';
275
- }>>>;
276
- originContextQueries: Readonly<Record<string, PAFeaturePage>>;
277
- contextObservers: Readonly<Record<string, string>>;
278
- suggestionReadFailures: number;
279
- suggestionRetryAfter: number | null;
280
- contextReads: Readonly<Record<string, Readonly<{
281
- settledAt: number;
282
- failures: number;
283
- }>>>;
284
- contextRunOrigins: Readonly<Record<string, string>>;
285
- polls: Readonly<Record<string, Readonly<{
286
- query: PAFeatureQuery;
287
- deadline: number;
288
- }>>>;
289
92
  queries: Readonly<Record<string, PAQueryState<string, PAFeatureResult>>>;
290
93
  pending: Readonly<Record<string, PAFeaturePending>>;
291
- queuedPreferences: Readonly<Partial<Record<PAFeatureName, Readonly<{
292
- requestId: string;
293
- enabled: boolean;
294
- }>>>>;
295
- desiredPreferences: Readonly<Partial<Record<PAFeatureName, boolean>>>;
296
- refreshBatch: Readonly<{
297
- pending: readonly string[];
298
- failed: boolean;
299
- }> | null;
300
- refreshAt: number | null;
301
- failures: number;
302
94
  now: number;
303
95
  timerId: string | null;
304
96
  timerDeadline: number | null;
305
97
  timerRevision: number;
306
- refreshQueuedRequestId: string | null;
307
- refreshRequired: boolean;
308
98
  schedulerError: PATransportedError | null;
309
- deepFlows: Readonly<Record<string, PADeepFlow>>;
310
99
  }>;
311
100
  export type PAStage7Slices = Readonly<{
312
101
  account: PAAccountState;
@@ -318,134 +107,57 @@ type Scope = Readonly<{
318
107
  now: number;
319
108
  }>;
320
109
  export type PAStage7Command = (Scope & Readonly<{
321
- type: 'stage7.initialize' | 'stage7.retire';
110
+ type: "stage7.initialize" | "stage7.retire";
322
111
  }>) | (Scope & Readonly<{
323
- type: 'stage7.account_refusal';
112
+ type: "stage7.account_refusal";
324
113
  code: string;
325
114
  }>) | (Scope & Readonly<{
326
- type: 'stage7.account_fallback';
327
- sessionId: string;
328
- enabled: boolean;
329
- }>) | (Scope & Readonly<{
330
- type: 'stage7.query';
115
+ type: "stage7.query";
331
116
  requestId: string;
332
117
  query: PAFeatureQuery;
333
118
  force?: boolean;
334
119
  }>) | (Scope & Readonly<{
335
- type: 'stage7.context_observe';
336
- clientScopeId: string;
337
- origin: string | null;
338
- }>) | (Scope & Readonly<{
339
- type: 'stage7.mutate';
120
+ type: "stage7.mutate";
340
121
  requestId: string;
341
122
  mutation: PAFeatureMutation;
342
123
  }>) | (Scope & Readonly<{
343
- type: 'stage7.retry';
124
+ type: "stage7.retry";
344
125
  requestId: string;
345
126
  }>) | (Scope & Readonly<{
346
- type: 'stage7.reconcile';
127
+ type: "stage7.reconcile";
347
128
  requestId: string;
348
- reason: 'startup' | 'wake' | 'reconnect' | 'settings' | 'periodic';
129
+ reason: "startup" | "wake" | "reconnect" | "settings" | "periodic";
349
130
  }>) | (Scope & Readonly<{
350
- type: 'stage7.observe_work';
351
- }>) | (Scope & Readonly<{
352
- type: 'stage7.local_style';
131
+ type: "stage7.local_style";
353
132
  enabled: boolean | null;
354
133
  }>) | (Scope & Readonly<{
355
- type: 'stage7.restore_prompt_openings';
356
- checkpoint: Pick<PAInteractionState, 'openings' | 'openingGeneration' | 'closedScopes' | 'crossTabTurns' | 'promptActions'>;
357
- }>) | (Scope & Readonly<{
358
- type: 'stage7.prompt_view';
134
+ type: "stage7.act";
359
135
  clientScopeId: string;
360
- open: boolean;
361
- }>) | (Scope & Readonly<{
362
- type: 'stage7.prompt_shown';
363
- clientScopeId: string;
364
- feature: PAFeatureName;
365
- openingGeneration: number;
366
- }>) | (Scope & Readonly<{
367
- type: 'stage7.bridge_ready';
368
- ready: boolean;
369
- error?: string | null;
370
- }>) | (Scope & Readonly<{
371
- type: 'stage7.cross_tab';
372
- sessionId: string;
373
- userMessageId: string;
374
- }>) | (Scope & Readonly<{
375
- type: 'stage7.permission';
376
136
  requestId: string;
377
- feature: PAFeatureName;
378
- action: 'allow' | 'not_now';
379
- settings: boolean;
380
- }>) | (Scope & Readonly<{
381
- type: 'stage7.device_fact';
382
- feature: PAFeatureName;
383
- fact: PADeviceFact;
384
- }>) | (Scope & Readonly<{
385
- type: 'stage7.act';
386
- requestedModel?: PAProductAgentModel;
387
- requestId: string;
388
- clientScopeId: string;
389
137
  interactionId: string;
390
- action: 'copy' | 'share' | 'dismiss' | 'connect' | 'pair' | 'run' | 'edit' | 'feedback' | 'not_now' | 'never' | 'snooze' | 'enable' | 'dont_enable' | 'allow';
138
+ action: "connect";
391
139
  expectedRevision: number;
392
- sourceVersion: number | null;
393
- origin?: string | null;
394
- feedback?: Readonly<{
395
- message: string;
396
- context: PAFeedbackContext;
397
- }>;
398
- taskIndex?: number;
399
- sharePlatform?: 'linkedin' | 'x' | 'instagram';
140
+ sourceVersion?: number | null;
400
141
  }>) | (Scope & Readonly<{
401
- type: 'stage7.retry_action';
142
+ type: "stage7.retry_action";
402
143
  requestId: string;
403
144
  }>) | (Scope & Readonly<{
404
- type: 'stage7.import_legacy_decisions';
405
- decisions: readonly PAUserDecision[];
406
- }>) | (Scope & Readonly<{
407
- type: 'stage7.device_hints';
408
- hints: Readonly<Record<string, boolean>>;
409
- }>) | (Scope & Readonly<{
410
- type: 'stage7.local_sharing';
411
- decisions: PAInteractionState['localSharing'];
412
- }>) | (Scope & Readonly<{
413
- type: 'stage7.sources';
414
- sources: readonly import('../conversation/display').PAConversationInteractionSource[];
415
- }>) | (Scope & Readonly<{
416
- type: 'stage7.welcome';
417
- card: PAInteractionState['welcome'][string] & Readonly<{
418
- category: 'proactive_suggestion';
419
- }>;
420
- }>) | (Scope & Readonly<{
421
- type: 'stage7.morning';
422
- retained?: boolean;
423
- id: string;
424
- text: string | null;
425
- tasks: readonly string[];
426
- signupAgeDays: number;
427
- localHour: number;
428
- localDate: string;
429
- lastShownDate: string | null;
430
- }>) | (Scope & Readonly<{
431
- type: 'stage7.deep_flow';
432
- clientScopeId: string;
433
- expectedId: string | null;
434
- flow: PADeepFlow | null;
145
+ type: "stage7.sources";
146
+ sources: readonly import("../conversation/display").PAConversationInteractionSource[];
435
147
  }>);
436
148
  export type PAStage7Effects = {
437
- 'stage7.platform': {
149
+ "stage7.platform": {
438
150
  input: Readonly<{
439
151
  authority: PAFeatureAuthority;
440
152
  requestId: string;
441
- operation: import('../interactions/contracts').PAInteractionPlatformOperation;
153
+ operation: import("../interactions/contracts").PAInteractionPlatformOperation;
442
154
  }>;
443
155
  output: Readonly<{
444
156
  revision: number;
445
157
  completedAt: number;
446
158
  }>;
447
159
  };
448
- 'stage7.query': {
160
+ "stage7.query": {
449
161
  input: Readonly<{
450
162
  authority: PAFeatureAuthority;
451
163
  requestId: string;
@@ -456,7 +168,7 @@ export type PAStage7Effects = {
456
168
  completedAt: number;
457
169
  }>;
458
170
  };
459
- 'stage7.mutate': {
171
+ "stage7.mutate": {
460
172
  input: Readonly<{
461
173
  authority: PAFeatureAuthority;
462
174
  requestId: string;
@@ -467,20 +179,7 @@ export type PAStage7Effects = {
467
179
  completedAt: number;
468
180
  }>;
469
181
  };
470
- 'stage7.device': {
471
- input: Readonly<{
472
- authority: PAFeatureAuthority;
473
- requestId: string;
474
- feature: PAFeatureName;
475
- action: 'check' | 'allow' | 'not_now';
476
- now: number;
477
- }>;
478
- output: Readonly<{
479
- fact: PADeviceFact;
480
- completedAt: number;
481
- }>;
482
- };
483
- 'stage7.wait': {
182
+ "stage7.wait": {
484
183
  input: Readonly<{
485
184
  authority: PAFeatureAuthority;
486
185
  deadline: number;
@@ -1,11 +1,9 @@
1
- import type { PAConversationState } from '../conversation/contracts';
2
- import type { PADirectoryState } from '../session-directory/contracts';
3
- import type { PAEffect } from '../kernel/effects';
4
- import type { PAFeatureName } from '../interactions/contracts';
5
- import { type PAFeatureQuery, type PAFeatureMutation, type PAStage7Slices, type PAStage7Input, type PAStage7Effects } from './contracts';
6
- import type { PAFeatureAuthority } from '../account/contracts';
1
+ import type { PAConversationState } from "../conversation/contracts";
2
+ import type { PADirectoryState } from "../session-directory/contracts";
3
+ import type { PAEffect } from "../kernel/effects";
4
+ import type { PAFeatureAuthority } from "../account/contracts";
5
+ import { type PAFeatureQuery, type PAFeatureMutation, type PAStage7Slices, type PAStage7Input, type PAStage7Effects } from "./contracts";
7
6
  export declare function featureQueryKey(authority: PAFeatureAuthority, query: PAFeatureQuery): string;
8
- export declare function featurePreference(state: PAStage7Slices, feature: PAFeatureName): boolean | null;
9
7
  export declare function assertFeatureOperation(authority: PAFeatureAuthority, operation: PAFeatureQuery | PAFeatureMutation): void;
10
8
  export declare function reduceStage7(initial: PAStage7Slices, input: PAStage7Input, context: Readonly<{
11
9
  conversation: PAConversationState;
@@ -1,4 +1,4 @@
1
- import type { PAFeatureQuery, PAStage7Slices } from './contracts';
1
+ import type { PAFeatureQuery, PAStage7Slices } from "./contracts";
2
2
  export declare function selectFeatureQuery(state: PAStage7Slices, query: PAFeatureQuery): Readonly<{
3
3
  key: string;
4
4
  status: import("..").PAQueryStatus;
@@ -1,2 +1,2 @@
1
- import type { PAFeatureState } from './contracts';
1
+ import type { PAFeatureState } from "./contracts";
2
2
  export declare function createFeatureState(now?: number): PAFeatureState;
@@ -25,12 +25,10 @@ export * from "./session-directory/selectors";
25
25
  export * from "./session-directory/membership";
26
26
  export * from './account/contracts';
27
27
  export * from './account/state';
28
- export * from './account/reducer';
29
28
  export * from './account/selectors';
30
29
  export * from './features/contracts';
31
30
  export * from './features/state';
32
31
  export * from './features/reducer';
33
32
  export * from './features/selectors';
34
33
  export * from './interactions/state';
35
- export * from './interactions/reducer';
36
34
  export * from './interactions/selectors';
@@ -1,11 +1,11 @@
1
- import type { PAStage7Slices, PAStage7Command, PAStage7Effects } from '../features/contracts';
2
- import type { PAConversationState } from '../conversation/contracts';
3
- import type { PADirectoryState } from '../session-directory/contracts';
4
- import type { PAEffect, PAEffectResultEvent } from '../kernel/effects';
1
+ import type { PAStage7Slices, PAStage7Command, PAStage7Effects } from "../features/contracts";
2
+ import type { PAConversationState } from "../conversation/contracts";
3
+ import type { PADirectoryState } from "../session-directory/contracts";
4
+ import type { PAEffect, PAEffectResultEvent } from "../kernel/effects";
5
5
  export type PAInteractionActionEvent = Extract<PAStage7Command, {
6
- type: 'stage7.act' | 'stage7.retry_action';
7
- }> | PAEffectResultEvent<Pick<PAStage7Effects, 'stage7.platform'>>;
8
- export declare function reduceInteractionAction(initial: PAStage7Slices, input: PAInteractionActionEvent, conversation: PAConversationState, directory: PADirectoryState): {
6
+ type: "stage7.act" | "stage7.retry_action";
7
+ }> | PAEffectResultEvent<Pick<PAStage7Effects, "stage7.platform">>;
8
+ export declare function reduceInteractionAction(state: PAStage7Slices, input: PAInteractionActionEvent, conversation: PAConversationState, directory: PADirectoryState): {
9
9
  state: PAStage7Slices;
10
10
  effects: readonly PAEffect<PAStage7Effects>[];
11
11
  command: PAStage7Command | null;