pi-agent-ide 1.0.0 → 1.0.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-LG22ELG4.js → chunk-26SMC6OS.js} +1 -1
  3. package/dist/{chunk-QC6VFZSB.js → chunk-3BRGWFEI.js} +1 -1
  4. package/dist/chunk-3JBQYLJ4.js +5 -0
  5. package/dist/{chunk-LRAMFOUP.js → chunk-3KM5DSWL.js} +1 -1
  6. package/dist/{chunk-FVWMI4GP.js → chunk-7OAAM5FL.js} +1 -1
  7. package/dist/{chunk-X4CU7CMR.js → chunk-C327T6YP.js} +1 -1
  8. package/dist/{chunk-WZ7MNISG.js → chunk-KM4NOIOB.js} +1 -1
  9. package/dist/{chunk-NGWQRV25.js → chunk-L2YDUMZC.js} +1 -1
  10. package/dist/chunk-MCHU3BLO.js +53 -0
  11. package/dist/{chunk-AKUBFJAR.js → chunk-NSBRKTZ7.js} +1 -1
  12. package/dist/{chunk-SKHD2QIT.js → chunk-QUK5ZEYX.js} +1 -1
  13. package/dist/{chunk-E6G3UVS7.js → chunk-RYJEEBET.js} +1 -1
  14. package/dist/chunk-UN3XLVPR.js +18 -0
  15. package/dist/{chunk-KJ6HZC6L.js → chunk-VQ2RA43A.js} +1 -1
  16. package/dist/{chunk-HUICUICD.js → chunk-VWYI4WF7.js} +1 -1
  17. package/dist/{chunk-UHGHVYAW.js → chunk-W25HNEMR.js} +1 -1
  18. package/dist/entry-0.js +1 -1
  19. package/dist/entry-20.js +1 -1
  20. package/dist/entry-38.js +1 -1
  21. package/dist/entry-44.js +1 -1
  22. package/dist/entry-57.js +1 -1
  23. package/dist/entry-58.js +1 -1
  24. package/dist/entry-59.js +1 -1
  25. package/dist/entry-60.js +1 -1
  26. package/dist/entry-61.js +1 -1
  27. package/dist/entry-62.js +1 -1
  28. package/dist/entry-94.js +1 -1
  29. package/dist/pi-agent-ide.js +1 -1
  30. package/docs/nightly.md +7 -1
  31. package/docs/releases.md +1 -1
  32. package/node_modules/pi-agent-doctor/package.json +1 -1
  33. package/node_modules/pi-agent-documentation/package.json +1 -1
  34. package/node_modules/pi-agent-filesystem/package.json +7 -7
  35. package/node_modules/pi-agent-filesystem-image/package.json +3 -3
  36. package/node_modules/pi-agent-filesystem-jq/package.json +5 -5
  37. package/node_modules/pi-agent-filesystem-pdf/package.json +3 -3
  38. package/node_modules/pi-agent-filesystem-text/package.json +3 -3
  39. package/node_modules/pi-agent-ide-ast/package.json +13 -13
  40. package/node_modules/pi-agent-ide-changes/package.json +8 -8
  41. package/node_modules/pi-agent-ide-formatter/package.json +3 -3
  42. package/node_modules/pi-agent-ide-languages/package.json +2 -2
  43. package/node_modules/pi-agent-ide-lint/package.json +7 -7
  44. package/node_modules/pi-agent-ide-lsp/package.json +12 -12
  45. package/node_modules/pi-agent-ide-lsp/src/lsp/client.ts +28 -0
  46. package/node_modules/pi-agent-ide-lsp/src/lsp/corrected-names.ts +16 -5
  47. package/node_modules/pi-agent-ide-lsp/src/lsp/declaration-scan.ts +116 -0
  48. package/node_modules/pi-agent-ide-lsp/src/lsp/initialization-options.ts +37 -0
  49. package/node_modules/pi-agent-ide-lsp/src/lsp/manager.ts +138 -128
  50. package/node_modules/pi-agent-ide-lsp/src/lsp/navigation.ts +1 -24
  51. package/node_modules/pi-agent-ide-lsp/src/lsp/project.ts +40 -12
  52. package/node_modules/pi-agent-ide-lsp/src/lsp/symbol-search.ts +98 -40
  53. package/node_modules/pi-agent-ide-lsp/src/lsp/symbol-selectors.ts +48 -0
  54. package/node_modules/pi-agent-ide-lsp/src/lsp/symbols.ts +61 -0
  55. package/node_modules/pi-agent-ide-lsp/src/rename-plan.ts +1 -1
  56. package/node_modules/pi-agent-ide-lsp/src/search-resolver.ts +51 -2
  57. package/node_modules/pi-agent-image/package.json +2 -2
  58. package/node_modules/pi-agent-invariant/package.json +1 -1
  59. package/node_modules/pi-agent-pdf/package.json +2 -2
  60. package/node_modules/pi-agent-read/package.json +7 -7
  61. package/node_modules/pi-agent-resource/package.json +1 -1
  62. package/node_modules/pi-agent-search/package.json +4 -4
  63. package/node_modules/pi-agent-search/src/api/structured-result.ts +28 -4
  64. package/node_modules/pi-agent-search-text/package.json +10 -10
  65. package/node_modules/pi-agent-text/package.json +2 -2
  66. package/node_modules/pi-agent-text-anchor-constant/package.json +3 -3
  67. package/node_modules/pi-agent-text-anchor-exact/package.json +3 -3
  68. package/node_modules/pi-agent-text-anchor-line-hash/package.json +5 -5
  69. package/node_modules/pi-agent-text-editor/package.json +8 -8
  70. package/node_modules/pi-agent-text-editor-renderer/package.json +5 -5
  71. package/node_modules/pi-agent-text-editor-stale-anchor/package.json +4 -4
  72. package/node_modules/pi-agent-tool-call-interception/package.json +2 -2
  73. package/node_modules/pi-agent-tool-ui/package.json +1 -1
  74. package/node_modules/pi-agent-web/package.json +7 -7
  75. package/node_modules/pi-agent-web-html/package.json +2 -2
  76. package/node_modules/pi-agent-web-image/package.json +3 -3
  77. package/node_modules/pi-agent-web-pdf/package.json +3 -3
  78. package/node_modules/pi-agent-web-text/package.json +3 -3
  79. package/package.json +35 -35
  80. package/src/composite/script-values/lsp-search.ts +56 -12
  81. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/package.json +7 -7
  82. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-image/package.json +3 -3
  83. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-jq/package.json +5 -5
  84. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-pdf/package.json +3 -3
  85. package/src/extensions/pi-agent-read/extensions/pi-agent-filesystem/plugins/pi-agent-filesystem-text/package.json +3 -3
  86. package/src/extensions/pi-agent-read/extensions/pi-agent-web/package.json +7 -7
  87. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-html/package.json +2 -2
  88. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-image/package.json +3 -3
  89. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-pdf/package.json +3 -3
  90. package/src/extensions/pi-agent-read/extensions/pi-agent-web/plugins/pi-agent-web-text/package.json +3 -3
  91. package/src/extensions/pi-agent-read/package.json +7 -7
  92. package/src/extensions/pi-agent-search/package.json +4 -4
  93. package/src/extensions/pi-agent-search/plugins/pi-agent-search-text/package.json +10 -10
  94. package/src/extensions/pi-agent-search/src/api/structured-result.ts +28 -4
  95. package/src/extensions/pi-agent-text-editor/package.json +8 -8
  96. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-constant/package.json +3 -3
  97. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-exact/package.json +3 -3
  98. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-anchor-line-hash/package.json +5 -5
  99. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-renderer/package.json +5 -5
  100. package/src/extensions/pi-agent-text-editor/plugins/pi-agent-text-editor-stale-anchor/package.json +4 -4
  101. package/src/plugins/pi-agent-ide-ast/package.json +13 -13
  102. package/src/plugins/pi-agent-ide-changes/package.json +8 -8
  103. package/src/plugins/pi-agent-ide-formatter/package.json +3 -3
  104. package/src/plugins/pi-agent-ide-languages/package.json +2 -2
  105. package/src/plugins/pi-agent-ide-lint/package.json +7 -7
  106. package/src/plugins/pi-agent-ide-lsp/package.json +12 -12
  107. package/src/plugins/pi-agent-ide-lsp/src/lsp/client.ts +28 -0
  108. package/src/plugins/pi-agent-ide-lsp/src/lsp/corrected-names.ts +16 -5
  109. package/src/plugins/pi-agent-ide-lsp/src/lsp/declaration-scan.ts +116 -0
  110. package/src/plugins/pi-agent-ide-lsp/src/lsp/initialization-options.ts +37 -0
  111. package/src/plugins/pi-agent-ide-lsp/src/lsp/manager.ts +138 -128
  112. package/src/plugins/pi-agent-ide-lsp/src/lsp/navigation.ts +1 -24
  113. package/src/plugins/pi-agent-ide-lsp/src/lsp/project.ts +40 -12
  114. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbol-search.ts +98 -40
  115. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbol-selectors.ts +48 -0
  116. package/src/plugins/pi-agent-ide-lsp/src/lsp/symbols.ts +61 -0
  117. package/src/plugins/pi-agent-ide-lsp/src/rename-plan.ts +1 -1
  118. package/src/plugins/pi-agent-ide-lsp/src/search-resolver.ts +51 -2
  119. package/dist/chunk-4AEYLVSR.js +0 -5
  120. package/dist/chunk-DSB6A5P5.js +0 -53
  121. package/dist/chunk-YSGPCH52.js +0 -18
@@ -90,7 +90,26 @@ export const fuzzyDataSchema = Type.Object(
90
90
  /** Resolver adapters supply selected domain fields, never renderer details or raw backend objects. */
91
91
  export const searchDataSchema = Type.Union([
92
92
  Type.Object(
93
- { ...selectionProperties, fuzzy: Type.Optional(fuzzyDataSchema) },
93
+ {
94
+ ...selectionProperties,
95
+ fuzzy: Type.Optional(fuzzyDataSchema),
96
+ candidateLimits: Type.Optional(
97
+ Type.Array(
98
+ Type.Object(
99
+ { server: Type.String(), limit: Type.Integer({ minimum: 0 }) },
100
+ { additionalProperties: false },
101
+ ),
102
+ ),
103
+ ),
104
+ skipped: Type.Optional(
105
+ Type.Array(
106
+ Type.Object(
107
+ { name: Type.String(), source: Type.String() },
108
+ { additionalProperties: false },
109
+ ),
110
+ ),
111
+ ),
112
+ },
94
113
  { additionalProperties: false },
95
114
  ),
96
115
  Type.Object(
@@ -170,8 +189,9 @@ const preview = { matches: 100, textBytes: 4096 } as const;
170
189
  * The record of a call that does not hand its result to a script: the first 100 matches, each with
171
190
  * its match and line text when each is at most 4 KB. The record of every call must stay within the 1 MiB
172
191
  * limit of structured results, which only a script's call lifts. `truncated` marks a shortened
173
- * list and `textTruncated` an omitted text. A resolver's own value, such as an lsp_search call
174
- * graph, keeps each list of matches it holds as a preview. Data of other kinds stays as it is.
192
+ * list (including skipped candidates) and `textTruncated` an omitted text. A resolver's own value,
193
+ * such as an lsp_search call graph, keeps each list of matches it holds as a preview. Data of other
194
+ * kinds stays as it is.
175
195
  */
176
196
  export function selectionPreview(data: unknown): unknown {
177
197
  if (isRecord(data) && data.kind === "custom" && isRecord(data.value))
@@ -183,9 +203,13 @@ export function selectionPreview(data: unknown): unknown {
183
203
  };
184
204
  if (!isRecord(data) || data.kind !== "matches" || !Array.isArray(data.matches)) return data;
185
205
  const matches: unknown[] = data.matches;
206
+ const skipped: unknown[] | undefined = Array.isArray(data.skipped) ? data.skipped : undefined;
186
207
  return {
187
208
  ...data,
188
- ...(matches.length > preview.matches && { truncated: true }),
209
+ ...((matches.length > preview.matches || (skipped?.length ?? 0) > preview.matches) && {
210
+ truncated: true,
211
+ }),
212
+ ...(skipped !== undefined && { skipped: skipped.slice(0, preview.matches) }),
189
213
  matches: matches.slice(0, preview.matches).map((match) => {
190
214
  if (!isRecord(match)) return match;
191
215
  const captures = isRecord(match.captures)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-search-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -24,15 +24,15 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "pi-agent-doctor": "1.0.0",
28
- "pi-agent-invariant": "1.0.0",
29
- "pi-agent-read": "1.0.0",
30
- "pi-agent-resource": "1.0.0",
31
- "pi-agent-search": "1.0.0",
32
- "pi-agent-text": "1.0.0",
33
- "pi-agent-text-editor": "1.0.0",
34
- "pi-agent-tool-call-interception": "1.0.0",
35
- "pi-agent-tool-ui": "1.0.0"
27
+ "pi-agent-doctor": "1.0.1",
28
+ "pi-agent-invariant": "1.0.1",
29
+ "pi-agent-read": "1.0.1",
30
+ "pi-agent-resource": "1.0.1",
31
+ "pi-agent-search": "1.0.1",
32
+ "pi-agent-text": "1.0.1",
33
+ "pi-agent-text-editor": "1.0.1",
34
+ "pi-agent-tool-call-interception": "1.0.1",
35
+ "pi-agent-tool-ui": "1.0.1"
36
36
  },
37
37
  "pi": {
38
38
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "imports": {
@@ -13,7 +13,7 @@
13
13
  }
14
14
  },
15
15
  "dependencies": {
16
- "pi-agent-resource": "1.0.0"
16
+ "pi-agent-resource": "1.0.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "typebox": "*"
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-text-anchor-constant",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-text": "1.0.0",
10
- "pi-agent-text-editor": "1.0.0"
9
+ "pi-agent-text": "1.0.1",
10
+ "pi-agent-text-editor": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-text-anchor-exact",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,8 +12,8 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-text": "1.0.0",
16
- "pi-agent-text-editor": "1.0.0"
15
+ "pi-agent-text": "1.0.1",
16
+ "pi-agent-text-editor": "1.0.1"
17
17
  },
18
18
  "pi": {
19
19
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-text-anchor-line-hash",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-invariant": "1.0.0",
16
- "pi-agent-read": "1.0.0",
17
- "pi-agent-text": "1.0.0",
18
- "pi-agent-text-editor": "1.0.0"
15
+ "pi-agent-invariant": "1.0.1",
16
+ "pi-agent-read": "1.0.1",
17
+ "pi-agent-text": "1.0.1",
18
+ "pi-agent-text-editor": "1.0.1"
19
19
  },
20
20
  "pi": {
21
21
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-text-editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -84,13 +84,13 @@
84
84
  }
85
85
  },
86
86
  "dependencies": {
87
- "pi-agent-invariant": "1.0.0",
88
- "pi-agent-read": "1.0.0",
89
- "pi-agent-resource": "1.0.0",
90
- "pi-agent-search": "1.0.0",
91
- "pi-agent-text": "1.0.0",
92
- "pi-agent-tool-call-interception": "1.0.0",
93
- "pi-agent-tool-ui": "1.0.0"
87
+ "pi-agent-invariant": "1.0.1",
88
+ "pi-agent-read": "1.0.1",
89
+ "pi-agent-resource": "1.0.1",
90
+ "pi-agent-search": "1.0.1",
91
+ "pi-agent-text": "1.0.1",
92
+ "pi-agent-tool-call-interception": "1.0.1",
93
+ "pi-agent-tool-ui": "1.0.1"
94
94
  },
95
95
  "pi": {
96
96
  "extensions": [
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "pi-agent-text-editor-renderer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-invariant": "1.0.0",
10
- "pi-agent-text-editor": "1.0.0",
11
- "pi-agent-tool-call-interception": "1.0.0",
12
- "pi-agent-tool-ui": "1.0.0"
9
+ "pi-agent-invariant": "1.0.1",
10
+ "pi-agent-text-editor": "1.0.1",
11
+ "pi-agent-tool-call-interception": "1.0.1",
12
+ "pi-agent-tool-ui": "1.0.1"
13
13
  },
14
14
  "pi": {
15
15
  "extensions": [
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pi-agent-text-editor-stale-anchor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-invariant": "1.0.0",
7
- "pi-agent-resource": "1.0.0",
8
- "pi-agent-text-editor": "1.0.0"
6
+ "pi-agent-invariant": "1.0.1",
7
+ "pi-agent-resource": "1.0.1",
8
+ "pi-agent-text-editor": "1.0.1"
9
9
  },
10
10
  "pi": {
11
11
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-tool-call-interception",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "types": "./src/index.ts",
6
6
  "exports": {
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  "dependencies": {
13
- "pi-agent-tool-ui": "1.0.0"
13
+ "pi-agent-tool-ui": "1.0.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@earendil-works/pi-coding-agent": "*",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-tool-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./operation-approval": {
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "pi-agent-web",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-doctor": "1.0.0",
10
- "pi-agent-image": "1.0.0",
11
- "pi-agent-read": "1.0.0",
12
- "pi-agent-resource": "1.0.0",
13
- "pi-agent-search": "1.0.0",
14
- "pi-agent-text": "1.0.0"
9
+ "pi-agent-doctor": "1.0.1",
10
+ "pi-agent-image": "1.0.1",
11
+ "pi-agent-read": "1.0.1",
12
+ "pi-agent-resource": "1.0.1",
13
+ "pi-agent-search": "1.0.1",
14
+ "pi-agent-text": "1.0.1"
15
15
  },
16
16
  "pi": {
17
17
  "extensions": [
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-agent-web-html",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-resource": "1.0.0"
9
+ "pi-agent-resource": "1.0.1"
10
10
  },
11
11
  "pi": {
12
12
  "extensions": [
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pi-agent-web-image",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-image": "1.0.0",
7
- "pi-agent-resource": "1.0.0"
6
+ "pi-agent-image": "1.0.1",
7
+ "pi-agent-resource": "1.0.1"
8
8
  },
9
9
  "pi": {
10
10
  "extensions": [
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pi-agent-web-pdf",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-pdf": "1.0.0",
7
- "pi-agent-resource": "1.0.0"
6
+ "pi-agent-pdf": "1.0.1",
7
+ "pi-agent-resource": "1.0.1"
8
8
  },
9
9
  "pi": {
10
10
  "extensions": [
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pi-agent-web-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-resource": "1.0.0",
7
- "pi-agent-text": "1.0.0"
6
+ "pi-agent-resource": "1.0.1",
7
+ "pi-agent-text": "1.0.1"
8
8
  },
9
9
  "pi": {
10
10
  "extensions": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-ide",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Agent-native IDE extension for Pi Coding Agent with guarded editing, search, LSP, terminals, debugging, and observability",
5
5
  "keywords": [
6
6
  "agent-ide",
@@ -223,40 +223,40 @@
223
223
  "oxfmt": "0.75.0",
224
224
  "partial-json": "^0.1.7",
225
225
  "pdfjs-dist": "^6.2.108",
226
- "pi-agent-doctor": "1.0.0",
227
- "pi-agent-documentation": "1.0.0",
228
- "pi-agent-filesystem": "1.0.0",
229
- "pi-agent-filesystem-image": "1.0.0",
230
- "pi-agent-filesystem-jq": "1.0.0",
231
- "pi-agent-filesystem-pdf": "1.0.0",
232
- "pi-agent-filesystem-text": "1.0.0",
233
- "pi-agent-ide-ast": "1.0.0",
234
- "pi-agent-ide-changes": "1.0.0",
235
- "pi-agent-ide-formatter": "1.0.0",
236
- "pi-agent-ide-languages": "1.0.0",
237
- "pi-agent-ide-lint": "1.0.0",
238
- "pi-agent-ide-lsp": "1.0.0",
239
- "pi-agent-image": "1.0.0",
240
- "pi-agent-invariant": "1.0.0",
241
- "pi-agent-pdf": "1.0.0",
242
- "pi-agent-read": "1.0.0",
243
- "pi-agent-resource": "1.0.0",
244
- "pi-agent-search": "1.0.0",
245
- "pi-agent-search-text": "1.0.0",
246
- "pi-agent-text": "1.0.0",
247
- "pi-agent-text-anchor-constant": "1.0.0",
248
- "pi-agent-text-anchor-exact": "1.0.0",
249
- "pi-agent-text-anchor-line-hash": "1.0.0",
250
- "pi-agent-text-editor": "1.0.0",
251
- "pi-agent-text-editor-renderer": "1.0.0",
252
- "pi-agent-text-editor-stale-anchor": "1.0.0",
253
- "pi-agent-tool-call-interception": "1.0.0",
254
- "pi-agent-tool-ui": "1.0.0",
255
- "pi-agent-web": "1.0.0",
256
- "pi-agent-web-html": "1.0.0",
257
- "pi-agent-web-image": "1.0.0",
258
- "pi-agent-web-pdf": "1.0.0",
259
- "pi-agent-web-text": "1.0.0",
226
+ "pi-agent-doctor": "1.0.1",
227
+ "pi-agent-documentation": "1.0.1",
228
+ "pi-agent-filesystem": "1.0.1",
229
+ "pi-agent-filesystem-image": "1.0.1",
230
+ "pi-agent-filesystem-jq": "1.0.1",
231
+ "pi-agent-filesystem-pdf": "1.0.1",
232
+ "pi-agent-filesystem-text": "1.0.1",
233
+ "pi-agent-ide-ast": "1.0.1",
234
+ "pi-agent-ide-changes": "1.0.1",
235
+ "pi-agent-ide-formatter": "1.0.1",
236
+ "pi-agent-ide-languages": "1.0.1",
237
+ "pi-agent-ide-lint": "1.0.1",
238
+ "pi-agent-ide-lsp": "1.0.1",
239
+ "pi-agent-image": "1.0.1",
240
+ "pi-agent-invariant": "1.0.1",
241
+ "pi-agent-pdf": "1.0.1",
242
+ "pi-agent-read": "1.0.1",
243
+ "pi-agent-resource": "1.0.1",
244
+ "pi-agent-search": "1.0.1",
245
+ "pi-agent-search-text": "1.0.1",
246
+ "pi-agent-text": "1.0.1",
247
+ "pi-agent-text-anchor-constant": "1.0.1",
248
+ "pi-agent-text-anchor-exact": "1.0.1",
249
+ "pi-agent-text-anchor-line-hash": "1.0.1",
250
+ "pi-agent-text-editor": "1.0.1",
251
+ "pi-agent-text-editor-renderer": "1.0.1",
252
+ "pi-agent-text-editor-stale-anchor": "1.0.1",
253
+ "pi-agent-tool-call-interception": "1.0.1",
254
+ "pi-agent-tool-ui": "1.0.1",
255
+ "pi-agent-web": "1.0.1",
256
+ "pi-agent-web-html": "1.0.1",
257
+ "pi-agent-web-image": "1.0.1",
258
+ "pi-agent-web-pdf": "1.0.1",
259
+ "pi-agent-web-text": "1.0.1",
260
260
  "playwright-core": "^1.62.1",
261
261
  "smol-toml": "1.9.1",
262
262
  "tree-sitter-cpp": "^0.23.4",
@@ -1,7 +1,7 @@
1
1
  import type { JsonValue } from "@earendil-works/pi-ai";
2
2
 
3
3
  import { astSearchValue, captureSchema } from "./ast-search.ts";
4
- import { scriptMatchSchema } from "./match.ts";
4
+ import { scriptMatchPath, scriptMatchSchema } from "./match.ts";
5
5
  import { matchEntries, matchListSchema, record } from "./search-matches.ts";
6
6
  import { searchValue } from "./search.ts";
7
7
  import type { ScriptValue, ScriptValueInput } from "./types.ts";
@@ -11,7 +11,9 @@ const matches = { type: "array", items: scriptMatchSchema } as const;
11
11
  /**
12
12
  * lsp_search resolves to `{ id, complete, matches }` like Search for `query`, `references` and
13
13
  * `declaration`, and to `{ id, complete, matches, incoming, outgoing }` for `calls`: references in
14
- * `matches`, callers and callees as their whole declarations. `id` selects every reference.
14
+ * `matches`, callers and callees as their whole declarations. Query results also carry `skipped`
15
+ * when workspace candidates lack a declaration anchor and `candidateLimits` when a server's
16
+ * candidate cap is reached. In a call graph, `id` selects every reference.
15
17
  */
16
18
  export const lspSearchValue: ScriptValue = {
17
19
  schema: {
@@ -29,17 +31,41 @@ export const lspSearchValue: ScriptValue = {
29
31
  required: ["id", "complete", "matches", "incoming", "outgoing"],
30
32
  additionalProperties: false,
31
33
  },
32
- ...matchListSchema({
33
- ...scriptMatchSchema,
34
- properties: {
35
- ...scriptMatchSchema.properties,
36
- captures: {
37
- type: "object",
38
- properties: { name: { type: "array", items: captureSchema } },
39
- additionalProperties: false,
34
+ ...matchListSchema(
35
+ {
36
+ ...scriptMatchSchema,
37
+ properties: {
38
+ ...scriptMatchSchema.properties,
39
+ captures: {
40
+ type: "object",
41
+ properties: { name: { type: "array", items: captureSchema } },
42
+ additionalProperties: false,
43
+ },
44
+ },
45
+ },
46
+ {
47
+ candidateLimits: {
48
+ type: "array",
49
+ description: "Workspace symbol candidate limits reached before scope filtering.",
50
+ items: {
51
+ type: "object",
52
+ properties: { server: { type: "string" }, limit: { type: "integer" } },
53
+ required: ["server", "limit"],
54
+ additionalProperties: false,
55
+ },
56
+ },
57
+ skipped: {
58
+ type: "array",
59
+ description: "Query candidates with no declaration anchor; the result is incomplete.",
60
+ items: {
61
+ type: "object",
62
+ properties: { name: { type: "string" }, path: { type: "string" } },
63
+ required: ["name", "path"],
64
+ additionalProperties: false,
65
+ },
40
66
  },
41
67
  },
42
- }).anyOf,
68
+ ).anyOf,
43
69
  ],
44
70
  },
45
71
  project(input) {
@@ -52,7 +78,25 @@ export const lspSearchValue: ScriptValue = {
52
78
  data.matches.some((match: unknown) => record(match) && record(match.captures))
53
79
  )
54
80
  return astSearchValue.project(input);
55
- return searchValue.project(input);
81
+ const result = searchValue.project(input);
82
+ if (!record(result) || !record(data)) return result;
83
+ return {
84
+ ...result,
85
+ ...(Array.isArray(data.candidateLimits) && {
86
+ candidateLimits: data.candidateLimits.flatMap((item: unknown) =>
87
+ record(item) && typeof item.server === "string" && typeof item.limit === "number"
88
+ ? [{ server: item.server, limit: item.limit }]
89
+ : [],
90
+ ),
91
+ }),
92
+ ...(Array.isArray(data.skipped) && {
93
+ skipped: data.skipped.flatMap((item: unknown) =>
94
+ record(item) && typeof item.name === "string" && typeof item.source === "string"
95
+ ? [{ name: item.name, path: scriptMatchPath(item.source, input.cwd) }]
96
+ : [],
97
+ ),
98
+ }),
99
+ };
56
100
  },
57
101
  };
58
102
 
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-image": "1.0.0",
10
- "pi-agent-invariant": "1.0.0",
11
- "pi-agent-read": "1.0.0",
12
- "pi-agent-resource": "1.0.0",
13
- "pi-agent-text": "1.0.0",
14
- "pi-agent-text-editor": "1.0.0"
9
+ "pi-agent-image": "1.0.1",
10
+ "pi-agent-invariant": "1.0.1",
11
+ "pi-agent-read": "1.0.1",
12
+ "pi-agent-resource": "1.0.1",
13
+ "pi-agent-text": "1.0.1",
14
+ "pi-agent-text-editor": "1.0.1"
15
15
  },
16
16
  "pi": {
17
17
  "extensions": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-image",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#extension": "./index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-image": "1.0.0",
10
- "pi-agent-resource": "1.0.0"
9
+ "pi-agent-image": "1.0.1",
10
+ "pi-agent-resource": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-jq",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#src/*": "./src/*"
@@ -12,10 +12,10 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "pi-agent-doctor": "1.0.0",
16
- "pi-agent-documentation": "1.0.0",
17
- "pi-agent-read": "1.0.0",
18
- "pi-agent-text": "1.0.0"
15
+ "pi-agent-doctor": "1.0.1",
16
+ "pi-agent-documentation": "1.0.1",
17
+ "pi-agent-read": "1.0.1",
18
+ "pi-agent-text": "1.0.1"
19
19
  },
20
20
  "pi": {
21
21
  "extensions": [
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-pdf",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "pi-agent-pdf": "1.0.0",
7
- "pi-agent-resource": "1.0.0"
6
+ "pi-agent-pdf": "1.0.1",
7
+ "pi-agent-resource": "1.0.1"
8
8
  },
9
9
  "pi": {
10
10
  "extensions": [
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "pi-agent-filesystem-text",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#extension": "./index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "pi-agent-resource": "1.0.0",
10
- "pi-agent-text": "1.0.0"
9
+ "pi-agent-resource": "1.0.1",
10
+ "pi-agent-text": "1.0.1"
11
11
  },
12
12
  "pi": {
13
13
  "extensions": [