pi-cursor-sdk 0.1.1 → 0.1.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/CHANGELOG.md +7 -0
- package/package.json +28 -8
- package/src/context-window-cache.ts +1 -1
- package/src/context.ts +1 -1
- package/src/cursor-provider.ts +1 -1
- package/src/cursor-state.ts +2 -2
- package/src/index.ts +1 -1
- package/src/model-discovery.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 - 2026-05-07
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Migrated the local pi development baseline and peer metadata from deprecated `@mariozechner/*` packages to maintained `@earendil-works/*` `0.74.0`.
|
|
8
|
+
- Regenerated the npm lockfile against the current stable dependency graph and cleared moderate audit findings with current transitive overrides.
|
|
9
|
+
|
|
3
10
|
## 0.1.1 - 2026-05-05
|
|
4
11
|
|
|
5
12
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-cursor-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "pi provider extension backed by @cursor/sdk local agents",
|
|
5
5
|
"author": "Mitch Fultz (https://github.com/fitchmultz)",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"pi-package",
|
|
9
|
+
"pi",
|
|
10
|
+
"pi-extension",
|
|
11
|
+
"cursor",
|
|
12
|
+
"cursor-sdk",
|
|
13
|
+
"ai",
|
|
14
|
+
"extension"
|
|
15
|
+
],
|
|
8
16
|
"repository": {
|
|
9
17
|
"type": "git",
|
|
10
18
|
"url": "git+https://github.com/fitchmultz/pi-cursor-sdk.git"
|
|
@@ -13,7 +21,13 @@
|
|
|
13
21
|
"url": "https://github.com/fitchmultz/pi-cursor-sdk/issues"
|
|
14
22
|
},
|
|
15
23
|
"homepage": "https://github.com/fitchmultz/pi-cursor-sdk#readme",
|
|
16
|
-
"files": [
|
|
24
|
+
"files": [
|
|
25
|
+
"src",
|
|
26
|
+
"README.md",
|
|
27
|
+
"docs/cursor-model-ux-spec.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"CHANGELOG.md"
|
|
30
|
+
],
|
|
17
31
|
"type": "module",
|
|
18
32
|
"engines": {
|
|
19
33
|
"node": ">=18"
|
|
@@ -27,16 +41,22 @@
|
|
|
27
41
|
"@cursor/sdk": "^1.0.12"
|
|
28
42
|
},
|
|
29
43
|
"peerDependencies": {
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
44
|
+
"@earendil-works/pi-ai": "*",
|
|
45
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
32
46
|
},
|
|
33
47
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
48
|
+
"@earendil-works/pi-ai": "^0.74.0",
|
|
49
|
+
"@earendil-works/pi-coding-agent": "^0.74.0",
|
|
36
50
|
"typescript": "^6.0.3",
|
|
37
51
|
"vitest": "^4.1.5"
|
|
38
52
|
},
|
|
39
53
|
"pi": {
|
|
40
|
-
"extensions": [
|
|
54
|
+
"extensions": [
|
|
55
|
+
"./src/index.ts"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"overrides": {
|
|
59
|
+
"undici": "7.25.0",
|
|
60
|
+
"sqlite3": "6.0.1"
|
|
41
61
|
}
|
|
42
62
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import { getAgentDir } from "@
|
|
3
|
+
import { getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import { BUNDLED_CONTEXT_WINDOWS } from "./bundled-context-windows.js";
|
|
5
5
|
|
|
6
6
|
const CONTEXT_WINDOW_CACHE_FILE = "cursor-sdk-context-windows.json";
|
package/src/context.ts
CHANGED
package/src/cursor-provider.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type Model,
|
|
7
7
|
type SimpleStreamOptions,
|
|
8
8
|
type AssistantMessage,
|
|
9
|
-
} from "@
|
|
9
|
+
} from "@earendil-works/pi-ai";
|
|
10
10
|
import { Agent, createAgentPlatform } from "@cursor/sdk";
|
|
11
11
|
import type { InteractionUpdate, SDKAgent } from "@cursor/sdk";
|
|
12
12
|
import { buildCursorPrompt } from "./context.js";
|
package/src/cursor-state.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import type { ExtensionAPI, ExtensionContext } from "@
|
|
4
|
-
import { getAgentDir } from "@
|
|
3
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
4
|
+
import { getAgentDir } from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import { getCursorModelMetadata } from "./model-discovery.js";
|
|
6
6
|
|
|
7
7
|
const CURSOR_PROVIDER = "cursor";
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@
|
|
1
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { discoverModels, type CursorModelFallbackIssue } from "./model-discovery.js";
|
|
3
3
|
import { registerCursorFastControls } from "./cursor-state.js";
|
|
4
4
|
import { streamCursor } from "./cursor-provider.js";
|
package/src/model-discovery.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
ModelParameterValue,
|
|
6
6
|
ModelSelection,
|
|
7
7
|
} from "@cursor/sdk";
|
|
8
|
-
import type { ProviderModelConfig } from "@
|
|
9
|
-
import type { ModelThinkingLevel, ThinkingLevelMap } from "@
|
|
8
|
+
import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
9
|
+
import type { ModelThinkingLevel, ThinkingLevelMap } from "@earendil-works/pi-ai";
|
|
10
10
|
import { getCachedContextWindow } from "./context-window-cache.js";
|
|
11
11
|
|
|
12
12
|
const FALLBACK_CONTEXT_WINDOW = 128000;
|