contribute-now 0.10.0-patch.647137a → 0.10.0-patch.cda3971

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/cli.js +12 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -12565,14 +12565,20 @@ async function getManagedClient() {
12565
12565
  }
12566
12566
  return _managedClient;
12567
12567
  }
12568
- async function callCopilot(systemMessage, userMessage, model, timeoutMs = COPILOT_TIMEOUT_MS) {
12569
- const client = await getManagedClient();
12568
+ function createCopilotSessionConfig(systemMessage, model) {
12570
12569
  const sessionConfig = {
12571
- systemMessage: { mode: "replace", content: systemMessage }
12570
+ systemMessage: { mode: "replace", content: systemMessage },
12571
+ availableTools: [],
12572
+ onPermissionRequest: () => ({ kind: "reject" })
12572
12573
  };
12573
- if (model)
12574
+ if (model) {
12574
12575
  sessionConfig.model = model;
12575
- const session = await client.createSession(sessionConfig);
12576
+ }
12577
+ return sessionConfig;
12578
+ }
12579
+ async function callCopilot(systemMessage, userMessage, model, timeoutMs = COPILOT_TIMEOUT_MS) {
12580
+ const client = await getManagedClient();
12581
+ const session = await client.createSession(createCopilotSessionConfig(systemMessage, model));
12576
12582
  try {
12577
12583
  const response = await withTimeout(session.sendAndWait({ prompt: userMessage }), timeoutMs);
12578
12584
  if (!response?.data?.content)
@@ -14654,7 +14660,7 @@ var import_picocolors12 = __toESM(require_picocolors(), 1);
14654
14660
  // package.json
14655
14661
  var package_default = {
14656
14662
  name: "contribute-now",
14657
- version: "0.10.0-patch.647137a",
14663
+ version: "0.10.0-patch.cda3971",
14658
14664
  description: "Developer CLI that automates git workflows \u2014 branching, syncing, committing, and PRs \u2014 with multi-workflow and commit convention support.",
14659
14665
  type: "module",
14660
14666
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contribute-now",
3
- "version": "0.10.0-patch.647137a",
3
+ "version": "0.10.0-patch.cda3971",
4
4
  "description": "Developer CLI that automates git workflows — branching, syncing, committing, and PRs — with multi-workflow and commit convention support.",
5
5
  "type": "module",
6
6
  "bin": {