@theholocron/cli 5.0.0-alpha.597 → 5.0.0-alpha.599

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/index.d.mts CHANGED
@@ -138,6 +138,14 @@ export declare function createResolveToken(config: ResolveTokenConfig): TokenRes
138
138
  * the operation fails with a message naming the exact variable to set and `holocron new token`.
139
139
  */
140
140
  export declare function createFeatureResolver(config: FeatureResolverConfig): FeatureResolver;
141
+ /**
142
+ * The repository and number a post's key names, the inverse of `prKey()`: `owner/repo#123` gives
143
+ * `{ repo: "owner/repo", number: 123 }`; any other text gives `undefined`.
144
+ */
145
+ export declare function parsePrKey(key: string | undefined): {
146
+ repo: string;
147
+ number: number;
148
+ } | undefined;
141
149
  /** The key a pull request's post is found by: `owner/repo#123`. */
142
150
  export declare function prKey(repo: string, number: number): string;
143
151
  /** The tag of a pull request: the first that applies of merged, closed, draft, conflicts, failing, changes requested, ready, in review. */
package/dist/index.mjs CHANGED
@@ -1207,6 +1207,18 @@ function areaLabelsForTitle(title, scopes) {
1207
1207
  }
1208
1208
  return labels;
1209
1209
  }
1210
+ // src/pull-request-post/parse-pr-key/parse-pr-key.ts
1211
+ /**
1212
+ * The repository and number a post's key names, the inverse of `prKey()`: `owner/repo#123` gives
1213
+ * `{ repo: "owner/repo", number: 123 }`; any other text gives `undefined`.
1214
+ */
1215
+ function parsePrKey(key) {
1216
+ const match = /^([^/#\s]+\/[^/#\s]+)#(\d+)$/.exec(key ?? "");
1217
+ return match ? {
1218
+ repo: match[1],
1219
+ number: Number(match[2])
1220
+ } : void 0;
1221
+ }
1210
1222
  // src/pull-request-post/pr-key/pr-key.ts
1211
1223
  /** The key a pull request's post is found by: `owner/repo#123`. */
1212
1224
  function prKey(repo, number) {
@@ -1627,4 +1639,4 @@ function resolveCredentialsFile(base, file, makeDir = (dir) => void mkdirSync(di
1627
1639
  isDefault: true
1628
1640
  };
1629
1641
  }
1630
- export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AREA_LABEL_COLOR, AREA_PREFIX, AuthError, BUILTIN_TEMPLATES, CANONICAL_LABELS, CARDINALITY, CUSTOM_EMOJI, ConfigError, ConfigFileError, DEFAULT_TEMPLATES_DIR, DEFAULT_TOKEN_ROTATION, EMOJI_MEDIA_DIR, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MAX_EMOJI_BYTES, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, ROTATION_LABELS, RULESET_NAME, SHARED_AREAS, WebhookVerificationError, areaForScope, areaLabelDefs, areaLabelsForFiles, areaLabelsForTitle, compose, configRequiredContexts, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, emojiConflictProblem, forbiddenTokenLayers, ignoreAdvice, isMulti, keyring, layoutEmojis, layoutReactions, loadConfig, loadEmojiImage, missingCapabilities, orderKeys, parseReaction, pathMatches, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, prKey, pullRequestTag, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, renderPullRequest, reportProgress, requiredChecksVerdict, requiredFromContexts, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tagEmojiProblem, titleScopes, tokenExpectations, tokenRotationRows, whoamiAction };
1642
+ export { AGGREGATE_CHECK_NAME, AGGREGATE_SHADOW_CHECK_NAME, AREA_LABEL_COLOR, AREA_PREFIX, AuthError, BUILTIN_TEMPLATES, CANONICAL_LABELS, CARDINALITY, CUSTOM_EMOJI, ConfigError, ConfigFileError, DEFAULT_TEMPLATES_DIR, DEFAULT_TOKEN_ROTATION, EMOJI_MEDIA_DIR, ElevationRequiredError, HOLOCRON_AREAS, KNOWN_STACK_DEPS, MAX_EMOJI_BYTES, MissingTokenError, PRIVATE_CREDENTIALS_FILE, ProviderApiError, REQUIRED_CAPABILITIES, ROTATION_LABELS, RULESET_NAME, SHARED_AREAS, WebhookVerificationError, areaForScope, areaLabelDefs, areaLabelsForFiles, areaLabelsForTitle, compose, configRequiredContexts, connectionProbe, coverageExpectations, createFeatureResolver, createResolveToken, createRestClient, credentialsEnvironment, defineConfig, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, emojiConflictProblem, forbiddenTokenLayers, ignoreAdvice, isMulti, keyring, layoutEmojis, layoutReactions, loadConfig, loadEmojiImage, missingCapabilities, orderKeys, parsePrKey, parseReaction, pathMatches, pickByCreation, placeAreas, planPullRequestStatus, planReconcile, prKey, pullRequestTag, reactionProblem, reactionSpelling, readKeysLimited, readLinks, readWorkspacePackageJsons, renderPullRequest, reportProgress, requiredChecksVerdict, requiredFromContexts, resolveConfig, resolveCredentialsFile, resolveEntry, resolveEnvironmentId, resolvePluginPackage, resolveProjectOptions, resolveValue, roleTeamProblem, sourceProblem, stdoutKind, syncRoles, tagEmojiProblem, titleScopes, tokenExpectations, tokenRotationRows, whoamiAction };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.597",
3
+ "version": "5.0.0-alpha.599",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -59,16 +59,16 @@
59
59
  "posthog-node": "^6.2.0",
60
60
  "tsx": "4.23.15",
61
61
  "yargs": "^18.1.0",
62
- "@theholocron/astromech": "5.0.0-alpha.597",
63
- "@theholocron/dagobah": "5.0.0-alpha.597",
64
- "@theholocron/datapad": "5.0.0-alpha.597",
65
- "@theholocron/fs-utils": "^1.17.0-alpha.9",
62
+ "@theholocron/astromech": "5.0.0-alpha.599",
63
+ "@theholocron/dagobah": "5.0.0-alpha.599",
64
+ "@theholocron/datapad": "5.0.0-alpha.599",
66
65
  "@theholocron/env-utils": "^1.17.0-alpha.9",
66
+ "@theholocron/fs-utils": "^1.17.0-alpha.9",
67
67
  "@theholocron/git-utils": "^1.17.0-alpha.9",
68
68
  "@theholocron/github-client": "^1.58.0-alpha.77",
69
69
  "@theholocron/http-client": "^1.58.0-alpha.77",
70
70
  "@theholocron/json-utils": "^1.17.0-alpha.9",
71
- "@theholocron/kyber": "5.0.0-alpha.597",
71
+ "@theholocron/kyber": "5.0.0-alpha.599",
72
72
  "@theholocron/misc-utils": "^1.17.0-alpha.9",
73
73
  "@theholocron/observability": "^0.7.0-alpha.10",
74
74
  "@theholocron/pkg-utils": "^1.17.0-alpha.9"