fullcourtdefense-cli 1.1.6 → 1.1.7
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.
|
@@ -84,6 +84,8 @@ function resolveGatewayConfig(args, config) {
|
|
|
84
84
|
apiUrl: (args.apiUrl || process.env.FCD_API_URL || process.env.FULLCOURTDEFENSE_API_URL || config.apiUrl || home.apiUrl || DEFAULT_API_URL).replace(/\/$/, ''),
|
|
85
85
|
agentName: args.agentName || process.env.FCD_AGENT_NAME || 'cursor-local-agent',
|
|
86
86
|
environment: args.environment || process.env.FCD_ENVIRONMENT || 'developer-workstation',
|
|
87
|
+
userObjective: args.userObjective || process.env.FCD_USER_OBJECTIVE || 'Developer requested this action from Cursor.',
|
|
88
|
+
authority: args.authority || process.env.FCD_AUTHORITY || 'developer',
|
|
87
89
|
approvalMode: args.approvalMode === 'block' ? 'block' : 'wait',
|
|
88
90
|
approvalTimeoutMs: Number(args.approvalTimeoutMs) > 0 ? Number(args.approvalTimeoutMs) : 300000,
|
|
89
91
|
approvalPollMs: Math.max(1000, Number(args.approvalPollMs) > 0 ? Number(args.approvalPollMs) : 3000),
|
|
@@ -273,6 +275,8 @@ class AgentGuardApi {
|
|
|
273
275
|
toolArgs: input.toolArgs,
|
|
274
276
|
argsSummary: summarizeToolArgs(input.toolArgs),
|
|
275
277
|
environment: this.config.environment,
|
|
278
|
+
userObjective: this.config.userObjective,
|
|
279
|
+
authority: this.config.authority,
|
|
276
280
|
source: 'runtime_sdk',
|
|
277
281
|
});
|
|
278
282
|
if (!result.success || !result.data) {
|
|
@@ -289,6 +293,8 @@ class AgentGuardApi {
|
|
|
289
293
|
toolArgs: input.toolArgs,
|
|
290
294
|
argsSummary: summarizeToolArgs(input.toolArgs),
|
|
291
295
|
environment: this.config.environment,
|
|
296
|
+
userObjective: this.config.userObjective,
|
|
297
|
+
authority: this.config.authority,
|
|
292
298
|
decision: input.decision,
|
|
293
299
|
reason: input.reason,
|
|
294
300
|
source: 'runtime_sdk',
|
|
@@ -542,6 +548,8 @@ async function installCursorMcpGatewayCommand(args, config) {
|
|
|
542
548
|
'--mcp-args', JSON.stringify(parseArgsList(args.mcpArgs || process.env.FCD_MCP_ARGS)),
|
|
543
549
|
'--agent-name', gatewayConfig.agentName,
|
|
544
550
|
'--shield-id', gatewayConfig.shieldId,
|
|
551
|
+
'--user-objective', gatewayConfig.userObjective || 'Developer requested this action from Cursor.',
|
|
552
|
+
'--authority', gatewayConfig.authority || 'developer',
|
|
545
553
|
'--approval-mode', gatewayConfig.approvalMode,
|
|
546
554
|
'--approval-timeout-ms', String(gatewayConfig.approvalTimeoutMs),
|
|
547
555
|
'--approval-poll-ms', String(gatewayConfig.approvalPollMs),
|
package/dist/index.js
CHANGED
|
@@ -343,6 +343,8 @@ async function main() {
|
|
|
343
343
|
shieldKey: flags['shield-key'],
|
|
344
344
|
apiUrl: flags['api-url'],
|
|
345
345
|
environment: flags.environment,
|
|
346
|
+
userObjective: flags['user-objective'],
|
|
347
|
+
authority: flags.authority,
|
|
346
348
|
approvalMode: flags['approval-mode'],
|
|
347
349
|
approvalTimeoutMs: flags['approval-timeout-ms'],
|
|
348
350
|
approvalPollMs: flags['approval-poll-ms'],
|
|
@@ -363,6 +365,8 @@ async function main() {
|
|
|
363
365
|
shieldKey: flags['shield-key'],
|
|
364
366
|
apiUrl: flags['api-url'],
|
|
365
367
|
environment: flags.environment,
|
|
368
|
+
userObjective: flags['user-objective'],
|
|
369
|
+
authority: flags.authority,
|
|
366
370
|
approvalMode: flags['approval-mode'],
|
|
367
371
|
approvalTimeoutMs: flags['approval-timeout-ms'],
|
|
368
372
|
approvalPollMs: flags['approval-poll-ms'],
|