@altf4llc/vorpal-sdk 0.1.0-alpha.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/dist/api/agent/agent.d.ts +68 -0
- package/dist/api/agent/agent.d.ts.map +1 -0
- package/dist/api/agent/agent.js +246 -0
- package/dist/api/agent/agent.js.map +1 -0
- package/dist/api/archive/archive.d.ts +98 -0
- package/dist/api/archive/archive.d.ts.map +1 -0
- package/dist/api/archive/archive.js +288 -0
- package/dist/api/archive/archive.js.map +1 -0
- package/dist/api/artifact/artifact.d.ts +169 -0
- package/dist/api/artifact/artifact.d.ts.map +1 -0
- package/dist/api/artifact/artifact.js +1041 -0
- package/dist/api/artifact/artifact.js.map +1 -0
- package/dist/api/context/context.d.ts +42 -0
- package/dist/api/context/context.d.ts.map +1 -0
- package/dist/api/context/context.js +31 -0
- package/dist/api/context/context.js.map +1 -0
- package/dist/api/worker/worker.d.ts +65 -0
- package/dist/api/worker/worker.d.ts.map +1 -0
- package/dist/api/worker/worker.js +185 -0
- package/dist/api/worker/worker.js.map +1 -0
- package/dist/artifact/language/go.d.ts +165 -0
- package/dist/artifact/language/go.d.ts.map +1 -0
- package/dist/artifact/language/go.js +361 -0
- package/dist/artifact/language/go.js.map +1 -0
- package/dist/artifact/language/rust.d.ts +136 -0
- package/dist/artifact/language/rust.d.ts.map +1 -0
- package/dist/artifact/language/rust.js +576 -0
- package/dist/artifact/language/rust.js.map +1 -0
- package/dist/artifact/language/typescript.d.ts +112 -0
- package/dist/artifact/language/typescript.d.ts.map +1 -0
- package/dist/artifact/language/typescript.js +232 -0
- package/dist/artifact/language/typescript.js.map +1 -0
- package/dist/artifact/step.d.ts +28 -0
- package/dist/artifact/step.d.ts.map +1 -0
- package/dist/artifact/step.js +214 -0
- package/dist/artifact/step.js.map +1 -0
- package/dist/artifact.d.ts +392 -0
- package/dist/artifact.d.ts.map +1 -0
- package/dist/artifact.js +938 -0
- package/dist/artifact.js.map +1 -0
- package/dist/cli.d.ts +42 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +112 -0
- package/dist/cli.js.map +1 -0
- package/dist/context.d.ts +169 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +779 -0
- package/dist/context.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/system.d.ts +20 -0
- package/dist/system.d.ts.map +1 -0
- package/dist/system.js +76 -0
- package/dist/system.js.map +1 -0
- package/dist/vorpal.d.ts +2 -0
- package/dist/vorpal.d.ts.map +1 -0
- package/dist/vorpal.js +148 -0
- package/dist/vorpal.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
import { ArtifactSystem } from "../../api/artifact/artifact.js";
|
|
2
|
+
import { Artifact, ArtifactSource, DevelopmentEnvironment, getEnvKey, secretsToProto, } from "../../artifact.js";
|
|
3
|
+
import { shell } from "../step.js";
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// System mapping helpers
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
/**
|
|
8
|
+
* Maps an ArtifactSystem enum to the Go `GOOS` value.
|
|
9
|
+
* Matches `get_goos()` in `sdk/rust/src/artifact/language/go.rs`
|
|
10
|
+
* and `GetGOOS()` in `sdk/go/pkg/artifact/language/go.go`.
|
|
11
|
+
*/
|
|
12
|
+
export function getGoos(system) {
|
|
13
|
+
switch (system) {
|
|
14
|
+
case ArtifactSystem.AARCH64_DARWIN:
|
|
15
|
+
case ArtifactSystem.X8664_DARWIN:
|
|
16
|
+
return "darwin";
|
|
17
|
+
case ArtifactSystem.AARCH64_LINUX:
|
|
18
|
+
case ArtifactSystem.X8664_LINUX:
|
|
19
|
+
return "linux";
|
|
20
|
+
default:
|
|
21
|
+
throw new Error(`unsupported 'go' system: ${system}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Maps an ArtifactSystem enum to the Go `GOARCH` value.
|
|
26
|
+
* Matches `get_goarch()` in `sdk/rust/src/artifact/language/go.rs`
|
|
27
|
+
* and `GetGOARCH()` in `sdk/go/pkg/artifact/language/go.go`.
|
|
28
|
+
*/
|
|
29
|
+
export function getGoarch(system) {
|
|
30
|
+
switch (system) {
|
|
31
|
+
case ArtifactSystem.AARCH64_DARWIN:
|
|
32
|
+
case ArtifactSystem.AARCH64_LINUX:
|
|
33
|
+
return "arm64";
|
|
34
|
+
case ArtifactSystem.X8664_DARWIN:
|
|
35
|
+
case ArtifactSystem.X8664_LINUX:
|
|
36
|
+
return "amd64";
|
|
37
|
+
default:
|
|
38
|
+
throw new Error(`unsupported 'go' system: ${system}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// ---------------------------------------------------------------------------
|
|
42
|
+
// Go
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
/**
|
|
45
|
+
* Builder for Go project artifacts.
|
|
46
|
+
*
|
|
47
|
+
* Analogous to:
|
|
48
|
+
* - Rust SDK: `sdk/rust/src/artifact/language/go.rs` (`Go` struct)
|
|
49
|
+
* - Go SDK: `sdk/go/pkg/artifact/language/go.go` (`Go` struct)
|
|
50
|
+
*
|
|
51
|
+
* The builder:
|
|
52
|
+
* 1. Fetches the Go distribution artifact from the registry
|
|
53
|
+
* 2. Fetches the Git artifact from the registry
|
|
54
|
+
* 3. Builds source using ArtifactSource (or uses an explicit source)
|
|
55
|
+
* 4. Computes GOOS and GOARCH from the target system
|
|
56
|
+
* 5. Generates a build script that runs `go build`
|
|
57
|
+
* 6. Creates a shell step and returns the artifact digest
|
|
58
|
+
*
|
|
59
|
+
* Usage:
|
|
60
|
+
* ```typescript
|
|
61
|
+
* const digest = await new Go("my-go-app", SYSTEMS)
|
|
62
|
+
* .withIncludes(["cmd", "pkg", "go.mod", "go.sum"])
|
|
63
|
+
* .build(context);
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export class Go {
|
|
67
|
+
_aliases = [];
|
|
68
|
+
_artifacts = [];
|
|
69
|
+
_buildDirectory = ".";
|
|
70
|
+
_buildFlags = "";
|
|
71
|
+
_buildPath = ".";
|
|
72
|
+
_environments = [];
|
|
73
|
+
_includes = [];
|
|
74
|
+
_name;
|
|
75
|
+
_secrets = new Map();
|
|
76
|
+
_source = undefined;
|
|
77
|
+
_sourceScripts = [];
|
|
78
|
+
_systems;
|
|
79
|
+
constructor(name, systems) {
|
|
80
|
+
this._name = name;
|
|
81
|
+
this._systems = systems;
|
|
82
|
+
}
|
|
83
|
+
/** Adds human-readable aliases for this artifact. */
|
|
84
|
+
withAliases(aliases) {
|
|
85
|
+
this._aliases = aliases;
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
/** Adds artifact dependencies available during the build step. */
|
|
89
|
+
withArtifacts(artifacts) {
|
|
90
|
+
this._artifacts = artifacts;
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Sets the build directory passed as `-C` flag to `go build`.
|
|
95
|
+
* Defaults to `"."`.
|
|
96
|
+
*/
|
|
97
|
+
withBuildDirectory(directory) {
|
|
98
|
+
this._buildDirectory = directory;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Sets additional flags for `go build`.
|
|
103
|
+
* Defaults to `""`.
|
|
104
|
+
*/
|
|
105
|
+
withBuildFlags(flags) {
|
|
106
|
+
this._buildFlags = flags;
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Sets the build path argument for `go build`.
|
|
111
|
+
* Defaults to `"."`.
|
|
112
|
+
*/
|
|
113
|
+
withBuildPath(path) {
|
|
114
|
+
this._buildPath = path;
|
|
115
|
+
return this;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sets environment variables for the build step.
|
|
119
|
+
* Format: `"KEY=VALUE"`.
|
|
120
|
+
*/
|
|
121
|
+
withEnvironments(environments) {
|
|
122
|
+
this._environments = environments;
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Sets file patterns to include in the source.
|
|
127
|
+
* Only used when no explicit source is provided via withSource.
|
|
128
|
+
*/
|
|
129
|
+
withIncludes(includes) {
|
|
130
|
+
this._includes = includes;
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Adds secrets available during the build step.
|
|
135
|
+
*
|
|
136
|
+
* @param secrets - Map of secret name to value
|
|
137
|
+
*/
|
|
138
|
+
withSecrets(secrets) {
|
|
139
|
+
for (const [k, v] of secrets) {
|
|
140
|
+
if (!this._secrets.has(k)) {
|
|
141
|
+
this._secrets.set(k, v);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return this;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Sets an explicit ArtifactSource for the project.
|
|
148
|
+
* If not set, one is constructed from the name with any includes.
|
|
149
|
+
*/
|
|
150
|
+
withSource(source) {
|
|
151
|
+
this._source = source;
|
|
152
|
+
return this;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Adds a script to run inside the source directory before the build.
|
|
156
|
+
* Multiple scripts are deduplicated and joined with newlines.
|
|
157
|
+
*/
|
|
158
|
+
withSourceScript(script) {
|
|
159
|
+
if (!this._sourceScripts.includes(script)) {
|
|
160
|
+
this._sourceScripts.push(script);
|
|
161
|
+
}
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Builds the Go project artifact.
|
|
166
|
+
*
|
|
167
|
+
* CRITICAL: The build script must be character-for-character identical
|
|
168
|
+
* to what the Rust SDK and Go SDK produce for the same inputs.
|
|
169
|
+
*
|
|
170
|
+
* @returns The artifact digest string
|
|
171
|
+
*/
|
|
172
|
+
async build(context) {
|
|
173
|
+
// Build source
|
|
174
|
+
const sourcePath = ".";
|
|
175
|
+
let source;
|
|
176
|
+
if (this._source !== undefined) {
|
|
177
|
+
source = this._source;
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
const sourceBuilder = new ArtifactSource(this._name, sourcePath);
|
|
181
|
+
if (this._includes.length > 0) {
|
|
182
|
+
sourceBuilder.withIncludes(this._includes);
|
|
183
|
+
}
|
|
184
|
+
source = sourceBuilder.build();
|
|
185
|
+
}
|
|
186
|
+
const sourceDir = `./source/${source.name}`;
|
|
187
|
+
// Build step script -- mirrors Rust SDK formatdoc! in go.rs lines 147-174
|
|
188
|
+
//
|
|
189
|
+
// The script is built incrementally to match the Rust SDK's formatdoc!
|
|
190
|
+
// concatenation pattern exactly:
|
|
191
|
+
// 1. pushd + mkdir
|
|
192
|
+
// 2. (optional) source scripts
|
|
193
|
+
// 3. go build + go clean
|
|
194
|
+
let stepScript = `pushd ${sourceDir}\n\nmkdir -p $VORPAL_OUTPUT/bin`;
|
|
195
|
+
if (this._sourceScripts.length > 0) {
|
|
196
|
+
const sourceScripts = this._sourceScripts.join("\n");
|
|
197
|
+
stepScript = `${stepScript}\n\n${sourceScripts}`;
|
|
198
|
+
}
|
|
199
|
+
stepScript =
|
|
200
|
+
`${stepScript}\n\n` +
|
|
201
|
+
`go build -C ${this._buildDirectory} -o $VORPAL_OUTPUT/bin/${this._name} ${this._buildFlags} ${this._buildPath}\n\n` +
|
|
202
|
+
`go clean -modcache`;
|
|
203
|
+
// Fetch tool artifacts
|
|
204
|
+
const git = await context.fetchArtifactAlias("git:2.53.0");
|
|
205
|
+
const go = await context.fetchArtifactAlias("go:1.26.0");
|
|
206
|
+
// Compute GOOS and GOARCH
|
|
207
|
+
const goarch = getGoarch(context.getSystem());
|
|
208
|
+
const goos = getGoos(context.getSystem());
|
|
209
|
+
// Build step environments
|
|
210
|
+
const stepEnvironments = [
|
|
211
|
+
`GOARCH=${goarch}`,
|
|
212
|
+
"GOCACHE=$VORPAL_WORKSPACE/go/cache",
|
|
213
|
+
`GOOS=${goos}`,
|
|
214
|
+
"GOPATH=$VORPAL_WORKSPACE/go",
|
|
215
|
+
`PATH=${getEnvKey(go)}/bin`,
|
|
216
|
+
];
|
|
217
|
+
for (const env of this._environments) {
|
|
218
|
+
stepEnvironments.push(env);
|
|
219
|
+
}
|
|
220
|
+
// Create step
|
|
221
|
+
const stepArtifacts = [git, go, ...this._artifacts];
|
|
222
|
+
const step = await shell(context, stepArtifacts, stepEnvironments, stepScript, secretsToProto(this._secrets));
|
|
223
|
+
// Create and return artifact
|
|
224
|
+
return new Artifact(this._name, [step], this._systems)
|
|
225
|
+
.withAliases(this._aliases)
|
|
226
|
+
.withSources([source])
|
|
227
|
+
.build(context);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// ---------------------------------------------------------------------------
|
|
231
|
+
// Go Development Environment
|
|
232
|
+
// ---------------------------------------------------------------------------
|
|
233
|
+
// Default tool aliases -- centralized so version bumps happen in one place
|
|
234
|
+
const DEFAULT_GO_ALIAS = "go:1.26.0";
|
|
235
|
+
const DEFAULT_GIT_ALIAS = "git:2.53.0";
|
|
236
|
+
const DEFAULT_GOIMPORTS_ALIAS = "goimports:0.42.0";
|
|
237
|
+
const DEFAULT_GOPLS_ALIAS = "gopls:0.42.0";
|
|
238
|
+
const DEFAULT_PROTOC_ALIAS = "protoc:34.0";
|
|
239
|
+
const DEFAULT_PROTOC_GEN_GO_ALIAS = "protoc-gen-go:1.36.11";
|
|
240
|
+
const DEFAULT_PROTOC_GEN_GO_GRPC_ALIAS = "protoc-gen-go-grpc:1.79.1";
|
|
241
|
+
const DEFAULT_STATICCHECK_ALIAS = "staticcheck:2026.1";
|
|
242
|
+
/**
|
|
243
|
+
* Builder for Go development environment artifacts.
|
|
244
|
+
*
|
|
245
|
+
* Provides a pre-configured Go development environment with standard
|
|
246
|
+
* tooling (Go, Git, goimports, gopls, protoc, staticcheck) and
|
|
247
|
+
* platform-specific environment variables (CGO_ENABLED, GOARCH, GOOS).
|
|
248
|
+
*
|
|
249
|
+
* Usage:
|
|
250
|
+
* ```typescript
|
|
251
|
+
* const digest = await new GoDevelopmentEnvironment("my-shell", SYSTEMS)
|
|
252
|
+
* .build(context);
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
export class GoDevelopmentEnvironment {
|
|
256
|
+
_artifacts = [];
|
|
257
|
+
_environments = [];
|
|
258
|
+
_name;
|
|
259
|
+
_secrets = new Map();
|
|
260
|
+
_systems;
|
|
261
|
+
// Flags to include/exclude optional default tools
|
|
262
|
+
_includeProtoc = true;
|
|
263
|
+
_includeProtocGenGo = true;
|
|
264
|
+
_includeProtocGenGoGrpc = true;
|
|
265
|
+
constructor(name, systems) {
|
|
266
|
+
this._name = name;
|
|
267
|
+
this._systems = systems;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Adds extra artifact dependencies beyond the default Go tooling.
|
|
271
|
+
* These are appended to the default artifacts, not replacing them.
|
|
272
|
+
*/
|
|
273
|
+
withArtifacts(artifacts) {
|
|
274
|
+
this._artifacts.push(...artifacts);
|
|
275
|
+
return this;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Adds extra environment variables beyond the default Go environment.
|
|
279
|
+
* Format: "KEY=VALUE".
|
|
280
|
+
* These are appended to the defaults (CGO_ENABLED, GOARCH, GOOS).
|
|
281
|
+
*/
|
|
282
|
+
withEnvironments(environments) {
|
|
283
|
+
this._environments.push(...environments);
|
|
284
|
+
return this;
|
|
285
|
+
}
|
|
286
|
+
/** Exclude protoc and its Go plugins from the default tooling. */
|
|
287
|
+
withoutProtoc() {
|
|
288
|
+
this._includeProtoc = false;
|
|
289
|
+
this._includeProtocGenGo = false;
|
|
290
|
+
this._includeProtocGenGoGrpc = false;
|
|
291
|
+
return this;
|
|
292
|
+
}
|
|
293
|
+
/** Adds secrets available during the environment build step. */
|
|
294
|
+
withSecrets(secrets) {
|
|
295
|
+
for (const [k, v] of secrets) {
|
|
296
|
+
if (!this._secrets.has(k)) {
|
|
297
|
+
this._secrets.set(k, v);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Builds the Go development environment artifact.
|
|
304
|
+
*
|
|
305
|
+
* Default artifacts fetched:
|
|
306
|
+
* - go (Go toolchain)
|
|
307
|
+
* - git
|
|
308
|
+
* - goimports
|
|
309
|
+
* - gopls (Go language server)
|
|
310
|
+
* - protoc (if not excluded)
|
|
311
|
+
* - protoc-gen-go (if not excluded)
|
|
312
|
+
* - protoc-gen-go-grpc (if not excluded)
|
|
313
|
+
* - staticcheck
|
|
314
|
+
*
|
|
315
|
+
* Default environment variables:
|
|
316
|
+
* - CGO_ENABLED=0
|
|
317
|
+
* - GOARCH={platform-specific}
|
|
318
|
+
* - GOOS={platform-specific}
|
|
319
|
+
*/
|
|
320
|
+
async build(context) {
|
|
321
|
+
// Fetch default tool artifacts
|
|
322
|
+
const go = await context.fetchArtifactAlias(DEFAULT_GO_ALIAS);
|
|
323
|
+
const git = await context.fetchArtifactAlias(DEFAULT_GIT_ALIAS);
|
|
324
|
+
const goimports = await context.fetchArtifactAlias(DEFAULT_GOIMPORTS_ALIAS);
|
|
325
|
+
const gopls = await context.fetchArtifactAlias(DEFAULT_GOPLS_ALIAS);
|
|
326
|
+
const staticcheck = await context.fetchArtifactAlias(DEFAULT_STATICCHECK_ALIAS);
|
|
327
|
+
const artifacts = [git, go, goimports, gopls];
|
|
328
|
+
if (this._includeProtoc) {
|
|
329
|
+
const protoc = await context.fetchArtifactAlias(DEFAULT_PROTOC_ALIAS);
|
|
330
|
+
artifacts.push(protoc);
|
|
331
|
+
}
|
|
332
|
+
if (this._includeProtocGenGo) {
|
|
333
|
+
const protocGenGo = await context.fetchArtifactAlias(DEFAULT_PROTOC_GEN_GO_ALIAS);
|
|
334
|
+
artifacts.push(protocGenGo);
|
|
335
|
+
}
|
|
336
|
+
if (this._includeProtocGenGoGrpc) {
|
|
337
|
+
const protocGenGoGrpc = await context.fetchArtifactAlias(DEFAULT_PROTOC_GEN_GO_GRPC_ALIAS);
|
|
338
|
+
artifacts.push(protocGenGoGrpc);
|
|
339
|
+
}
|
|
340
|
+
artifacts.push(staticcheck);
|
|
341
|
+
artifacts.push(...this._artifacts);
|
|
342
|
+
// Compute platform-specific environment variables
|
|
343
|
+
const goarch = getGoarch(context.getSystem());
|
|
344
|
+
const goos = getGoos(context.getSystem());
|
|
345
|
+
const environments = [
|
|
346
|
+
"CGO_ENABLED=0",
|
|
347
|
+
`GOARCH=${goarch}`,
|
|
348
|
+
`GOOS=${goos}`,
|
|
349
|
+
...this._environments,
|
|
350
|
+
];
|
|
351
|
+
// Delegate to DevelopmentEnvironment
|
|
352
|
+
let devenv = new DevelopmentEnvironment(this._name, this._systems)
|
|
353
|
+
.withArtifacts(artifacts)
|
|
354
|
+
.withEnvironments(environments);
|
|
355
|
+
if (this._secrets.size > 0) {
|
|
356
|
+
devenv = devenv.withSecrets(this._secrets);
|
|
357
|
+
}
|
|
358
|
+
return devenv.build(context);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
//# sourceMappingURL=go.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"go.js","sourceRoot":"","sources":["../../../src/artifact/language/go.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EACL,QAAQ,EACR,cAAc,EACd,sBAAsB,EACtB,SAAS,EACT,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,MAAsB;IAC5C,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,cAAc,CAAC,cAAc,CAAC;QACnC,KAAK,cAAc,CAAC,YAAY;YAC9B,OAAO,QAAQ,CAAC;QAClB,KAA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AC;QAED,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;YACjC,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,kBAAkB,CAAC,gCAAgC,CAAC,CAAC;YAC3F,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAClC,CAAC;QAED,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5B,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;QAEnC,kDAAkD;QAClD,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;QAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;QAE1C,MAAM,YAAY,GAAa;YAC7B,eAAe;YACf,UAAU,MAAM,EAAE;YAClB,QAAQ,IAAI,EAAE;YACd,GAAG,IAAI,CAAC,aAAa;SACtB,CAAC;QAEF,qCAAqC;QACrC,IAAI,MAAM,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC;aAC/D,aAAa,CAAC,SAAS,CAAC;aACxB,gBAAgB,CAAC,YAAY,CAAC,CAAC;QAElC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YAC3B,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { ArtifactSystem } from "../../api/artifact/artifact.js";
|
|
2
|
+
import type { ConfigContext } from "../../context.js";
|
|
3
|
+
/**
|
|
4
|
+
* Maps an ArtifactSystem enum to the Rust target triple.
|
|
5
|
+
* Matches `sdk/go/pkg/artifact/rust_toolchain.go` RustToolchainTarget().
|
|
6
|
+
*/
|
|
7
|
+
export declare function rustToolchainTarget(system: ArtifactSystem): string;
|
|
8
|
+
/**
|
|
9
|
+
* Builder for Rust/Cargo project artifacts.
|
|
10
|
+
*
|
|
11
|
+
* Analogous to:
|
|
12
|
+
* - Rust SDK: `sdk/rust/src/artifact/language/rust.rs` (`Rust` struct)
|
|
13
|
+
* - Go SDK: `sdk/go/pkg/artifact/language/rust.go` (`Rust` struct)
|
|
14
|
+
*
|
|
15
|
+
* The builder:
|
|
16
|
+
* 1. Fetches the rust-toolchain artifact from the registry
|
|
17
|
+
* 2. Fetches the protoc artifact from the registry
|
|
18
|
+
* 3. Parses the Cargo.toml workspace to identify packages, bins, and targets
|
|
19
|
+
* 4. Creates a vendor artifact that runs `cargo vendor`
|
|
20
|
+
* 5. Creates the main build artifact with `cargo build --release`
|
|
21
|
+
*
|
|
22
|
+
* Usage:
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const digest = await new Rust("vorpal", SYSTEMS)
|
|
25
|
+
* .withPackages(["vorpal-cli"])
|
|
26
|
+
* .withBins(["vorpal"])
|
|
27
|
+
* .build(context);
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class Rust {
|
|
31
|
+
private _aliases;
|
|
32
|
+
private _artifacts;
|
|
33
|
+
private _bins;
|
|
34
|
+
private _build;
|
|
35
|
+
private _check;
|
|
36
|
+
private _environments;
|
|
37
|
+
private _excludes;
|
|
38
|
+
private _format;
|
|
39
|
+
private _includes;
|
|
40
|
+
private _lint;
|
|
41
|
+
private _name;
|
|
42
|
+
private _packages;
|
|
43
|
+
private _secrets;
|
|
44
|
+
private _source;
|
|
45
|
+
private _systems;
|
|
46
|
+
private _tests;
|
|
47
|
+
constructor(name: string, systems: ArtifactSystem[]);
|
|
48
|
+
/** Sets aliases for the artifact. */
|
|
49
|
+
withAliases(aliases: string[]): this;
|
|
50
|
+
/** Adds artifact dependencies available during the build step. */
|
|
51
|
+
withArtifacts(artifacts: string[]): this;
|
|
52
|
+
/** Sets the binary targets to build. If empty, defaults to the builder name. */
|
|
53
|
+
withBins(bins: string[]): this;
|
|
54
|
+
/** Enables or disables `cargo check` during the build step. */
|
|
55
|
+
withCheck(check: boolean): this;
|
|
56
|
+
/** Sets additional environment variables for the build step. Format: "KEY=VALUE". */
|
|
57
|
+
withEnvironments(environments: string[]): this;
|
|
58
|
+
/** Sets file patterns to exclude from the source. */
|
|
59
|
+
withExcludes(excludes: string[]): this;
|
|
60
|
+
/** Enables or disables `cargo fmt --check` during the build step. */
|
|
61
|
+
withFormat(format: boolean): this;
|
|
62
|
+
/** Sets file patterns to include in the source. */
|
|
63
|
+
withIncludes(includes: string[]): this;
|
|
64
|
+
/** Enables or disables `cargo clippy` during the build step. */
|
|
65
|
+
withLint(lint: boolean): this;
|
|
66
|
+
/** Filters which workspace packages to include in the build. */
|
|
67
|
+
withPackages(packages: string[]): this;
|
|
68
|
+
/**
|
|
69
|
+
* Adds secrets available during the build step.
|
|
70
|
+
*
|
|
71
|
+
* @param secrets - Map of secret name to value
|
|
72
|
+
*/
|
|
73
|
+
withSecrets(secrets: Map<string, string>): this;
|
|
74
|
+
/** Sets the source path relative to the artifact context directory. */
|
|
75
|
+
withSource(source: string): this;
|
|
76
|
+
/** Enables or disables `cargo test` during the build step. */
|
|
77
|
+
withTests(tests: boolean): this;
|
|
78
|
+
/**
|
|
79
|
+
* Builds the Rust project artifact.
|
|
80
|
+
*
|
|
81
|
+
* @returns The artifact digest string
|
|
82
|
+
*/
|
|
83
|
+
build(context: ConfigContext): Promise<string>;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Builder for Rust development environment artifacts.
|
|
87
|
+
*
|
|
88
|
+
* Provides a pre-configured Rust development environment with the Rust
|
|
89
|
+
* toolchain (cargo, rustc, clippy, rustfmt, rust-analyzer, etc.) and
|
|
90
|
+
* optionally protoc. Computes platform-specific environment variables
|
|
91
|
+
* (PATH, RUSTUP_HOME, RUSTUP_TOOLCHAIN) automatically.
|
|
92
|
+
*
|
|
93
|
+
* Usage:
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const digest = await new RustDevelopmentEnvironment("my-shell", SYSTEMS)
|
|
96
|
+
* .build(context);
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare class RustDevelopmentEnvironment {
|
|
100
|
+
private _artifacts;
|
|
101
|
+
private _environments;
|
|
102
|
+
private _name;
|
|
103
|
+
private _secrets;
|
|
104
|
+
private _systems;
|
|
105
|
+
private _includeProtoc;
|
|
106
|
+
constructor(name: string, systems: ArtifactSystem[]);
|
|
107
|
+
/**
|
|
108
|
+
* Adds extra artifact dependencies beyond the default Rust tooling.
|
|
109
|
+
* These are appended to the default artifacts, not replacing them.
|
|
110
|
+
*/
|
|
111
|
+
withArtifacts(artifacts: string[]): this;
|
|
112
|
+
/**
|
|
113
|
+
* Adds extra environment variables beyond the default Rust environment.
|
|
114
|
+
* Format: "KEY=VALUE".
|
|
115
|
+
* These are appended to the defaults (PATH, RUSTUP_HOME, RUSTUP_TOOLCHAIN).
|
|
116
|
+
*/
|
|
117
|
+
withEnvironments(environments: string[]): this;
|
|
118
|
+
/** Exclude protoc from the default tooling. */
|
|
119
|
+
withoutProtoc(): this;
|
|
120
|
+
/** Adds secrets available during the environment build step. */
|
|
121
|
+
withSecrets(secrets: Map<string, string>): this;
|
|
122
|
+
/**
|
|
123
|
+
* Builds the Rust development environment artifact.
|
|
124
|
+
*
|
|
125
|
+
* Default artifacts fetched:
|
|
126
|
+
* - rust-toolchain (includes cargo, rustc, clippy, rustfmt, rust-analyzer, etc.)
|
|
127
|
+
* - protoc (if not excluded)
|
|
128
|
+
*
|
|
129
|
+
* Default environment variables:
|
|
130
|
+
* - PATH={rust-toolchain}/toolchains/{version}-{target}/bin
|
|
131
|
+
* - RUSTUP_HOME={rust-toolchain}
|
|
132
|
+
* - RUSTUP_TOOLCHAIN={version}-{target}
|
|
133
|
+
*/
|
|
134
|
+
build(context: ConfigContext): Promise<string>;
|
|
135
|
+
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