pi-sessions 0.7.1 → 0.7.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.
|
@@ -39,9 +39,8 @@ export default function sessionAskExtension(pi: ExtensionAPI): void {
|
|
|
39
39
|
name: "session_ask",
|
|
40
40
|
label: "Session Ask",
|
|
41
41
|
description: "Interrogate a Pi session",
|
|
42
|
-
promptSnippet:
|
|
43
|
-
|
|
44
|
-
promptGuidelines: ["Prefer focused follow-up questions over broad recap requests"],
|
|
42
|
+
promptSnippet: "Recall information, decisions, or reasoning from a Pi session by id",
|
|
43
|
+
promptGuidelines: ["Use session_ask with focused questions rather than broad recap requests."],
|
|
45
44
|
parameters: Type.Object({
|
|
46
45
|
session: Type.String({
|
|
47
46
|
description: "Bare UUID for the session",
|
|
@@ -87,16 +87,15 @@ export default function sessionHandoffExtension(pi: ExtensionAPI): void {
|
|
|
87
87
|
"Start a background pi session in a terminal split based on the current session",
|
|
88
88
|
promptGuidelines: [
|
|
89
89
|
"Use session_handoff only when it is clear the work should be forked to a new context.",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"Only capable of a background handoff; to replace the current session, tell the user to run /handoff instead.",
|
|
90
|
+
"Reach for session_handoff by direction of the user, not as an unsolicited default.",
|
|
91
|
+
"session_handoff should only request a response when there is a specific ask-and-response expectation: the user asked for a report back, or this session needs the child result to continue. Leave it off by default and for independent background work.",
|
|
92
|
+
"session_handoff can only fork a background session; to replace the current session, tell the user to run /handoff instead.",
|
|
94
93
|
],
|
|
95
94
|
executionMode: "sequential",
|
|
96
95
|
parameters: Type.Object({
|
|
97
96
|
goal: Type.String({
|
|
98
97
|
description:
|
|
99
|
-
"Goal for the new session
|
|
98
|
+
"Goal for the new session. Capture enough detail to encompass the ask and any directions the next session should consider.",
|
|
100
99
|
}),
|
|
101
100
|
splitDirection: Type.Union(
|
|
102
101
|
[Type.Literal("left"), Type.Literal("right"), Type.Literal("up"), Type.Literal("down")],
|
|
@@ -14,7 +14,7 @@ export function registerSessionMessagingTools(
|
|
|
14
14
|
description: "Send a message to another live pi session",
|
|
15
15
|
promptSnippet: "Send a message to another live pi session",
|
|
16
16
|
promptGuidelines: [
|
|
17
|
-
"
|
|
17
|
+
"Before session_send_message, use session_search with live: true (no other filters) to list all live sessions and find the target.",
|
|
18
18
|
],
|
|
19
19
|
parameters: SEND_MESSAGE_PARAMS,
|
|
20
20
|
renderCall(args, theme, context) {
|
|
@@ -64,10 +64,10 @@ export default function sessionSearchExtension(
|
|
|
64
64
|
name: "session_search",
|
|
65
65
|
label: "Session Search",
|
|
66
66
|
description: "Search Pi sessions",
|
|
67
|
-
promptSnippet: "
|
|
67
|
+
promptSnippet: "Locate Pi sessions for follow-up",
|
|
68
68
|
promptGuidelines: [
|
|
69
|
-
"Omit
|
|
70
|
-
"
|
|
69
|
+
"Omit queries in session_search to list matching sessions chronologically.",
|
|
70
|
+
"After session_search finds a session id, switch to session_ask for questions about it.",
|
|
71
71
|
],
|
|
72
72
|
parameters: Type.Object({
|
|
73
73
|
query: Type.Optional(
|