@cendor/contextkit 1.0.2 → 1.0.4
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/NOTICE +7 -0
- package/README.md +3 -2
- package/package.json +11 -5
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# @cendor/contextkit
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@cendor/contextkit) [](https://opensource.org/licenses/Apache-2.0)
|
|
4
|
+
|
|
5
|
+
**Fit a prompt into the model's token budget.** Add your messages and context, pin what must stay, and the least-important parts are dropped to make everything fit. The TypeScript port of [`cendor.contextkit`](https://github.com/cendorhq/cendor-libs/tree/main/packages/cendor-contextkit).
|
|
5
6
|
|
|
6
7
|
Treat the context window like a packed suitcase: declare `Block`s with a priority, a `pin`, and a
|
|
7
8
|
per-block eviction rule; `assemble()` packs them to a token budget **deterministically**, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cendor/contextkit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Fit a prompt into the model's token budget — add your messages and context, pin what must stay, and the least-important parts are dropped to make it fit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"README.md"
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"NOTICE"
|
|
18
20
|
],
|
|
19
21
|
"sideEffects": false,
|
|
20
22
|
"engines": {
|
|
21
23
|
"node": ">=18"
|
|
22
24
|
},
|
|
23
25
|
"dependencies": {
|
|
24
|
-
"@cendor/core": "^0.3.
|
|
26
|
+
"@cendor/core": "^0.3.3"
|
|
25
27
|
},
|
|
26
28
|
"peerDependencies": {
|
|
27
|
-
"@cendor/squeeze": "^0.2.
|
|
29
|
+
"@cendor/squeeze": "^0.2.4"
|
|
28
30
|
},
|
|
29
31
|
"peerDependenciesMeta": {
|
|
30
32
|
"@cendor/squeeze": {
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"fast-check": "^3.23.2",
|
|
36
|
-
"@cendor/squeeze": "^0.2.
|
|
38
|
+
"@cendor/squeeze": "^0.2.4"
|
|
37
39
|
},
|
|
38
40
|
"keywords": [
|
|
39
41
|
"llm",
|
|
@@ -48,6 +50,10 @@
|
|
|
48
50
|
"url": "git+https://github.com/cendorhq/cendor-libs-js.git",
|
|
49
51
|
"directory": "packages/contextkit"
|
|
50
52
|
},
|
|
53
|
+
"homepage": "https://cendor.ai/docs/contextkit",
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/cendorhq/cendor-libs-js/issues"
|
|
56
|
+
},
|
|
51
57
|
"publishConfig": {
|
|
52
58
|
"access": "public"
|
|
53
59
|
}
|