aipctl 2026.10.1 → 2026.10.2
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/build/index.cjs +39 -15
- package/docs/api-contract-inventory.md +4 -4
- package/package.json +3 -3
package/build/index.cjs
CHANGED
|
@@ -89670,7 +89670,7 @@ const injectedBuildEnv = "dev".length > 0 ? "dev" : "local";
|
|
|
89670
89670
|
if (!isBuildEnv(injectedBuildEnv)) {
|
|
89671
89671
|
throw new Error(`Invalid AIPCTL_BUILD_ENV: ${injectedBuildEnv}`);
|
|
89672
89672
|
}
|
|
89673
|
-
const VERSION = "2026.10.
|
|
89673
|
+
const VERSION = "2026.10.2".length > 0 ? "2026.10.2" : "0.0.0";
|
|
89674
89674
|
const BUILD_ENV = injectedBuildEnv;
|
|
89675
89675
|
const INCLUDE_NATIVE_LOGS = BUILD_ENV !== "prod";
|
|
89676
89676
|
|
|
@@ -89878,7 +89878,14 @@ const implementedCommandOperationIds = /* @__PURE__ */ new Set([
|
|
|
89878
89878
|
"createCliAutomation",
|
|
89879
89879
|
"updateCliAutomation",
|
|
89880
89880
|
"deleteCliAutomation",
|
|
89881
|
-
"updateCliAutomationStatus"
|
|
89881
|
+
"updateCliAutomationStatus",
|
|
89882
|
+
"getCliCreditUsage",
|
|
89883
|
+
"listCliTopUsers",
|
|
89884
|
+
"getCliDailyUsageGraph",
|
|
89885
|
+
"listCliDailyUsers",
|
|
89886
|
+
"listCliTopMcpTools",
|
|
89887
|
+
"listCliAuditLogs",
|
|
89888
|
+
"listCliAuditEventTypes"
|
|
89882
89889
|
]);
|
|
89883
89890
|
const releaseEnabledCommandOperationIds = /* @__PURE__ */ new Set([
|
|
89884
89891
|
"listCliAgents",
|
|
@@ -89928,7 +89935,14 @@ const releaseEnabledCommandOperationIds = /* @__PURE__ */ new Set([
|
|
|
89928
89935
|
"createCliAutomation",
|
|
89929
89936
|
"updateCliAutomation",
|
|
89930
89937
|
"deleteCliAutomation",
|
|
89931
|
-
"updateCliAutomationStatus"
|
|
89938
|
+
"updateCliAutomationStatus",
|
|
89939
|
+
"getCliCreditUsage",
|
|
89940
|
+
"listCliTopUsers",
|
|
89941
|
+
"getCliDailyUsageGraph",
|
|
89942
|
+
"listCliDailyUsers",
|
|
89943
|
+
"listCliTopMcpTools",
|
|
89944
|
+
"listCliAuditLogs",
|
|
89945
|
+
"listCliAuditEventTypes"
|
|
89932
89946
|
]);
|
|
89933
89947
|
const direct = (commands, operation) => commands.map((command) => ({
|
|
89934
89948
|
command,
|
|
@@ -95522,57 +95536,64 @@ const makeApiServiceLive = (buildEnv) => effect$1(
|
|
|
95522
95536
|
}),
|
|
95523
95537
|
getCreditStatistics: (orgSlug, options) => gen(function* () {
|
|
95524
95538
|
const token = yield* getAccessToken();
|
|
95539
|
+
yield* requireReleaseEnabledOperation("getCliCreditUsage");
|
|
95525
95540
|
const params = new URLSearchParams();
|
|
95526
95541
|
params.set("startDt", options.startDt);
|
|
95527
95542
|
params.set("endDt", options.endDt);
|
|
95528
|
-
const path = `/api/
|
|
95543
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/usage/credit?${params.toString()}`;
|
|
95529
95544
|
return yield* makeRequest(baseUrl, path, token);
|
|
95530
95545
|
}),
|
|
95531
95546
|
getCreditTopUsers: (orgSlug, options) => gen(function* () {
|
|
95532
95547
|
const token = yield* getAccessToken();
|
|
95548
|
+
yield* requireReleaseEnabledOperation("listCliTopUsers");
|
|
95533
95549
|
const params = new URLSearchParams();
|
|
95534
95550
|
params.set("startDt", options.startDt);
|
|
95535
95551
|
params.set("endDt", options.endDt);
|
|
95536
95552
|
params.set("limit", String(options.limit));
|
|
95537
|
-
const path = `/api/
|
|
95553
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/usage/top-users?${params.toString()}`;
|
|
95538
95554
|
return yield* makeRequest(baseUrl, path, token);
|
|
95539
95555
|
}),
|
|
95540
95556
|
getCreditDailyGraph: (orgSlug, options) => gen(function* () {
|
|
95541
95557
|
const token = yield* getAccessToken();
|
|
95558
|
+
yield* requireReleaseEnabledOperation("getCliDailyUsageGraph");
|
|
95542
95559
|
const params = new URLSearchParams();
|
|
95543
95560
|
params.set("startDt", options.startDt);
|
|
95544
95561
|
params.set("endDt", options.endDt);
|
|
95545
|
-
const path = `/api/
|
|
95562
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/usage/daily-graph?${params.toString()}`;
|
|
95546
95563
|
return yield* makeRequest(baseUrl, path, token);
|
|
95547
95564
|
}),
|
|
95548
95565
|
getCreditDailyUsers: (orgSlug, options) => gen(function* () {
|
|
95549
95566
|
const token = yield* getAccessToken();
|
|
95567
|
+
yield* requireReleaseEnabledOperation("listCliDailyUsers");
|
|
95550
95568
|
const params = new URLSearchParams();
|
|
95551
95569
|
params.set("startDt", options.startDt);
|
|
95552
95570
|
params.set("endDt", options.endDt);
|
|
95553
95571
|
params.set("pageNumber", String(options.pageNumber ?? 1));
|
|
95554
95572
|
params.set("pageSize", String(options.pageSize ?? 20));
|
|
95555
95573
|
if (options.userId) params.set("userId", options.userId);
|
|
95556
|
-
const path = `/api/
|
|
95574
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/usage/daily-users?${params.toString()}`;
|
|
95557
95575
|
return yield* makeRequest(baseUrl, path, token);
|
|
95558
95576
|
}),
|
|
95559
95577
|
getMcpTopTools: (orgSlug, options) => gen(function* () {
|
|
95560
95578
|
const token = yield* getAccessToken();
|
|
95579
|
+
yield* requireReleaseEnabledOperation("listCliTopMcpTools");
|
|
95561
95580
|
const params = new URLSearchParams();
|
|
95562
95581
|
params.set("startDt", options.startDt);
|
|
95563
95582
|
params.set("endDt", options.endDt);
|
|
95564
95583
|
params.set("limit", String(options.limit));
|
|
95565
|
-
const path = `/api/
|
|
95584
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/usage/mcp-top?${params.toString()}`;
|
|
95566
95585
|
return yield* makeRequest(baseUrl, path, token);
|
|
95567
95586
|
}),
|
|
95568
95587
|
listAuditLogs: (orgSlug, options) => gen(function* () {
|
|
95569
95588
|
const token = yield* getAccessToken();
|
|
95589
|
+
yield* requireReleaseEnabledOperation("listCliAuditLogs");
|
|
95570
95590
|
const params = new URLSearchParams();
|
|
95571
95591
|
params.set("page", String(options?.page ?? 1));
|
|
95572
95592
|
params.set("pageSize", String(options?.pageSize ?? 20));
|
|
95573
95593
|
if (options?.eventType) params.set("eventType", options.eventType);
|
|
95574
|
-
const path = `/api/
|
|
95575
|
-
|
|
95594
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/audit?${params.toString()}`;
|
|
95595
|
+
const response = yield* makeRequest(baseUrl, path, token);
|
|
95596
|
+
return { ...response, pagination: normalizePageNumberPagination(response.pagination, response.list.length) };
|
|
95576
95597
|
}),
|
|
95577
95598
|
// Phase 5: Drive/Integration
|
|
95578
95599
|
listDriveEntries: (orgSlug) => gen(function* () {
|
|
@@ -95866,9 +95887,11 @@ const makeApiServiceLive = (buildEnv) => effect$1(
|
|
|
95866
95887
|
return yield* makeRequest(baseUrl, path, token);
|
|
95867
95888
|
}),
|
|
95868
95889
|
// Audit event types
|
|
95869
|
-
listAuditEventTypes: () => gen(function* () {
|
|
95890
|
+
listAuditEventTypes: (orgSlug) => gen(function* () {
|
|
95870
95891
|
const token = yield* getAccessToken();
|
|
95871
|
-
|
|
95892
|
+
yield* requireReleaseEnabledOperation("listCliAuditEventTypes");
|
|
95893
|
+
const path = `/api/cli/v1/organizations/${encodeURIComponent(orgSlug)}/admin/audit/types`;
|
|
95894
|
+
return yield* makeRequest(baseUrl, path, token);
|
|
95872
95895
|
}),
|
|
95873
95896
|
// Org capabilities & user settings
|
|
95874
95897
|
getOrgCapabilities: (orgSlug) => gen(function* () {
|
|
@@ -96390,10 +96413,11 @@ const listCommand$a = make$4(
|
|
|
96390
96413
|
|
|
96391
96414
|
const typesCommand = make$4(
|
|
96392
96415
|
"types",
|
|
96393
|
-
{},
|
|
96394
|
-
() => gen(function* () {
|
|
96416
|
+
{ org: orgOption },
|
|
96417
|
+
({ org }) => gen(function* () {
|
|
96395
96418
|
const api = yield* ApiService;
|
|
96396
|
-
const
|
|
96419
|
+
const orgSlug = yield* resolveOrgSlug(org, api);
|
|
96420
|
+
const eventTypes = yield* api.listAuditEventTypes(orgSlug).pipe(
|
|
96397
96421
|
catchTag(
|
|
96398
96422
|
"NotLoggedInError",
|
|
96399
96423
|
(e) => gen(function* () {
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
| P0-MODEL-01 | model | `aipctl model list` | `listModels` | chat | `GET` | `/api/cli/v1/organizations/{orgSlug}/models` | none | `{ models: string[], defaultModel? }` is mapped into `Model[]` and preserves active standard, custom/BYOK, and `etc` catalog IDs | code-first OAS: `chat/packages/chat/src/modules/cli-model-exec/interface/cli-model-exec-v1.interface.controller.ts` | runtime Swagger contract; the existing Web model endpoint remains an independent compatibility reference | `oas-source-only` | `P0` | `migrate` | owner=`Chat CliModelExecV1InterfaceController/ModelInternalService`; rationale=`the dedicated route reuses the existing organization-authorized model domain catalog instead of the narrowed model-exec SharedModel catalog`; removal condition=`none for the CLI route; Web migration is a separate work item`; incorporation plan=`keep the CLI path and capability/registry parity tests aligned with the code-first Chat contract` | `AIP-PUB-05` | `src/core/api.test.ts` verifies the dedicated path, production capability gate, default mapping, and preservation of custom/BYOK and `etc` IDs; Chat service/controller tests verify domain delegation and Swagger extensions |
|
|
63
63
|
| P1-MODEL-EXEC-01 | model-exec | `aipctl model-exec models`, `get`, `sample`, `chat` | `listModelExecModels`, `executeModelExecChat` | chat | `GET`, `POST` | `/api/cli/v1/organizations/{orgSlug}/model-exec/models`; `/chat` | local `ModelExecChatRequest`; Chat Zod/Swagger DTO source `chat/packages/chat/src/modules/cli-model-exec/interface/dto/cli-model-exec.dto.ts` | local `ModelExecModelCatalog`, `ModelExecChatResponse` | code-first OAS: `chat/packages/chat/src/modules/cli-model-exec/interface/cli-model-exec-v1.interface.controller.ts` | runtime Swagger contract | `oas-source-only` | `P1` | `migrate` | none | `AIP-PUB-05` | `src/core/api.test.ts` verifies both v1 paths; Chat controller contract test verifies operation IDs, request/response schemas, delegation to the existing service, and absence of a v1 image route |
|
|
64
64
|
| P1-MODEL-EXEC-02 | model-exec-image | `aipctl model-exec image generate` | `executeModelExecImageGeneration`; output uses `downloadFromUrl` | chat + external artifact URL | `POST`, external `GET` | legacy `/api/{orgSlug}/cli/model-exec/images/generations`; response `downloadUrl` | local `ModelExecImageGenerationRequest`; Chat DTO source `chat/packages/chat/src/modules/cli-model-exec/interface/dto/cli-model-exec.dto.ts` | local `ModelExecImageGenerationResponse`; image bytes from external URL | no GA OAS; legacy controller only | none | `oas-missing` | deferred | `hide` | owner=`chat CLI Model Exec API`; rationale=`synchronous image execution, external artifact lifetime, and cost recovery require the deferred async design`; removal condition=`image job/artifact/TTL/My Drive/cost gates pass`; incorporation plan=`publish a separate v1 image job contract only after the deferred design is implemented` | follow-up image hardening | existing image request/path test remains on the legacy route; customer capability must stay disabled |
|
|
65
|
-
| USAGE-01 | usage | `aipctl admin usage credit`, `top-users`, `daily-graph`, `daily-users`, `mcp-top` | `getCreditStatistics`, `getCreditTopUsers`, `getCreditDailyGraph`, `getCreditDailyUsers`, `getMcpTopTools` | api | `GET` | `/api/
|
|
66
|
-
| AUDIT-01 | audit | `aipctl admin audit list`, `types` | `listAuditLogs`, `listAuditEventTypes` | api | `GET` | `/api/
|
|
67
|
-
| TUNNEL-01 | tunnel | `aipctl admin tunnel status`, `config`, `token` | `getTunnelStatus`, `getTunnelConfig`, `createTunnelToken` | api | `GET`, `GET`, `POST` | `/api/web/edge-tunnel/v2/organizations/slug/{organizationSlug}/status`; `/config`; `/token` | none | local `TunnelStatus`, `TunnelConfig`, `void` | `resource/oas/modules/backend/tunnel/openapi.yaml
|
|
68
|
-
| P1-PRESET-01 | preset | `aipctl admin preset list`, `get`, `create`, `update`, `rename`, `delete`, `set-default`, `unset-default
|
|
65
|
+
| USAGE-01 | usage | `aipctl admin usage credit`, `top-users`, `daily-graph`, `daily-users`, `mcp-top` | `getCreditStatistics`, `getCreditTopUsers`, `getCreditDailyGraph`, `getCreditDailyUsers`, `getMcpTopTools` | api | `GET` | `/api/cli/v1/organizations/{organizationSlug}/admin/usage/credit`; `/admin/usage/top-users`; `/admin/usage/daily-graph`; `/admin/usage/daily-users`; `/admin/usage/mcp-top` | query `{ startDt,endDt,limit,pageNumber,pageSize,userId }`; daily-users uses one-based page/pageSize 1..100 | existing usage DTOs; `DailyUsageDetailsResponse.pagination { page,pageSize,total }` normalized to CLI output | `resource/oas/modules/backend/cli/openapi.yaml` → `paths/v1_admin_usage_*.yaml`; response aliases reuse `resource/oas/modules/backend/usage/components/schemas/*` | `backend/api/.../cli/generated/api/CliUsageApi.kt`; domain DTOs remain `com.querypie.duplo.api.usage.generated.model.*` | `generated-ready` | `P0` | `migrate` | none; dedicated adapter preserves organization admin authorization, three-month/future-date validation, and existing aggregation service | `AI-6344`; query/page workload bounds remain `AI-6413` | `src/core/usage-audit-contract.test.ts`, usage command tests, `CliUsageAuditApiControllerTest`, Gateway registry/contract parity; real production CLI verifies all five paths, 401/403/404/400 and future-date clamp |
|
|
66
|
+
| AUDIT-01 | audit | `aipctl admin audit list`, `types` | `listAuditLogs`, `listAuditEventTypes` | api | `GET` | `/api/cli/v1/organizations/{organizationSlug}/admin/audit`; `/api/cli/v1/organizations/{organizationSlug}/admin/audit/types` | query `{ eventType,page,pageSize }`; page is one-based and pageSize is 1..100 | existing `ListAuditResponse`/`AuditEventType[]`; page/total is normalized for CLI pagination output | `resource/oas/modules/backend/cli/openapi.yaml` → `paths/v1_admin_audit*.yaml`; response aliases reuse `resource/oas/modules/backend/audit/components/schemas/*` | `backend/api/.../cli/generated/api/CliAuditApi.kt`; domain DTOs remain `com.querypie.duplo.api.generated.models.*` | `generated-ready` | `P0` | `migrate` | none; dedicated adapter preserves AUDIT_LOGS capability, plan/retention/viewable-period and organization filters | `AI-6344`; audit volume/query workload bounds remain `AI-6413` | `src/core/usage-audit-contract.test.ts`, `commands/admin/audit/*.test.ts`, `CliUsageAuditApiControllerTest`, Gateway registry/contract parity; real production CLI verifies page 2/3, types, 401/403/404/400 |
|
|
67
|
+
| TUNNEL-01 | tunnel | `aipctl admin tunnel status`, `config`, `token` | `getTunnelStatus`, `getTunnelConfig`, `createTunnelToken` | api | `GET`, `GET`, `POST` | status target: `/api/cli/v1/organizations/{organizationSlug}/admin/tunnel/status`; current legacy `/api/web/edge-tunnel/v2/organizations/slug/{organizationSlug}/status`; `/config`; `/token` | none | local `TunnelStatus`, `TunnelConfig`, `void` | current: `resource/oas/modules/backend/tunnel/openapi.yaml`; target status: Backend CLI OAS | current tunnel generated reference; target CLI generated interface pending | `legacy-generated` | N/A | `migrate` | owner=`backend tunnel domain`; rationale=`status is safe GA-DIRECT but config/token expose sensitive material`; removal condition=`status receives its dedicated v1 contract`; incorporation plan=`migrate status only and keep config/token capability-disabled until --show-sensitive, TTL, redaction, and audit gates pass` | `AI-6344` task 3.3d; sensitive gate `AI-6380` | existing tunnel command tests; needed v1 status path/registry/permission/redaction and real CLI verification |
|
|
68
|
+
| P1-PRESET-01 | preset | `aipctl admin preset list`, `get`, `create`, `update`, `rename`, `delete`, `set-default`, `unset-default`; key rotation commands remain candidates | `listPresets`, `getPreset`, `createPreset`, `updatePreset`, `renamePreset`, `deletePreset`, `setPresetAsDefault`, `unsetPresetAsDefault`; `regenPresetKey`, `regenPresetStaticKey` | api | `GET`, `POST`, `PUT`, `PATCH`, `DELETE` mix | target `/api/cli/v1/organizations/{organizationSlug}/admin/presets/**`; current legacy `/api/web/presets/v2`; `/api/web/presets/{presetId}`; `/key`; `/static-key`; `/default` | dedicated v1 basic-management contract pending; current delete is contract-aligned to 204 and CLI tolerates deployed 200 empty only for that legacy void endpoint | local preset DTOs with installation/json command fields; delete returns `void`; key values must not enter the GA-DIRECT response | current `resource/oas/duplo-web.yaml`; target Backend CLI OAS | current legacy generated reference; target CLI generated interface pending | `legacy-generated` | `P1` | `migrate` | owner=`backend app PresetsApiController`/preset domain; rationale=`basic management is GA-DIRECT while key/static-key rotation requires a separate secret/rollback gate`; removal condition=`eight basic operations receive dedicated v1 contracts and actual CLI verification`; incorporation plan=`reuse domain authorization/audit, preserve endpoint-specific void handling, and keep key rotation gated` | `AI-6344` task 3.3b; key gate `AI-6380` | existing legacy tests plus needed v1 OAS/adapter/registry/manifest, permission/audit/idempotency/destructive UX and real mise CLI lifecycle |
|
|
69
69
|
|
|
70
70
|
## 공통 CLI request quota 오류 계약
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aipctl",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.2",
|
|
4
4
|
"description": "QueryPie AIP and MCP CLI tool",
|
|
5
5
|
"author": "QueryPie",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"node": ">=24.18.0"
|
|
23
23
|
},
|
|
24
24
|
"metadata": {
|
|
25
|
-
"contentHash": "
|
|
26
|
-
"wrapperHash": "
|
|
25
|
+
"contentHash": "866cf35ffc9e44ebc83327f46bc0f77d229aec2f7b688bbdf0074ae937d41e7e",
|
|
26
|
+
"wrapperHash": "2081868ac4d9ac9204f9f168fc0f33afb220ce17fdaeceb1060e9376ed3b138f",
|
|
27
27
|
"nativeHash": "006b08c3e391f4571d9b7c0f12d684fe2448106259e7e0581b10f9be362452e9"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|