@maintainer-pro/ai-cli 0.1.14 → 0.1.15
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/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -173,9 +173,11 @@ function formatClientContext(context) {
|
|
|
173
173
|
"The user currently has this page open. Prefer changing this screen unless they clearly mean another."
|
|
174
174
|
];
|
|
175
175
|
if (context.pageUrl) {
|
|
176
|
-
lines.push(`-
|
|
176
|
+
lines.push(`- Opened page (browser URL): ${context.pageUrl}`);
|
|
177
|
+
}
|
|
178
|
+
if (context.route) {
|
|
179
|
+
lines.push(`- Route: ${context.route}`);
|
|
177
180
|
}
|
|
178
|
-
lines.push(`- Route: ${context.route}`);
|
|
179
181
|
lines.push(`- Page title: ${context.pageTitle}`);
|
|
180
182
|
if (context.visiblePanels?.length) {
|
|
181
183
|
lines.push(`- Visible panels: ${context.visiblePanels.join(", ")}`);
|
package/dist/index.js
CHANGED
|
@@ -53,9 +53,11 @@ function formatClientContext(context) {
|
|
|
53
53
|
"The user currently has this page open. Prefer changing this screen unless they clearly mean another."
|
|
54
54
|
];
|
|
55
55
|
if (context.pageUrl) {
|
|
56
|
-
lines.push(`-
|
|
56
|
+
lines.push(`- Opened page (browser URL): ${context.pageUrl}`);
|
|
57
|
+
}
|
|
58
|
+
if (context.route) {
|
|
59
|
+
lines.push(`- Route: ${context.route}`);
|
|
57
60
|
}
|
|
58
|
-
lines.push(`- Route: ${context.route}`);
|
|
59
61
|
lines.push(`- Page title: ${context.pageTitle}`);
|
|
60
62
|
if (context.visiblePanels?.length) {
|
|
61
63
|
lines.push(`- Visible panels: ${context.visiblePanels.join(", ")}`);
|