@icebreakers/monorepo-templates 1.0.6 → 1.0.8

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.
@@ -51,34 +51,34 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@changesets/cli": "^2.31.0",
54
- "@commitlint/cli": "^21.0.0",
54
+ "@commitlint/cli": "^21.0.1",
55
55
  "@icebreakers/changelog-github": "^1.0.2",
56
56
  "@icebreakers/monorepo": "workspace:*",
57
- "@types/node": "^25.6.2",
57
+ "@types/node": "^25.9.1",
58
58
  "@types/semver": "^7.7.1",
59
- "@vitest/coverage-v8": "~4.1.5",
59
+ "@vitest/coverage-v8": "~4.1.7",
60
60
  "ci-info": "^4.4.0",
61
61
  "cross-env": "^10.1.0",
62
62
  "defu": "^6.1.7",
63
- "es-toolkit": "^1.46.1",
64
- "eslint": "^10.3.0",
63
+ "es-toolkit": "^1.47.0",
64
+ "eslint": "^10.4.0",
65
65
  "husky": "^9.1.7",
66
- "lint-staged": "^17.0.4",
66
+ "lint-staged": "^17.0.5",
67
67
  "only-allow": "^1.2.2",
68
68
  "pathe": "^2.0.3",
69
69
  "pkg-types": "^2.3.1",
70
70
  "repoctl": "workspace:*",
71
- "stylelint": "^17.11.0",
71
+ "stylelint": "^17.12.0",
72
72
  "tailwindcss": "^4.3.0",
73
73
  "tsd": "^0.33.0",
74
74
  "tsdown": "0.22.0",
75
75
  "tslib": "^2.8.1",
76
- "tsx": "^4.21.0",
77
- "turbo": "^2.9.12",
76
+ "tsx": "^4.22.3",
77
+ "turbo": "^2.9.14",
78
78
  "type-fest": "^5.6.0",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "~4.1.5",
81
- "yaml": "^2.8.4"
80
+ "vitest": "~4.1.7",
81
+ "yaml": "^2.9.0"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo-templates",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "description": "Template assets for icebreaker monorepo scaffolding",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -43,9 +43,9 @@
43
43
  "node": ">=18.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@inquirer/checkbox": "^5.1.5",
47
- "@inquirer/input": "^5.0.13",
48
- "@inquirer/select": "^5.1.5",
46
+ "@inquirer/checkbox": "^5.2.0",
47
+ "@inquirer/input": "^5.1.0",
48
+ "@inquirer/select": "^5.2.0",
49
49
  "commander": "^14.0.3",
50
50
  "nanoexec": "^1.1.0"
51
51
  },
@@ -16,37 +16,37 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@faker-js/faker": "^10.4.0",
19
- "@tanstack/vue-query": "^5.100.9",
20
- "@tanstack/vue-query-devtools": "^6.1.28",
19
+ "@tanstack/vue-query": "^5.100.14",
20
+ "@tanstack/vue-query-devtools": "^6.1.33",
21
21
  "@tanstack/vue-table": "^8.21.3",
22
- "@tanstack/vue-virtual": "^3.13.24",
22
+ "@tanstack/vue-virtual": "^3.13.26",
23
23
  "@trpc/client": "^11.17.0",
24
24
  "clsx": "^2.1.1",
25
25
  "pinia": "^3.0.4",
26
26
  "tailwind-merge": "^3.6.0",
27
27
  "tailwind-variants": "^3.2.2",
28
28
  "vue": "^3.5.34",
29
- "vue-i18n": "^11.4.2",
30
- "vue-router": "^5.0.6"
29
+ "vue-i18n": "^11.4.4",
30
+ "vue-router": "^5.0.7"
31
31
  },
32
32
  "devDependencies": {
33
- "@cloudflare/vite-plugin": "^1.36.3",
34
- "@hono/node-server": "^2.0.2",
33
+ "@cloudflare/vite-plugin": "^1.38.0",
34
+ "@hono/node-server": "^2.0.4",
35
35
  "@hono/trpc-server": "^0.4.2",
36
36
  "@tailwindcss/vite": "^4.3.0",
37
37
  "@trpc/server": "^11.17.0",
38
- "@vitejs/plugin-vue": "^6.0.6",
38
+ "@vitejs/plugin-vue": "^6.0.7",
39
39
  "@vitejs/plugin-vue-jsx": "^5.1.5",
40
40
  "@vue/tsconfig": "^0.9.1",
41
41
  "consola": "^3.4.2",
42
- "hono": "^4.12.18",
42
+ "hono": "^4.12.23",
43
43
  "tailwindcss": "^4.3.0",
44
44
  "typescript": "~6.0.3",
45
- "vite": "^8.0.11",
45
+ "vite": "^8.0.14",
46
46
  "vite-plugin-vue-devtools": "^8.1.2",
47
47
  "vite-tsconfig-paths": "^6.1.1",
48
- "vue-tsc": "3.2.8",
49
- "wrangler": "^4.90.0",
48
+ "vue-tsc": "3.3.2",
49
+ "wrangler": "^4.94.0",
50
50
  "zod": "^4.4.3"
51
51
  }
52
52
  }
@@ -1,14 +1,15 @@
1
1
  /* eslint-disable */
2
- // Generated by Wrangler by running `wrangler types` (hash: fa12f52f057b37f671438ff56acffa6e)
3
- // Runtime types generated with workerd@1.20260507.1 2025-10-16 nodejs_compat
2
+ // Generated by Wrangler by running `wrangler types` (hash: bf05258867cf7490d4c96f4ea30bd0ef)
3
+ // Runtime types generated with workerd@1.20260521.1 2025-10-16 nodejs_compat
4
+ interface __BaseEnv_Env {
5
+ }
4
6
  declare namespace Cloudflare {
5
7
  interface GlobalProps {
6
8
  mainModule: typeof import("./worker/fetch-entry");
7
9
  }
8
- interface Env {
9
- }
10
+ interface Env extends __BaseEnv_Env {}
10
11
  }
11
- interface Env extends Cloudflare.Env {}
12
+ interface Env extends __BaseEnv_Env {}
12
13
 
13
14
  // Begin runtime types
14
15
  /*! *****************************************************************************
@@ -10127,12 +10128,17 @@ interface ArtifactsTokenListResult {
10127
10128
  /** Total number of tokens for the repository. */
10128
10129
  total: number;
10129
10130
  }
10130
- /** Handle for a single repository. Returned by Artifacts.get(). */
10131
+ /**
10132
+ * Handle for a single repository. Returned by Artifacts.get().
10133
+ *
10134
+ * Methods may throw `ArtifactsError` with code `INTERNAL_ERROR` if an unexpected service error occurs.
10135
+ */
10131
10136
  interface ArtifactsRepo extends ArtifactsRepoInfo {
10132
10137
  /**
10133
10138
  * Create an access token for this repo.
10134
10139
  * @param scope Token scope: "write" (default) or "read".
10135
10140
  * @param ttl Time-to-live in seconds (default 86400, min 60, max 31536000).
10141
+ * @throws {ArtifactsError} with code `INVALID_TTL` if ttl is out of range.
10136
10142
  */
10137
10143
  createToken(scope?: 'write' | 'read', ttl?: number): Promise<ArtifactsCreateTokenResult>;
10138
10144
  /** List tokens for this repo (metadata only, no plaintext). */
@@ -10141,6 +10147,7 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10141
10147
  * Revoke a token by plaintext or ID.
10142
10148
  * @param tokenOrId Plaintext token or token ID.
10143
10149
  * @returns true if revoked, false if not found.
10150
+ * @throws {ArtifactsError} with code `INVALID_INPUT` if tokenOrId is empty.
10144
10151
  */
10145
10152
  revokeToken(tokenOrId: string): Promise<boolean>;
10146
10153
  // ── Fork ──
@@ -10148,6 +10155,9 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10148
10155
  * Fork this repo to a new repo.
10149
10156
  * @param name Target repository name.
10150
10157
  * @param opts Optional: description, readOnly flag, defaultBranchOnly (default true).
10158
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10159
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the target repo already exists.
10160
+ * @throws {ArtifactsError} with code `FORK_IN_PROGRESS` if a fork is already running.
10151
10161
  */
10152
10162
  fork(name: string, opts?: {
10153
10163
  description?: string;
@@ -10155,13 +10165,41 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10155
10165
  defaultBranchOnly?: boolean;
10156
10166
  }): Promise<ArtifactsCreateRepoResult>;
10157
10167
  }
10158
- /** Artifacts binding — namespace-level operations. */
10168
+ // ── Error types ──────────────────────────────────────────────────────────────
10169
+ /**
10170
+ * Error codes returned by Artifacts binding operations.
10171
+ *
10172
+ * Each code maps to a numeric code available on `ArtifactsError.numericCode`.
10173
+ */
10174
+ type ArtifactsErrorCode = 'ALREADY_EXISTS' | 'NOT_FOUND' | 'IMPORT_IN_PROGRESS' | 'FORK_IN_PROGRESS' | 'INVALID_INPUT' | 'INVALID_REPO_NAME' | 'INVALID_TTL' | 'INVALID_URL' | 'REMOTE_AUTH_REQUIRED' | 'UPSTREAM_UNAVAILABLE' | 'MEMORY_LIMIT' | 'INTERNAL_ERROR';
10175
+ /**
10176
+ * Error thrown by Artifacts binding operations.
10177
+ *
10178
+ * Uses a string `.code` discriminator following the Cloudflare platform
10179
+ * convention (StreamError, ImagesError, etc.). The `.numericCode` matches
10180
+ * the REST API `errors[].code` values.
10181
+ */
10182
+ interface ArtifactsError extends Error {
10183
+ readonly name: 'ArtifactsError';
10184
+ /** String error code for programmatic matching. */
10185
+ readonly code: ArtifactsErrorCode;
10186
+ /** Numeric error code matching the REST API. */
10187
+ readonly numericCode: number;
10188
+ }
10189
+ // ── Binding ──────────────────────────────────────────────────────────────────
10190
+ /**
10191
+ * Artifacts binding — namespace-level operations.
10192
+ *
10193
+ * Methods may throw `ArtifactsError` with code `INTERNAL_ERROR` if an unexpected service error occurs.
10194
+ */
10159
10195
  interface Artifacts {
10160
10196
  /**
10161
10197
  * Create a new repository with an initial access token.
10162
10198
  * @param name Repository name (alphanumeric, dots, hyphens, underscores).
10163
10199
  * @param opts Optional: readOnly flag, description, default branch name.
10164
10200
  * @returns Repo metadata with initial token.
10201
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10202
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the repo already exists.
10165
10203
  */
10166
10204
  create(name: string, opts?: {
10167
10205
  readOnly?: boolean;
@@ -10172,12 +10210,23 @@ interface Artifacts {
10172
10210
  * Get a handle to an existing repository.
10173
10211
  * @param name Repository name.
10174
10212
  * @returns Repo handle.
10213
+ * @throws {ArtifactsError} with code `NOT_FOUND` if the repo does not exist.
10214
+ * @throws {ArtifactsError} with code `IMPORT_IN_PROGRESS` if the repo is still importing.
10215
+ * @throws {ArtifactsError} with code `FORK_IN_PROGRESS` if the repo is still forking.
10175
10216
  */
10176
10217
  get(name: string): Promise<ArtifactsRepo>;
10177
10218
  /**
10178
10219
  * Import a repository from an external git remote.
10179
10220
  * @param params Source URL and optional branch/depth, plus target name and options.
10180
10221
  * @returns Repo metadata with initial token.
10222
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if the target name is invalid.
10223
+ * @throws {ArtifactsError} with code `INVALID_INPUT` if the source URL is not valid HTTPS.
10224
+ * @throws {ArtifactsError} with code `INVALID_URL` if the source URL does not point to a git repository.
10225
+ * @throws {ArtifactsError} with code `REMOTE_AUTH_REQUIRED` if the remote requires authentication.
10226
+ * @throws {ArtifactsError} with code `NOT_FOUND` if the remote repository does not exist.
10227
+ * @throws {ArtifactsError} with code `UPSTREAM_UNAVAILABLE` if the remote cannot be reached.
10228
+ * @throws {ArtifactsError} with code `MEMORY_LIMIT` if the import exceeds service memory limits.
10229
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the target repo already exists.
10181
10230
  */
10182
10231
  import(params: {
10183
10232
  source: {
@@ -10205,6 +10254,7 @@ interface Artifacts {
10205
10254
  * Delete a repository and all associated tokens.
10206
10255
  * @param name Repository name.
10207
10256
  * @returns true if deleted, false if not found.
10257
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10208
10258
  */
10209
10259
  delete(name: string): Promise<boolean>;
10210
10260
  }
@@ -11304,11 +11354,11 @@ interface SendEmail {
11304
11354
  send(message: EmailMessage): Promise<EmailSendResult>;
11305
11355
  send(builder: {
11306
11356
  from: string | EmailAddress;
11307
- to: string | string[];
11357
+ to: string | EmailAddress | (string | EmailAddress)[];
11308
11358
  subject: string;
11309
11359
  replyTo?: string | EmailAddress;
11310
- cc?: string | string[];
11311
- bcc?: string | string[];
11360
+ cc?: string | EmailAddress | (string | EmailAddress)[];
11361
+ bcc?: string | EmailAddress | (string | EmailAddress)[];
11312
11362
  headers?: Record<string, string>;
11313
11363
  text?: string;
11314
11364
  html?: string;
@@ -13142,6 +13192,9 @@ declare namespace TailStream {
13142
13192
  // 1. This is an Onset event
13143
13193
  // 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
13144
13194
  readonly spanId?: string;
13195
+ // W3C trace flags from an upstream traceparent. Absent when no upstream
13196
+ // sampling decision was made.
13197
+ readonly traceFlags?: number;
13145
13198
  }
13146
13199
  interface TailEvent<Event extends EventType> {
13147
13200
  // invocation id of the currently invoked worker stage.
@@ -13516,6 +13569,27 @@ interface WorkflowError {
13516
13569
  code?: number;
13517
13570
  message: string;
13518
13571
  }
13572
+ interface WorkflowInstanceRestartOptions {
13573
+ /**
13574
+ * Restart from a specific step. If omitted, the instance restarts from the beginning.
13575
+ * The step must exist in the instance's execution history.
13576
+ */
13577
+ from?: {
13578
+ /**
13579
+ * The step name as defined in your workflow code.
13580
+ */
13581
+ name: string;
13582
+ /**
13583
+ * 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
13584
+ * @default 1
13585
+ */
13586
+ count?: number;
13587
+ /**
13588
+ * Step type filter. Use when different step types share the same name.
13589
+ */
13590
+ type?: 'do' | 'sleep' | 'waitForEvent';
13591
+ };
13592
+ }
13519
13593
  declare abstract class WorkflowInstance {
13520
13594
  public id: string;
13521
13595
  /**
@@ -13531,9 +13605,11 @@ declare abstract class WorkflowInstance {
13531
13605
  */
13532
13606
  public terminate(): Promise<void>;
13533
13607
  /**
13534
- * Restart the instance.
13608
+ * Restart the instance. Optionally restart from a specific step, preserving
13609
+ * cached results for all steps before it.
13610
+ * @param options Options for the restart, including an optional step to restart from.
13535
13611
  */
13536
- public restart(): Promise<void>;
13612
+ public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
13537
13613
  /**
13538
13614
  * Returns the current status of the instance.
13539
13615
  */
@@ -54,11 +54,11 @@
54
54
  "types": "./dist/index.d.ts"
55
55
  },
56
56
  "devDependencies": {
57
- "@hono/node-server": "^2.0.2",
57
+ "@hono/node-server": "^2.0.4",
58
58
  "consola": "^3.4.2",
59
- "hono": "^4.12.18",
59
+ "hono": "^4.12.23",
60
60
  "tsdown": "0.22.0",
61
- "wrangler": "^4.90.0",
61
+ "wrangler": "^4.94.0",
62
62
  "zod": "^4.4.3"
63
63
  }
64
64
  }
@@ -1,14 +1,15 @@
1
1
  /* eslint-disable */
2
- // Generated by Wrangler by running `wrangler types` (hash: fd577b1f4edd34e8f40cee5b4eab2eb5)
3
- // Runtime types generated with workerd@1.20260507.1 2025-10-16 nodejs_compat
2
+ // Generated by Wrangler by running `wrangler types` (hash: 047568eb9ed6843cb5540fa33180da01)
3
+ // Runtime types generated with workerd@1.20260521.1 2025-10-16 nodejs_compat
4
+ interface __BaseEnv_Env {
5
+ }
4
6
  declare namespace Cloudflare {
5
7
  interface GlobalProps {
6
8
  mainModule: typeof import("./src/fetch-entry");
7
9
  }
8
- interface Env {
9
- }
10
+ interface Env extends __BaseEnv_Env {}
10
11
  }
11
- interface Env extends Cloudflare.Env {}
12
+ interface Env extends __BaseEnv_Env {}
12
13
 
13
14
  // Begin runtime types
14
15
  /*! *****************************************************************************
@@ -10127,12 +10128,17 @@ interface ArtifactsTokenListResult {
10127
10128
  /** Total number of tokens for the repository. */
10128
10129
  total: number;
10129
10130
  }
10130
- /** Handle for a single repository. Returned by Artifacts.get(). */
10131
+ /**
10132
+ * Handle for a single repository. Returned by Artifacts.get().
10133
+ *
10134
+ * Methods may throw `ArtifactsError` with code `INTERNAL_ERROR` if an unexpected service error occurs.
10135
+ */
10131
10136
  interface ArtifactsRepo extends ArtifactsRepoInfo {
10132
10137
  /**
10133
10138
  * Create an access token for this repo.
10134
10139
  * @param scope Token scope: "write" (default) or "read".
10135
10140
  * @param ttl Time-to-live in seconds (default 86400, min 60, max 31536000).
10141
+ * @throws {ArtifactsError} with code `INVALID_TTL` if ttl is out of range.
10136
10142
  */
10137
10143
  createToken(scope?: 'write' | 'read', ttl?: number): Promise<ArtifactsCreateTokenResult>;
10138
10144
  /** List tokens for this repo (metadata only, no plaintext). */
@@ -10141,6 +10147,7 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10141
10147
  * Revoke a token by plaintext or ID.
10142
10148
  * @param tokenOrId Plaintext token or token ID.
10143
10149
  * @returns true if revoked, false if not found.
10150
+ * @throws {ArtifactsError} with code `INVALID_INPUT` if tokenOrId is empty.
10144
10151
  */
10145
10152
  revokeToken(tokenOrId: string): Promise<boolean>;
10146
10153
  // ── Fork ──
@@ -10148,6 +10155,9 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10148
10155
  * Fork this repo to a new repo.
10149
10156
  * @param name Target repository name.
10150
10157
  * @param opts Optional: description, readOnly flag, defaultBranchOnly (default true).
10158
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10159
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the target repo already exists.
10160
+ * @throws {ArtifactsError} with code `FORK_IN_PROGRESS` if a fork is already running.
10151
10161
  */
10152
10162
  fork(name: string, opts?: {
10153
10163
  description?: string;
@@ -10155,13 +10165,41 @@ interface ArtifactsRepo extends ArtifactsRepoInfo {
10155
10165
  defaultBranchOnly?: boolean;
10156
10166
  }): Promise<ArtifactsCreateRepoResult>;
10157
10167
  }
10158
- /** Artifacts binding — namespace-level operations. */
10168
+ // ── Error types ──────────────────────────────────────────────────────────────
10169
+ /**
10170
+ * Error codes returned by Artifacts binding operations.
10171
+ *
10172
+ * Each code maps to a numeric code available on `ArtifactsError.numericCode`.
10173
+ */
10174
+ type ArtifactsErrorCode = 'ALREADY_EXISTS' | 'NOT_FOUND' | 'IMPORT_IN_PROGRESS' | 'FORK_IN_PROGRESS' | 'INVALID_INPUT' | 'INVALID_REPO_NAME' | 'INVALID_TTL' | 'INVALID_URL' | 'REMOTE_AUTH_REQUIRED' | 'UPSTREAM_UNAVAILABLE' | 'MEMORY_LIMIT' | 'INTERNAL_ERROR';
10175
+ /**
10176
+ * Error thrown by Artifacts binding operations.
10177
+ *
10178
+ * Uses a string `.code` discriminator following the Cloudflare platform
10179
+ * convention (StreamError, ImagesError, etc.). The `.numericCode` matches
10180
+ * the REST API `errors[].code` values.
10181
+ */
10182
+ interface ArtifactsError extends Error {
10183
+ readonly name: 'ArtifactsError';
10184
+ /** String error code for programmatic matching. */
10185
+ readonly code: ArtifactsErrorCode;
10186
+ /** Numeric error code matching the REST API. */
10187
+ readonly numericCode: number;
10188
+ }
10189
+ // ── Binding ──────────────────────────────────────────────────────────────────
10190
+ /**
10191
+ * Artifacts binding — namespace-level operations.
10192
+ *
10193
+ * Methods may throw `ArtifactsError` with code `INTERNAL_ERROR` if an unexpected service error occurs.
10194
+ */
10159
10195
  interface Artifacts {
10160
10196
  /**
10161
10197
  * Create a new repository with an initial access token.
10162
10198
  * @param name Repository name (alphanumeric, dots, hyphens, underscores).
10163
10199
  * @param opts Optional: readOnly flag, description, default branch name.
10164
10200
  * @returns Repo metadata with initial token.
10201
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10202
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the repo already exists.
10165
10203
  */
10166
10204
  create(name: string, opts?: {
10167
10205
  readOnly?: boolean;
@@ -10172,12 +10210,23 @@ interface Artifacts {
10172
10210
  * Get a handle to an existing repository.
10173
10211
  * @param name Repository name.
10174
10212
  * @returns Repo handle.
10213
+ * @throws {ArtifactsError} with code `NOT_FOUND` if the repo does not exist.
10214
+ * @throws {ArtifactsError} with code `IMPORT_IN_PROGRESS` if the repo is still importing.
10215
+ * @throws {ArtifactsError} with code `FORK_IN_PROGRESS` if the repo is still forking.
10175
10216
  */
10176
10217
  get(name: string): Promise<ArtifactsRepo>;
10177
10218
  /**
10178
10219
  * Import a repository from an external git remote.
10179
10220
  * @param params Source URL and optional branch/depth, plus target name and options.
10180
10221
  * @returns Repo metadata with initial token.
10222
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if the target name is invalid.
10223
+ * @throws {ArtifactsError} with code `INVALID_INPUT` if the source URL is not valid HTTPS.
10224
+ * @throws {ArtifactsError} with code `INVALID_URL` if the source URL does not point to a git repository.
10225
+ * @throws {ArtifactsError} with code `REMOTE_AUTH_REQUIRED` if the remote requires authentication.
10226
+ * @throws {ArtifactsError} with code `NOT_FOUND` if the remote repository does not exist.
10227
+ * @throws {ArtifactsError} with code `UPSTREAM_UNAVAILABLE` if the remote cannot be reached.
10228
+ * @throws {ArtifactsError} with code `MEMORY_LIMIT` if the import exceeds service memory limits.
10229
+ * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the target repo already exists.
10181
10230
  */
10182
10231
  import(params: {
10183
10232
  source: {
@@ -10205,6 +10254,7 @@ interface Artifacts {
10205
10254
  * Delete a repository and all associated tokens.
10206
10255
  * @param name Repository name.
10207
10256
  * @returns true if deleted, false if not found.
10257
+ * @throws {ArtifactsError} with code `INVALID_REPO_NAME` if name is invalid.
10208
10258
  */
10209
10259
  delete(name: string): Promise<boolean>;
10210
10260
  }
@@ -11304,11 +11354,11 @@ interface SendEmail {
11304
11354
  send(message: EmailMessage): Promise<EmailSendResult>;
11305
11355
  send(builder: {
11306
11356
  from: string | EmailAddress;
11307
- to: string | string[];
11357
+ to: string | EmailAddress | (string | EmailAddress)[];
11308
11358
  subject: string;
11309
11359
  replyTo?: string | EmailAddress;
11310
- cc?: string | string[];
11311
- bcc?: string | string[];
11360
+ cc?: string | EmailAddress | (string | EmailAddress)[];
11361
+ bcc?: string | EmailAddress | (string | EmailAddress)[];
11312
11362
  headers?: Record<string, string>;
11313
11363
  text?: string;
11314
11364
  html?: string;
@@ -13142,6 +13192,9 @@ declare namespace TailStream {
13142
13192
  // 1. This is an Onset event
13143
13193
  // 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
13144
13194
  readonly spanId?: string;
13195
+ // W3C trace flags from an upstream traceparent. Absent when no upstream
13196
+ // sampling decision was made.
13197
+ readonly traceFlags?: number;
13145
13198
  }
13146
13199
  interface TailEvent<Event extends EventType> {
13147
13200
  // invocation id of the currently invoked worker stage.
@@ -13516,6 +13569,27 @@ interface WorkflowError {
13516
13569
  code?: number;
13517
13570
  message: string;
13518
13571
  }
13572
+ interface WorkflowInstanceRestartOptions {
13573
+ /**
13574
+ * Restart from a specific step. If omitted, the instance restarts from the beginning.
13575
+ * The step must exist in the instance's execution history.
13576
+ */
13577
+ from?: {
13578
+ /**
13579
+ * The step name as defined in your workflow code.
13580
+ */
13581
+ name: string;
13582
+ /**
13583
+ * 1-indexed occurrence of this step name. Use when the same step name appears multiple times (e.g. in a loop).
13584
+ * @default 1
13585
+ */
13586
+ count?: number;
13587
+ /**
13588
+ * Step type filter. Use when different step types share the same name.
13589
+ */
13590
+ type?: 'do' | 'sleep' | 'waitForEvent';
13591
+ };
13592
+ }
13519
13593
  declare abstract class WorkflowInstance {
13520
13594
  public id: string;
13521
13595
  /**
@@ -13531,9 +13605,11 @@ declare abstract class WorkflowInstance {
13531
13605
  */
13532
13606
  public terminate(): Promise<void>;
13533
13607
  /**
13534
- * Restart the instance.
13608
+ * Restart the instance. Optionally restart from a specific step, preserving
13609
+ * cached results for all steps before it.
13610
+ * @param options Options for the restart, including an optional step to restart from.
13535
13611
  */
13536
- public restart(): Promise<void>;
13612
+ public restart(options?: WorkflowInstanceRestartOptions): Promise<void>;
13537
13613
  /**
13538
13614
  * Returns the current status of the instance.
13539
13615
  */
@@ -28,14 +28,14 @@
28
28
  "devDependencies": {
29
29
  "@braintree/sanitize-url": "^7.1.2",
30
30
  "@tailwindcss/vite": "^4.3.0",
31
- "cytoscape": "^3.33.3",
31
+ "cytoscape": "^3.33.4",
32
32
  "cytoscape-cose-bilkent": "^4.1.0",
33
- "dayjs": "^1.11.20",
33
+ "dayjs": "^1.11.21",
34
34
  "debug": "^4.4.3",
35
- "mermaid": "^11.14.0",
35
+ "mermaid": "^11.15.0",
36
36
  "tailwindcss": "^4.3.0",
37
37
  "vitepress": "^1.6.4",
38
- "vitepress-plugin-llms": "^1.12.2",
38
+ "vitepress-plugin-llms": "^1.13.0",
39
39
  "vitepress-plugin-mermaid": "^2.0.17"
40
40
  }
41
41
  }
@@ -49,13 +49,13 @@
49
49
  "types": "./dist/index.d.ts"
50
50
  },
51
51
  "devDependencies": {
52
- "@vitejs/plugin-vue": "^6.0.6",
52
+ "@vitejs/plugin-vue": "^6.0.7",
53
53
  "@vue/test-utils": "^2.4.10",
54
54
  "@vue/tsconfig": "^0.9.1",
55
55
  "jsdom": "^29.1.1",
56
- "vite": "^8.0.11",
57
- "vite-plugin-dts": "^5.0.0",
56
+ "vite": "^8.0.14",
57
+ "vite-plugin-dts": "^5.0.1",
58
58
  "vue": "^3.5.34",
59
- "vue-tsc": "^3.2.8"
59
+ "vue-tsc": "^3.3.2"
60
60
  }
61
61
  }
@@ -7,7 +7,6 @@
7
7
  "ES2023"
8
8
  ],
9
9
  "moduleDetection": "force",
10
- "ignoreDeprecations": "6.0",
11
10
  "module": "ESNext",
12
11
  /* Bundler mode */
13
12
  "moduleResolution": "bundler",