@moda-ai/cli 1.55.16 → 1.55.18
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/{agent-a2xwfeeh.js → agent-cha3kg9d.js} +9 -9
- package/dist/{cli-86q35fpq.js → cli-0e8bfvn7.js} +8 -8
- package/dist/{cli-3gwbg0xp.js → cli-1exddmc0.js} +2 -2
- package/dist/{cli-b3cxcxgn.js → cli-3ezzeqcy.js} +669 -37
- package/dist/{cli-kf3d6y8c.js → cli-5hq827jt.js} +8 -2
- package/dist/{cli-xy6zn80e.js → cli-5q1gyvxn.js} +5 -5
- package/dist/{cli-7fc44hhq.js → cli-a1mv0ypm.js} +5 -5
- package/dist/{cli-zdeywyn9.js → cli-av3dqgj5.js} +4 -4
- package/dist/cli-bb7133m7.js +144 -0
- package/dist/{cli-2ars875d.js → cli-c8p69n55.js} +2 -2
- package/dist/{cli-atx672xv.js → cli-eazeanvt.js} +1 -1
- package/dist/{cli-53mvsfgn.js → cli-kg0kz05e.js} +3 -3
- package/dist/{cli-6ca1sz0a.js → cli-qmjnh4z9.js} +1 -1
- package/dist/cli.js +120 -49
- package/dist/{doctor-e2xrbpmp.js → doctor-kg0yq1wf.js} +9 -9
- package/dist/{fix-v8xka487.js → fix-q8er8egx.js} +7 -7
- package/dist/{harness-github-actions-301nak95.js → harness-github-actions-ver6cprq.js} +6 -6
- package/dist/{harness-28wbzncq.js → harness-v9s0k9s7.js} +6 -6
- package/dist/{index-ccdpy9ma.js → index-7zqa7t5c.js} +11 -11
- package/dist/{production-intelligence-0wqcvvxk.js → production-intelligence-k36jsvqx.js} +13 -13
- package/dist/{profile-commands-f5kysjrv.js → profile-commands-88sdwzbg.js} +3 -3
- package/dist/prompt-source-mcp.js +6 -6
- package/dist/{prompts-jg0stjfb.js → prompts-2r756vtd.js} +7 -7
- package/dist/{provision-25bw5rd7.js → provision-n3r7yway.js} +4 -4
- package/dist/{registry-39xzetsc.js → registry-5v63ga01.js} +4 -4
- package/dist/{skills-gjesa81c.js → skills-fed17et3.js} +6 -6
- package/dist/{sync-7ts9psky.js → sync-r4tncne4.js} +8 -8
- package/package.json +1 -1
- package/skills/integration/index.json +2 -2
- package/skills/moda-cli/SKILL.md +20 -8
- package/dist/cli-438g4nwh.js +0 -465
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliOutput,
|
|
3
3
|
outputModeFromFlags
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3ezzeqcy.js";
|
|
5
5
|
|
|
6
6
|
// src/command-context.ts
|
|
7
7
|
function flagEnabled(flags, key) {
|
|
@@ -50,7 +50,13 @@ function createCommandContext(input, options = {}) {
|
|
|
50
50
|
output: createCliOutput({
|
|
51
51
|
command: options.commandName ?? input.command,
|
|
52
52
|
mode: outputMode,
|
|
53
|
-
quiet
|
|
53
|
+
quiet,
|
|
54
|
+
invocation: {
|
|
55
|
+
command: options.commandName ?? input.command,
|
|
56
|
+
positionals: input.positionals,
|
|
57
|
+
flags: rawFlags,
|
|
58
|
+
...input.bareFlags ? { bareFlags: input.bareFlags } : {}
|
|
59
|
+
}
|
|
54
60
|
}),
|
|
55
61
|
profile: flags.profile,
|
|
56
62
|
dryRun: flagEnabled(flags, "dry-run"),
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAuthSessionValid,
|
|
3
3
|
loadAuthSession
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-qmjnh4z9.js";
|
|
5
5
|
import {
|
|
6
6
|
inspectPromptManifest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-0e8bfvn7.js";
|
|
8
8
|
import {
|
|
9
9
|
readHarnessSyncState,
|
|
10
10
|
renderDoctorHuman,
|
|
11
11
|
renderStatusHuman,
|
|
12
12
|
scanHarness
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-a1mv0ypm.js";
|
|
14
14
|
import {
|
|
15
15
|
callDataAPI
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-c8p69n55.js";
|
|
17
17
|
import {
|
|
18
18
|
ensureSecretFilePermissions,
|
|
19
19
|
getActiveProfile,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveSecretReference,
|
|
28
28
|
resolveTenantId,
|
|
29
29
|
secretFilePathFromRef
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-3ezzeqcy.js";
|
|
31
31
|
|
|
32
32
|
// src/doctor.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createCommandContext,
|
|
6
6
|
stringOption
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-5hq827jt.js";
|
|
8
8
|
import {
|
|
9
9
|
assertFlags,
|
|
10
10
|
assertPositionals,
|
|
11
11
|
requireTenant
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-kg0kz05e.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
callControlAPI
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-c8p69n55.js";
|
|
17
17
|
import {
|
|
18
18
|
CliInputError,
|
|
19
19
|
CliInputRequiredError,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
resolveModaBaseUrl,
|
|
40
40
|
resolveTenantId,
|
|
41
41
|
shouldInventoryFile
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-3ezzeqcy.js";
|
|
43
43
|
import {
|
|
44
44
|
__commonJS,
|
|
45
45
|
__require,
|
|
@@ -195871,7 +195871,7 @@ async function runHarnessCommand(context) {
|
|
|
195871
195871
|
throw new CliInputError("Focused remote prompt analysis is not supported yet.", "Use local --analyst=claude|codex|cursor|local-scan, or drop --concern for a full remote report.");
|
|
195872
195872
|
}
|
|
195873
195873
|
if (context.flags["github-actions"] === "true") {
|
|
195874
|
-
const { runGithubActionsAnalyze } = await import("./harness-github-actions-
|
|
195874
|
+
const { runGithubActionsAnalyze } = await import("./harness-github-actions-ver6cprq.js");
|
|
195875
195875
|
const result = await runGithubActionsAnalyze(rootDir, {
|
|
195876
195876
|
writeReport: (report2) => {
|
|
195877
195877
|
const normalized = normalizeHarnessReport(report2);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCommandContext
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-5hq827jt.js";
|
|
4
4
|
import {
|
|
5
5
|
assertFlags,
|
|
6
6
|
assertPositionals
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-kg0kz05e.js";
|
|
8
8
|
import {
|
|
9
9
|
callControlAPI
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-c8p69n55.js";
|
|
11
11
|
import {
|
|
12
12
|
CliInputError,
|
|
13
13
|
recordApiRequest,
|
|
14
14
|
resolveApiKey,
|
|
15
15
|
resolveIngestUrl,
|
|
16
16
|
resolveTenantId
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-3ezzeqcy.js";
|
|
18
18
|
import {
|
|
19
19
|
SKILL_SOURCE_HARNESS,
|
|
20
20
|
SKILL_SOURCE_INTEGRATION_BUNDLED,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// src/intelligence-schema.ts
|
|
2
|
+
var INTELLIGENCE_SCHEMA_VERSION = "moda.intelligence.v1";
|
|
3
|
+
var provenanceSchema = { type: "string", enum: ["measured", "inferred"] };
|
|
4
|
+
var mutabilitySchema = {
|
|
5
|
+
type: "string",
|
|
6
|
+
enum: ["read", "write", "sync", "unknown"]
|
|
7
|
+
};
|
|
8
|
+
var confidenceSchema = {
|
|
9
|
+
type: "string",
|
|
10
|
+
enum: ["high", "medium", "low", "unknown"]
|
|
11
|
+
};
|
|
12
|
+
var MODA_INTELLIGENCE_V1_JSON_SCHEMA = {
|
|
13
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
$id: "moda.intelligence.v1",
|
|
15
|
+
title: "Moda Intelligence v1",
|
|
16
|
+
type: "object",
|
|
17
|
+
additionalProperties: false,
|
|
18
|
+
required: [
|
|
19
|
+
"schema_version",
|
|
20
|
+
"generated_at",
|
|
21
|
+
"command",
|
|
22
|
+
"source",
|
|
23
|
+
"degraded",
|
|
24
|
+
"question",
|
|
25
|
+
"summary",
|
|
26
|
+
"answer_markdown",
|
|
27
|
+
"answer_claims",
|
|
28
|
+
"findings",
|
|
29
|
+
"evidence_refs",
|
|
30
|
+
"next_commands",
|
|
31
|
+
"warnings"
|
|
32
|
+
],
|
|
33
|
+
properties: {
|
|
34
|
+
schema_version: { const: "moda.intelligence.v1" },
|
|
35
|
+
generated_at: { type: "string", format: "date-time" },
|
|
36
|
+
command: { type: "string" },
|
|
37
|
+
source: { type: "string", enum: ["cloud", "local_fallback"] },
|
|
38
|
+
degraded: { type: "boolean" },
|
|
39
|
+
question: { type: "string" },
|
|
40
|
+
summary: {
|
|
41
|
+
type: "object",
|
|
42
|
+
additionalProperties: false,
|
|
43
|
+
required: ["text", "confidence"],
|
|
44
|
+
properties: { text: { type: "string" }, confidence: confidenceSchema }
|
|
45
|
+
},
|
|
46
|
+
answer_markdown: { type: "string" },
|
|
47
|
+
answer_claims: {
|
|
48
|
+
type: "array",
|
|
49
|
+
items: {
|
|
50
|
+
type: "object",
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
required: ["text", "kind", "status", "evidence_ref_ids"],
|
|
53
|
+
properties: {
|
|
54
|
+
text: { type: "string" },
|
|
55
|
+
value: { type: "number" },
|
|
56
|
+
kind: { type: "string", enum: ["percentage", "count", "qualitative"] },
|
|
57
|
+
status: {
|
|
58
|
+
type: "string",
|
|
59
|
+
enum: ["grounded", "ungrounded", "unverifiable"]
|
|
60
|
+
},
|
|
61
|
+
evidence_ref_ids: { type: "array", items: { type: "string" } },
|
|
62
|
+
matched_path: { type: "string" }
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
findings: {
|
|
67
|
+
type: "array",
|
|
68
|
+
items: {
|
|
69
|
+
type: "object",
|
|
70
|
+
additionalProperties: false,
|
|
71
|
+
required: ["id", "title", "evidence_ref_ids", "recommended_actions"],
|
|
72
|
+
properties: {
|
|
73
|
+
id: { type: "string" },
|
|
74
|
+
title: { type: "string" },
|
|
75
|
+
severity: {
|
|
76
|
+
type: "string",
|
|
77
|
+
enum: ["critical", "high", "medium", "low", "info"]
|
|
78
|
+
},
|
|
79
|
+
description: { type: "string" },
|
|
80
|
+
evidence_ref_ids: { type: "array", items: { type: "string" } },
|
|
81
|
+
recommended_actions: {
|
|
82
|
+
type: "array",
|
|
83
|
+
items: {
|
|
84
|
+
type: "object",
|
|
85
|
+
additionalProperties: false,
|
|
86
|
+
required: ["id", "title", "mutability", "requires_approval"],
|
|
87
|
+
properties: {
|
|
88
|
+
id: { type: "string" },
|
|
89
|
+
title: { type: "string" },
|
|
90
|
+
rationale: { type: "string" },
|
|
91
|
+
command: { type: "string" },
|
|
92
|
+
mutability: mutabilitySchema,
|
|
93
|
+
requires_approval: { type: "boolean" }
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
evidence_refs: {
|
|
101
|
+
type: "array",
|
|
102
|
+
items: {
|
|
103
|
+
type: "object",
|
|
104
|
+
additionalProperties: false,
|
|
105
|
+
required: ["id", "kind", "label", "grounding"],
|
|
106
|
+
properties: {
|
|
107
|
+
id: { type: "string" },
|
|
108
|
+
kind: { type: "string" },
|
|
109
|
+
label: { type: "string" },
|
|
110
|
+
anchor: {
|
|
111
|
+
type: "object",
|
|
112
|
+
additionalProperties: false,
|
|
113
|
+
properties: {
|
|
114
|
+
conversation_id: { type: "string" },
|
|
115
|
+
message_index: { type: "number" },
|
|
116
|
+
run_id: { type: "string" },
|
|
117
|
+
tool_name: { type: "string" }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
snippet: { type: "string" },
|
|
121
|
+
grounding: provenanceSchema
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
next_commands: {
|
|
126
|
+
type: "array",
|
|
127
|
+
items: {
|
|
128
|
+
type: "object",
|
|
129
|
+
additionalProperties: false,
|
|
130
|
+
required: ["command", "mutability", "requires_approval"],
|
|
131
|
+
properties: {
|
|
132
|
+
command: { type: "string" },
|
|
133
|
+
purpose: { type: "string" },
|
|
134
|
+
mutability: mutabilitySchema,
|
|
135
|
+
requires_approval: { type: "boolean" }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
warnings: { type: "array", items: { type: "string" } },
|
|
140
|
+
meta: { type: "object" }
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export { INTELLIGENCE_SCHEMA_VERSION, MODA_INTELLIGENCE_V1_JSON_SCHEMA };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiKeyHeaders
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-eazeanvt.js";
|
|
4
4
|
import {
|
|
5
5
|
recordApiRequest,
|
|
6
6
|
resolveApiKey,
|
|
7
7
|
resolveModaBaseUrl
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3ezzeqcy.js";
|
|
9
9
|
|
|
10
10
|
// src/api-client.ts
|
|
11
11
|
var REQUEST_TIMEOUT_MS = 30000;
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
ApiError,
|
|
3
3
|
callControlAPI,
|
|
4
4
|
callDataAPI
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-c8p69n55.js";
|
|
6
6
|
import {
|
|
7
7
|
isPlatformApiKey,
|
|
8
8
|
setPlatformTenantOverride
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-eazeanvt.js";
|
|
10
10
|
import {
|
|
11
11
|
CliAccessError,
|
|
12
12
|
CliInputError,
|
|
13
13
|
embeddedTenantIdFromApiKey,
|
|
14
14
|
resolveApiKey,
|
|
15
15
|
resolveApiTenantId
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-3ezzeqcy.js";
|
|
17
17
|
|
|
18
18
|
// src/parity-commands.ts
|
|
19
19
|
import { readFileSync } from "node:fs";
|