@the-portland-company/devnotes 0.1.0

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,76 @@
1
+ import { createNextDevNotesProxy } from '@the-portland-company/devnotes/next';
2
+
3
+ const backend = {
4
+ async getCapabilities() {
5
+ return { ai: false, appLink: true };
6
+ },
7
+ async getAppLinkStatus() {
8
+ return {
9
+ linked: Boolean(process.env.FOCUS_FORGE_PAT),
10
+ projectName: process.env.FOCUS_FORGE_PROJECT_NAME || null,
11
+ tokenLast4: process.env.FOCUS_FORGE_PAT?.slice(-4) || null,
12
+ linkedAt: null,
13
+ };
14
+ },
15
+ async linkApp() {
16
+ throw new Error('Implement app-level Forge credential storage for your Next.js app.');
17
+ },
18
+ async unlinkApp() {
19
+ throw new Error('Implement app-level Forge credential removal for your Next.js app.');
20
+ },
21
+ async listReports() {
22
+ throw new Error('Implement Forge-backed report listing.');
23
+ },
24
+ async createReport() {
25
+ throw new Error('Implement Forge-backed report creation.');
26
+ },
27
+ async updateReport() {
28
+ throw new Error('Implement Forge-backed report updates.');
29
+ },
30
+ async deleteReport() {
31
+ throw new Error('Implement Forge-backed report deletion.');
32
+ },
33
+ async listReportTypes() {
34
+ throw new Error('Implement Forge-backed report type listing.');
35
+ },
36
+ async createReportType() {
37
+ throw new Error('Implement Forge-backed report type creation.');
38
+ },
39
+ async deleteReportType() {
40
+ throw new Error('Implement Forge-backed report type deletion.');
41
+ },
42
+ async listTaskLists() {
43
+ throw new Error('Implement Forge-backed task list listing.');
44
+ },
45
+ async createTaskList() {
46
+ throw new Error('Implement Forge-backed task list creation.');
47
+ },
48
+ async listMessages() {
49
+ throw new Error('Implement Forge-backed message listing.');
50
+ },
51
+ async createMessage() {
52
+ throw new Error('Implement Forge-backed message creation.');
53
+ },
54
+ async updateMessage() {
55
+ throw new Error('Implement Forge-backed message updates.');
56
+ },
57
+ async deleteMessage() {
58
+ throw new Error('Implement Forge-backed message deletion.');
59
+ },
60
+ async getUnreadCounts() {
61
+ throw new Error('Implement Forge-backed unread count lookup.');
62
+ },
63
+ async markMessagesRead() {
64
+ throw new Error('Implement Forge-backed message read tracking.');
65
+ },
66
+ async listCollaborators() {
67
+ throw new Error('Implement Forge-backed collaborator listing.');
68
+ },
69
+ };
70
+
71
+ const handler = createNextDevNotesProxy(backend);
72
+
73
+ export const GET = handler;
74
+ export const POST = handler;
75
+ export const PATCH = handler;
76
+ export const DELETE = handler;