bb-plugin-goal 0.0.0-stage → 0.1.3

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.
@@ -0,0 +1,11 @@
1
+ {
2
+ "sdkMajor": 0,
3
+ "sdkVersion": "0.6.104",
4
+ "artifactFormatVersion": 1,
5
+ "pluginId": "goal",
6
+ "pluginVersion": "0.1.3",
7
+ "builtWith": {
8
+ "bbVersion": "0.48.1",
9
+ "pluginSdkVersion": "0.6.104"
10
+ }
11
+ }
package/lib/utils.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { type ClassValue, clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ /**
9
+ * Abbreviate a conventional absolute home directory for display only.
10
+ *
11
+ * Detail surfaces can show paths from remote hosts, so the browser cannot use
12
+ * its own HOME value. Preserve the original path for actions and compact only
13
+ * the standard macOS, Linux, root, and Windows home layouts users recognize.
14
+ */
15
+ export function formatHomePathForDisplay(pathValue: string): string {
16
+ const homePrefix =
17
+ pathValue.match(/^\/Users\/[^/]+(?=\/|$)/)?.[0] ??
18
+ pathValue.match(/^\/home\/[^/]+(?=\/|$)/)?.[0] ??
19
+ pathValue.match(/^\/root(?=\/|$)/)?.[0] ??
20
+ pathValue.match(/^[A-Za-z]:[\\/]Users[\\/][^\\/]+(?=[\\/]|$)/i)?.[0];
21
+ return homePrefix === undefined
22
+ ? pathValue
23
+ : `~${pathValue.slice(homePrefix.length)}`;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,74 @@
1
1
  {
2
2
  "name": "bb-plugin-goal",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.3",
4
+ "type": "module",
5
+ "engines": {
6
+ "bb": ">=0.40",
7
+ "bbPluginSdk": ">=0.4.16"
8
+ },
9
+ "bb": {
10
+ "name": "Goal",
11
+ "description": "Keep a durable objective active on a BB thread.",
12
+ "branding": {
13
+ "icon": "Target"
14
+ },
15
+ "server": "./server.ts",
16
+ "app": "./app.tsx"
17
+ },
18
+ "dependencies": {
19
+ "@radix-ui/react-slot": "^1.3.0",
20
+ "effect": "4.0.0-beta.107",
21
+ "zod": "4.6.7"
22
+ },
23
+ "devDependencies": {
24
+ "@effect/vitest": "4.0.0-beta.107",
25
+ "@get-bb/plugin-sdk": "0.6.132",
26
+ "@testing-library/dom": "10.4.1",
27
+ "@testing-library/react": "16.3.2",
28
+ "@types/better-sqlite3": "^7.6.12",
29
+ "@types/node": "^22.0.0",
30
+ "@types/react": "^19.0.0",
31
+ "@types/react-dom": "^19.0.0",
32
+ "bb-app": "0.38.0",
33
+ "better-sqlite3": "^12.0.0",
34
+ "class-variance-authority": "^0.7.1",
35
+ "clsx": "^2.1.1",
36
+ "cron-parser": "^5.5.0",
37
+ "hono": "^4.11.9",
38
+ "jsdom": "26.1.0",
39
+ "react": "19.2.8",
40
+ "react-dom": "19.2.8",
41
+ "tailwind-merge": "^3.7.0",
42
+ "typescript": "^5.7.0",
43
+ "vitest": "4.1.11"
44
+ },
45
+ "description": "Durable provider-independent Goals for BB threads",
46
+ "scripts": {
47
+ "test": "vitest run",
48
+ "typecheck": "tsc --noEmit",
49
+ "build": "bb plugin build",
50
+ "check": "npm run typecheck && npm test && npm run build"
51
+ },
52
+ "license": "MIT",
53
+ "author": "KaviiSuri (https://github.com/KaviiSuri)",
54
+ "contributors": [
55
+ "Alexandre Mendonça (https://github.com/alexandrekm)"
56
+ ],
57
+ "keywords": [
58
+ "bb-plugin",
59
+ "bb",
60
+ "goal",
61
+ "continuation"
62
+ ],
63
+ "files": [
64
+ "dist",
65
+ "app.tsx",
66
+ "server.ts",
67
+ "src",
68
+ "!src/**/*.test.ts",
69
+ "components",
70
+ "lib",
71
+ "README.md",
72
+ "LICENSE"
73
+ ]
74
+ }