pi-spark 0.1.0 → 0.1.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Cover](./assets/cover.png)
2
2
 
3
- # Pi Spark
3
+ # pi-spark
4
4
 
5
5
  A small, opinionated collection of [pi](https://pi.dev/) extensions.
6
6
 
@@ -64,7 +64,7 @@ Example:
64
64
  Notes:
65
65
 
66
66
  - Set an extension key to `false` to disable it.
67
- - The `editor.spinner` value can be `lights` or `dots`.
67
+ - The `editor.spinner` value can be `dots`, `lights`, or `tildes`.
68
68
  - Presets can be selected with `/preset` or `/preset <key>`.
69
69
  - Cycle presets with `ctrl+super+p` and `ctrl+shift+super+p` (`super` is `command` on macOS).
70
70
  - The `recap.idle` value is in milliseconds and must be at least `5000`.
@@ -2,7 +2,7 @@ import * as z from "zod";
2
2
 
3
3
  import type { TUI } from "@earendil-works/pi-tui";
4
4
 
5
- export const spinnerPresetSchema = z.enum(["lights", "dots"]);
5
+ export const spinnerPresetSchema = z.enum(["dots", "lights", "tildes"]);
6
6
 
7
7
  type SpinnerPreset = z.infer<typeof spinnerPresetSchema>;
8
8
 
@@ -13,19 +13,24 @@ interface SpinnerParams {
13
13
  }
14
14
 
15
15
  const SPINNER_PRESETS: Record<SpinnerPreset, SpinnerParams> = {
16
+ dots: {
17
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"],
18
+ interval: 80,
19
+ random: false,
20
+ },
16
21
  lights: {
17
22
  frames: ["○○○○", "●○○○", "○●○○", "○○●○", "○○○●", "●●○○", "●○●○", "●○○●", "○●●○", "○●○●", "○○●●", "●●●○", "●●○●", "●○●●", "○●●●", "●●●●"],
18
23
  interval: { min: 120, max: 240 },
19
24
  random: true,
20
25
  },
21
- dots: {
22
- frames: ["", "", "", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"],
23
- interval: 80,
24
- random: false,
26
+ tildes: {
27
+ frames: ["", "", ""],
28
+ interval: { min: 160, max: 320 },
29
+ random: true,
25
30
  },
26
31
  };
27
32
 
28
- const DEFAULT_SPINNER_PRESET = "lights";
33
+ const DEFAULT_SPINNER_PRESET = "tildes";
29
34
 
30
35
  export class Spinner {
31
36
  private tui: TUI | undefined;
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "pi-spark",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A small, opinionated collection of pi extensions",
5
5
  "keywords": [
6
6
  "pi-coding-agent",
7
7
  "pi-package"
8
8
  ],
9
- "homepage": "https://github.com/zlliang/pi-spark#readme",
10
- "bugs": {
11
- "url": "https://github.com/zlliang/pi-spark/issues"
12
- },
13
9
  "repository": {
14
10
  "type": "git",
15
11
  "url": "git+https://github.com/zlliang/pi-spark.git"
@@ -23,13 +19,13 @@
23
19
  "LICENSE"
24
20
  ],
25
21
  "pi": {
26
- "extensions": ["./extensions"],
22
+ "extensions": [
23
+ "./extensions"
24
+ ],
27
25
  "image": "https://raw.githubusercontent.com/zlliang/pi-spark/main/assets/cover.png"
28
26
  },
29
27
  "scripts": {
30
- "start": "pi --no-extensions --extension ~/.pi/agent --extension $PWD",
31
- "typecheck": "tsc --noEmit",
32
- "prepublishOnly": "npm run typecheck"
28
+ "typecheck": "tsc --noEmit"
33
29
  },
34
30
  "dependencies": {
35
31
  "zod": "^4.4.3"