@gitterm/opencode-cloud 0.0.0-stage → 0.1.4

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,2 @@
1
+ export declare const RESTORE_SCRIPT: string;
2
+ export declare const shellQuote: (value: string) => string;
@@ -0,0 +1,33 @@
1
+ export declare const MAX_SNAPSHOT_BYTES: number;
2
+ export declare const DIFF_ARGS: string[];
3
+ export declare function git(directory: string, args: string[], maxBytes?: number): Promise<Buffer>;
4
+ export declare function checkoutRoot(directory: string): Promise<string>;
5
+ export declare function safeRelativePath(file: string): boolean;
6
+ export declare function sensitivePath(file: string): boolean;
7
+ export type SnapshotFile = {
8
+ path: string;
9
+ data: string;
10
+ executable: boolean;
11
+ };
12
+ export type WorkingState = {
13
+ head: string;
14
+ staged: string;
15
+ unstaged: string;
16
+ files: SnapshotFile[];
17
+ changedPaths: string[];
18
+ };
19
+ export type CheckoutSnapshot = WorkingState & {
20
+ version: 1;
21
+ bundle: string;
22
+ digest: string;
23
+ bytes: number;
24
+ };
25
+ export declare const stateDigest: (state: WorkingState) => string;
26
+ export declare function captureSnapshot(directory: string, includeChanges: boolean): Promise<CheckoutSnapshot>;
27
+ export declare function repositoryUrl(root: string): Promise<string>;
28
+ export declare function sharedCheckoutSessions(root: string, sessionID: string, sessions: Array<{
29
+ id: string;
30
+ location: {
31
+ directory: string;
32
+ };
33
+ }>): Promise<string[]>;
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@gitterm/opencode-cloud",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.4",
4
+ "description": "Continue OpenCode sessions and local checkout changes in GitTerm cloud workspaces with /cloud",
5
+ "keywords": [
6
+ "gitterm",
7
+ "opencode",
8
+ "opencode-plugin",
9
+ "remote-development",
10
+ "workspace"
11
+ ],
12
+ "homepage": "https://gitterm.dev",
13
+ "license": "MIT",
14
+ "author": "Opeyemi Oginni",
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "type": "module",
20
+ "main": "./dist/index.js",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "scripts": {
32
+ "build": "rm -rf dist && bun build src/index.ts --outdir dist --target bun --format esm --external @opencode/plugin --external @opencode/client --external '@opencode/client/*' && tsc -p tsconfig.build.json",
33
+ "check-types": "tsc --noEmit",
34
+ "prepack": "bun run check-types && bun run build"
35
+ },
36
+ "dependencies": {
37
+ "@opencode/client": "^2.2.6"
38
+ },
39
+ "devDependencies": {
40
+ "@gitterm/sdk": "workspace:*",
41
+ "@opencode/plugin": "^2.2.6",
42
+ "@types/bun": "^1.2.6",
43
+ "typescript": "^5.8.2"
44
+ },
45
+ "peerDependencies": {
46
+ "@opencode/plugin": "^2.2.6"
47
+ },
48
+ "engines": {
49
+ "bun": ">=1.2.0"
50
+ }
51
+ }