@rness/cli 0.5.1 → 0.5.3

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.js CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  assembleContext,
20
20
  blockHash,
21
21
  bodyOf,
22
+ catchUp,
22
23
  checkBlocks,
23
24
  checkContract,
24
25
  classifyProbe,
@@ -61,7 +62,12 @@ import {
61
62
  workspaceDirs,
62
63
  writeFileAtomic,
63
64
  writeManifest
64
- } from "./chunk-C6HBGV5V.js";
65
+ } from "./chunk-CQ6YD63L.js";
66
+
67
+ // src/index.ts
68
+ async function run2(argv) {
69
+ return await catchUp(argv) ?? run(argv);
70
+ }
65
71
  export {
66
72
  BEGIN,
67
73
  BLOCK_SIZE_WARNING,
@@ -116,7 +122,7 @@ export {
116
122
  renderMarkdown,
117
123
  repoUrl,
118
124
  resolveScope,
119
- run,
125
+ run2 as run,
120
126
  scaffoldDir,
121
127
  scopeChain,
122
128
  syncCommand,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { run as runCli } from './cli.ts'\nimport { catchUp } from './core/catch-up.ts'\n\n/**\n * What a launcher calls when it delegates to this copy. A launcher older than\n * 0.5.1 knows nothing about a pin that moved, so the check runs here as well\n * (spec 0008 §4); a launcher that already looked says so, and this is a no-op.\n */\nexport async function run(argv: string[]): Promise<number> {\n return (await catchUp(argv)) ?? runCli(argv)\n}\n\nexport { VERSION } from './version.ts'\nexport {\n contextCommand,\n renderMarkdown,\n type ContextOptions,\n} from './commands/context.ts'\nexport { validateCommand, type ValidateOptions } from './commands/validate.ts'\nexport { addCommand, type AddOptions } from './commands/add.ts'\nexport {\n createCommand,\n type CreateDeps,\n type CreateOptions,\n type Prompts,\n} from './commands/create.ts'\nexport { parseFrontMatter, extractTitle } from './core/frontmatter.ts'\nexport { collectMarkdown } from './core/collect.ts'\nexport {\n loadManifest,\n NAME,\n NAME_RULE,\n ORG_NAME,\n parseRepoSpec,\n writeManifest,\n} from './core/manifest.ts'\nexport { findWorkspace } from './core/workspace.ts'\nexport { resolveScope, scopeChain } from './core/scope.ts'\nexport {\n assembleContext,\n COLLECTIONS,\n type AssembleInput,\n} from './core/context.ts'\nexport { checkContract, STATUSES } from './core/contract.ts'\nexport { scaffoldDir, SCAFFOLD_FILES } from './core/scaffold.ts'\nexport type * from './core/types.ts'\nexport { syncCommand, type SyncOptions } from './commands/sync.ts'\nexport { loginCommand, type LoginOptions } from './commands/login.ts'\nexport { logoutCommand } from './commands/logout.ts'\nexport type { CommandDeps } from './core/deps.ts'\nexport type {\n GitCredentials,\n GitProvider,\n Organization,\n OrganizationAccess,\n} from './core/provider.ts'\nexport {\n GitHubOAuthProvider,\n githubProvider,\n} from './core/github-oauth-provider.ts'\nexport { upgradeCommand, type UpgradeOptions } from './commands/upgrade.ts'\nexport { defaultTerminal, type Terminal } from './core/terminal.ts'\nexport {\n renderBlock,\n blockHash,\n parseHeader,\n bodyOf,\n BEGIN,\n END,\n BLOCK_SIZE_WARNING,\n type BlockInput,\n type RenderedBlock,\n type BlockHeader,\n} from './core/block.ts'\nexport {\n mergeBlock,\n findBlock,\n ensureClaudeMd,\n type MergeResult,\n type FindResult,\n} from './core/merge.ts'\nexport { exists, readOrNull, writeFileAtomic } from './core/fs.ts'\nexport {\n checkBlocks,\n type CheckBlocksInput,\n type CheckBlocksResult,\n} from './core/blocks.ts'\nexport {\n addRepository,\n workspaceDirs,\n type AddRepositoryInput,\n type AddRepositoryResult,\n} from './core/repos.ts'\nexport { copyScaffold, type ScaffoldTokens } from './core/scaffold-copy.ts'\nexport {\n detectPackageManager,\n isPackageManager,\n packageManagerVersion,\n installDependencies,\n PACKAGE_MANAGERS,\n type PackageManager,\n} from './core/pm.ts'\nexport {\n repoUrl,\n probeRemote,\n classifyProbe,\n DEFAULT_HOST,\n SSH_HOST,\n type Probe,\n} from './core/remote.ts'\nexport {\n detectGithubSsh,\n defaultTransport,\n GITHUB_HOSTS,\n type DetectSsh,\n type Hosts,\n type SshAccess,\n type Transport,\n} from './core/transport.ts'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,eAAsBA,KAAI,MAAiC;AACzD,SAAQ,MAAM,QAAQ,IAAI,KAAM,IAAO,IAAI;AAC7C;","names":["run"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rness/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Configuration-plane CLI for rness workspaces: resolve, validate and sync org-level context for AI coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2,6 +2,14 @@
2
2
  # shows the pin and the lockfile, and the validate workflow runs with the new
3
3
  # version before anyone merges. `directory: "/"` is the repository root because
4
4
  # this .rness repository is itself the package root.
5
+ #
6
+ # The pull request arrives 3 to 10 days after a release: the check is weekly,
7
+ # and Dependabot holds any new version back for 3 days (its default cooldown,
8
+ # a guard against a compromised release). To receive it sooner, at the price of
9
+ # that guard, add under `allow:`, at the same indentation:
10
+ # cooldown:
11
+ # exclude:
12
+ # - "@rness/cli"
5
13
  version: 2
6
14
  updates:
7
15
  - package-ecosystem: npm