@michalkvasnicak/pi-contextor 0.1.1 → 0.2.0

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 (2) hide show
  1. package/extension.ts +2 -2
  2. package/package.json +1 -1
package/extension.ts CHANGED
@@ -114,10 +114,10 @@ export default function (pi: ExtensionAPI): void {
114
114
  handler: async (_args, ctx) => {
115
115
  ctx.ui.setStatus('contextor', 'Contextor: indexing…');
116
116
  try {
117
- await runContextor(ctx.cwd, ['index'], INDEX_TIMEOUT_MS);
117
+ const summary = await runContextor(ctx.cwd, ['index'], INDEX_TIMEOUT_MS);
118
118
  draftQueries.clear();
119
119
  featureListCache = undefined;
120
- ctx.ui.notify('Contextor index updated', 'info');
120
+ ctx.ui.notify(summary ? `Contextor: ${summary}` : 'Contextor index updated', 'info');
121
121
  } catch (error) {
122
122
  ctx.ui.notify(`Contextor could not update the index: ${String(error)}`, 'error');
123
123
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@michalkvasnicak/pi-contextor",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Attach indexed feature locations to Pi prompts.",
5
5
  "keywords": [
6
6
  "pi-package"