pi-sage 0.2.0 → 0.2.1

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.
@@ -45,7 +45,8 @@ const SAGE_GUIDANCE = [
45
45
  "Do not overuse Sage for routine edits.",
46
46
  "Sage is advisory-only: treat output as recommendations and implement changes yourself.",
47
47
  "Use one focused Sage question per consultation.",
48
- "If user explicitly requests Sage/second opinion, prefer at least one Sage consultation unless blocked by hard safety limits."
48
+ "If user explicitly requests Sage/second opinion, prefer at least one Sage consultation unless blocked by hard safety limits.",
49
+ "For `sage_consult` params: `objective` is optional and must be one of debug|design|review|refactor|general (omit if unsure); `urgency` is optional and must be low|medium|high."
49
50
  ].join("\n- ");
50
51
 
51
52
  export default function registerSageExtension(pi: ExtensionAPI): void {
@@ -99,6 +100,8 @@ export default function registerSageExtension(pi: ExtensionAPI): void {
99
100
  promptGuidelines: [
100
101
  "Use Sage for high-impact ambiguous tasks or explicit second-opinion requests.",
101
102
  "Set force=true when the user explicitly asks for Sage to bypass soft limits.",
103
+ "`objective` is optional: debug|design|review|refactor|general. Omit instead of free text.",
104
+ "`urgency` is optional: low|medium|high.",
102
105
  "After Sage returns, synthesize recommendations and continue execution."
103
106
  ],
104
107
  parameters: Type.Object({
@@ -107,16 +110,21 @@ export default function registerSageExtension(pi: ExtensionAPI): void {
107
110
  files: Type.Optional(Type.Array(Type.String(), { description: "Relevant file paths" })),
108
111
  evidence: Type.Optional(Type.Array(Type.String(), { description: "Logs, errors, or observations" })),
109
112
  objective: Type.Optional(
110
- Type.Union([
111
- Type.Literal("debug"),
112
- Type.Literal("design"),
113
- Type.Literal("review"),
114
- Type.Literal("refactor"),
115
- Type.Literal("general")
116
- ])
113
+ Type.Union(
114
+ [
115
+ Type.Literal("debug"),
116
+ Type.Literal("design"),
117
+ Type.Literal("review"),
118
+ Type.Literal("refactor"),
119
+ Type.Literal("general")
120
+ ],
121
+ { description: "Optional objective: debug | design | review | refactor | general" }
122
+ )
117
123
  ),
118
124
  urgency: Type.Optional(
119
- Type.Union([Type.Literal("low"), Type.Literal("medium"), Type.Literal("high")])
125
+ Type.Union([Type.Literal("low"), Type.Literal("medium"), Type.Literal("high")], {
126
+ description: "Optional urgency: low | medium | high"
127
+ })
120
128
  ),
121
129
  force: Type.Optional(
122
130
  Type.Boolean({ description: "Bypass soft limits for explicit user-requested consultations" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sage",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Interactive-only advisory Sage extension for Pi",