@warmhub/cli 0.66.0 → 0.67.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 +37 -19
  2. package/package.json +1 -1
package/dist/wh.js CHANGED
@@ -18602,21 +18602,6 @@ function inferOperationKind(op) {
18602
18602
  const segments = op.name ? op.name.split("/").filter(Boolean) : [];
18603
18603
  return segments.length >= 3 ? "assertion" : "thing";
18604
18604
  }
18605
- // ../../packages/rules/src/component-manifest-hash.ts
18606
- function stableJson(value) {
18607
- if (!value || typeof value !== "object") {
18608
- return JSON.stringify(value);
18609
- }
18610
- if (Array.isArray(value)) {
18611
- return `[${value.map((entry) => stableJson(entry)).join(",")}]`;
18612
- }
18613
- const record = value;
18614
- return `{${Object.keys(record).sort().map((key) => `${JSON.stringify(key)}:${stableJson(record[key])}`).join(",")}}`;
18615
- }
18616
- function stableJsonEquals(left, right) {
18617
- return stableJson(left) === stableJson(right);
18618
- }
18619
-
18620
18605
  // ../../packages/rules/src/component-name-templates.ts
18621
18606
  var COMPONENT_TEMPLATE_VALUES = {
18622
18607
  "org-name": (ctx) => ctx.orgName,
@@ -18645,6 +18630,21 @@ function resolveComponentTemplate(value, ctx) {
18645
18630
  });
18646
18631
  }
18647
18632
 
18633
+ // ../../packages/rules/src/stable-json.ts
18634
+ function stableJson(value) {
18635
+ if (!value || typeof value !== "object") {
18636
+ return JSON.stringify(value);
18637
+ }
18638
+ if (Array.isArray(value)) {
18639
+ return `[${value.map((entry) => stableJson(entry)).join(",")}]`;
18640
+ }
18641
+ const record = value;
18642
+ return `{${Object.keys(record).sort().map((key) => `${JSON.stringify(key)}:${stableJson(record[key])}`).join(",")}}`;
18643
+ }
18644
+ function stableJsonEquals(left, right) {
18645
+ return stableJson(left) === stableJson(right);
18646
+ }
18647
+
18648
18648
  // ../../packages/rules/src/component-install.ts
18649
18649
  function manifestShapeData(shape) {
18650
18650
  const data = { fields: shape.fields };
@@ -27352,7 +27352,7 @@ function findSystemComponent(componentId) {
27352
27352
  // ../../packages/sdk-ts/package.json
27353
27353
  var package_default = {
27354
27354
  name: "@warmhub/sdk-ts",
27355
- version: "0.65.0",
27355
+ version: "0.66.0",
27356
27356
  private: false,
27357
27357
  type: "module",
27358
27358
  description: "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -28926,6 +28926,23 @@ class WarmHubClient {
28926
28926
  throw toWarmHubError(error);
28927
28927
  }
28928
28928
  },
28929
+ explore: async (opts) => {
28930
+ try {
28931
+ return await this.trpc.repo.explore.query({
28932
+ search: opts?.search,
28933
+ org: opts?.org,
28934
+ activity: opts?.activity,
28935
+ hasSubscriptions: opts?.hasSubscriptions,
28936
+ minThings: opts?.minThings,
28937
+ sort: opts?.sort,
28938
+ limit: opts?.limit,
28939
+ cursor: opts?.cursor,
28940
+ slugs: opts?.slugs
28941
+ });
28942
+ } catch (error) {
28943
+ throw toWarmHubError(error);
28944
+ }
28945
+ },
28929
28946
  getReadme: async (orgName, repoName) => {
28930
28947
  try {
28931
28948
  return await this.trpc.repo.getReadme.query({
@@ -29571,7 +29588,8 @@ class WarmHubClient {
29571
29588
  componentRef: opts?.componentRef,
29572
29589
  excludeComponents: opts?.excludeComponents,
29573
29590
  excludeInfraShapes: opts?.excludeInfraShapes,
29574
- mode: opts?.mode
29591
+ mode: opts?.mode,
29592
+ nameMatch: opts?.nameMatch
29575
29593
  });
29576
29594
  } catch (error) {
29577
29595
  throw toWarmHubError(error);
@@ -45735,7 +45753,7 @@ function resolveLogLevel(flags, env) {
45735
45753
  // package.json
45736
45754
  var package_default3 = {
45737
45755
  name: "@warmhub/cli",
45738
- version: "0.66.0",
45756
+ version: "0.67.0",
45739
45757
  private: false,
45740
45758
  type: "module",
45741
45759
  description: "The wh CLI for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -46390,4 +46408,4 @@ if (!updateCheckSuppressedByArgv && shouldRunUpdateCheck(updateEligibility)) {
46390
46408
  var interceptedExitCode = await maybeHandleComponentShellBoundary(dispatchArgv);
46391
46409
  process.exitCode = interceptedExitCode === undefined ? await runCli(dispatchArgv, { version: package_default3.version }) : interceptedExitCode;
46392
46410
 
46393
- //# debugId=C5B05FE58189780B64756E2164756E21
46411
+ //# debugId=F47337F68EA6DF1364756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/cli",
3
- "version": "0.66.0",
3
+ "version": "0.67.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.",