@kana-ai/edgar-contracts 0.1.1 → 0.1.2
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.
|
@@ -62,6 +62,7 @@ export interface Manifest {
|
|
|
62
62
|
environments: Environment[];
|
|
63
63
|
hooks: Hook[];
|
|
64
64
|
service?: Service;
|
|
65
|
+
git_credential?: GitCredential;
|
|
65
66
|
executables?: Executables;
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
@@ -187,6 +188,16 @@ export interface Service {
|
|
|
187
188
|
secrets: SecretName[];
|
|
188
189
|
capabilities: Capability[];
|
|
189
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* What runs `tool.call` of `git_credential`, which answers `{ token, expires_at_ms }` for the engine's git to send to a host of `[sandbox] git_tokens` that names the extension; the engine asks again before `expires_at_ms`, and keeps the token in memory only.
|
|
193
|
+
*
|
|
194
|
+
* This interface was referenced by `Manifest`'s JSON-Schema
|
|
195
|
+
* via the `definition` "GitCredential".
|
|
196
|
+
*/
|
|
197
|
+
export interface GitCredential {
|
|
198
|
+
secrets: SecretName[];
|
|
199
|
+
capabilities: Capability[];
|
|
200
|
+
}
|
|
190
201
|
/**
|
|
191
202
|
* The programs the extension runs: `requires` must be on the machine, and `provides` are files the extension ships. `edgar check` refuses a project that lacks one.
|
|
192
203
|
*
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"environments": { "type": "array", "items": { "$ref": "#/$defs/Environment" } },
|
|
20
20
|
"hooks": { "type": "array", "items": { "$ref": "#/$defs/Hook" } },
|
|
21
21
|
"service": { "$ref": "#/$defs/Service" },
|
|
22
|
+
"git_credential": { "$ref": "#/$defs/GitCredential" },
|
|
22
23
|
"executables": { "$ref": "#/$defs/Executables" }
|
|
23
24
|
},
|
|
24
25
|
"required": [
|
|
@@ -200,6 +201,17 @@
|
|
|
200
201
|
"required": ["secrets", "capabilities"],
|
|
201
202
|
"additionalProperties": false
|
|
202
203
|
},
|
|
204
|
+
"GitCredential": {
|
|
205
|
+
"title": "GitCredential",
|
|
206
|
+
"description": "What runs `tool.call` of `git_credential`, which answers `{ token, expires_at_ms }` for the engine's git to send to a host of `[sandbox] git_tokens` that names the extension; the engine asks again before `expires_at_ms`, and keeps the token in memory only.",
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"secrets": { "type": "array", "items": { "$ref": "#/$defs/SecretName" } },
|
|
210
|
+
"capabilities": { "type": "array", "items": { "$ref": "#/$defs/Capability" } }
|
|
211
|
+
},
|
|
212
|
+
"required": ["secrets", "capabilities"],
|
|
213
|
+
"additionalProperties": false
|
|
214
|
+
},
|
|
203
215
|
"Program": {
|
|
204
216
|
"title": "Program",
|
|
205
217
|
"description": "A program by the name that `PATH` finds it under, never a path.",
|