@littlebearapps/platform-admin-sdk 1.1.0 → 1.1.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/templates.d.ts +1 -1
- package/dist/templates.js +1 -1
- package/package.json +1 -1
- package/templates/full/wrangler.alert-router.jsonc.hbs +16 -1
- package/templates/full/wrangler.pattern-discovery.jsonc.hbs +5 -0
- package/templates/standard/wrangler.error-collector.jsonc.hbs +8 -1
- package/templates/standard/wrangler.sentinel.jsonc.hbs +5 -0
package/dist/templates.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { Tier } from './prompts.js';
|
|
8
8
|
/** Single source of truth for the SDK version. */
|
|
9
|
-
export declare const SDK_VERSION = "1.1.
|
|
9
|
+
export declare const SDK_VERSION = "1.1.1";
|
|
10
10
|
/** Returns true if `to` is the same or higher tier than `from`. */
|
|
11
11
|
export declare function isTierUpgradeOrSame(from: Tier, to: Tier): boolean;
|
|
12
12
|
/** Check if a template file is a numbered migration (not seed.sql). */
|
package/dist/templates.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* All other files are copied verbatim.
|
|
6
6
|
*/
|
|
7
7
|
/** Single source of truth for the SDK version. */
|
|
8
|
-
export const SDK_VERSION = '1.1.
|
|
8
|
+
export const SDK_VERSION = '1.1.1';
|
|
9
9
|
/** Tier ordering for upgrade validation. */
|
|
10
10
|
const TIER_ORDER = { minimal: 0, standard: 1, full: 2 };
|
|
11
11
|
/** Returns true if `to` is the same or higher tier than `from`. */
|
package/package.json
CHANGED
|
@@ -22,13 +22,28 @@
|
|
|
22
22
|
{
|
|
23
23
|
"binding": "PLATFORM_ALERTS",
|
|
24
24
|
"id": "YOUR_KV_ALERTS_NAMESPACE_ID"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"binding": "SERVICE_REGISTRY",
|
|
28
|
+
"id": "YOUR_SERVICE_REGISTRY_KV_ID"
|
|
25
29
|
}
|
|
26
30
|
],
|
|
27
31
|
|
|
32
|
+
"queues": {
|
|
33
|
+
"producers": [
|
|
34
|
+
{ "binding": "PLATFORM_TELEMETRY", "queue": "{{projectSlug}}-telemetry" }
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
"services": [
|
|
39
|
+
{ "binding": "NOTIFICATIONS_API", "service": "{{projectSlug}}-notifications" }
|
|
40
|
+
],
|
|
41
|
+
|
|
28
42
|
"vars": {
|
|
29
43
|
"CLOUDFLARE_ACCOUNT_ID": "YOUR_CLOUDFLARE_ACCOUNT_ID"
|
|
30
44
|
}
|
|
31
45
|
|
|
32
|
-
// Secrets needed:
|
|
46
|
+
// Secrets needed (set via wrangler secret put):
|
|
33
47
|
// SLACK_WEBHOOK_URL
|
|
48
|
+
// GITHUB_TOKEN
|
|
34
49
|
}
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
|
|
28
28
|
"ai": { "binding": "AI" },
|
|
29
29
|
|
|
30
|
+
// Dashboard notifications for new patterns and review-ready items
|
|
31
|
+
"services": [
|
|
32
|
+
{ "binding": "NOTIFICATIONS_API", "service": "{{projectSlug}}-notifications" }
|
|
33
|
+
],
|
|
34
|
+
|
|
30
35
|
"vars": {
|
|
31
36
|
"GATUS_HEARTBEAT_URL": "{{gatusUrl}}"
|
|
32
37
|
}
|
|
@@ -34,11 +34,18 @@
|
|
|
34
34
|
"vars": {
|
|
35
35
|
"GITHUB_ORG": "{{githubOrg}}",
|
|
36
36
|
"DEFAULT_ASSIGNEE": "{{defaultAssignee}}",
|
|
37
|
-
"
|
|
37
|
+
"GATUS_HEARTBEAT_URL_15M": "{{gatusUrl}}",
|
|
38
|
+
"GATUS_HEARTBEAT_URL_DIGEST": "{{gatusUrl}}"
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
// Uncomment when you add notifications (full tier):
|
|
42
|
+
// "services": [
|
|
43
|
+
// { "binding": "NOTIFICATIONS_API", "service": "{{projectSlug}}-notifications" }
|
|
44
|
+
// ]
|
|
45
|
+
|
|
40
46
|
// Secrets needed (set via wrangler secret put):
|
|
41
47
|
// GITHUB_APP_ID
|
|
42
48
|
// GITHUB_APP_PRIVATE_KEY
|
|
43
49
|
// GITHUB_APP_INSTALLATION_ID
|
|
50
|
+
// GATUS_TOKEN (optional: bearer token for Gatus external endpoints)
|
|
44
51
|
}
|
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"GATUS_HEARTBEAT_URL": "{{gatusUrl}}"
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
// Uncomment when you add notifications (full tier):
|
|
43
|
+
// "services": [
|
|
44
|
+
// { "binding": "NOTIFICATIONS_API", "service": "{{projectSlug}}-notifications" }
|
|
45
|
+
// ]
|
|
46
|
+
|
|
42
47
|
// Secrets needed (set via wrangler secret put):
|
|
43
48
|
// CLOUDFLARE_API_TOKEN
|
|
44
49
|
// SLACK_WEBHOOK_URL (optional)
|