fourth-spark 0.7.13 → 0.8.1

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,20 @@
1
+ CREATE TABLE "workspaces" (
2
+ "id" text PRIMARY KEY NOT NULL,
3
+ "repo_id" text NOT NULL,
4
+ "branch" text NOT NULL,
5
+ "local_path" text NOT NULL,
6
+ "base_branch" text DEFAULT 'main' NOT NULL,
7
+ "status" text DEFAULT 'active' NOT NULL,
8
+ "port" integer,
9
+ "created_at" bigint NOT NULL,
10
+ "updated_at" bigint NOT NULL
11
+ );
12
+ --> statement-breakpoint
13
+ ALTER TABLE "sessions" ADD COLUMN "workspace_id" text;--> statement-breakpoint
14
+ ALTER TABLE "sessions" ADD COLUMN "completed_at" bigint;--> statement-breakpoint
15
+ ALTER TABLE "workspaces" ADD CONSTRAINT "workspaces_repo_id_repos_id_fk" FOREIGN KEY ("repo_id") REFERENCES "public"."repos"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
16
+ CREATE INDEX "workspaces_repo_idx" ON "workspaces" USING btree ("repo_id");--> statement-breakpoint
17
+ CREATE UNIQUE INDEX "workspaces_local_path_idx" ON "workspaces" USING btree ("local_path");--> statement-breakpoint
18
+ CREATE INDEX "workspaces_status_idx" ON "workspaces" USING btree ("repo_id","status");--> statement-breakpoint
19
+ ALTER TABLE "sessions" ADD CONSTRAINT "sessions_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
20
+ CREATE INDEX "sessions_workspace_idx" ON "sessions" USING btree ("workspace_id");
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "ad8d05dd-4d8b-4cab-b49f-c102fac04eba",
2
+ "id": "8327d489-48d0-4d2b-91ae-56859dba5ba4",
3
3
  "prevId": "04cabd55-cedd-49ea-b94d-305c7cea5bc0",
4
4
  "version": "7",
5
5
  "dialect": "postgresql",
@@ -1618,6 +1618,12 @@
1618
1618
  "primaryKey": false,
1619
1619
  "notNull": false
1620
1620
  },
1621
+ "workspace_id": {
1622
+ "name": "workspace_id",
1623
+ "type": "text",
1624
+ "primaryKey": false,
1625
+ "notNull": false
1626
+ },
1621
1627
  "issue_id": {
1622
1628
  "name": "issue_id",
1623
1629
  "type": "text",
@@ -1753,6 +1759,21 @@
1753
1759
  "method": "btree",
1754
1760
  "with": {}
1755
1761
  },
1762
+ "sessions_workspace_idx": {
1763
+ "name": "sessions_workspace_idx",
1764
+ "columns": [
1765
+ {
1766
+ "expression": "workspace_id",
1767
+ "isExpression": false,
1768
+ "asc": true,
1769
+ "nulls": "last"
1770
+ }
1771
+ ],
1772
+ "isUnique": false,
1773
+ "concurrently": false,
1774
+ "method": "btree",
1775
+ "with": {}
1776
+ },
1756
1777
  "sessions_issue_idx": {
1757
1778
  "name": "sessions_issue_idx",
1758
1779
  "columns": [
@@ -1785,6 +1806,19 @@
1785
1806
  }
1786
1807
  },
1787
1808
  "foreignKeys": {
1809
+ "sessions_workspace_id_workspaces_id_fk": {
1810
+ "name": "sessions_workspace_id_workspaces_id_fk",
1811
+ "tableFrom": "sessions",
1812
+ "tableTo": "workspaces",
1813
+ "columnsFrom": [
1814
+ "workspace_id"
1815
+ ],
1816
+ "columnsTo": [
1817
+ "id"
1818
+ ],
1819
+ "onDelete": "set null",
1820
+ "onUpdate": "no action"
1821
+ },
1788
1822
  "sessions_issue_id_issues_id_fk": {
1789
1823
  "name": "sessions_issue_id_issues_id_fk",
1790
1824
  "tableFrom": "sessions",
@@ -2027,6 +2061,141 @@
2027
2061
  "policies": {},
2028
2062
  "checkConstraints": {},
2029
2063
  "isRLSEnabled": false
2064
+ },
2065
+ "public.workspaces": {
2066
+ "name": "workspaces",
2067
+ "schema": "",
2068
+ "columns": {
2069
+ "id": {
2070
+ "name": "id",
2071
+ "type": "text",
2072
+ "primaryKey": true,
2073
+ "notNull": true
2074
+ },
2075
+ "repo_id": {
2076
+ "name": "repo_id",
2077
+ "type": "text",
2078
+ "primaryKey": false,
2079
+ "notNull": true
2080
+ },
2081
+ "branch": {
2082
+ "name": "branch",
2083
+ "type": "text",
2084
+ "primaryKey": false,
2085
+ "notNull": true
2086
+ },
2087
+ "local_path": {
2088
+ "name": "local_path",
2089
+ "type": "text",
2090
+ "primaryKey": false,
2091
+ "notNull": true
2092
+ },
2093
+ "base_branch": {
2094
+ "name": "base_branch",
2095
+ "type": "text",
2096
+ "primaryKey": false,
2097
+ "notNull": true,
2098
+ "default": "'main'"
2099
+ },
2100
+ "status": {
2101
+ "name": "status",
2102
+ "type": "text",
2103
+ "primaryKey": false,
2104
+ "notNull": true,
2105
+ "default": "'active'"
2106
+ },
2107
+ "port": {
2108
+ "name": "port",
2109
+ "type": "integer",
2110
+ "primaryKey": false,
2111
+ "notNull": false
2112
+ },
2113
+ "created_at": {
2114
+ "name": "created_at",
2115
+ "type": "bigint",
2116
+ "primaryKey": false,
2117
+ "notNull": true
2118
+ },
2119
+ "updated_at": {
2120
+ "name": "updated_at",
2121
+ "type": "bigint",
2122
+ "primaryKey": false,
2123
+ "notNull": true
2124
+ }
2125
+ },
2126
+ "indexes": {
2127
+ "workspaces_repo_idx": {
2128
+ "name": "workspaces_repo_idx",
2129
+ "columns": [
2130
+ {
2131
+ "expression": "repo_id",
2132
+ "isExpression": false,
2133
+ "asc": true,
2134
+ "nulls": "last"
2135
+ }
2136
+ ],
2137
+ "isUnique": false,
2138
+ "concurrently": false,
2139
+ "method": "btree",
2140
+ "with": {}
2141
+ },
2142
+ "workspaces_local_path_idx": {
2143
+ "name": "workspaces_local_path_idx",
2144
+ "columns": [
2145
+ {
2146
+ "expression": "local_path",
2147
+ "isExpression": false,
2148
+ "asc": true,
2149
+ "nulls": "last"
2150
+ }
2151
+ ],
2152
+ "isUnique": true,
2153
+ "concurrently": false,
2154
+ "method": "btree",
2155
+ "with": {}
2156
+ },
2157
+ "workspaces_status_idx": {
2158
+ "name": "workspaces_status_idx",
2159
+ "columns": [
2160
+ {
2161
+ "expression": "repo_id",
2162
+ "isExpression": false,
2163
+ "asc": true,
2164
+ "nulls": "last"
2165
+ },
2166
+ {
2167
+ "expression": "status",
2168
+ "isExpression": false,
2169
+ "asc": true,
2170
+ "nulls": "last"
2171
+ }
2172
+ ],
2173
+ "isUnique": false,
2174
+ "concurrently": false,
2175
+ "method": "btree",
2176
+ "with": {}
2177
+ }
2178
+ },
2179
+ "foreignKeys": {
2180
+ "workspaces_repo_id_repos_id_fk": {
2181
+ "name": "workspaces_repo_id_repos_id_fk",
2182
+ "tableFrom": "workspaces",
2183
+ "tableTo": "repos",
2184
+ "columnsFrom": [
2185
+ "repo_id"
2186
+ ],
2187
+ "columnsTo": [
2188
+ "id"
2189
+ ],
2190
+ "onDelete": "cascade",
2191
+ "onUpdate": "no action"
2192
+ }
2193
+ },
2194
+ "compositePrimaryKeys": {},
2195
+ "uniqueConstraints": {},
2196
+ "policies": {},
2197
+ "checkConstraints": {},
2198
+ "isRLSEnabled": false
2030
2199
  }
2031
2200
  },
2032
2201
  "enums": {},
@@ -40,8 +40,8 @@
40
40
  {
41
41
  "idx": 5,
42
42
  "version": "7",
43
- "when": 1786028488742,
44
- "tag": "0005_zippy_selene",
43
+ "when": 1786096664394,
44
+ "tag": "0005_loud_human_cannonball",
45
45
  "breakpoints": true
46
46
  }
47
47
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fourth-spark",
3
- "version": "0.7.13",
3
+ "version": "0.8.1",
4
4
  "description": "AI Agent Platform — multi-repo agent management based on OpenCode",
5
5
  "license": "MIT",
6
6
  "repository": {