orquesta-cli 0.2.30 → 0.2.31

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.
@@ -1,5 +1,6 @@
1
1
  import { configManager } from '../core/config/config-manager.js';
2
2
  import { logger } from '../utils/logger.js';
3
+ import { readHookConfig } from './hook-init.js';
3
4
  const ORQUESTA_API = process.env['ORQUESTA_API_URL'] || 'https://getorquesta.com';
4
5
  export async function fetchOrquestaProjects(token) {
5
6
  try {
@@ -194,6 +195,8 @@ export async function submitPromptToOrquesta(prompt) {
194
195
  if (!orquestaConfig?.token) {
195
196
  return { success: false, error: 'Not connected to Orquesta' };
196
197
  }
198
+ const cwd = prompt.context?.['cwd'] || process.cwd();
199
+ const effectiveProjectId = readHookConfig(cwd)?.projectId || orquestaConfig.projectId;
197
200
  try {
198
201
  const response = await fetch(`${ORQUESTA_API}/api/orquesta-cli/prompts`, {
199
202
  method: 'POST',
@@ -206,6 +209,7 @@ export async function submitPromptToOrquesta(prompt) {
206
209
  context: prompt.context,
207
210
  cliType: 'orquesta-cli',
208
211
  llmConfig: prompt.llmConfig,
212
+ projectId: effectiveProjectId,
209
213
  }),
210
214
  });
211
215
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",