pi-autosuggestions 0.6.0 → 0.6.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/README.md +3 -2
- package/extensions/autosuggestions.ts +1 -12
- package/package.json +8 -1
- package/.github/code-foundry.yml +0 -4
- package/.github/workflows/release.yml +0 -35
- package/.release-please-manifest.json +0 -1
- package/CHANGELOG.md +0 -100
- package/release-please-config.json +0 -49
package/README.md
CHANGED
|
@@ -49,8 +49,9 @@ to suggest elsewhere.
|
|
|
49
49
|
**Candidate cycling**: with multiple history matches, `Alt+Down` / `Alt+Up`
|
|
50
50
|
rotate the ghost through the alternatives (most recent first).
|
|
51
51
|
|
|
52
|
-
The cursor
|
|
53
|
-
|
|
52
|
+
The cursor is the **terminal's native one** (see the cursor section below):
|
|
53
|
+
white in terminals honoring OSC 12, theme-colored elsewhere — notably Warp
|
|
54
|
+
paints it blue and ignores cursor-color overrides (warpdotdev/Warp#3210).
|
|
54
55
|
|
|
55
56
|
## Features
|
|
56
57
|
|
|
@@ -39,7 +39,6 @@ const RESET = "\x1b[0m";
|
|
|
39
39
|
/** Set at extension load; used for dynamic completion exec calls. */
|
|
40
40
|
let execApi: ExtensionAPI | undefined;
|
|
41
41
|
/** Active pi theme (set at session start) for theme-aware cursor colors. */
|
|
42
|
-
let themeRef: { fg(name: string, text: string): string } | undefined;
|
|
43
42
|
/** Persisted extension settings (~/.pi/agent/pi-autosuggestions.json). */
|
|
44
43
|
interface AutosuggestConfig {
|
|
45
44
|
crossSessionHistory?: boolean;
|
|
@@ -435,16 +434,7 @@ class BashInlineEditor extends CustomEditor {
|
|
|
435
434
|
return st.cursorCol === (st.lines[st.cursorLine] ?? "").length;
|
|
436
435
|
}
|
|
437
436
|
|
|
438
|
-
|
|
439
|
-
private bright(text: string): string {
|
|
440
|
-
return themeRef ? themeRef.fg("accent", text) : `${CURSOR_COLOR}${text}${RESET}`;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
private dimmed(text: string): string {
|
|
444
|
-
return themeRef ? themeRef.fg("dim", text) : `${DIM}${text}${RESET}`;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/** Suppress the dropdown in bash mode unless the popup is already open. */
|
|
437
|
+
/** Suppress the dropdown in bash mode unless the popup is already open. */
|
|
448
438
|
|
|
449
439
|
/**
|
|
450
440
|
* True while the command word after "!" is still being typed (no space
|
|
@@ -997,7 +987,6 @@ export default function (pi: ExtensionAPI): void {
|
|
|
997
987
|
execApi = pi;
|
|
998
988
|
loadConfig();
|
|
999
989
|
pi.on("session_start", (_event, ctx) => {
|
|
1000
|
-
themeRef = ctx.ui.theme;
|
|
1001
990
|
ctx.ui.setEditorComponent((tui, theme, keybindings) => new BashInlineEditor(tui, theme, keybindings));
|
|
1002
991
|
});
|
|
1003
992
|
pi.registerCommand("autosuggest", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-autosuggestions",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "zsh-autosuggestions-style ghost completions for the pi coding agent — history-based inline suggestions, path completion in bash mode, blinking beam cursor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Andrew Mahoney-Fernandes <0xPlayerOne>",
|
|
15
15
|
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^20.19.0 || ^22.12.0 || >=23"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"extensions",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
16
23
|
"pi": {
|
|
17
24
|
"extensions": [
|
|
18
25
|
"./extensions/*.ts"
|
package/.github/code-foundry.yml
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
name: Code Foundry
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
inputs:
|
|
8
|
-
release-while-paused:
|
|
9
|
-
description: Run only the release pipeline while the shared CI billing pause remains active.
|
|
10
|
-
required: false
|
|
11
|
-
type: boolean
|
|
12
|
-
default: false
|
|
13
|
-
|
|
14
|
-
permissions:
|
|
15
|
-
actions: write
|
|
16
|
-
contents: write
|
|
17
|
-
issues: write
|
|
18
|
-
pull-requests: write
|
|
19
|
-
id-token: write
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
release:
|
|
23
|
-
name: Release
|
|
24
|
-
if: vars.CI_BILLING_PAUSED != 'true' || (github.event_name == 'workflow_dispatch' && inputs['release-while-paused'] == true)
|
|
25
|
-
uses: 0xPlayerOne/code-foundry/.github/workflows/release.yml@v0.39.4
|
|
26
|
-
with:
|
|
27
|
-
billing-pause-bypass: ${{ github.event_name == 'workflow_dispatch' && inputs['release-while-paused'] == true }}
|
|
28
|
-
runner: ubuntu-slim
|
|
29
|
-
runtime-repository: 0xPlayerOne/code-foundry
|
|
30
|
-
runtime-ref: v0.39.4
|
|
31
|
-
secrets:
|
|
32
|
-
CODE_FOUNDRY_TOKEN: ${{ secrets.CODE_FOUNDRY_TOKEN }}
|
|
33
|
-
RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
34
|
-
STAGING_DEPLOY_KEY: ${{ secrets.STAGING_DEPLOY_KEY }}
|
|
35
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{".":"0.6.0"}
|
package/CHANGELOG.md
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.6.0](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.5.0...pi-autosuggestions-v0.6.0) (2026-09-05)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
### Features
|
|
7
|
-
|
|
8
|
-
* cross-session history, candidate cycling, theme-aware cursor, new dynamic sources ([71fe236](https://github.com/0xPlayerOne/pi-autosuggestions/commit/71fe236ac272d54432da96aa35e53a919102f657))
|
|
9
|
-
|
|
10
|
-
## [0.5.0](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.4.0...pi-autosuggestions-v0.5.0) (2026-09-04)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* dynamic completions and expanded command tables ([4e99186](https://github.com/0xPlayerOne/pi-autosuggestions/commit/4e991868049694c1f973bc8ab2069af433c8bf4c))
|
|
16
|
-
|
|
17
|
-
## [0.4.0](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.3.3...pi-autosuggestions-v0.4.0) (2026-09-04)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Features
|
|
21
|
-
|
|
22
|
-
* subcommand completion for common bash commands ([3b17e1c](https://github.com/0xPlayerOne/pi-autosuggestions/commit/3b17e1cc5c6ee0ef92b5f2f564a9f8a7ce896411))
|
|
23
|
-
|
|
24
|
-
## [0.3.3](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.3.2...pi-autosuggestions-v0.3.3) (2026-09-04)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
* force white blinking bar cursor in terminals with themed cursors ([20a3a24](https://github.com/0xPlayerOne/pi-autosuggestions/commit/20a3a2499cad2ec3a83e1c8d1edd0c96b6d6a2ee))
|
|
30
|
-
|
|
31
|
-
## [0.3.2](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.3.1...pi-autosuggestions-v0.3.2) (2026-09-04)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Bug Fixes
|
|
35
|
-
|
|
36
|
-
* use the terminal's native blinking bar cursor ([2abf68b](https://github.com/0xPlayerOne/pi-autosuggestions/commit/2abf68b1f226c9b62ec2c9cdebeb3375601de632))
|
|
37
|
-
|
|
38
|
-
## [0.3.1](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.3.0...pi-autosuggestions-v0.3.1) (2026-09-04)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Bug Fixes
|
|
42
|
-
|
|
43
|
-
* keep the character under the cursor visible while the beam blinks ([16833a7](https://github.com/0xPlayerOne/pi-autosuggestions/commit/16833a788d30fb92e99a98fd29927d2ecaed8790))
|
|
44
|
-
|
|
45
|
-
## [0.3.0](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.2.4...pi-autosuggestions-v0.3.0) (2026-09-04)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Features
|
|
49
|
-
|
|
50
|
-
* command-name completion from PATH at the bash command position ([9b4eef6](https://github.com/0xPlayerOne/pi-autosuggestions/commit/9b4eef62c780979fc972cb2d304eeefe8fd98db7))
|
|
51
|
-
|
|
52
|
-
## [0.2.4](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.2.3...pi-autosuggestions-v0.2.4) (2026-09-04)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### CI
|
|
56
|
-
|
|
57
|
-
* route releases through code-foundry ([2747d07](https://github.com/0xPlayerOne/pi-autosuggestions/commit/2747d07ba79a33c77bbca3c0f6fd1228eaeb3298))
|
|
58
|
-
|
|
59
|
-
## [0.2.3](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.2.2...pi-autosuggestions-v0.2.3) (2026-09-04)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### CI
|
|
63
|
-
|
|
64
|
-
* test code-foundry reusable workflow call (diagnostic) ([1316ff9](https://github.com/0xPlayerOne/pi-autosuggestions/commit/1316ff92b6d650d8985520cbb2544fc21651d714))
|
|
65
|
-
|
|
66
|
-
## [0.2.2](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.2.1...pi-autosuggestions-v0.2.2) (2026-09-04)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### Documentation
|
|
70
|
-
|
|
71
|
-
* correct pinned release tag format in install instructions ([e936ed4](https://github.com/0xPlayerOne/pi-autosuggestions/commit/e936ed4001a9e73e0e1f0a8cea54c5d0fef47c36))
|
|
72
|
-
|
|
73
|
-
## [0.2.1](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.2.0...pi-autosuggestions-v0.2.1) (2026-09-04)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Bug Fixes
|
|
77
|
-
|
|
78
|
-
* add repository metadata required for npm provenance ([cfddf8d](https://github.com/0xPlayerOne/pi-autosuggestions/commit/cfddf8d17f9f359b6f73ec9e0fb68b67748de0d6))
|
|
79
|
-
|
|
80
|
-
## [0.2.0](https://github.com/0xPlayerOne/pi-autosuggestions/compare/pi-autosuggestions-v0.1.0...pi-autosuggestions-v0.2.0) (2026-09-04)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### Features
|
|
84
|
-
|
|
85
|
-
* add zsh-autosuggestions history strategy and partial accept ([951cd11](https://github.com/0xPlayerOne/pi-autosuggestions/commit/951cd1148f8ce63230efbbf6d6815d31048cbd03))
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### CI
|
|
89
|
-
|
|
90
|
-
* add workflow_dispatch to release workflow ([599b7bb](https://github.com/0xPlayerOne/pi-autosuggestions/commit/599b7bbcb6460fe0550657e26a237652dc358d33))
|
|
91
|
-
* declare root package in release-please config ([7d505b9](https://github.com/0xPlayerOne/pi-autosuggestions/commit/7d505b9a0dcbef26162844baf7c02f09063090c7))
|
|
92
|
-
* match canonical code-foundry release caller shape ([8533336](https://github.com/0xPlayerOne/pi-autosuggestions/commit/85333360daa61d803d19020fad1b87f2d418aa11))
|
|
93
|
-
* minimal reusable workflow call test ([3864ab0](https://github.com/0xPlayerOne/pi-autosuggestions/commit/3864ab07d929fee682c10b6f7dcd005dcb59bf00))
|
|
94
|
-
* self-contained release-please and npm publish flow ([b56cf97](https://github.com/0xPlayerOne/pi-autosuggestions/commit/b56cf978b691f54afd93f739c63ba316ecbd7b84))
|
|
95
|
-
* test v0.39.0 ref ([be7e2d5](https://github.com/0xPlayerOne/pi-autosuggestions/commit/be7e2d503dd6543850ffd926dc0e44efc5c77a9d))
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Maintenance
|
|
99
|
-
|
|
100
|
-
* rename package to pi-autosuggestions and adopt code-foundry release flow ([57b7265](https://github.com/0xPlayerOne/pi-autosuggestions/commit/57b7265afd63b4bcb65f5f8ac7ff9507fc820b5c))
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
|
3
|
-
"bump-minor-pre-major": true,
|
|
4
|
-
"changelog-sections": [
|
|
5
|
-
{
|
|
6
|
-
"type": "feat",
|
|
7
|
-
"section": "Features"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"type": "fix",
|
|
11
|
-
"section": "Bug Fixes"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "perf",
|
|
15
|
-
"section": "Performance"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"type": "revert",
|
|
19
|
-
"section": "Reverts"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"type": "deps",
|
|
23
|
-
"section": "Dependencies"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "docs",
|
|
27
|
-
"section": "Documentation"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "test",
|
|
31
|
-
"section": "Tests"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"type": "ci",
|
|
35
|
-
"section": "CI"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "refactor",
|
|
39
|
-
"section": "Maintenance"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "chore",
|
|
43
|
-
"section": "Maintenance"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"packages": {
|
|
47
|
-
".": {}
|
|
48
|
-
}
|
|
49
|
-
}
|