@genee/omp-opsx-addon 0.1.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/README.md +83 -0
- package/index.ts +1327 -0
- package/lib/agent-defs.ts +291 -0
- package/lib/change-scanner.ts +72 -0
- package/lib/cursor-auth.ts +230 -0
- package/lib/direct-fetchers.ts +155 -0
- package/lib/edit-variant-pin.ts +156 -0
- package/lib/error-scan.ts +97 -0
- package/lib/family-filter.ts +174 -0
- package/lib/model-selector.ts +307 -0
- package/lib/model-tiers.ts +164 -0
- package/lib/notify.ts +4 -0
- package/lib/openspec-tasks.ts +28 -0
- package/lib/peak-detector.ts +44 -0
- package/lib/reachability-cache.ts +288 -0
- package/lib/reachability-probe.ts +459 -0
- package/lib/reachability-refresh.ts +84 -0
- package/lib/selection-filters.ts +100 -0
- package/lib/selection-lifecycle.ts +17 -0
- package/lib/session-title.ts +186 -0
- package/lib/session-usage.ts +252 -0
- package/lib/state.ts +95 -0
- package/lib/system-prompt.ts +160 -0
- package/lib/tiers-data.ts +136 -0
- package/lib/tiers-updater.ts +146 -0
- package/lib/unified-config.ts +463 -0
- package/lib/usage-estimator.ts +154 -0
- package/lib/usage-poller.ts +1200 -0
- package/lib/usage-poller.worker.ts +31 -0
- package/lib/usage-redis-client.ts +594 -0
- package/lib/usage-redis-multiproc.worker.ts +80 -0
- package/lib/usage-redis-probe.ts +389 -0
- package/lib/usage-render.ts +526 -0
- package/lib/usage-resolver.ts +477 -0
- package/lib/usage-sampler.ts +77 -0
- package/lib/usage-widget.ts +112 -0
- package/package.json +47 -0
- package/types/bun.d.ts +21 -0
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@genee/omp-opsx-addon",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Pi Extension: OpenSpec workflow orchestration - coder/reviewer/planner agents, session title & progress",
|
|
6
|
+
"main": "./index.ts",
|
|
7
|
+
"types": "./index.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"typecheck": "tsc --noEmit",
|
|
13
|
+
"test": "bun test",
|
|
14
|
+
"prepublishOnly": "npm run typecheck"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/iamfat/genee-teams.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"pi-package",
|
|
22
|
+
"pi-extension",
|
|
23
|
+
"openspec",
|
|
24
|
+
"session-title",
|
|
25
|
+
"opsx"
|
|
26
|
+
],
|
|
27
|
+
"pi": {
|
|
28
|
+
"extensions": ["./index.ts"]
|
|
29
|
+
},
|
|
30
|
+
"omp": {
|
|
31
|
+
"extensions": ["./index.ts"]
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@oh-my-pi/pi-agent-core": ">=17.0.7",
|
|
36
|
+
"@oh-my-pi/pi-coding-agent": ">=17.0.7",
|
|
37
|
+
"@oh-my-pi/pi-utils": ">=17.0.7",
|
|
38
|
+
"typebox": ">=0.34.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@oh-my-pi/pi-coding-agent": ">=17.0.7",
|
|
42
|
+
"@oh-my-pi/pi-utils": ">=17.0.7",
|
|
43
|
+
"@types/node": "^24.13.3",
|
|
44
|
+
"typebox": ">=0.34.0",
|
|
45
|
+
"typescript": "^5.9.3"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/types/bun.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare module 'bun' {
|
|
2
|
+
export const YAML: {
|
|
3
|
+
parse<T = unknown>(input: string): T;
|
|
4
|
+
stringify(value: unknown, replacer?: unknown, space?: string | number): string;
|
|
5
|
+
};
|
|
6
|
+
export const JSONC: {
|
|
7
|
+
parse(input: string): unknown;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module 'bun:sqlite' {
|
|
12
|
+
export class Database {
|
|
13
|
+
constructor(filename: string, options?: { readonly?: boolean; create?: boolean });
|
|
14
|
+
query(sql: string): {
|
|
15
|
+
get(...params: unknown[]): unknown;
|
|
16
|
+
all(...params: unknown[]): unknown[];
|
|
17
|
+
run(...params: unknown[]): unknown;
|
|
18
|
+
};
|
|
19
|
+
close(): void;
|
|
20
|
+
}
|
|
21
|
+
}
|