@warmhub/cli 0.132.2 → 0.133.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.
Files changed (2) hide show
  1. package/dist/wh.js +21 -8
  2. package/package.json +1 -1
package/dist/wh.js CHANGED
@@ -45429,7 +45429,7 @@ function createStreamingSubmissionHandle(input, deps) {
45429
45429
  // ../../packages/sdk-ts/package.json
45430
45430
  var package_default = {
45431
45431
  name: "@warmhub/sdk-ts",
45432
- version: "0.130.2",
45432
+ version: "0.131.0",
45433
45433
  private: false,
45434
45434
  type: "module",
45435
45435
  description: "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -54270,7 +54270,7 @@ var handleRefs = async (ctx, { flags, args }) => {
54270
54270
  }
54271
54271
  const result2 = withDecorations({ items, nextCursor: undefined }, decorations);
54272
54272
  writePageOutput(ctx, items, { limit: pageLimit, nextCursor: null, decorations }, () => renderRefs(ctx.out, ctx.colors, result2, wref, direction));
54273
- maybeEmitAboutHint(ctx, direction, items.length, refsQueryIsNarrowed);
54273
+ maybeEmitAboutHint(ctx, direction, items.length, refsQueryIsNarrowed, false);
54274
54274
  return;
54275
54275
  }
54276
54276
  const result = await fetchPage(cursor);
@@ -54282,13 +54282,15 @@ var handleRefs = async (ctx, { flags, args }) => {
54282
54282
  nextCursor: result.nextCursor ?? null,
54283
54283
  decorations: getResponseDecorations(result)
54284
54284
  }, () => renderRefs(ctx.out, ctx.colors, result, wref, direction));
54285
- maybeEmitAboutHint(ctx, direction, result.items?.length ?? 0, refsQueryIsNarrowed);
54285
+ maybeEmitAboutHint(ctx, direction, result.items?.length ?? 0, refsQueryIsNarrowed, Boolean(result.nextCursor));
54286
54286
  };
54287
- function maybeEmitAboutHint(ctx, direction, itemCount, refsQueryIsNarrowed) {
54287
+ function maybeEmitAboutHint(ctx, direction, itemCount, refsQueryIsNarrowed, hasMore) {
54288
54288
  if (direction !== "inbound")
54289
54289
  return;
54290
54290
  if (refsQueryIsNarrowed)
54291
54291
  return;
54292
+ if (hasMore)
54293
+ return;
54292
54294
  if (itemCount > 0)
54293
54295
  return;
54294
54296
  if (ctx.format === "json" || ctx.format === "jsonl")
@@ -57334,6 +57336,9 @@ var createFlags3 = {
57334
57336
  committer: flag.string({
57335
57337
  description: "Committer wref (shape or shaped thing; e.g. Agent/bot-1)"
57336
57338
  }),
57339
+ "component-ref": flag.string({
57340
+ description: "attribute writes to an actively installed component (Org/Name); the server checks caller authorization."
57341
+ }),
57337
57342
  add: flag.string({
57338
57343
  description: "Add a new thing (bare name — use --shape to set the shape). Repeatable; pair each --add with its own --data. For >20 ops, use --file <path>.",
57339
57344
  multiple: true
@@ -58111,6 +58116,7 @@ async function applyJsonlCommit(ctx, args) {
58111
58116
  repoName: args.repo,
58112
58117
  streamId,
58113
58118
  submissionId: args.submissionId,
58119
+ ...args.componentRef !== undefined ? { componentRef: args.componentRef } : {},
58114
58120
  ...args.committer ? { committer: args.committer } : {},
58115
58121
  ...args.message ? { message: args.message } : {},
58116
58122
  ...args.returnRepoSeq === true ? { returnRepoSeq: true } : {},
@@ -58473,6 +58479,7 @@ async function executeCommitValidation(ctx, args) {
58473
58479
  const options = {
58474
58480
  ...args.message !== undefined ? { message: args.message } : {},
58475
58481
  ...args.committer !== undefined ? { committer: args.committer } : {},
58482
+ ...args.componentRef !== undefined ? { componentRef: args.componentRef } : {},
58476
58483
  ...args.skipExisting ? { skipExisting: true } : {},
58477
58484
  ...args.includeWouldBeBody ? { includeWouldBeBody: true } : {},
58478
58485
  ...ctx.signal ? { signal: ctx.signal } : {}
@@ -58518,6 +58525,7 @@ async function executeCommitValidation(ctx, args) {
58518
58525
  var handleSubmit = async (ctx, { flags, args }) => {
58519
58526
  const { org, repo } = parseOrgRepo(getRepoRef(ctx) ?? args[0], ctx.config);
58520
58527
  const committer = flags.committer;
58528
+ const componentRef = flags["component-ref"];
58521
58529
  const messageFlag = flags.message;
58522
58530
  const opsJson = flags.ops;
58523
58531
  const opsFile = flags.file;
@@ -58709,6 +58717,7 @@ var handleSubmit = async (ctx, { flags, args }) => {
58709
58717
  operations,
58710
58718
  message,
58711
58719
  committer,
58720
+ componentRef,
58712
58721
  skipExisting,
58713
58722
  includeWouldBeBody: flags["include-would-be-body"] === true,
58714
58723
  progressRequested,
@@ -58737,6 +58746,7 @@ var handleSubmit = async (ctx, { flags, args }) => {
58737
58746
  org,
58738
58747
  repo,
58739
58748
  committer,
58749
+ componentRef,
58740
58750
  message,
58741
58751
  chunkSize,
58742
58752
  progressRequested,
@@ -58749,6 +58759,7 @@ var handleSubmit = async (ctx, { flags, args }) => {
58749
58759
  org,
58750
58760
  repo,
58751
58761
  committer,
58762
+ componentRef,
58752
58763
  message,
58753
58764
  opsFile,
58754
58765
  chunkSize,
@@ -58761,6 +58772,7 @@ var handleSubmit = async (ctx, { flags, args }) => {
58761
58772
  allowNulBytes
58762
58773
  }) : identifyCommitSubmitOutput(await ctx.client.commit.apply(org, repo, message, operations, {
58763
58774
  committer,
58775
+ componentRef,
58764
58776
  skipExisting,
58765
58777
  submissionId,
58766
58778
  ...returnRepoSeq === true ? { returnRepoSeq: true } : {}
@@ -58923,6 +58935,7 @@ function assertServerStreamOptions(ctx, flags, source) {
58923
58935
  userInput("--submission-id must be a UUID.");
58924
58936
  }
58925
58937
  const incompatible = [
58938
+ ["--component-ref", flags["component-ref"] !== undefined],
58926
58939
  ["--chunk-size", flags["chunk-size"] !== undefined],
58927
58940
  ["--skip-existing", flags["skip-existing"] === true],
58928
58941
  ["--progress", flags.progress === true],
@@ -61574,7 +61587,7 @@ async function checkRepoLicenseDeclaration(ctx, repo, repoInfo) {
61574
61587
  name: "repo-license",
61575
61588
  status: "warn",
61576
61589
  message: `Public repo ${safeRepoRef} has no repository license declaration.`,
61577
- detail: `Choose the correct license, then create the native LicenseSubject/repo thing and LicenseDeclaration/repo assertion. Set spdxIdRaw and, when applicable, licenseWref to a canonical License in ${LICENSE_SUBSTRATE}. No component installation is required.`
61590
+ detail: `Choose the correct license, then create the native LicenseSubject/license/subject thing and the LicenseDeclaration/license assertion about it. Set spdxIdRaw and, when applicable, licenseWref to a canonical License in ${LICENSE_SUBSTRATE}. No component installation is required.`
61578
61591
  };
61579
61592
  } catch (error51) {
61580
61593
  const failure = classifyDoctorLookupError(error51);
@@ -69848,7 +69861,7 @@ function resolveLogLevel(flagLevel, env) {
69848
69861
  // package.json
69849
69862
  var package_default3 = {
69850
69863
  name: "@warmhub/cli",
69851
- version: "0.132.2",
69864
+ version: "0.133.0",
69852
69865
  private: false,
69853
69866
  type: "module",
69854
69867
  description: "The wh CLI for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -70473,5 +70486,5 @@ process.exitCode = interceptedExitCode === undefined ? await runPreparedCli(laun
70473
70486
  version: package_default3.version
70474
70487
  }) : interceptedExitCode;
70475
70488
 
70476
- //# debugId=FFF74F1A1894DD3464756E2164756E21
70477
- //# warmhub-cli-build-info {"cliVersion":"0.132.2","sdkVersion":"0.130.2"}
70489
+ //# debugId=AF530C2A20E5B7C564756E2164756E21
70490
+ //# warmhub-cli-build-info {"cliVersion":"0.133.0","sdkVersion":"0.131.0"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/cli",
3
- "version": "0.132.2",
3
+ "version": "0.133.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The wh CLI for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",