pi-git-commit 1.0.3 → 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.
Files changed (2) hide show
  1. package/index.ts +4 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -255,6 +255,10 @@ export default function (pi: ExtensionAPI) {
255
255
  return { content: [{ type: "text", text: `Commit failed: ${result.stderr}` }], details: {}, isError: true };
256
256
  }
257
257
 
258
+ pi.sendMessage(
259
+ { customType: "git-commit-deactivated", content: "The git_commit tool is now deactivated. It cannot be used again until the user runs /commit to re-enable it.", display: false },
260
+ { deliverAs: "steer" },
261
+ );
258
262
  return { content: [{ type: "text", text: `✓ Committed: ${fullMessage}` }], details: {} };
259
263
  } finally {
260
264
  deactivateGitCommit();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-git-commit",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Pi extension: block mutative git commands in bash and provide a git_commit tool plus /commit and /toggle-allow-git commands",
6
6
  "main": "index.ts",