@tickernelz/paperclip-pro-db 2026.1005.10 → 2026.1006.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.
- package/dist/agent-instruction-migration.test.d.ts +2 -0
- package/dist/agent-instruction-migration.test.d.ts.map +1 -0
- package/dist/agent-instruction-migration.test.js +141 -0
- package/dist/agent-instruction-migration.test.js.map +1 -0
- package/dist/client-disconnect-replay.test.d.ts +2 -0
- package/dist/client-disconnect-replay.test.d.ts.map +1 -0
- package/dist/client-disconnect-replay.test.js +182 -0
- package/dist/client-disconnect-replay.test.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +25 -5
- package/dist/client.js.map +1 -1
- package/dist/connections-v3-schema-core-migration.test.js +13 -0
- package/dist/connections-v3-schema-core-migration.test.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/0291_petite_genesis.sql +1 -0
- package/dist/migrations/0292_heavy_oracle.sql +1 -0
- package/dist/migrations/0293_complete_alice.sql +13 -0
- package/dist/migrations/0294_serious_tinkerer.sql +61 -0
- package/dist/migrations/0295_glorious_jamie_braddock.sql +36 -0
- package/dist/migrations/0296_drop_user_keyboard_shortcuts.sql +5 -0
- package/dist/migrations/0297_browser_use_cloud.sql +155 -0
- package/dist/migrations/0298_conscious_secret_warriors.sql +119 -0
- package/dist/migrations/0299_powerful_devos.sql +1 -0
- package/dist/migrations/0300_broad_rattler.sql +1 -0
- package/dist/migrations/0301_chilly_marvel_apes.sql +1 -0
- package/dist/migrations/0302_public_captain_cross.sql +21 -0
- package/dist/migrations/0303_stiff_thaddeus_ross.sql +25 -0
- package/dist/migrations/0304_foamy_swordsman.sql +14 -0
- package/dist/migrations/0305_connection_agent_instructions.sql +16 -0
- package/dist/migrations/0306_absent_ser_duncan.sql +64 -0
- package/dist/migrations/meta/_journal.json +113 -1
- package/dist/schema/agent_api_keys.d.ts +4 -4
- package/dist/schema/agent_instruction_revisions.d.ts +740 -0
- package/dist/schema/agent_instruction_revisions.d.ts.map +1 -0
- package/dist/schema/agent_instruction_revisions.js +80 -0
- package/dist/schema/agent_instruction_revisions.js.map +1 -0
- package/dist/schema/agent_wakeup_requests.d.ts.map +1 -1
- package/dist/schema/agent_wakeup_requests.js +3 -0
- package/dist/schema/agent_wakeup_requests.js.map +1 -1
- package/dist/schema/ai_connection_routing.d.ts +448 -0
- package/dist/schema/ai_connection_routing.d.ts.map +1 -0
- package/dist/schema/ai_connection_routing.js +37 -0
- package/dist/schema/ai_connection_routing.js.map +1 -0
- package/dist/schema/assets.d.ts +1 -1
- package/dist/schema/assets.js +2 -2
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/browser_use.d.ts +745 -0
- package/dist/schema/browser_use.d.ts.map +1 -0
- package/dist/schema/browser_use.js +104 -0
- package/dist/schema/browser_use.js.map +1 -0
- package/dist/schema/chat_completion_deliveries.d.ts +308 -0
- package/dist/schema/chat_completion_deliveries.d.ts.map +1 -0
- package/dist/schema/chat_completion_deliveries.js +33 -0
- package/dist/schema/chat_completion_deliveries.js.map +1 -0
- package/dist/schema/company_secrets.d.ts +17 -0
- package/dist/schema/company_secrets.d.ts.map +1 -1
- package/dist/schema/company_secrets.js +1 -0
- package/dist/schema/company_secrets.js.map +1 -1
- package/dist/schema/company_skill_sources.d.ts +498 -0
- package/dist/schema/company_skill_sources.d.ts.map +1 -0
- package/dist/schema/company_skill_sources.js +43 -0
- package/dist/schema/company_skill_sources.js.map +1 -0
- package/dist/schema/company_skills.d.ts +2 -0
- package/dist/schema/company_skills.d.ts.map +1 -1
- package/dist/schema/company_skills.js.map +1 -1
- package/dist/schema/index.d.ts +9 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +9 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/issues.d.ts +17 -0
- package/dist/schema/issues.d.ts.map +1 -1
- package/dist/schema/issues.js +2 -1
- package/dist/schema/issues.js.map +1 -1
- package/dist/schema/resource_lifecycle_events.d.ts +115 -0
- package/dist/schema/resource_lifecycle_events.d.ts.map +1 -0
- package/dist/schema/resource_lifecycle_events.js +18 -0
- package/dist/schema/resource_lifecycle_events.js.map +1 -0
- package/dist/schema/runner_api_response_reservations.d.ts +110 -0
- package/dist/schema/runner_api_response_reservations.d.ts.map +1 -0
- package/dist/schema/runner_api_response_reservations.js +13 -0
- package/dist/schema/runner_api_response_reservations.js.map +1 -0
- package/dist/schema/tool_access.d.ts +35 -2
- package/dist/schema/tool_access.d.ts.map +1 -1
- package/dist/schema/tool_access.js +2 -0
- package/dist/schema/tool_access.js.map +1 -1
- package/dist/schema/tool_connection_app_snapshots.d.ts +184 -0
- package/dist/schema/tool_connection_app_snapshots.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_snapshots.js +20 -0
- package/dist/schema/tool_connection_app_snapshots.js.map +1 -0
- package/dist/schema/tool_connection_app_syncs.d.ts +215 -0
- package/dist/schema/tool_connection_app_syncs.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_syncs.js +22 -0
- package/dist/schema/tool_connection_app_syncs.js.map +1 -0
- package/package.json +3 -3
- package/dist/transient-write-retry.d.ts +0 -4
- package/dist/transient-write-retry.d.ts.map +0 -1
- package/dist/transient-write-retry.js +0 -79
- package/dist/transient-write-retry.js.map +0 -1
- package/dist/transient-write-retry.test.d.ts +0 -2
- package/dist/transient-write-retry.test.d.ts.map +0 -1
- package/dist/transient-write-retry.test.js +0 -166
- package/dist/transient-write-retry.test.js.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
CREATE TABLE IF NOT EXISTS "ai_connection_pools" (
|
|
2
|
+
"id" uuid PRIMARY KEY NOT NULL,
|
|
3
|
+
"company_id" uuid NOT NULL,
|
|
4
|
+
"plugin_key" text NOT NULL,
|
|
5
|
+
"config" jsonb NOT NULL,
|
|
6
|
+
"revision" integer DEFAULT 1 NOT NULL,
|
|
7
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
8
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
9
|
+
CONSTRAINT "ai_connection_pools_company_id_uq" UNIQUE("company_id","id")
|
|
10
|
+
);
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
CREATE TABLE IF NOT EXISTS "ai_connection_router_cursors" (
|
|
13
|
+
"pool_id" uuid PRIMARY KEY NOT NULL,
|
|
14
|
+
"company_id" uuid NOT NULL,
|
|
15
|
+
"last_member_id" text,
|
|
16
|
+
"version" integer DEFAULT 0 NOT NULL
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
CREATE TABLE IF NOT EXISTS "ai_connection_task_pins" (
|
|
20
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
21
|
+
"company_id" uuid NOT NULL,
|
|
22
|
+
"pool_id" uuid NOT NULL,
|
|
23
|
+
"agent_id" uuid NOT NULL,
|
|
24
|
+
"task_key" text NOT NULL,
|
|
25
|
+
"selection" jsonb NOT NULL,
|
|
26
|
+
"member" jsonb NOT NULL,
|
|
27
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
28
|
+
);
|
|
29
|
+
--> statement-breakpoint
|
|
30
|
+
ALTER TABLE "company_secrets" ADD COLUMN IF NOT EXISTS "ai_session_epoch" integer DEFAULT 0 NOT NULL;--> statement-breakpoint
|
|
31
|
+
DO $$ BEGIN
|
|
32
|
+
ALTER TABLE "ai_connection_pools" ADD CONSTRAINT "ai_connection_pools_id_tool_connections_id_fk" FOREIGN KEY ("id") REFERENCES "public"."tool_connections"("id") ON DELETE cascade ON UPDATE no action;
|
|
33
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
34
|
+
DO $$ BEGIN
|
|
35
|
+
ALTER TABLE "ai_connection_pools" ADD CONSTRAINT "ai_connection_pools_company_id_companies_id_fk" FOREIGN KEY ("company_id") REFERENCES "public"."companies"("id") ON DELETE cascade ON UPDATE no action;
|
|
36
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
37
|
+
DO $$ BEGIN
|
|
38
|
+
ALTER TABLE "ai_connection_pools" ADD CONSTRAINT "ai_connection_pools_company_connection_fk" FOREIGN KEY ("company_id","id") REFERENCES "public"."tool_connections"("company_id","id") ON DELETE cascade ON UPDATE no action;
|
|
39
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
40
|
+
DO $$ BEGIN
|
|
41
|
+
ALTER TABLE "ai_connection_router_cursors" ADD CONSTRAINT "ai_connection_router_cursors_pool_id_ai_connection_pools_id_fk" FOREIGN KEY ("pool_id") REFERENCES "public"."ai_connection_pools"("id") ON DELETE cascade ON UPDATE no action;
|
|
42
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
43
|
+
DO $$ BEGIN
|
|
44
|
+
ALTER TABLE "ai_connection_router_cursors" ADD CONSTRAINT "ai_connection_router_cursors_company_id_companies_id_fk" FOREIGN KEY ("company_id") REFERENCES "public"."companies"("id") ON DELETE cascade ON UPDATE no action;
|
|
45
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
46
|
+
DO $$ BEGIN
|
|
47
|
+
ALTER TABLE "ai_connection_router_cursors" ADD CONSTRAINT "ai_connection_router_cursors_company_pool_fk" FOREIGN KEY ("company_id","pool_id") REFERENCES "public"."ai_connection_pools"("company_id","id") ON DELETE cascade ON UPDATE no action;
|
|
48
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
49
|
+
DO $$ BEGIN
|
|
50
|
+
ALTER TABLE "ai_connection_task_pins" ADD CONSTRAINT "ai_connection_task_pins_company_id_companies_id_fk" FOREIGN KEY ("company_id") REFERENCES "public"."companies"("id") ON DELETE cascade ON UPDATE no action;
|
|
51
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
52
|
+
DO $$ BEGIN
|
|
53
|
+
ALTER TABLE "ai_connection_task_pins" ADD CONSTRAINT "ai_connection_task_pins_pool_id_ai_connection_pools_id_fk" FOREIGN KEY ("pool_id") REFERENCES "public"."ai_connection_pools"("id") ON DELETE cascade ON UPDATE no action;
|
|
54
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
55
|
+
DO $$ BEGIN
|
|
56
|
+
ALTER TABLE "ai_connection_task_pins" ADD CONSTRAINT "ai_connection_task_pins_agent_id_agents_id_fk" FOREIGN KEY ("agent_id") REFERENCES "public"."agents"("id") ON DELETE cascade ON UPDATE no action;
|
|
57
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
58
|
+
DO $$ BEGIN
|
|
59
|
+
ALTER TABLE "ai_connection_task_pins" ADD CONSTRAINT "ai_connection_task_pins_company_pool_fk" FOREIGN KEY ("company_id","pool_id") REFERENCES "public"."ai_connection_pools"("company_id","id") ON DELETE cascade ON UPDATE no action;
|
|
60
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
61
|
+
DO $$ BEGIN
|
|
62
|
+
ALTER TABLE "ai_connection_task_pins" ADD CONSTRAINT "ai_connection_task_pins_company_agent_fk" FOREIGN KEY ("company_id","agent_id") REFERENCES "public"."agents"("company_id","id") ON DELETE cascade ON UPDATE no action;
|
|
63
|
+
EXCEPTION WHEN duplicate_object THEN NULL; END $$;--> statement-breakpoint
|
|
64
|
+
CREATE UNIQUE INDEX IF NOT EXISTS "ai_connection_task_pins_affinity_uq" ON "ai_connection_task_pins" USING btree ("company_id","pool_id","agent_id","task_key");
|
|
@@ -2024,6 +2024,118 @@
|
|
|
2024
2024
|
"when": 1791222140296,
|
|
2025
2025
|
"tag": "0290_dizzy_ultragirl",
|
|
2026
2026
|
"breakpoints": true
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
"idx": 291,
|
|
2030
|
+
"version": "7",
|
|
2031
|
+
"when": 1791222140297,
|
|
2032
|
+
"tag": "0291_petite_genesis",
|
|
2033
|
+
"breakpoints": true
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"idx": 292,
|
|
2037
|
+
"version": "7",
|
|
2038
|
+
"when": 1791222140298,
|
|
2039
|
+
"tag": "0292_heavy_oracle",
|
|
2040
|
+
"breakpoints": true
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"idx": 293,
|
|
2044
|
+
"version": "7",
|
|
2045
|
+
"when": 1791222140299,
|
|
2046
|
+
"tag": "0293_complete_alice",
|
|
2047
|
+
"breakpoints": true
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"idx": 294,
|
|
2051
|
+
"version": "7",
|
|
2052
|
+
"when": 1791222140300,
|
|
2053
|
+
"tag": "0294_serious_tinkerer",
|
|
2054
|
+
"breakpoints": true
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
"idx": 295,
|
|
2058
|
+
"version": "7",
|
|
2059
|
+
"when": 1791222140301,
|
|
2060
|
+
"tag": "0295_glorious_jamie_braddock",
|
|
2061
|
+
"breakpoints": true
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"idx": 296,
|
|
2065
|
+
"version": "7",
|
|
2066
|
+
"when": 1791222140302,
|
|
2067
|
+
"tag": "0296_drop_user_keyboard_shortcuts",
|
|
2068
|
+
"breakpoints": true
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"idx": 297,
|
|
2072
|
+
"version": "7",
|
|
2073
|
+
"when": 1791222140303,
|
|
2074
|
+
"tag": "0297_browser_use_cloud",
|
|
2075
|
+
"breakpoints": true
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"idx": 298,
|
|
2079
|
+
"version": "7",
|
|
2080
|
+
"when": 1791222140304,
|
|
2081
|
+
"tag": "0298_conscious_secret_warriors",
|
|
2082
|
+
"breakpoints": true
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
"idx": 299,
|
|
2086
|
+
"version": "7",
|
|
2087
|
+
"when": 1791222140305,
|
|
2088
|
+
"tag": "0299_powerful_devos",
|
|
2089
|
+
"breakpoints": true
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"idx": 300,
|
|
2093
|
+
"version": "7",
|
|
2094
|
+
"when": 1791222140306,
|
|
2095
|
+
"tag": "0300_broad_rattler",
|
|
2096
|
+
"breakpoints": true
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"idx": 301,
|
|
2100
|
+
"version": "7",
|
|
2101
|
+
"when": 1791222140307,
|
|
2102
|
+
"tag": "0301_chilly_marvel_apes",
|
|
2103
|
+
"breakpoints": true
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"idx": 302,
|
|
2107
|
+
"version": "7",
|
|
2108
|
+
"when": 1791222140308,
|
|
2109
|
+
"tag": "0302_public_captain_cross",
|
|
2110
|
+
"breakpoints": true
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"idx": 303,
|
|
2114
|
+
"version": "7",
|
|
2115
|
+
"when": 1791222140309,
|
|
2116
|
+
"tag": "0303_stiff_thaddeus_ross",
|
|
2117
|
+
"breakpoints": true
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"idx": 304,
|
|
2121
|
+
"version": "7",
|
|
2122
|
+
"when": 1791233758328,
|
|
2123
|
+
"tag": "0304_foamy_swordsman",
|
|
2124
|
+
"breakpoints": true
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"idx": 305,
|
|
2128
|
+
"version": "7",
|
|
2129
|
+
"when": 1791241297512,
|
|
2130
|
+
"tag": "0305_connection_agent_instructions",
|
|
2131
|
+
"breakpoints": true
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"idx": 306,
|
|
2135
|
+
"version": "7",
|
|
2136
|
+
"when": 1791248126600,
|
|
2137
|
+
"tag": "0306_absent_ser_duncan",
|
|
2138
|
+
"breakpoints": true
|
|
2027
2139
|
}
|
|
2028
2140
|
]
|
|
2029
|
-
}
|
|
2141
|
+
}
|
|
@@ -110,14 +110,14 @@ export declare const agentApiKeys: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
110
110
|
dataType: "json";
|
|
111
111
|
columnType: "PgJsonb";
|
|
112
112
|
data: {
|
|
113
|
+
kind: "standard";
|
|
114
|
+
} | {
|
|
113
115
|
kind: "task_bridge";
|
|
114
116
|
projectId?: string | null | undefined;
|
|
115
117
|
projectIds?: string[] | undefined;
|
|
116
118
|
parentIssueId?: string | null | undefined;
|
|
117
119
|
parentIssueIds?: string[] | undefined;
|
|
118
120
|
allowedAssigneeAgentIds?: string[] | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
kind: "standard";
|
|
121
121
|
} | {
|
|
122
122
|
kind: "skill_test";
|
|
123
123
|
issueId: string;
|
|
@@ -134,14 +134,14 @@ export declare const agentApiKeys: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
134
134
|
generated: undefined;
|
|
135
135
|
}, {}, {
|
|
136
136
|
$type: {
|
|
137
|
+
kind: "standard";
|
|
138
|
+
} | {
|
|
137
139
|
kind: "task_bridge";
|
|
138
140
|
projectId?: string | null | undefined;
|
|
139
141
|
projectIds?: string[] | undefined;
|
|
140
142
|
parentIssueId?: string | null | undefined;
|
|
141
143
|
parentIssueIds?: string[] | undefined;
|
|
142
144
|
allowedAssigneeAgentIds?: string[] | undefined;
|
|
143
|
-
} | {
|
|
144
|
-
kind: "standard";
|
|
145
145
|
} | {
|
|
146
146
|
kind: "skill_test";
|
|
147
147
|
issueId: string;
|