githits 0.4.2 → 0.4.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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  version
3
- } from "./shared/chunk-jdygt0ra.js";
3
+ } from "./shared/chunk-q6d3ttgn.js";
4
4
  export {
5
5
  version
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __require,
3
3
  version
4
- } from "./chunk-jdygt0ra.js";
4
+ } from "./chunk-q6d3ttgn.js";
5
5
 
6
6
  // src/services/app-config-paths.ts
7
7
  var APP_DIR = "githits";
@@ -1326,7 +1326,9 @@ class GitHitsServiceImpl {
1326
1326
  method: "POST",
1327
1327
  headers: this.headers(),
1328
1328
  body: JSON.stringify({
1329
- solution_id: params.solutionId,
1329
+ ...params.solutionId !== undefined && {
1330
+ solution_id: params.solutionId
1331
+ },
1330
1332
  accepted: params.accepted,
1331
1333
  feedback_text: params.feedbackText ?? null
1332
1334
  })
@@ -3985,10 +3987,6 @@ var packageSecurityOverviewSchema = z3.object({
3985
3987
  hasCurrentVulnerabilities: z3.boolean().nullable().optional(),
3986
3988
  recentVulnerabilities: z3.array(vulnerabilityOverviewSchema).nullable().optional()
3987
3989
  }).nullable().optional();
3988
- var quickstartInfoSchema = z3.object({
3989
- installCommand: z3.string().nullable().optional(),
3990
- usageExample: z3.string().nullable().optional()
3991
- }).nullable().optional();
3992
3990
  var changelogEntrySchema = z3.object({
3993
3991
  version: z3.string().nullable().optional(),
3994
3992
  publishedAt: z3.string().nullable().optional(),
@@ -3997,7 +3995,6 @@ var changelogEntrySchema = z3.object({
3997
3995
  var packageSummaryResponseSchema = z3.object({
3998
3996
  package: packageIdentitySchema.nullable().optional(),
3999
3997
  security: packageSecurityOverviewSchema,
4000
- quickstart: quickstartInfoSchema,
4001
3998
  latestChangelogs: z3.array(changelogEntrySchema).nullable().optional()
4002
3999
  });
4003
4000
  var graphQLErrorSchema2 = z3.object({
@@ -4044,10 +4041,6 @@ query PackageSummary($registry: Registry!, $name: String!) {
4044
4041
  publishedAt
4045
4042
  }
4046
4043
  }
4047
- quickstart {
4048
- installCommand
4049
- usageExample
4050
- }
4051
4044
  latestChangelogs(limit: 3) {
4052
4045
  version
4053
4046
  publishedAt
@@ -4112,6 +4105,7 @@ query PackageVulnerabilities(
4112
4105
  $version: String
4113
4106
  $minSeverity: Float
4114
4107
  $includeWithdrawn: Boolean
4108
+ $scope: VulnerabilityScope = AFFECTED
4115
4109
  $after: String
4116
4110
  ) {
4117
4111
  packageVulnerabilities(
@@ -4132,7 +4126,7 @@ query PackageVulnerabilities(
4132
4126
  allVulnerabilityCount
4133
4127
  currentVersionAffected
4134
4128
  upgradePaths
4135
- advisories(scope: AFFECTED, first: 100, after: $after) {
4129
+ advisories(scope: $scope, first: 100, after: $after) {
4136
4130
  entries {
4137
4131
  osvId
4138
4132
  summary
@@ -4687,10 +4681,6 @@ class PackageIntelligenceServiceImpl {
4687
4681
  publishedAt: vuln.publishedAt ?? undefined
4688
4682
  })) ?? undefined
4689
4683
  } : undefined;
4690
- const quickstart = data.quickstart ? {
4691
- installCommand: data.quickstart.installCommand ?? undefined,
4692
- usageExample: data.quickstart.usageExample ?? undefined
4693
- } : undefined;
4694
4684
  const latestChangelogs = data.latestChangelogs?.map((entry) => ({
4695
4685
  version: entry.version ?? undefined,
4696
4686
  publishedAt: entry.publishedAt ?? undefined,
@@ -4699,7 +4689,6 @@ class PackageIntelligenceServiceImpl {
4699
4689
  return {
4700
4690
  package: identity,
4701
4691
  security,
4702
- quickstart,
4703
4692
  latestChangelogs
4704
4693
  };
4705
4694
  }
@@ -4774,6 +4763,7 @@ class PackageIntelligenceServiceImpl {
4774
4763
  version: params.version,
4775
4764
  minSeverity: params.minSeverity,
4776
4765
  includeWithdrawn: params.includeWithdrawn,
4766
+ scope: params.advisoryScope,
4777
4767
  after
4778
4768
  },
4779
4769
  fetchFn: this.fetchFn
@@ -2,8 +2,8 @@ import {
2
2
  createAuthCommandDependencies,
3
3
  createAuthStatusDependencies,
4
4
  createContainer
5
- } from "./chunk-v8sths32.js";
6
- import"./chunk-jdygt0ra.js";
5
+ } from "./chunk-15argn2z.js";
6
+ import"./chunk-q6d3ttgn.js";
7
7
  export {
8
8
  createContainer,
9
9
  createAuthStatusDependencies,
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
3
  // package.json
4
- var version = "0.4.2";
4
+ var version = "0.4.3";
5
5
 
6
6
  export { __require, version };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Code examples from global open source for developers and AI assistants.",
5
5
  "mcpServers": {
6
6
  "githits": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "githits",
3
3
  "description": "CLI companion for GitHits - code examples from global open source for developers and AI assistants",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -35,6 +35,9 @@
35
35
  "inspector": "npx @modelcontextprotocol/inspector bun run dev mcp",
36
36
  "smoke:cli": "bun run scripts/cli-smoke.ts",
37
37
  "smoke:mcp": "bun run scripts/mcp-smoke.ts",
38
+ "audit:pkg-ecosystems": "bun run scripts/pkg-ecosystem-audit.ts",
39
+ "agent:e2e": "bun run scripts/agent-eval.ts",
40
+ "agent:e2e:report": "bun run scripts/agent-eval-report.ts",
38
41
  "test": "bun test",
39
42
  "typecheck": "tsc",
40
43
  "format": "biome format --write .",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Code examples from global open source for developers and AI assistants",
5
5
  "author": {
6
6
  "name": "GitHits"