@withandeo/cli 0.13.0 → 0.14.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.
- package/README.md +4 -11
- package/dist/api.d.ts +19 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +6 -0
- package/dist/api.js.map +1 -1
- package/dist/artifact.d.ts.map +1 -1
- package/dist/artifact.js +21 -0
- package/dist/artifact.js.map +1 -1
- package/dist/contracts.d.ts +1 -0
- package/dist/contracts.d.ts.map +1 -1
- package/dist/main.js +45 -7
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/skill/tender-accounts/references/configuration-secrets.md +16 -4
- package/skill/tender-accounts/references/managed-source.md +4 -11
- package/templates/shopify-customer-account/apps/gateway/.tender/artifacts/current/tender-accounts-build.json +99 -0
- package/templates/shopify-customer-account/apps/gateway/.tender/artifacts/current/worker.mjs +1785 -0
- package/templates/shopify-customer-account/apps/gateway/.tender/build/worker.mjs +1785 -0
- package/templates/shopify-customer-account/apps/gateway/scripts/pack-tender-artifact.mjs +5 -2
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "tender.external-app-build/v1",
|
|
3
|
+
"sourceRevision": "ffffffffffffffffffffffffffffffffffffffff",
|
|
4
|
+
"bundleDigest": "e66389b6c7916261dd8989277e73cccc53c361d1796eb481f832b73ecca66eb9",
|
|
5
|
+
"manifest": {
|
|
6
|
+
"schema": "tender.account-artifact/v1",
|
|
7
|
+
"app": {
|
|
8
|
+
"slug": "__APP_SLUG__-gateway",
|
|
9
|
+
"version": "0.1.0",
|
|
10
|
+
"label": "__APP_NAME__ gateway",
|
|
11
|
+
"fixture": false
|
|
12
|
+
},
|
|
13
|
+
"runtime": {
|
|
14
|
+
"kind": "worker",
|
|
15
|
+
"compatibilityDate": "2026-08-25",
|
|
16
|
+
"mainModule": "worker.mjs",
|
|
17
|
+
"assetPrefix": "/_tenant-artifacts/e66389b6c7916261dd8989277e73cccc53c361d1796eb481f832b73ecca66eb9"
|
|
18
|
+
},
|
|
19
|
+
"module": {
|
|
20
|
+
"path": "worker.mjs",
|
|
21
|
+
"sha256": "a4e09ddcd26055ce1305ba6ce2d45e648208338615c2b1e72a0ed9d3ad37fa1e",
|
|
22
|
+
"bytes": 73369,
|
|
23
|
+
"contentType": "application/javascript+module"
|
|
24
|
+
},
|
|
25
|
+
"files": [],
|
|
26
|
+
"health": {
|
|
27
|
+
"path": "/api/health"
|
|
28
|
+
},
|
|
29
|
+
"resources": [
|
|
30
|
+
{
|
|
31
|
+
"type": "d1",
|
|
32
|
+
"name": "APP_DB"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"services": [
|
|
36
|
+
{
|
|
37
|
+
"name": "PORTAL_UI",
|
|
38
|
+
"targetProject": "__APP_SLUG__-portal-ui"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"vars": {
|
|
42
|
+
"ACCOUNT_PROJECT_ID": "prj_replace_me",
|
|
43
|
+
"ACCOUNT_RUNTIME_BASE_DOMAIN": "tenderprompt.dev",
|
|
44
|
+
"ACCOUNT_TENANT_ID": "ten_replace_me",
|
|
45
|
+
"SHOPIFY_CUSTOMER_ACCOUNT_CLIENT_ID": "replace_me",
|
|
46
|
+
"SHOPIFY_CUSTOMER_ACCOUNT_DOMAIN": "shopify.com",
|
|
47
|
+
"SHOPIFY_STOREFRONT_DOMAIN": "example.myshopify.com"
|
|
48
|
+
},
|
|
49
|
+
"databaseSchema": {
|
|
50
|
+
"schema": "tender.d1-schema/v1",
|
|
51
|
+
"statements": [
|
|
52
|
+
"CREATE TABLE IF NOT EXISTS public_customer_auth_flows (\n project_id TEXT NOT NULL,\n state_digest TEXT NOT NULL,\n browser_binding_digest TEXT NOT NULL,\n client_key_digest TEXT NOT NULL,\n interaction_mode TEXT NOT NULL,\n pkce_verifier TEXT NOT NULL,\n return_hostname TEXT NOT NULL,\n created_at INTEGER NOT NULL,\n expires_at INTEGER NOT NULL,\n consumed_at INTEGER,\n PRIMARY KEY (project_id, state_digest),\n CHECK (length(project_id) BETWEEN 2 AND 128),\n CHECK (length(state_digest) = 64),\n CHECK (state_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (length(browser_binding_digest) = 64),\n CHECK (browser_binding_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (length(client_key_digest) = 64),\n CHECK (client_key_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (interaction_mode IN ('interactive', 'silent')),\n CHECK (length(pkce_verifier) BETWEEN 43 AND 128),\n CHECK (length(return_hostname) BETWEEN 1 AND 253),\n CHECK (return_hostname = lower(return_hostname)),\n CHECK (expires_at > created_at),\n CHECK (consumed_at IS NULL OR consumed_at BETWEEN created_at AND expires_at)\n )",
|
|
53
|
+
"CREATE INDEX IF NOT EXISTS public_customer_auth_flows_by_expiry\n ON public_customer_auth_flows (expires_at)",
|
|
54
|
+
"CREATE TABLE IF NOT EXISTS public_customer_auth_sessions (\n project_id TEXT NOT NULL,\n session_digest TEXT NOT NULL,\n audience_hostname TEXT NOT NULL,\n session_data TEXT NOT NULL,\n created_at INTEGER NOT NULL,\n expires_at INTEGER NOT NULL,\n PRIMARY KEY (project_id, session_digest),\n CHECK (length(project_id) BETWEEN 2 AND 128),\n CHECK (length(session_digest) = 64),\n CHECK (session_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (length(audience_hostname) BETWEEN 1 AND 253),\n CHECK (audience_hostname = lower(audience_hostname)),\n CHECK (length(session_data) BETWEEN 1 AND 65536),\n CHECK (expires_at > created_at)\n )",
|
|
55
|
+
"CREATE INDEX IF NOT EXISTS public_customer_auth_sessions_by_expiry\n ON public_customer_auth_sessions (expires_at)",
|
|
56
|
+
"CREATE TABLE IF NOT EXISTS public_customer_auth_handoffs (\n project_id TEXT NOT NULL,\n handoff_digest TEXT NOT NULL,\n return_hostname TEXT NOT NULL,\n session_digest TEXT NOT NULL,\n session_seal TEXT NOT NULL,\n created_at INTEGER NOT NULL,\n expires_at INTEGER NOT NULL,\n claimed_at INTEGER,\n PRIMARY KEY (project_id, handoff_digest),\n CHECK (length(project_id) BETWEEN 2 AND 128),\n CHECK (length(handoff_digest) = 64),\n CHECK (handoff_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (length(return_hostname) BETWEEN 1 AND 253),\n CHECK (return_hostname = lower(return_hostname)),\n CHECK (length(session_digest) = 64),\n CHECK (session_digest NOT GLOB '*[^0-9a-f]*'),\n CHECK (length(session_seal) BETWEEN 80 AND 100000),\n CHECK (expires_at > created_at),\n CHECK (claimed_at IS NULL OR claimed_at BETWEEN created_at AND expires_at)\n )",
|
|
57
|
+
"CREATE INDEX IF NOT EXISTS public_customer_auth_handoffs_by_expiry\n ON public_customer_auth_handoffs (expires_at)"
|
|
58
|
+
],
|
|
59
|
+
"objects": [
|
|
60
|
+
{
|
|
61
|
+
"type": "table",
|
|
62
|
+
"name": "public_customer_auth_flows",
|
|
63
|
+
"tableName": "public_customer_auth_flows",
|
|
64
|
+
"statementIndex": 0
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "index",
|
|
68
|
+
"name": "public_customer_auth_flows_by_expiry",
|
|
69
|
+
"tableName": "public_customer_auth_flows",
|
|
70
|
+
"statementIndex": 1
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "table",
|
|
74
|
+
"name": "public_customer_auth_sessions",
|
|
75
|
+
"tableName": "public_customer_auth_sessions",
|
|
76
|
+
"statementIndex": 2
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "index",
|
|
80
|
+
"name": "public_customer_auth_sessions_by_expiry",
|
|
81
|
+
"tableName": "public_customer_auth_sessions",
|
|
82
|
+
"statementIndex": 3
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "table",
|
|
86
|
+
"name": "public_customer_auth_handoffs",
|
|
87
|
+
"tableName": "public_customer_auth_handoffs",
|
|
88
|
+
"statementIndex": 4
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "index",
|
|
92
|
+
"name": "public_customer_auth_handoffs_by_expiry",
|
|
93
|
+
"tableName": "public_customer_auth_handoffs",
|
|
94
|
+
"statementIndex": 5
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|