@alexleekt/pi-ask-user-glimpse 0.2.1 → 0.3.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.
package/package.json CHANGED
@@ -1,77 +1,80 @@
1
1
  {
2
- "name": "@alexleekt/pi-ask-user-glimpse",
3
- "version": "0.2.1",
4
- "description": "Pi extension that replaces ask_user with rich native WebView dialogs via glimpseui and shadcn/ui",
5
- "type": "module",
6
- "keywords": [
7
- "pi-package",
8
- "pi-extension",
9
- "glimpseui",
10
- "ask_user",
11
- "interactive"
12
- ],
13
- "author": "Alex Lee <alex@alexleekt.com>",
14
- "license": "MIT",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/alexleekt/pi-ask-user-glimpse.git"
18
- },
19
- "bugs": {
20
- "url": "https://github.com/alexleekt/pi-ask-user-glimpse/issues"
21
- },
22
- "homepage": "https://github.com/alexleekt/pi-ask-user-glimpse#readme",
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "pi": {
27
- "extensions": [
28
- "./index.ts"
29
- ]
30
- },
31
- "files": [
32
- "index.ts",
33
- "tool",
34
- "fallback",
35
- "shared",
36
- "types",
37
- "dist",
38
- "README.md",
39
- "CHANGELOG.md",
40
- "CONTRIBUTING.md",
41
- "LICENSE"
42
- ],
43
- "scripts": {
44
- "build": "npm run build:css && npm run build:webview",
45
- "build:css": "cd webview && npx tailwindcss -i ./src/index.css -o ./src/index.generated.css --content './index.html,./src/**/*.{js,ts,jsx,tsx}'",
46
- "build:webview": "cd webview && npx vite build --config ./vite.config.ts",
47
- "check": "npm pack --dry-run",
48
- "prepack": "npm run build",
49
- "dev:webview": "cd webview && npx vite --config ./vite.config.ts",
50
- "validate": "npx tsx scripts/validate.ts",
51
- "validate:gui": "npx tsx scripts/validate.ts --gui"
52
- },
53
- "dependencies": {
54
- "glimpseui": "^0.8.1"
55
- },
56
- "devDependencies": {
57
- "@types/react": "^18.3.0",
58
- "@types/react-dom": "^18.3.0",
59
- "@vitejs/plugin-react": "^4.3.0",
60
- "autoprefixer": "^10.4.20",
61
- "marked": "^15.0.12",
62
- "postcss": "^8.4.47",
63
- "react": "^18.3.1",
64
- "react-dom": "^18.3.1",
65
- "tailwindcss": "^3.4.14",
66
- "typescript": "^5.6.0",
67
- "vite": "^5.4.0",
68
- "vite-plugin-singlefile": "^2.0.0"
69
- },
70
- "peerDependencies": {
71
- "@earendil-works/pi-coding-agent": "*",
72
- "@earendil-works/pi-ai": "*"
73
- },
74
- "engines": {
75
- "node": ">=18.0.0"
76
- }
2
+ "name": "@alexleekt/pi-ask-user-glimpse",
3
+ "version": "0.3.0",
4
+ "description": "Pi extension that replaces ask_user with rich native WebView dialogs via glimpseui and shadcn/ui",
5
+ "type": "module",
6
+ "keywords": [
7
+ "pi-package",
8
+ "pi-extension",
9
+ "glimpseui",
10
+ "ask_user",
11
+ "interactive"
12
+ ],
13
+ "author": "Alex Lee <alex@alexleekt.com>",
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/alexleekt/pi-extensions.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/alexleekt/pi-extensions/issues"
21
+ },
22
+ "homepage": "https://github.com/alexleekt/pi-extensions/tree/main/packages/pi-ask-user-glimpse#readme",
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "pi": {
27
+ "extensions": [
28
+ "./index.ts"
29
+ ]
30
+ },
31
+ "files": [
32
+ "index.ts",
33
+ "tool",
34
+ "fallback",
35
+ "shared",
36
+ "types",
37
+ "dist",
38
+ "README.md",
39
+ "CHANGELOG.md",
40
+ "CONTRIBUTING.md",
41
+ "LICENSE"
42
+ ],
43
+ "scripts": {
44
+ "build": "npm run build:css && npm run build:webview",
45
+ "build:css": "npx tailwindcss -c ./webview/tailwind.config.js -i ./webview/src/index.css -o ./webview/src/index.generated.css --content './webview/index.html,./webview/src/**/*.{js,ts,jsx,tsx}'",
46
+ "build:webview": "npx vite build --config ./webview/vite.config.ts",
47
+ "typecheck": "tsc --noEmit",
48
+ "check": "npm pack --dry-run",
49
+ "prepack": "npm run build",
50
+ "dev:webview": "npx vite --config ./webview/vite.config.ts",
51
+ "validate": "npx tsx scripts/validate.ts",
52
+ "validate:gui": "npx tsx scripts/validate.ts --gui"
53
+ },
54
+ "dependencies": {
55
+ "@alexleekt/pi-shared": "^0.1.0",
56
+ "glimpseui": "^0.8.1"
57
+ },
58
+ "devDependencies": {
59
+ "@types/react": "^18.3.0",
60
+ "@types/react-dom": "^18.3.0",
61
+ "@vitejs/plugin-react": "^4.3.0",
62
+ "autoprefixer": "^10.4.20",
63
+ "marked": "^15.0.12",
64
+ "playwright": "^1.60.0",
65
+ "postcss": "^8.4.47",
66
+ "react": "^18.3.1",
67
+ "react-dom": "^18.3.1",
68
+ "tailwindcss": "^3.4.14",
69
+ "typescript": "^5.6.0",
70
+ "vite": "^5.4.0",
71
+ "vite-plugin-singlefile": "^2.0.0"
72
+ },
73
+ "peerDependencies": {
74
+ "@earendil-works/pi-coding-agent": "*",
75
+ "@earendil-works/pi-ai": "*"
76
+ },
77
+ "engines": {
78
+ "node": ">=18.0.0"
79
+ }
77
80
  }
@@ -7,32 +7,32 @@
7
7
  */
8
8
 
9
9
  export interface QuestionOption {
10
- title: string;
11
- description?: string;
10
+ title: string;
11
+ description?: string;
12
12
  }
13
13
 
14
14
  export interface Question {
15
- title: string;
16
- description?: string;
17
- options?: QuestionOption[];
18
- allowMultiple?: boolean;
15
+ title: string;
16
+ description?: string;
17
+ options?: QuestionOption[];
18
+ allowMultiple?: boolean;
19
19
  }
20
20
 
21
21
  export interface AskUserPayload {
22
- type: "single-select" | "multi-select" | "questionnaire" | "freeform";
23
- question: string;
24
- context?: string;
25
- options: QuestionOption[];
26
- questions?: Question[];
27
- allowMultiple: boolean;
28
- allowFreeform: boolean;
29
- allowComment: boolean;
30
- allowSkip?: boolean;
22
+ type: "single-select" | "multi-select" | "questionnaire" | "freeform";
23
+ question: string;
24
+ context?: string;
25
+ options: QuestionOption[];
26
+ questions?: Question[];
27
+ allowMultiple: boolean;
28
+ allowFreeform: boolean;
29
+ allowComment: boolean;
30
+ allowSkip?: boolean;
31
31
  }
32
32
 
33
33
  export interface QuestionnaireDetail {
34
- question: string;
35
- answer: string;
36
- kind: "selection" | "freeform";
37
- comment?: string;
34
+ question: string;
35
+ answer: string;
36
+ kind: "selection" | "freeform";
37
+ comment?: string;
38
38
  }