@cdot65/prisma-airs-cli 5.2.0 → 5.4.1
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/README.md +5 -5
- package/dist/{chunk-7Z76VCB3.js → chunk-36Z6IPH6.js} +18 -2
- package/dist/cli/index.js +932 -448
- package/dist/index.d.ts +16 -2
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
- **Runtime Scanning** — scan prompts and responses against AIRS security profiles, single or bulk with CSV export
|
|
17
17
|
- **Daily environment report** — `airs runtime report` delivers a read-only AI Runtime Security dashboard as self-contained HTML (default) or Markdown in your working directory, with explicit evidence gaps and configuration review findings
|
|
18
|
-
- **Red Team environment
|
|
19
|
-
- **AI Gateway daily
|
|
18
|
+
- **Red Team environment report** — `airs redteam report` collects seven read-only SDK feeds into private HTML/Markdown deliverables, with source completeness, quota and risk review findings, and independently scoped scan-creation activity
|
|
19
|
+
- **AI Gateway daily report** — `airs aigateway report --workspace dev` collects 25 read-only SDK feeds into private offline HTML/Markdown, with a fixed telemetry window, transaction pagination, error review findings and explicit source completeness
|
|
20
20
|
- **SCM dashboard and sessions** — `runtime dashboard` and `runtime sessions` expose application activity, daily trends, checked pagination and explicit session-to-content drill-down. Legacy `scan-logs query` is **broken/under refactor** and exits with migration guidance; see the [session reference](https://cdot65.github.io/prisma-airs-cli/cli/runtime/sessions/)
|
|
21
21
|
- **Guardrail Optimization** — atomic CLI commands (`create`, `apply`, `eval`, `revert`) for custom topic guardrails, designed for autonomous agent loops (see [`AGENTS.md`](AGENTS.md))
|
|
22
22
|
- **AI Red Teaming** — adversarial scanning with static, dynamic, and custom prompt set attack modes
|
|
@@ -49,7 +49,7 @@ airs doctor
|
|
|
49
49
|
airs runtime scan --profile "my-profile" "Is this prompt safe?"
|
|
50
50
|
airs runtime bulk-scan --profile "my-profile" --file prompts.csv --output-file results.csv --batch-size 25
|
|
51
51
|
|
|
52
|
-
# Daily read-only environment
|
|
52
|
+
# Daily read-only environment report, delivered in the current directory
|
|
53
53
|
airs runtime report
|
|
54
54
|
airs runtime report --output markdown
|
|
55
55
|
|
|
@@ -67,8 +67,8 @@ airs runtime topics revert --profile my-profile --name "Explosives"
|
|
|
67
67
|
airs redteam scan --target <uuid> --name "Full Scan" --type STATIC
|
|
68
68
|
airs redteam report <job-id>
|
|
69
69
|
|
|
70
|
-
# Read-only environment
|
|
71
|
-
airs redteam
|
|
70
|
+
# Read-only environment report (HTML by default; --output markdown also supported)
|
|
71
|
+
airs redteam report --strict
|
|
72
72
|
|
|
73
73
|
# Red team custom target adapters
|
|
74
74
|
airs redteam adapter list --output json
|
|
@@ -679,8 +679,11 @@ var SdkModelSecurityService = class {
|
|
|
679
679
|
}
|
|
680
680
|
async listScans(opts) {
|
|
681
681
|
const sdkOpts = {};
|
|
682
|
-
if (opts?.evalOutcome) sdkOpts.
|
|
683
|
-
if (opts?.sourceType) sdkOpts.
|
|
682
|
+
if (opts?.evalOutcome) sdkOpts.eval_outcomes = [opts.evalOutcome];
|
|
683
|
+
if (opts?.sourceType) sdkOpts.source_types = [opts.sourceType];
|
|
684
|
+
if (opts?.modelVersionUuid) sdkOpts.model_version_uuid = opts.modelVersionUuid;
|
|
685
|
+
if (opts?.startTime) sdkOpts.start_time = opts.startTime;
|
|
686
|
+
if (opts?.endTime) sdkOpts.end_time = opts.endTime;
|
|
684
687
|
if (opts?.scanOrigin) sdkOpts.scan_origin = opts.scanOrigin;
|
|
685
688
|
if (opts?.search) sdkOpts.search = opts.search;
|
|
686
689
|
if (opts?.skip !== void 0) sdkOpts.skip = opts.skip;
|
|
@@ -694,6 +697,9 @@ var SdkModelSecurityService = class {
|
|
|
694
697
|
}
|
|
695
698
|
async listAllScans(opts = {}) {
|
|
696
699
|
const rows = await this.client.scans.listAll({
|
|
700
|
+
model_version_uuid: opts.modelVersionUuid,
|
|
701
|
+
start_time: opts.startTime,
|
|
702
|
+
end_time: opts.endTime,
|
|
697
703
|
eval_outcomes: opts.evalOutcome === void 0 ? void 0 : [opts.evalOutcome],
|
|
698
704
|
source_types: opts.sourceType === void 0 ? void 0 : [opts.sourceType],
|
|
699
705
|
search_query: opts.search,
|
|
@@ -793,6 +799,8 @@ var SdkModelSecurityService = class {
|
|
|
793
799
|
const sdkOpts = {};
|
|
794
800
|
if (opts?.search) sdkOpts.search = opts.search;
|
|
795
801
|
if (opts?.searchQuery) sdkOpts.search_query = opts.searchQuery;
|
|
802
|
+
if (opts?.startTime) sdkOpts.start_time = opts.startTime;
|
|
803
|
+
if (opts?.endTime) sdkOpts.end_time = opts.endTime;
|
|
796
804
|
if (opts?.sortField) sdkOpts.sort_field = opts.sortField;
|
|
797
805
|
if (opts?.sortOrder) sdkOpts.sort_order = opts.sortOrder;
|
|
798
806
|
if (opts?.skip !== void 0) sdkOpts.skip = opts.skip;
|
|
@@ -806,6 +814,8 @@ var SdkModelSecurityService = class {
|
|
|
806
814
|
}
|
|
807
815
|
async listAllModels(opts = {}) {
|
|
808
816
|
const rows = await this.client.models.listAllModels({
|
|
817
|
+
start_time: opts.startTime,
|
|
818
|
+
end_time: opts.endTime,
|
|
809
819
|
search: opts.search,
|
|
810
820
|
search_query: opts.searchQuery,
|
|
811
821
|
sort_field: opts.sortField,
|
|
@@ -2251,6 +2261,9 @@ var ConfigSchema = z.object({
|
|
|
2251
2261
|
modelSecDataEndpoint: z.string().optional(),
|
|
2252
2262
|
modelSecMgmtEndpoint: z.string().optional(),
|
|
2253
2263
|
modelSecTokenEndpoint: z.string().optional(),
|
|
2264
|
+
agentGuardDataEndpoint: z.string().url().optional(),
|
|
2265
|
+
agentGuardMgmtEndpoint: z.string().url().optional(),
|
|
2266
|
+
agentGuardTokenEndpoint: z.string().url().optional(),
|
|
2254
2267
|
// AI Gateway (endpoints only; creds shared with mgmt*)
|
|
2255
2268
|
aiGwDataEndpoint: z.string().optional(),
|
|
2256
2269
|
aiGwAdminEndpoint: z.string().optional(),
|
|
@@ -2292,6 +2305,9 @@ function fromEnv() {
|
|
|
2292
2305
|
modelSecDataEndpoint: env.PANW_MODEL_SEC_DATA_ENDPOINT,
|
|
2293
2306
|
modelSecMgmtEndpoint: env.PANW_MODEL_SEC_MGMT_ENDPOINT,
|
|
2294
2307
|
modelSecTokenEndpoint: env.PANW_MODEL_SEC_TOKEN_ENDPOINT,
|
|
2308
|
+
agentGuardDataEndpoint: env.PANW_AGENT_GUARD_DATA_ENDPOINT,
|
|
2309
|
+
agentGuardMgmtEndpoint: env.PANW_AGENT_GUARD_MGMT_ENDPOINT,
|
|
2310
|
+
agentGuardTokenEndpoint: env.PANW_AGENT_GUARD_TOKEN_ENDPOINT,
|
|
2295
2311
|
aiGwDataEndpoint: env.PANW_AI_GW_DATA_ENDPOINT,
|
|
2296
2312
|
aiGwAdminEndpoint: env.PANW_AI_GW_ADMIN_ENDPOINT,
|
|
2297
2313
|
aiGwTokenEndpoint: env.PANW_AI_GW_TOKEN_ENDPOINT,
|