@prettier-ai/dsh-client-ui-goal 0.1.2-alpha.1 → 0.1.2-alpha.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.
- package/lib/client.js +1 -2
- package/lib/types/client/slots.d.ts +13 -2
- package/package.json +18 -30
package/lib/client.js
CHANGED
|
@@ -403,8 +403,7 @@ window.__ModuleLoader__.load({
|
|
|
403
403
|
ok: false,
|
|
404
404
|
error: {
|
|
405
405
|
code: "no-current-goal",
|
|
406
|
-
message: "no current goal to mutate"
|
|
407
|
-
details: {}
|
|
406
|
+
message: "no current goal to mutate"
|
|
408
407
|
}
|
|
409
408
|
};
|
|
410
409
|
ctx.slots.inject("conversation.input.dock", () => ctx.slots.register({
|
|
@@ -6,13 +6,24 @@
|
|
|
6
6
|
* (the framework standard kit); inject carries only the mutation verbs
|
|
7
7
|
* (callbacks from inject, live state from useProjection).
|
|
8
8
|
*/
|
|
9
|
-
import type { RemoteResult } from '@prettier-ai/dsh-
|
|
9
|
+
import type { RemoteResult } from '@prettier-ai/dsh-api-remotes/client';
|
|
10
|
+
/**
|
|
11
|
+
* The one failure the strip reports without a wire call: the session projects
|
|
12
|
+
* no goal, so no CAS ref exists to address a mutation to.
|
|
13
|
+
*/
|
|
14
|
+
export interface GoalLocalFailure {
|
|
15
|
+
readonly ok: false;
|
|
16
|
+
readonly error: {
|
|
17
|
+
readonly code: 'no-current-goal';
|
|
18
|
+
readonly message: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
10
21
|
/**
|
|
11
22
|
* Settled outcome of one goal mutation, rendered inline by the strip. The
|
|
12
23
|
* strip renders the failure only — the mutated goal arrives through the
|
|
13
24
|
* projection — so the success value stays unread here.
|
|
14
25
|
*/
|
|
15
|
-
export type GoalActionResult = RemoteResult<unknown
|
|
26
|
+
export type GoalActionResult = RemoteResult<unknown> | GoalLocalFailure;
|
|
16
27
|
/** Injected business face of the GoalBar dock entry: the mutation verbs (function properties: the strip destructures them freely). */
|
|
17
28
|
export interface GoalBarActions {
|
|
18
29
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prettier-ai/dsh-client-ui-goal",
|
|
3
3
|
"description": "Session goal surface: GoalBar docked above the composer, read from the goal session projection",
|
|
4
|
-
"version": "0.1.2-alpha.
|
|
4
|
+
"version": "0.1.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -45,41 +45,29 @@
|
|
|
45
45
|
},
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@prettier-ai/
|
|
49
|
-
"@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.1",
|
|
50
|
-
"@prettier-ai/dsh-client-ui-chat": "^0.1.2-alpha.1",
|
|
51
|
-
"@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.1",
|
|
52
|
-
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.1",
|
|
53
|
-
"@prettier-ai/dsh-client-locale": "^0.1.2-alpha.1",
|
|
54
|
-
"@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.1",
|
|
55
|
-
"@prettier-ai/dsh-goal": "^0.1.2-alpha.1",
|
|
56
|
-
"@prettier-ai/dsh-session": "^0.1.2-alpha.1",
|
|
57
|
-
"@prettier-ai/dsh-commands": "^0.1.2-alpha.1",
|
|
58
|
-
"@prettier-ai/dsh-typert-protocol": "^0.1.2-alpha.1",
|
|
59
|
-
"@prettier-ai/dsh-invariants": "^0.1.2-alpha.1",
|
|
60
|
-
"@prettier-ai/cordis": "^4.0.1"
|
|
48
|
+
"@prettier-ai/cordis": "^4.0.2"
|
|
61
49
|
},
|
|
62
50
|
"devDependencies": {
|
|
63
51
|
"@testing-library/react": "^16.1.0",
|
|
64
52
|
"@types/react": "~18.3.1",
|
|
65
53
|
"react": "^18.2.0",
|
|
66
54
|
"react-dom": "^18.2.0",
|
|
67
|
-
"@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.
|
|
68
|
-
"@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.
|
|
69
|
-
"@prettier-ai/dsh-client-locale": "^0.1.2-alpha.
|
|
70
|
-
"@prettier-ai/dsh-client-
|
|
71
|
-
"@prettier-ai/dsh-client-
|
|
72
|
-
"@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.
|
|
73
|
-
"@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.
|
|
74
|
-
"@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.
|
|
75
|
-
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.
|
|
76
|
-
"@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.
|
|
77
|
-
"@prettier-ai/dsh-
|
|
78
|
-
"@prettier-ai/
|
|
79
|
-
"@prettier-ai/dsh-
|
|
80
|
-
"@prettier-ai/
|
|
81
|
-
"@prettier-ai/dsh-session": "^0.1.2-alpha.
|
|
82
|
-
"@prettier-ai/dsh-typert-protocol": "^0.1.2-alpha.
|
|
55
|
+
"@prettier-ai/dsh-api-remotes": "^0.1.2-alpha.2",
|
|
56
|
+
"@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.2",
|
|
57
|
+
"@prettier-ai/dsh-client-locale": "^0.1.2-alpha.2",
|
|
58
|
+
"@prettier-ai/dsh-client-ui-chat": "^0.1.2-alpha.2",
|
|
59
|
+
"@prettier-ai/dsh-client-test-runtime": "^0.1.2-alpha.2",
|
|
60
|
+
"@prettier-ai/dsh-client-ui-conversation": "^0.1.2-alpha.2",
|
|
61
|
+
"@prettier-ai/dsh-client-ui-primitives": "^0.1.2-alpha.2",
|
|
62
|
+
"@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.2",
|
|
63
|
+
"@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2",
|
|
64
|
+
"@prettier-ai/dsh-client-ui-session": "^0.1.2-alpha.2",
|
|
65
|
+
"@prettier-ai/dsh-commands": "^0.1.2-alpha.2",
|
|
66
|
+
"@prettier-ai/dsh-goal": "^0.1.2-alpha.2",
|
|
67
|
+
"@prettier-ai/dsh-invariants": "^0.1.2-alpha.2",
|
|
68
|
+
"@prettier-ai/cordis": "^4.0.2",
|
|
69
|
+
"@prettier-ai/dsh-session": "^0.1.2-alpha.2",
|
|
70
|
+
"@prettier-ai/dsh-typert-protocol": "^0.1.2-alpha.2"
|
|
83
71
|
},
|
|
84
72
|
"files": [
|
|
85
73
|
"lib/index.js",
|