nao-core 0.0.11__tar.gz → 0.0.12__tar.gz
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.
- {nao_core-0.0.11 → nao_core-0.0.12}/PKG-INFO +1 -1
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/__init__.py +1 -1
- nao_core-0.0.12/nao_core/bin/migrations-postgres/0000_supreme_cable.sql +85 -0
- nao_core-0.0.12/nao_core/bin/migrations-postgres/meta/0000_snapshot.json +610 -0
- nao_core-0.0.12/nao_core/bin/migrations-postgres/meta/_journal.json +13 -0
- nao_core-0.0.12/nao_core/bin/migrations-sqlite/0000_cloudy_squirrel_girl.sql +85 -0
- nao_core-0.0.12/nao_core/bin/migrations-sqlite/meta/0000_snapshot.json +590 -0
- nao_core-0.0.12/nao_core/bin/migrations-sqlite/meta/_journal.json +13 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/bin/nao-chat-server +0 -0
- nao_core-0.0.12/nao_core/bin/public/assets/index-BUcR0FCx.css +1 -0
- nao_core-0.0.12/nao_core/bin/public/assets/index-DDQ8i103.js +14 -0
- nao_core-0.0.12/nao_core/bin/public/assets/index-nOBqrovO.js +36 -0
- nao_core-0.0.12/nao_core/bin/public/assets/login-CGCfd7iQ.js +1 -0
- nao_core-0.0.12/nao_core/bin/public/assets/signinForm-BGrBZeLW.js +1 -0
- nao_core-0.0.12/nao_core/bin/public/assets/signup-BGjbIX9B.js +1 -0
- nao_core-0.0.12/nao_core/bin/public/github-icon.svg +19 -0
- nao_core-0.0.12/nao_core/bin/public/google-icon.svg +2 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/bin/public/index.html +2 -2
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/commands/debug.py +4 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/commands/sync.py +2 -1
- {nao_core-0.0.11 → nao_core-0.0.12}/pyproject.toml +1 -1
- nao_core-0.0.11/nao_core/bin/public/assets/index-BSxC58nD.js +0 -36
- nao_core-0.0.11/nao_core/bin/public/assets/index-Dh3br3Ia.js +0 -13
- nao_core-0.0.11/nao_core/bin/public/assets/index-heKLHGGE.css +0 -1
- {nao_core-0.0.11 → nao_core-0.0.12}/.gitignore +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/LICENSE +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/README.md +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/bin/db.sqlite +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/bin/public/favicon.ico +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/commands/__init__.py +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/commands/chat.py +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/commands/init.py +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/config.py +0 -0
- {nao_core-0.0.11 → nao_core-0.0.12}/nao_core/main.py +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# nao Core CLI package
|
|
2
|
-
__version__ = "0.0.
|
|
2
|
+
__version__ = "0.0.12"
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
CREATE TABLE "account" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"account_id" text NOT NULL,
|
|
4
|
+
"provider_id" text NOT NULL,
|
|
5
|
+
"user_id" text NOT NULL,
|
|
6
|
+
"access_token" text,
|
|
7
|
+
"refresh_token" text,
|
|
8
|
+
"id_token" text,
|
|
9
|
+
"access_token_expires_at" timestamp,
|
|
10
|
+
"refresh_token_expires_at" timestamp,
|
|
11
|
+
"scope" text,
|
|
12
|
+
"password" text,
|
|
13
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
14
|
+
"updated_at" timestamp NOT NULL
|
|
15
|
+
);
|
|
16
|
+
--> statement-breakpoint
|
|
17
|
+
CREATE TABLE "chat_message" (
|
|
18
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
19
|
+
"conversation_id" text NOT NULL,
|
|
20
|
+
"role" text NOT NULL,
|
|
21
|
+
"content" text NOT NULL,
|
|
22
|
+
"created_at" timestamp DEFAULT now() NOT NULL
|
|
23
|
+
);
|
|
24
|
+
--> statement-breakpoint
|
|
25
|
+
CREATE TABLE "conversation" (
|
|
26
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
27
|
+
"user_id" text NOT NULL,
|
|
28
|
+
"title" text DEFAULT 'New Conversation' NOT NULL,
|
|
29
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
30
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
31
|
+
);
|
|
32
|
+
--> statement-breakpoint
|
|
33
|
+
CREATE TABLE "session" (
|
|
34
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
35
|
+
"expires_at" timestamp NOT NULL,
|
|
36
|
+
"token" text NOT NULL,
|
|
37
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
38
|
+
"updated_at" timestamp NOT NULL,
|
|
39
|
+
"ip_address" text,
|
|
40
|
+
"user_agent" text,
|
|
41
|
+
"user_id" text NOT NULL,
|
|
42
|
+
CONSTRAINT "session_token_unique" UNIQUE("token")
|
|
43
|
+
);
|
|
44
|
+
--> statement-breakpoint
|
|
45
|
+
CREATE TABLE "tool_call" (
|
|
46
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
47
|
+
"message_id" text NOT NULL,
|
|
48
|
+
"tool_call_id" text NOT NULL,
|
|
49
|
+
"tool_name" text NOT NULL,
|
|
50
|
+
"input" jsonb NOT NULL,
|
|
51
|
+
"output" jsonb,
|
|
52
|
+
"created_at" timestamp DEFAULT now() NOT NULL
|
|
53
|
+
);
|
|
54
|
+
--> statement-breakpoint
|
|
55
|
+
CREATE TABLE "user" (
|
|
56
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
57
|
+
"name" text NOT NULL,
|
|
58
|
+
"email" text NOT NULL,
|
|
59
|
+
"email_verified" boolean DEFAULT false NOT NULL,
|
|
60
|
+
"image" text,
|
|
61
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
62
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
63
|
+
CONSTRAINT "user_email_unique" UNIQUE("email")
|
|
64
|
+
);
|
|
65
|
+
--> statement-breakpoint
|
|
66
|
+
CREATE TABLE "verification" (
|
|
67
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
68
|
+
"identifier" text NOT NULL,
|
|
69
|
+
"value" text NOT NULL,
|
|
70
|
+
"expires_at" timestamp NOT NULL,
|
|
71
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
72
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
73
|
+
);
|
|
74
|
+
--> statement-breakpoint
|
|
75
|
+
ALTER TABLE "account" ADD CONSTRAINT "account_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
76
|
+
ALTER TABLE "chat_message" ADD CONSTRAINT "chat_message_conversation_id_conversation_id_fk" FOREIGN KEY ("conversation_id") REFERENCES "public"."conversation"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
77
|
+
ALTER TABLE "conversation" ADD CONSTRAINT "conversation_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
78
|
+
ALTER TABLE "session" ADD CONSTRAINT "session_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
79
|
+
ALTER TABLE "tool_call" ADD CONSTRAINT "tool_call_message_id_chat_message_id_fk" FOREIGN KEY ("message_id") REFERENCES "public"."chat_message"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
80
|
+
CREATE INDEX "account_userId_idx" ON "account" USING btree ("user_id");--> statement-breakpoint
|
|
81
|
+
CREATE INDEX "chat_message_conversationId_idx" ON "chat_message" USING btree ("conversation_id");--> statement-breakpoint
|
|
82
|
+
CREATE INDEX "conversation_userId_idx" ON "conversation" USING btree ("user_id");--> statement-breakpoint
|
|
83
|
+
CREATE INDEX "session_userId_idx" ON "session" USING btree ("user_id");--> statement-breakpoint
|
|
84
|
+
CREATE INDEX "tool_call_messageId_idx" ON "tool_call" USING btree ("message_id");--> statement-breakpoint
|
|
85
|
+
CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier");
|