@mariozechner/pi-coding-agent 0.37.0 → 0.37.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.
package/CHANGELOG.md
CHANGED
|
@@ -793,13 +793,25 @@
|
|
|
793
793
|
* URL format: base?gistId&leafId=<leafId>&targetId=<entryId>
|
|
794
794
|
*/
|
|
795
795
|
function buildShareUrl(entryId) {
|
|
796
|
+
// Check for injected base URL (used when loaded in iframe via srcdoc)
|
|
797
|
+
const baseUrlMeta = document.querySelector('meta[name="pi-share-base-url"]');
|
|
798
|
+
const baseUrl = baseUrlMeta ? baseUrlMeta.content : window.location.href.split('?')[0];
|
|
799
|
+
|
|
796
800
|
const url = new URL(window.location.href);
|
|
797
801
|
// Find the gist ID (first query param without value, e.g., ?abc123)
|
|
798
802
|
const gistId = Array.from(url.searchParams.keys()).find(k => !url.searchParams.get(k));
|
|
799
|
-
|
|
803
|
+
|
|
804
|
+
// Build the share URL
|
|
800
805
|
const params = new URLSearchParams();
|
|
801
806
|
params.set('leafId', currentLeafId);
|
|
802
807
|
params.set('targetId', entryId);
|
|
808
|
+
|
|
809
|
+
// If we have an injected base URL (iframe context), use it directly
|
|
810
|
+
if (baseUrlMeta) {
|
|
811
|
+
return `${baseUrl}&${params.toString()}`;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// Otherwise build from current location (direct file access)
|
|
803
815
|
url.search = gistId ? `?${gistId}&${params.toString()}` : `?${params.toString()}`;
|
|
804
816
|
return url.toString();
|
|
805
817
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.1",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mariozechner/pi-coding-agent",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"piConfig": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@crosscopy/clipboard": "^0.2.8",
|
|
42
|
-
"@mariozechner/pi-agent-core": "^0.37.
|
|
43
|
-
"@mariozechner/pi-ai": "^0.37.
|
|
44
|
-
"@mariozechner/pi-tui": "^0.37.
|
|
42
|
+
"@mariozechner/pi-agent-core": "^0.37.1",
|
|
43
|
+
"@mariozechner/pi-ai": "^0.37.1",
|
|
44
|
+
"@mariozechner/pi-tui": "^0.37.1",
|
|
45
45
|
"chalk": "^5.5.0",
|
|
46
46
|
"cli-highlight": "^2.1.11",
|
|
47
47
|
"diff": "^8.0.2",
|