@base44-preview/cli 0.1.5-pr.574.218ee97 → 0.1.5-pr.575.c55cbe2

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.
@@ -9,6 +9,8 @@
9
9
  * - BASE44_APP_ID: App identifier from .app.jsonc
10
10
  * - BASE44_ACCESS_TOKEN: User's access token
11
11
  * - BASE44_APP_BASE_URL: App's published URL / subdomain (used for function calls)
12
+ * - BASE44_PRIVILEGED: When "true", adds the X-Bypass-RLS header (bypass RLS)
13
+ * - BASE44_DATA_ENV: When set, adds the X-Data-Env header (target data environment)
12
14
  */
13
15
 
14
16
  export {};
@@ -17,6 +19,8 @@ const scriptPath = Deno.env.get("SCRIPT_PATH");
17
19
  const appId = Deno.env.get("BASE44_APP_ID");
18
20
  const accessToken = Deno.env.get("BASE44_ACCESS_TOKEN");
19
21
  const appBaseUrl = Deno.env.get("BASE44_APP_BASE_URL");
22
+ const isPrivileged = Deno.env.get("BASE44_PRIVILEGED") === "true";
23
+ const dataEnv = Deno.env.get("BASE44_DATA_ENV");
20
24
 
21
25
  if (!scriptPath) {
22
26
  console.error("SCRIPT_PATH environment variable is required");
@@ -35,10 +39,15 @@ if (!appBaseUrl) {
35
39
 
36
40
  import { createClient } from "npm:@base44/sdk";
37
41
 
42
+ const customHeaders: Record<string, string> = {};
43
+ if (isPrivileged) customHeaders["X-Bypass-RLS"] = "true";
44
+ if (dataEnv) customHeaders["X-Data-Env"] = dataEnv;
45
+
38
46
  const base44 = createClient({
39
47
  appId,
40
48
  token: accessToken,
41
49
  serverUrl: appBaseUrl,
50
+ headers: customHeaders,
42
51
  });
43
52
 
44
53
  (globalThis as any).base44 = base44;
@@ -0,0 +1,8 @@
1
+ ---
2
+ description: Summarize the week's completed tasks grouped by assignee.
3
+ ---
4
+
5
+ When the user asks for a weekly report:
6
+ 1. Read all Tasks completed in the last 7 days.
7
+ 2. Group them by assignee and count done vs. carried-over.
8
+ 3. Return a short markdown table, newest first.
@@ -8,6 +8,7 @@
8
8
  "allowed_operations": ["read", "create", "update", "delete"]
9
9
  }
10
10
  ],
11
+ "selected_skill_names": ["weekly-report"],
11
12
  // Optional: let the agent remember facts across conversations.
12
13
  // scope: "user" (per end-user), "global" (shared), or "both".
13
14
  "memory_config": {