@grackle-ai/common 0.0.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.
@@ -0,0 +1,36 @@
1
+ /** Lifecycle status of an agent session. */
2
+ export type SessionStatus = "pending" | "running" | "waiting_input" | "suspended" | "completed" | "failed" | "killed";
3
+ /** Connection status of a remote environment. */
4
+ export type EnvironmentStatus = "disconnected" | "connecting" | "connected" | "sleeping" | "error";
5
+ /** Discriminator for events emitted by an agent runtime. */
6
+ export type AgentEventType = "text" | "tool_use" | "tool_result" | "error" | "status" | "system" | "finding";
7
+ export type TaskStatus = "pending" | "assigned" | "in_progress" | "review" | "done" | "failed";
8
+ export type ProjectStatus = "active" | "archived";
9
+ export type FindingCategory = "architecture" | "api" | "bug" | "decision" | "dependency" | "pattern" | "general";
10
+ /** Supported environment adapter backends. */
11
+ export type AdapterType = "docker" | "local" | "codespace" | "ssh";
12
+ /** Supported agent runtime implementations. */
13
+ export type RuntimeName = "claude-code" | "copilot" | "stub";
14
+ /** How a token is delivered to the PowerLine: as an env var or written to a file. */
15
+ export type TokenType = "env_var" | "file";
16
+ /** Stages reported during environment provisioning. */
17
+ export type ProvisionStage = "creating" | "starting" | "cloning" | "bootstrapping" | "tunneling" | "connecting" | "pushing_tokens" | "ready" | "error";
18
+ /** Default port the PowerLine gRPC server listens on. */
19
+ export declare const DEFAULT_POWERLINE_PORT: number;
20
+ /** Default port the central Grackle gRPC server listens on. */
21
+ export declare const DEFAULT_SERVER_PORT: number;
22
+ /** Default port for the web UI and WebSocket bridge. */
23
+ export declare const DEFAULT_WEB_PORT: number;
24
+ /** Default agent runtime used when none is specified. */
25
+ export declare const DEFAULT_RUNTIME: RuntimeName;
26
+ /** Name of the Grackle config directory under the user's home. */
27
+ export declare const GRACKLE_DIR: string;
28
+ /** SQLite database filename. */
29
+ export declare const DB_FILENAME: string;
30
+ /** Subdirectory for session log files. */
31
+ export declare const LOGS_DIR: string;
32
+ /** Filename for the locally-stored API key. */
33
+ export declare const API_KEY_FILENAME: string;
34
+ /** Default LLM model identifier for new sessions. */
35
+ export declare const DEFAULT_MODEL: string;
36
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,4CAA4C;AAC5C,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,SAAS,GACT,eAAe,GACf,WAAW,GACX,WAAW,GACX,QAAQ,GACR,QAAQ,CAAC;AAEb,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GACzB,cAAc,GACd,YAAY,GACZ,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEZ,4DAA4D;AAC5D,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,UAAU,GACV,aAAa,GACb,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAC/F,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;AAClD,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjH,8CAA8C;AAC9C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,KAAK,CAAC;AAEnE,+CAA+C;AAC/C,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D,qFAAqF;AACrF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3C,uDAAuD;AACvD,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,UAAU,GACV,SAAS,GACT,eAAe,GACf,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,OAAO,GACP,OAAO,CAAC;AAIZ,yDAAyD;AACzD,eAAO,MAAM,sBAAsB,EAAE,MAAa,CAAC;AACnD,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,MAAa,CAAC;AAChD,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,EAAE,MAAa,CAAC;AAC7C,yDAAyD;AACzD,eAAO,MAAM,eAAe,EAAE,WAA2B,CAAC;AAC1D,kEAAkE;AAClE,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAC9C,gCAAgC;AAChC,eAAO,MAAM,WAAW,EAAE,MAAqB,CAAC;AAChD,0CAA0C;AAC1C,eAAO,MAAM,QAAQ,EAAE,MAAe,CAAC;AACvC,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB,EAAE,MAAkB,CAAC;AAClD,qDAAqD;AACrD,eAAO,MAAM,aAAa,EAAE,MAAiB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,21 @@
1
+ // ─── Enums as string unions ─────────────────────────────────
2
+ // ─── Constants ──────────────────────────────────────────────
3
+ /** Default port the PowerLine gRPC server listens on. */
4
+ export const DEFAULT_POWERLINE_PORT = 7433;
5
+ /** Default port the central Grackle gRPC server listens on. */
6
+ export const DEFAULT_SERVER_PORT = 7434;
7
+ /** Default port for the web UI and WebSocket bridge. */
8
+ export const DEFAULT_WEB_PORT = 3000;
9
+ /** Default agent runtime used when none is specified. */
10
+ export const DEFAULT_RUNTIME = "claude-code";
11
+ /** Name of the Grackle config directory under the user's home. */
12
+ export const GRACKLE_DIR = ".grackle";
13
+ /** SQLite database filename. */
14
+ export const DB_FILENAME = "grackle.db";
15
+ /** Subdirectory for session log files. */
16
+ export const LOGS_DIR = "logs";
17
+ /** Filename for the locally-stored API key. */
18
+ export const API_KEY_FILENAME = "api-key";
19
+ /** Default LLM model identifier for new sessions. */
20
+ export const DEFAULT_MODEL = "sonnet";
21
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAuD/D,+DAA+D;AAE/D,yDAAyD;AACzD,MAAM,CAAC,MAAM,sBAAsB,GAAW,IAAI,CAAC;AACnD,+DAA+D;AAC/D,MAAM,CAAC,MAAM,mBAAmB,GAAW,IAAI,CAAC;AAChD,wDAAwD;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAW,IAAI,CAAC;AAC7C,yDAAyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAgB,aAAa,CAAC;AAC1D,kEAAkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAW,UAAU,CAAC;AAC9C,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW,GAAW,YAAY,CAAC;AAChD,0CAA0C;AAC1C,MAAM,CAAC,MAAM,QAAQ,GAAW,MAAM,CAAC;AACvC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAW,SAAS,CAAC;AAClD,qDAAqD;AACrD,MAAM,CAAC,MAAM,aAAa,GAAW,QAAQ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@grackle-ai/common",
3
+ "version": "0.0.2",
4
+ "description": "Proto definitions, generated code, and shared types for Grackle",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/nick-pape/grackle.git",
9
+ "directory": "packages/common"
10
+ },
11
+ "keywords": [
12
+ "grackle",
13
+ "grpc",
14
+ "protobuf",
15
+ "connectrpc"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22.0.0"
19
+ },
20
+ "type": "module",
21
+ "main": "dist/index.js",
22
+ "types": "dist/index.d.ts",
23
+ "files": [
24
+ "dist/"
25
+ ],
26
+ "dependencies": {
27
+ "@bufbuild/protobuf": "^2.5.0",
28
+ "@connectrpc/connect": "^2.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@bufbuild/buf": "^1.50.0",
32
+ "@bufbuild/protoc-gen-es": "^2.5.0",
33
+ "@grackle-ai/heft-buf-plugin": "0.0.1",
34
+ "@grackle-ai/heft-rig": "0.0.1"
35
+ },
36
+ "scripts": {
37
+ "build": "heft build --clean",
38
+ "clean": "heft clean"
39
+ }
40
+ }