@suveren/gateway 0.6.4 → 0.6.7
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/bin/suveren-gateway.js +19 -2
- package/content/integrations/deploy-github.json +2 -2
- package/dist/mcp-server/http.mjs +6 -1
- package/lib/autostart-templates.d.mts +2 -0
- package/lib/autostart-templates.mjs +16 -3
- package/node_modules/@hono/node-server/README.md +47 -1
- package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
- package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
- package/node_modules/@hono/node-server/dist/index.cjs +4 -1
- package/node_modules/@hono/node-server/dist/index.mjs +4 -1
- package/node_modules/@hono/node-server/package.json +14 -1
- package/node_modules/express-rate-limit/dist/index.cjs +6 -1
- package/node_modules/express-rate-limit/dist/index.mjs +6 -1
- package/node_modules/express-rate-limit/package.json +6 -6
- package/node_modules/hono/dist/cjs/context.js +28 -13
- package/node_modules/hono/dist/cjs/hono-base.js +3 -2
- package/node_modules/hono/dist/cjs/jsx/base.js +26 -14
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +103 -8
- package/node_modules/hono/dist/cjs/middleware/compress/index.js +5 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +9 -4
- package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +9 -4
- package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +90 -0
- package/node_modules/hono/dist/cjs/request.js +6 -8
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +55 -56
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +64 -85
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +13 -5
- package/node_modules/hono/dist/cjs/router.js +1 -1
- package/node_modules/hono/dist/cjs/utils/cookie.js +1 -1
- package/node_modules/hono/dist/cjs/utils/url.js +7 -7
- package/node_modules/hono/dist/context.js +28 -13
- package/node_modules/hono/dist/hono-base.js +3 -2
- package/node_modules/hono/dist/jsx/base.js +26 -14
- package/node_modules/hono/dist/jsx/hooks/index.js +2 -2
- package/node_modules/hono/dist/middleware/cache/index.js +103 -8
- package/node_modules/hono/dist/middleware/compress/index.js +5 -0
- package/node_modules/hono/dist/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/middleware/etag/index.js +1 -1
- package/node_modules/hono/dist/middleware/jwk/jwk.js +9 -4
- package/node_modules/hono/dist/middleware/jwt/jwt.js +9 -4
- package/node_modules/hono/dist/middleware/method-not-allowed/index.js +68 -0
- package/node_modules/hono/dist/request.js +7 -9
- package/node_modules/hono/dist/router/reg-exp-router/node.js +55 -56
- package/node_modules/hono/dist/router/reg-exp-router/router.js +64 -85
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +13 -5
- package/node_modules/hono/dist/router.js +1 -1
- package/node_modules/hono/dist/types/client/types.d.ts +1 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +4 -3
- package/node_modules/hono/dist/types/jsx/base.d.ts +4 -2
- package/node_modules/hono/dist/types/jsx/dom/index.d.ts +5 -5
- package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/server.d.ts +5 -5
- package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +8 -6
- package/node_modules/hono/dist/types/jsx/index.d.ts +5 -5
- package/node_modules/hono/dist/types/middleware/cache/index.d.ts +6 -4
- package/node_modules/hono/dist/types/middleware/cors/index.d.ts +1 -1
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +2 -2
- package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +2 -0
- package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +49 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +1 -1
- package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +2 -1
- package/node_modules/hono/dist/types/router.d.ts +1 -1
- package/node_modules/hono/dist/types/utils/headers.d.ts +2 -2
- package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
- package/node_modules/hono/dist/utils/cookie.js +2 -2
- package/node_modules/hono/dist/utils/url.js +5 -6
- package/node_modules/hono/package.json +9 -1
- package/package.json +1 -1
- package/profiles/deploy/0.8.profile.json +170 -0
- package/profiles/index.json +2 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "github.com/humanagencyprotocol/hap-profiles/deploy@0.8",
|
|
3
|
+
"name": "Deploy",
|
|
4
|
+
"version": "0.8",
|
|
5
|
+
"description": "Authority to make an already-built version live. Successor to deploy@0.6, which gated 'build and deploy this commit'; this gates the act of putting something in front of real users, because building is not consequential and going live is. The action is a RELEASE: it activates bytes that already exist, so the human can look at the artifact before approving and no rebuild can diverge from what was approved. Host-agnostic — the artifact identifier is a Vercel deployment id, a container image digest, an Azure slot — named by the connector manifest, never here.",
|
|
6
|
+
"boundsSchema": {
|
|
7
|
+
"keyOrder": [
|
|
8
|
+
"profile",
|
|
9
|
+
"release_daily_max",
|
|
10
|
+
"rollback_allowed"
|
|
11
|
+
],
|
|
12
|
+
"fields": {
|
|
13
|
+
"profile": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"required": true
|
|
16
|
+
},
|
|
17
|
+
"release_daily_max": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"required": true,
|
|
20
|
+
"displayName": "Times per day something may go live",
|
|
21
|
+
"description": "How often the agent may make a build live for real users. Counted by the Authority Server, so a compromised gateway cannot exceed it. Building a preview is NOT counted: previews harm nobody, and charging them against this limit would exhaust it before anything reached anyone.",
|
|
22
|
+
"unit": "count",
|
|
23
|
+
"boundType": {
|
|
24
|
+
"kind": "cumulative_count",
|
|
25
|
+
"window": "daily"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"rollback_allowed": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": true,
|
|
31
|
+
"displayName": "May put a previous version back live",
|
|
32
|
+
"description": "Whether the agent may promote a PREVIOUS artifact back to live. Its own action type: reverting carries different risk from releasing, and the artifact being restored was approved for a moment that has passed.",
|
|
33
|
+
"enum": [
|
|
34
|
+
"yes",
|
|
35
|
+
"no"
|
|
36
|
+
],
|
|
37
|
+
"boundType": {
|
|
38
|
+
"kind": "enum",
|
|
39
|
+
"values": [
|
|
40
|
+
"yes",
|
|
41
|
+
"no"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"contextSchema": {
|
|
48
|
+
"keyOrder": [
|
|
49
|
+
"allowed_repos",
|
|
50
|
+
"allowed_environments",
|
|
51
|
+
"allowed_workflows",
|
|
52
|
+
"allowed_branches"
|
|
53
|
+
],
|
|
54
|
+
"fields": {
|
|
55
|
+
"allowed_repos": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": true,
|
|
58
|
+
"displayName": "Allowed repositories",
|
|
59
|
+
"description": "Repositories the agent may deploy from, e.g. humanagencyprotocol/hap",
|
|
60
|
+
"constraint": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enforceable": [
|
|
63
|
+
"subset"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"allowed_environments": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": true,
|
|
70
|
+
"displayName": "Allowed environments",
|
|
71
|
+
"description": "Deployment targets the agent may reach. Deliberately NOT an enum: hosts disagree — GitHub uses names you define, Vercel has production and preview, Netlify has deploy-preview and branch-deploy. The connector discovers the real list.",
|
|
72
|
+
"constraint": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enforceable": [
|
|
75
|
+
"subset"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"allowed_workflows": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"required": true,
|
|
82
|
+
"displayName": "Allowed pipelines",
|
|
83
|
+
"description": "Named pipelines the agent may run, e.g. deploy.yml. Scoping by pipeline rather than by 'deploy' means adding CI later — a migration, an infrastructure apply — is an edit to this list, not a new profile. The limit of this approach: the grant knows a pipeline is permitted, not what it does. The name has to carry that meaning to the human signing.",
|
|
84
|
+
"constraint": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enforceable": [
|
|
87
|
+
"subset"
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"allowed_branches": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"required": false,
|
|
94
|
+
"displayName": "Allowed branches",
|
|
95
|
+
"description": "Branches a deployable commit may come from. Optional: a host with no branch concept leaves it empty.",
|
|
96
|
+
"constraint": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enforceable": [
|
|
99
|
+
"subset"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"executionContextSchema": {
|
|
106
|
+
"fields": {
|
|
107
|
+
"action_type": {
|
|
108
|
+
"source": "static",
|
|
109
|
+
"description": "release or rollback — declared by the manifest, never taken from an agent argument",
|
|
110
|
+
"required": true,
|
|
111
|
+
"constraint": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enforceable": [
|
|
114
|
+
"equals"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"allowed_repos": {
|
|
119
|
+
"source": "declared",
|
|
120
|
+
"description": "Repository this action targets, checked against the authorized set",
|
|
121
|
+
"required": true,
|
|
122
|
+
"constraint": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"enforceable": [
|
|
125
|
+
"subset"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"allowed_environments": {
|
|
130
|
+
"source": "declared",
|
|
131
|
+
"description": "Environment this action targets, checked against the authorized set. Recorded in the receipt, so the proof names where the release went.",
|
|
132
|
+
"required": true,
|
|
133
|
+
"constraint": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enforceable": [
|
|
136
|
+
"subset"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"allowed_workflows": {
|
|
141
|
+
"source": "declared",
|
|
142
|
+
"description": "Pipeline this action runs, checked against the authorized set. Recorded in the receipt, so the proof names what ran.",
|
|
143
|
+
"required": true,
|
|
144
|
+
"constraint": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"enforceable": [
|
|
147
|
+
"subset"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"requiredGates": [
|
|
154
|
+
"bounds",
|
|
155
|
+
"intent",
|
|
156
|
+
"commitment",
|
|
157
|
+
"decision_owner"
|
|
158
|
+
],
|
|
159
|
+
"ttl": {
|
|
160
|
+
"default": 2592000,
|
|
161
|
+
"max": 31536000
|
|
162
|
+
},
|
|
163
|
+
"retention_minimum": 7776000,
|
|
164
|
+
"content_binding": {
|
|
165
|
+
"version": "1",
|
|
166
|
+
"kind": "text"
|
|
167
|
+
},
|
|
168
|
+
"receipt_lookup": true,
|
|
169
|
+
"whatsNew": "Binds the source commit the build came from, not only the artifact address. A released page can show its commit but never its own deployment URL, so this is what lets a reader tie the page they are on to the approval that put it there."
|
|
170
|
+
}
|
package/profiles/index.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"github.com/humanagencyprotocol/hap-profiles/publish@0.4": "publish/0.4.profile.json",
|
|
13
13
|
"github.com/humanagencyprotocol/hap-profiles/records@0.4": "records/0.4.profile.json",
|
|
14
14
|
"github.com/humanagencyprotocol/hap-profiles/deploy@0.6": "deploy/0.6.profile.json",
|
|
15
|
-
"github.com/humanagencyprotocol/hap-profiles/deploy@0.7": "deploy/0.7.profile.json"
|
|
15
|
+
"github.com/humanagencyprotocol/hap-profiles/deploy@0.7": "deploy/0.7.profile.json",
|
|
16
|
+
"github.com/humanagencyprotocol/hap-profiles/deploy@0.8": "deploy/0.8.profile.json"
|
|
16
17
|
}
|
|
17
18
|
}
|