agent-issues 0.0.119 → 0.0.126
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/build-info.json +3 -0
- package/dist/cli.js +97746 -26
- package/kanban/dist/assets/index-CIAg6qj5.css +1 -0
- package/kanban/dist/assets/index-DaYQjJS7.js +920 -0
- package/kanban/dist/index.html +13 -0
- package/package.json +12 -11
- package/site/dist/assets/index-D6NM1iDo.js +4533 -0
- package/site/dist/index.html +1 -1
- package/skills/agent-issues-operating-contract.md +1 -1
- package/skills/{ai-wayfinder → ai-pioneer}/SKILL.md +9 -9
- package/skills/recipes/README.md +2 -2
- package/skills/recipes/{wayfinder-map.md → pioneer-map.md} +2 -2
- package/skills/recipes/{wayfinder-ticket.md → pioneer-ticket.md} +2 -2
- package/dist/agent-installer.d.ts +0 -49
- package/dist/agent-installer.js +0 -171
- package/dist/agent-installer.js.map +0 -1
- package/dist/auth-session.d.ts +0 -40
- package/dist/auth-session.js +0 -107
- package/dist/auth-session.js.map +0 -1
- package/dist/body-backfill.d.ts +0 -26
- package/dist/body-backfill.js +0 -219
- package/dist/body-backfill.js.map +0 -1
- package/dist/build-mode.d.ts +0 -1
- package/dist/build-mode.js +0 -1
- package/dist/build-mode.js.map +0 -1
- package/dist/cli/commands/auth.d.ts +0 -61
- package/dist/cli/commands/auth.js +0 -134
- package/dist/cli/commands/auth.js.map +0 -1
- package/dist/cli/commands/backfill.d.ts +0 -8
- package/dist/cli/commands/backfill.js +0 -36
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/comments.d.ts +0 -34
- package/dist/cli/commands/comments.js +0 -124
- package/dist/cli/commands/comments.js.map +0 -1
- package/dist/cli/commands/context.d.ts +0 -13
- package/dist/cli/commands/context.js +0 -156
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/entities.d.ts +0 -91
- package/dist/cli/commands/entities.js +0 -420
- package/dist/cli/commands/entities.js.map +0 -1
- package/dist/cli/commands/export.d.ts +0 -20
- package/dist/cli/commands/export.js +0 -98
- package/dist/cli/commands/export.js.map +0 -1
- package/dist/cli/commands/fallback.d.ts +0 -6
- package/dist/cli/commands/fallback.js +0 -10
- package/dist/cli/commands/fallback.js.map +0 -1
- package/dist/cli/commands/handoff.d.ts +0 -1
- package/dist/cli/commands/handoff.js +0 -2
- package/dist/cli/commands/handoff.js.map +0 -1
- package/dist/cli/commands/installers.d.ts +0 -37
- package/dist/cli/commands/installers.js +0 -78
- package/dist/cli/commands/installers.js.map +0 -1
- package/dist/cli/commands/kanban.d.ts +0 -8
- package/dist/cli/commands/kanban.js +0 -83
- package/dist/cli/commands/kanban.js.map +0 -1
- package/dist/cli/commands/meta.d.ts +0 -14
- package/dist/cli/commands/meta.js +0 -33
- package/dist/cli/commands/meta.js.map +0 -1
- package/dist/cli/commands/plan-entries.d.ts +0 -30
- package/dist/cli/commands/plan-entries.js +0 -94
- package/dist/cli/commands/plan-entries.js.map +0 -1
- package/dist/cli/commands/site.d.ts +0 -29
- package/dist/cli/commands/site.js +0 -89
- package/dist/cli/commands/site.js.map +0 -1
- package/dist/cli/commands/sql.d.ts +0 -6
- package/dist/cli/commands/sql.js +0 -21
- package/dist/cli/commands/sql.js.map +0 -1
- package/dist/cli/commands/synchronize.d.ts +0 -12
- package/dist/cli/commands/synchronize.js +0 -31
- package/dist/cli/commands/synchronize.js.map +0 -1
- package/dist/cli/commands/tenants.d.ts +0 -29
- package/dist/cli/commands/tenants.js +0 -101
- package/dist/cli/commands/tenants.js.map +0 -1
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/index.js +0 -120
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/renderers.d.ts +0 -250
- package/dist/cli/renderers.js +0 -286
- package/dist/cli/renderers.js.map +0 -1
- package/dist/cli/shared.d.ts +0 -97
- package/dist/cli/shared.js +0 -192
- package/dist/cli/shared.js.map +0 -1
- package/dist/cli.d.ts +0 -11
- package/dist/cli.js.map +0 -1
- package/dist/context-cli.d.ts +0 -16
- package/dist/context-cli.js +0 -131
- package/dist/context-cli.js.map +0 -1
- package/dist/daemon/daemon-lifecycle.d.ts +0 -1
- package/dist/daemon/daemon-lifecycle.js +0 -2
- package/dist/daemon/daemon-lifecycle.js.map +0 -1
- package/dist/daemon/daemon-main.d.ts +0 -14
- package/dist/daemon/daemon-main.js +0 -30
- package/dist/daemon/daemon-main.js.map +0 -1
- package/dist/daemon/local-daemon-store.d.ts +0 -21
- package/dist/daemon/local-daemon-store.js +0 -31
- package/dist/daemon/local-daemon-store.js.map +0 -1
- package/dist/entity-projection.d.ts +0 -141
- package/dist/entity-projection.js +0 -147
- package/dist/entity-projection.js.map +0 -1
- package/dist/entra-device-login.d.ts +0 -12
- package/dist/entra-device-login.js +0 -40
- package/dist/entra-device-login.js.map +0 -1
- package/dist/export-files.d.ts +0 -24
- package/dist/export-files.js +0 -230
- package/dist/export-files.js.map +0 -1
- package/dist/export-markdown.d.ts +0 -24
- package/dist/export-markdown.js +0 -343
- package/dist/export-markdown.js.map +0 -1
- package/dist/help.d.ts +0 -112
- package/dist/help.js +0 -1430
- package/dist/help.js.map +0 -1
- package/dist/kanban/assets.d.ts +0 -3
- package/dist/kanban/assets.js +0 -37
- package/dist/kanban/assets.js.map +0 -1
- package/dist/kanban/index.d.ts +0 -1
- package/dist/kanban/index.js +0 -2
- package/dist/kanban/index.js.map +0 -1
- package/dist/kanban/server.d.ts +0 -28
- package/dist/kanban/server.js +0 -118
- package/dist/kanban/server.js.map +0 -1
- package/dist/mcp-installer.d.ts +0 -32
- package/dist/mcp-installer.js +0 -118
- package/dist/mcp-installer.js.map +0 -1
- package/dist/mcp-server/index.d.ts +0 -11
- package/dist/mcp-server/index.js +0 -504
- package/dist/mcp-server/index.js.map +0 -1
- package/dist/mcp-server/index.test.d.ts +0 -1
- package/dist/mcp-server/index.test.js +0 -746
- package/dist/mcp-server/index.test.js.map +0 -1
- package/dist/mcp-server/mcp-tool-audit.d.ts +0 -6
- package/dist/mcp-server/mcp-tool-audit.js +0 -47
- package/dist/mcp-server/mcp-tool-audit.js.map +0 -1
- package/dist/mcp-server/stdio.d.ts +0 -2
- package/dist/mcp-server/stdio.js +0 -7
- package/dist/mcp-server/stdio.js.map +0 -1
- package/dist/mcp.d.ts +0 -2
- package/dist/mcp.js +0 -19
- package/dist/mcp.js.map +0 -1
- package/dist/open-storage-driver.d.ts +0 -53
- package/dist/open-storage-driver.js +0 -71
- package/dist/open-storage-driver.js.map +0 -1
- package/dist/open-synchronize-stores.d.ts +0 -24
- package/dist/open-synchronize-stores.js +0 -34
- package/dist/open-synchronize-stores.js.map +0 -1
- package/dist/project-identity.d.ts +0 -23
- package/dist/project-identity.js +0 -121
- package/dist/project-identity.js.map +0 -1
- package/dist/runtime-access-boundary.d.ts +0 -7
- package/dist/runtime-access-boundary.js +0 -182
- package/dist/runtime-access-boundary.js.map +0 -1
- package/dist/service-discovery.d.ts +0 -10
- package/dist/service-discovery.js +0 -64
- package/dist/service-discovery.js.map +0 -1
- package/dist/site/assets.d.ts +0 -4
- package/dist/site/assets.js +0 -46
- package/dist/site/assets.js.map +0 -1
- package/dist/site/cloud-events-relay.d.ts +0 -18
- package/dist/site/cloud-events-relay.js +0 -78
- package/dist/site/cloud-events-relay.js.map +0 -1
- package/dist/site/index.d.ts +0 -1
- package/dist/site/index.js +0 -2
- package/dist/site/index.js.map +0 -1
- package/dist/site/server.d.ts +0 -42
- package/dist/site/server.js +0 -320
- package/dist/site/server.js.map +0 -1
- package/dist/skill-installer.d.ts +0 -35
- package/dist/skill-installer.js +0 -174
- package/dist/skill-installer.js.map +0 -1
- package/dist/vitest-setup.d.ts +0 -1
- package/dist/vitest-setup.js +0 -7
- package/dist/vitest-setup.js.map +0 -1
- package/site/dist/assets/index-DSR4mIml.js +0 -4396
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { MutableTenantCommand, TenantCommand } from "../shared.js";
|
|
2
|
-
export declare class InitCommand extends TenantCommand {
|
|
3
|
-
static paths: string[][];
|
|
4
|
-
execute(): Promise<number>;
|
|
5
|
-
}
|
|
6
|
-
export declare class CurrentTenantCommand extends TenantCommand {
|
|
7
|
-
static paths: string[][];
|
|
8
|
-
execute(): Promise<number>;
|
|
9
|
-
}
|
|
10
|
-
export declare class ProjectIdentityCommand extends TenantCommand {
|
|
11
|
-
static paths: string[][];
|
|
12
|
-
execute(): Promise<number>;
|
|
13
|
-
}
|
|
14
|
-
declare abstract class TenantAdminCommand extends MutableTenantCommand {
|
|
15
|
-
positionals: string[];
|
|
16
|
-
}
|
|
17
|
-
export declare class ListTenantsCommand extends TenantCommand {
|
|
18
|
-
static paths: string[][];
|
|
19
|
-
execute(): Promise<number>;
|
|
20
|
-
}
|
|
21
|
-
export declare class DeleteTenantCommand extends TenantAdminCommand {
|
|
22
|
-
static paths: string[][];
|
|
23
|
-
execute(): Promise<number>;
|
|
24
|
-
}
|
|
25
|
-
export declare class RenameTenantCommand extends TenantAdminCommand {
|
|
26
|
-
static paths: string[][];
|
|
27
|
-
execute(): Promise<number>;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { Option } from "clipanion";
|
|
2
|
-
import { resolveDatabasePath, resolveTenantRootPath, resolveTenantSlug } from "@agent-issues/api-local";
|
|
3
|
-
import { resolveProjectIdentity } from "../../project-identity.js";
|
|
4
|
-
import { renderCurrentTenant, renderDeleteTenant, renderProjectIdentity, renderRenameTenant, renderTenantList } from "../renderers.js";
|
|
5
|
-
import { MutableTenantCommand, TenantCommand, requirePositional, withStore } from "../shared.js";
|
|
6
|
-
export class InitCommand extends TenantCommand {
|
|
7
|
-
static paths = [["init"]];
|
|
8
|
-
async execute() {
|
|
9
|
-
return withStore(this.dbPath, this.withStoreOptions(), async (_store, dbPath) => {
|
|
10
|
-
this.print({
|
|
11
|
-
command: "init",
|
|
12
|
-
dbPath,
|
|
13
|
-
status: "ok"
|
|
14
|
-
}, `Initialized data store at ${dbPath}`);
|
|
15
|
-
return 0;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export class CurrentTenantCommand extends TenantCommand {
|
|
20
|
-
static paths = [["current-tenant"]];
|
|
21
|
-
async execute() {
|
|
22
|
-
const result = {
|
|
23
|
-
command: "current-tenant",
|
|
24
|
-
dbPath: resolveDatabasePath(this.dbPath, { currentWorkingDirectory: this.context.cwd }),
|
|
25
|
-
tenantId: resolveTenantSlug({ currentWorkingDirectory: this.context.cwd }),
|
|
26
|
-
workspaceRoot: resolveTenantRootPath(this.context.cwd)
|
|
27
|
-
};
|
|
28
|
-
this.print(result, renderCurrentTenant(result));
|
|
29
|
-
return 0;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export class ProjectIdentityCommand extends TenantCommand {
|
|
33
|
-
static paths = [["project-identity"]];
|
|
34
|
-
async execute() {
|
|
35
|
-
const result = {
|
|
36
|
-
command: "project-identity",
|
|
37
|
-
...resolveProjectIdentity(this.context.cwd)
|
|
38
|
-
};
|
|
39
|
-
this.print(result, renderProjectIdentity(result));
|
|
40
|
-
return 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
class TenantAdminCommand extends MutableTenantCommand {
|
|
44
|
-
positionals = Option.Rest();
|
|
45
|
-
}
|
|
46
|
-
export class ListTenantsCommand extends TenantCommand {
|
|
47
|
-
static paths = [["list-tenants"]];
|
|
48
|
-
async execute() {
|
|
49
|
-
return withStore(this.dbPath, this.withStoreOptions(), async (store, dbPath) => {
|
|
50
|
-
const result = {
|
|
51
|
-
command: "list-tenants",
|
|
52
|
-
currentTenantId: resolveTenantSlug({ currentWorkingDirectory: this.context.cwd }),
|
|
53
|
-
dbPath,
|
|
54
|
-
tenants: await store.listTenants()
|
|
55
|
-
};
|
|
56
|
-
this.print(result, renderTenantList(result));
|
|
57
|
-
return 0;
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
export class DeleteTenantCommand extends TenantAdminCommand {
|
|
62
|
-
static paths = [["delete-tenant"]];
|
|
63
|
-
async execute() {
|
|
64
|
-
if (!this.force) {
|
|
65
|
-
throw new Error("`delete-tenant` requires `--force`.");
|
|
66
|
-
}
|
|
67
|
-
return withStore(this.dbPath, this.withStoreOptions(), async (store, dbPath) => {
|
|
68
|
-
const rawTenantId = requirePositional(this.positionals, 0, "delete-tenant <tenantId> --force");
|
|
69
|
-
const tenantId = resolveTenantSlug({ tenant: rawTenantId });
|
|
70
|
-
const result = {
|
|
71
|
-
command: "delete-tenant",
|
|
72
|
-
dbPath,
|
|
73
|
-
...(await store.deleteTenant(tenantId))
|
|
74
|
-
};
|
|
75
|
-
this.print(result, renderDeleteTenant(result));
|
|
76
|
-
return 0;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export class RenameTenantCommand extends TenantAdminCommand {
|
|
81
|
-
static paths = [["rename-tenant"]];
|
|
82
|
-
async execute() {
|
|
83
|
-
if (!this.force) {
|
|
84
|
-
throw new Error("`rename-tenant` requires `--force`.");
|
|
85
|
-
}
|
|
86
|
-
return withStore(this.dbPath, this.withStoreOptions(), async (store, dbPath) => {
|
|
87
|
-
const rawPreviousTenantId = requirePositional(this.positionals, 0, "rename-tenant <tenantId> <newTenantId> --force");
|
|
88
|
-
const rawNewTenantId = requirePositional(this.positionals, 1, "rename-tenant <tenantId> <newTenantId> --force");
|
|
89
|
-
const previousTenantId = resolveTenantSlug({ tenant: rawPreviousTenantId });
|
|
90
|
-
const newTenantId = resolveTenantSlug({ tenant: rawNewTenantId });
|
|
91
|
-
const result = {
|
|
92
|
-
command: "rename-tenant",
|
|
93
|
-
dbPath,
|
|
94
|
-
...(await store.renameTenant(previousTenantId, newTenantId))
|
|
95
|
-
};
|
|
96
|
-
this.print(result, renderRenameTenant(result));
|
|
97
|
-
return 0;
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=tenants.js.map
|
|
@@ -1 +0,0 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AS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YAC9E,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,gDAAgD,CAAC,CAAC;YACrH,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,gDAAgD,CAAC,CAAC;YAChH,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,mBAAmB,EAAE,CAAC,CAAC;YAC5E,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;YAClE,MAAM,MAAM,GAAG;gBACd,OAAO,EAAE,eAAwB;gBACjC,MAAM;gBACN,GAAG,CAAC,MAAM,KAAK,CAAC,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;aAC5D,CAAC;YAEF,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;YAC/C,OAAO,CAAC,CAAC;QACV,CAAC,CAAC,CAAC;IACJ,CAAC;CACD"}
|
package/dist/cli/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type AgentIssuesContext } from "./shared.js";
|
|
2
|
-
export type { AgentIssuesContext } from "./shared.js";
|
|
3
|
-
export declare function runCli(argv: string[], context?: Partial<AgentIssuesContext>): Promise<number>;
|
|
4
|
-
export declare function main(argv?: string[]): Promise<number>;
|
package/dist/cli/index.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { Cli } from "clipanion";
|
|
2
|
-
import { AuthListCommand, AuthLoginCommand, AuthLogoutCommand, AuthStatusCommand, AuthSwitchCommand } from "./commands/auth.js";
|
|
3
|
-
import { BackfillBodiesCommand } from "./commands/backfill.js";
|
|
4
|
-
import { AddIssueCommentCommand, DeleteIssueCommentCommand, EditIssueCommentCommand, IssueCommentCommand, IssueCommentHistoryCommand, ListIssueCommentsCommand } from "./commands/comments.js";
|
|
5
|
-
import { AddPlanEntryCommand, DeletePlanEntryCommand, EditPlanEntryCommand, ListPlanEntriesCommand, PlanEntryHistoryCommand } from "./commands/plan-entries.js";
|
|
6
|
-
import { ContextCommand } from "./commands/context.js";
|
|
7
|
-
import { KanbanCommand } from "./commands/kanban.js";
|
|
8
|
-
import { ArchiveCommand, CreateCommand, DeleteCommand, EditCommand, HistoryCommand, LinkCommand, ListCommand, MoveCommand, NextWorkCommand, OrphansCommand, RelationsCommand, RestoreCommand, ShowCommand, StatusCommand, UnlinkCommand } from "./commands/entities.js";
|
|
9
|
-
import { ExportCommand } from "./commands/export.js";
|
|
10
|
-
import { FallbackCommand } from "./commands/fallback.js";
|
|
11
|
-
import { InstallAgentCommand, InstallMcpCommand, InstallSkillsCommand, ListAgentCommand, ListMcpCommand, ListSkillsCommand, UninstallAgentCommand, UninstallMcpCommand, UninstallSkillsCommand } from "./commands/installers.js";
|
|
12
|
-
import { CapabilitiesCommand, HelpCommand, SchemaCommand } from "./commands/meta.js";
|
|
13
|
-
import { SiteCommand } from "./commands/site.js";
|
|
14
|
-
import { SqlCommand } from "./commands/sql.js";
|
|
15
|
-
import { SynchronizeCommand } from "./commands/synchronize.js";
|
|
16
|
-
import { CurrentTenantCommand, DeleteTenantCommand, InitCommand, ListTenantsCommand, ProjectIdentityCommand, RenameTenantCommand } from "./commands/tenants.js";
|
|
17
|
-
import { stringifyJson } from "./shared.js";
|
|
18
|
-
function buildCli() {
|
|
19
|
-
const cli = new Cli({
|
|
20
|
-
binaryLabel: "agent-issues",
|
|
21
|
-
binaryName: "agent-issues"
|
|
22
|
-
});
|
|
23
|
-
cli.register(HelpCommand);
|
|
24
|
-
cli.register(SchemaCommand);
|
|
25
|
-
cli.register(CapabilitiesCommand);
|
|
26
|
-
cli.register(InstallSkillsCommand);
|
|
27
|
-
cli.register(InstallAgentCommand);
|
|
28
|
-
cli.register(InstallMcpCommand);
|
|
29
|
-
cli.register(ListSkillsCommand);
|
|
30
|
-
cli.register(ListAgentCommand);
|
|
31
|
-
cli.register(ListMcpCommand);
|
|
32
|
-
cli.register(UninstallSkillsCommand);
|
|
33
|
-
cli.register(UninstallAgentCommand);
|
|
34
|
-
cli.register(UninstallMcpCommand);
|
|
35
|
-
cli.register(SiteCommand);
|
|
36
|
-
cli.register(InitCommand);
|
|
37
|
-
cli.register(CurrentTenantCommand);
|
|
38
|
-
cli.register(ProjectIdentityCommand);
|
|
39
|
-
cli.register(ListTenantsCommand);
|
|
40
|
-
cli.register(DeleteTenantCommand);
|
|
41
|
-
cli.register(RenameTenantCommand);
|
|
42
|
-
cli.register(BackfillBodiesCommand);
|
|
43
|
-
cli.register(ContextCommand);
|
|
44
|
-
cli.register(KanbanCommand);
|
|
45
|
-
cli.register(IssueCommentCommand);
|
|
46
|
-
cli.register(AddIssueCommentCommand);
|
|
47
|
-
cli.register(DeleteIssueCommentCommand);
|
|
48
|
-
cli.register(EditIssueCommentCommand);
|
|
49
|
-
cli.register(IssueCommentHistoryCommand);
|
|
50
|
-
cli.register(ListIssueCommentsCommand);
|
|
51
|
-
cli.register(AddPlanEntryCommand);
|
|
52
|
-
cli.register(EditPlanEntryCommand);
|
|
53
|
-
cli.register(DeletePlanEntryCommand);
|
|
54
|
-
cli.register(ListPlanEntriesCommand);
|
|
55
|
-
cli.register(PlanEntryHistoryCommand);
|
|
56
|
-
cli.register(CreateCommand);
|
|
57
|
-
cli.register(EditCommand);
|
|
58
|
-
cli.register(HistoryCommand);
|
|
59
|
-
cli.register(RestoreCommand);
|
|
60
|
-
cli.register(ArchiveCommand);
|
|
61
|
-
cli.register(DeleteCommand);
|
|
62
|
-
cli.register(MoveCommand);
|
|
63
|
-
cli.register(LinkCommand);
|
|
64
|
-
cli.register(UnlinkCommand);
|
|
65
|
-
cli.register(StatusCommand);
|
|
66
|
-
cli.register(NextWorkCommand);
|
|
67
|
-
cli.register(ExportCommand);
|
|
68
|
-
cli.register(SqlCommand);
|
|
69
|
-
cli.register(RelationsCommand);
|
|
70
|
-
cli.register(OrphansCommand);
|
|
71
|
-
cli.register(ShowCommand);
|
|
72
|
-
cli.register(ListCommand);
|
|
73
|
-
cli.register(AuthListCommand);
|
|
74
|
-
cli.register(AuthLoginCommand);
|
|
75
|
-
cli.register(AuthLogoutCommand);
|
|
76
|
-
cli.register(AuthStatusCommand);
|
|
77
|
-
cli.register(AuthSwitchCommand);
|
|
78
|
-
cli.register(SynchronizeCommand);
|
|
79
|
-
cli.register(FallbackCommand);
|
|
80
|
-
return cli;
|
|
81
|
-
}
|
|
82
|
-
export async function runCli(argv, context = {}) {
|
|
83
|
-
const cli = buildCli();
|
|
84
|
-
const command = cli.process(normalizeArgv(argv), { cwd: process.cwd(), ...context });
|
|
85
|
-
return await command.validateAndExecute();
|
|
86
|
-
}
|
|
87
|
-
export async function main(argv = process.argv.slice(2)) {
|
|
88
|
-
const cli = buildCli();
|
|
89
|
-
try {
|
|
90
|
-
const command = cli.process(normalizeArgv(argv), { cwd: process.cwd() });
|
|
91
|
-
return await command.validateAndExecute();
|
|
92
|
-
}
|
|
93
|
-
catch (error) {
|
|
94
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
95
|
-
if (argv.includes("--json")) {
|
|
96
|
-
process.stderr.write(`${stringifyJson({ error: message }, argv.includes("--pretty"))}\n`);
|
|
97
|
-
}
|
|
98
|
-
else if (error instanceof Error) {
|
|
99
|
-
process.stderr.write(cli.error(error));
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
process.stderr.write(`${message}\n`);
|
|
103
|
-
}
|
|
104
|
-
return 1;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function normalizeArgv(argv) {
|
|
108
|
-
if (argv.length === 0) {
|
|
109
|
-
return ["help"];
|
|
110
|
-
}
|
|
111
|
-
if (argv[0] === "--help" || argv[0] === "-h") {
|
|
112
|
-
return ["help", ...argv.slice(1).filter((arg) => arg !== "--help" && arg !== "-h")];
|
|
113
|
-
}
|
|
114
|
-
if (argv.slice(1).some((arg) => arg === "--help" || arg === "-h")) {
|
|
115
|
-
const filtered = argv.filter((arg, index) => index === 0 || (arg !== "--help" && arg !== "-h"));
|
|
116
|
-
return ["help", filtered[0], ...filtered.slice(1)];
|
|
117
|
-
}
|
|
118
|
-
return argv;
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cli/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAChI,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAC/L,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAChK,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,WAAW,EACX,cAAc,EACd,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,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QACxC,CAAC;aAAM,CAAC;YACP,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,CAAC,CAAC;IACV,CAAC;AACF,CAAC;AAED,SAAS,aAAa,CAAC,IAAc;IACpC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC;QAChG,OAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC"}
|
package/dist/cli/renderers.d.ts
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import type { installAgent, listAgent, uninstallAgent } from "../agent-installer.js";
|
|
2
|
-
import type { BackfillBodiesResult, BackfillableBodyKind } from "../body-backfill.js";
|
|
3
|
-
import type { SynchronizeSummary } from "@agent-issues/core";
|
|
4
|
-
import type { listTenants } from "@agent-issues/api-local";
|
|
5
|
-
import type { installMcp, listMcp, uninstallMcp } from "../mcp-installer.js";
|
|
6
|
-
import type { SavedLoginView } from "../auth-session.js";
|
|
7
|
-
import type { startLiveSite } from "../site/index.js";
|
|
8
|
-
import type { installSkills, listSkills, uninstallSkills } from "../skill-installer.js";
|
|
9
|
-
export declare function renderEntityList(kind: string, entities: Array<{
|
|
10
|
-
id: string;
|
|
11
|
-
reference: string;
|
|
12
|
-
status: string;
|
|
13
|
-
title: string;
|
|
14
|
-
}>, openBlockers?: Record<string, string[]>, parentGroups?: Array<{
|
|
15
|
-
parent: {
|
|
16
|
-
reference: string;
|
|
17
|
-
status: string;
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
entities: Array<{
|
|
21
|
-
id: string;
|
|
22
|
-
reference: string;
|
|
23
|
-
status: string;
|
|
24
|
-
title: string;
|
|
25
|
-
}>;
|
|
26
|
-
}>): string;
|
|
27
|
-
export declare function renderOptionalEntityList(label: string, entities: Array<{
|
|
28
|
-
id: string;
|
|
29
|
-
reference: string;
|
|
30
|
-
kind: string;
|
|
31
|
-
status: string;
|
|
32
|
-
title: string;
|
|
33
|
-
}>): string;
|
|
34
|
-
export declare function renderEntityDetails(details: {
|
|
35
|
-
entity: {
|
|
36
|
-
id: string;
|
|
37
|
-
reference: string;
|
|
38
|
-
kind: string;
|
|
39
|
-
status: string;
|
|
40
|
-
title: string;
|
|
41
|
-
type?: string | null;
|
|
42
|
-
};
|
|
43
|
-
incoming: Array<{
|
|
44
|
-
relationType: string;
|
|
45
|
-
entity: {
|
|
46
|
-
id: string;
|
|
47
|
-
reference: string;
|
|
48
|
-
kind: string;
|
|
49
|
-
status: string;
|
|
50
|
-
};
|
|
51
|
-
}>;
|
|
52
|
-
outgoing: Array<{
|
|
53
|
-
relationType: string;
|
|
54
|
-
entity: {
|
|
55
|
-
id: string;
|
|
56
|
-
reference: string;
|
|
57
|
-
kind: string;
|
|
58
|
-
status: string;
|
|
59
|
-
};
|
|
60
|
-
}>;
|
|
61
|
-
planEntries?: Array<{
|
|
62
|
-
reference: string;
|
|
63
|
-
role: string;
|
|
64
|
-
body?: string;
|
|
65
|
-
}>;
|
|
66
|
-
}): string;
|
|
67
|
-
export declare function renderPlanDetails(details: Parameters<typeof renderEntityDetails>[0] & {
|
|
68
|
-
current: Array<{
|
|
69
|
-
title: string;
|
|
70
|
-
entries: Array<{
|
|
71
|
-
id: string;
|
|
72
|
-
reference: string;
|
|
73
|
-
body?: string;
|
|
74
|
-
referencedEntityIds: string[];
|
|
75
|
-
supersededEntryIds: string[];
|
|
76
|
-
}>;
|
|
77
|
-
}>;
|
|
78
|
-
history: Array<{
|
|
79
|
-
id: string;
|
|
80
|
-
reference: string;
|
|
81
|
-
body?: string;
|
|
82
|
-
referencedEntityIds: string[];
|
|
83
|
-
supersededEntryIds: string[];
|
|
84
|
-
tombstone: boolean;
|
|
85
|
-
}>;
|
|
86
|
-
}): string;
|
|
87
|
-
export declare function renderInitiativeBundle(bundle: {
|
|
88
|
-
initiative: {
|
|
89
|
-
id: string;
|
|
90
|
-
reference: string;
|
|
91
|
-
status: string;
|
|
92
|
-
title: string;
|
|
93
|
-
};
|
|
94
|
-
prds: Array<{
|
|
95
|
-
id: string;
|
|
96
|
-
reference: string;
|
|
97
|
-
status: string;
|
|
98
|
-
}>;
|
|
99
|
-
userStories: Array<{
|
|
100
|
-
id: string;
|
|
101
|
-
reference: string;
|
|
102
|
-
status: string;
|
|
103
|
-
}>;
|
|
104
|
-
adrs: Array<{
|
|
105
|
-
id: string;
|
|
106
|
-
reference: string;
|
|
107
|
-
status: string;
|
|
108
|
-
}>;
|
|
109
|
-
issues: Array<{
|
|
110
|
-
id: string;
|
|
111
|
-
reference: string;
|
|
112
|
-
status: string;
|
|
113
|
-
}>;
|
|
114
|
-
fixLinks: Array<{
|
|
115
|
-
issue: {
|
|
116
|
-
id: string;
|
|
117
|
-
reference: string;
|
|
118
|
-
};
|
|
119
|
-
userStory: {
|
|
120
|
-
id: string;
|
|
121
|
-
reference: string;
|
|
122
|
-
};
|
|
123
|
-
}>;
|
|
124
|
-
subIssueLinks: Array<{
|
|
125
|
-
parent: {
|
|
126
|
-
id: string;
|
|
127
|
-
reference: string;
|
|
128
|
-
};
|
|
129
|
-
issue: {
|
|
130
|
-
id: string;
|
|
131
|
-
reference: string;
|
|
132
|
-
};
|
|
133
|
-
}>;
|
|
134
|
-
blockerLinks: Array<{
|
|
135
|
-
source: {
|
|
136
|
-
id: string;
|
|
137
|
-
reference: string;
|
|
138
|
-
};
|
|
139
|
-
target: {
|
|
140
|
-
id: string;
|
|
141
|
-
reference: string;
|
|
142
|
-
};
|
|
143
|
-
}>;
|
|
144
|
-
constrainsLinks: Array<{
|
|
145
|
-
adr: {
|
|
146
|
-
id: string;
|
|
147
|
-
reference: string;
|
|
148
|
-
};
|
|
149
|
-
issue: {
|
|
150
|
-
id: string;
|
|
151
|
-
reference: string;
|
|
152
|
-
};
|
|
153
|
-
}>;
|
|
154
|
-
}): string;
|
|
155
|
-
export declare function renderInstallSkills(result: ReturnType<typeof installSkills>): string;
|
|
156
|
-
export declare function renderInstallAgent(result: ReturnType<typeof installAgent>): string;
|
|
157
|
-
export declare function renderListSkills(result: ReturnType<typeof listSkills>): string;
|
|
158
|
-
export declare function renderListAgent(result: ReturnType<typeof listAgent>): string;
|
|
159
|
-
export declare function renderUninstallSkills(result: ReturnType<typeof uninstallSkills>): string;
|
|
160
|
-
export declare function renderUninstallAgent(result: ReturnType<typeof uninstallAgent>): string;
|
|
161
|
-
export declare function renderInstallMcp(result: ReturnType<typeof installMcp>): string;
|
|
162
|
-
export declare function renderListMcp(result: ReturnType<typeof listMcp>): string;
|
|
163
|
-
export declare function renderUninstallMcp(result: ReturnType<typeof uninstallMcp>): string;
|
|
164
|
-
export declare function renderCurrentTenant(result: {
|
|
165
|
-
command: "current-tenant";
|
|
166
|
-
dbPath: string;
|
|
167
|
-
tenantId: string;
|
|
168
|
-
workspaceRoot: string;
|
|
169
|
-
}): string;
|
|
170
|
-
export declare function renderProjectIdentity(result: {
|
|
171
|
-
command: "project-identity";
|
|
172
|
-
identity: string;
|
|
173
|
-
source: string;
|
|
174
|
-
}): string;
|
|
175
|
-
export declare function renderTenantList(result: {
|
|
176
|
-
command: "list-tenants";
|
|
177
|
-
currentTenantId: string;
|
|
178
|
-
dbPath: string;
|
|
179
|
-
tenants: ReturnType<typeof listTenants>;
|
|
180
|
-
}): string;
|
|
181
|
-
export declare function renderDeleteTenant(result: {
|
|
182
|
-
command: "delete-tenant";
|
|
183
|
-
dbPath: string;
|
|
184
|
-
tenantId: string;
|
|
185
|
-
displayName: string;
|
|
186
|
-
removed: boolean;
|
|
187
|
-
counts: {
|
|
188
|
-
entities: number;
|
|
189
|
-
relations: number;
|
|
190
|
-
contexts: number;
|
|
191
|
-
contextTerms: number;
|
|
192
|
-
historyEntries: number;
|
|
193
|
-
};
|
|
194
|
-
counters: number;
|
|
195
|
-
}): string;
|
|
196
|
-
export declare function renderRenameTenant(result: {
|
|
197
|
-
command: "rename-tenant";
|
|
198
|
-
dbPath: string;
|
|
199
|
-
previousTenantId: string;
|
|
200
|
-
previousDisplayName: string;
|
|
201
|
-
newTenantId: string;
|
|
202
|
-
newDisplayName: string;
|
|
203
|
-
renamed: boolean;
|
|
204
|
-
counts: {
|
|
205
|
-
entities: number;
|
|
206
|
-
relations: number;
|
|
207
|
-
contexts: number;
|
|
208
|
-
contextTerms: number;
|
|
209
|
-
historyEntries: number;
|
|
210
|
-
};
|
|
211
|
-
counters: number;
|
|
212
|
-
}): string;
|
|
213
|
-
export declare function renderLiveSite(result: Awaited<ReturnType<typeof startLiveSite>>["info"]): string;
|
|
214
|
-
export declare function renderStartedLiveSite(result: {
|
|
215
|
-
port: number;
|
|
216
|
-
started: boolean;
|
|
217
|
-
url: string;
|
|
218
|
-
}): string;
|
|
219
|
-
export declare function renderStopLiveSite(result: {
|
|
220
|
-
host: string;
|
|
221
|
-
port: number;
|
|
222
|
-
url: string;
|
|
223
|
-
reachable: boolean;
|
|
224
|
-
stopped: boolean;
|
|
225
|
-
}): string;
|
|
226
|
-
export declare function renderBackfillBodies(result: {
|
|
227
|
-
command: "backfill-bodies";
|
|
228
|
-
dbPath: string;
|
|
229
|
-
dryRun: boolean;
|
|
230
|
-
force: boolean;
|
|
231
|
-
kinds: BackfillableBodyKind[];
|
|
232
|
-
scope: "current-tenant" | "all-tenants";
|
|
233
|
-
tenants: BackfillBodiesResult[];
|
|
234
|
-
}): string;
|
|
235
|
-
export declare function renderAuthLogin(session: Extract<SavedLoginView, {
|
|
236
|
-
kind: "remote";
|
|
237
|
-
}>): string;
|
|
238
|
-
export declare function renderAuthList(logins: Array<{
|
|
239
|
-
login: SavedLoginView;
|
|
240
|
-
active: boolean;
|
|
241
|
-
}>): string;
|
|
242
|
-
export declare function renderAuthLogout(name: string): string;
|
|
243
|
-
export declare function renderAuthStatus(login: SavedLoginView): string;
|
|
244
|
-
export declare function renderAuthSwitch(login: SavedLoginView): string;
|
|
245
|
-
export declare function renderSynchronize(result: {
|
|
246
|
-
command: "synchronize";
|
|
247
|
-
cloudApiUrl: string;
|
|
248
|
-
tenantId: string;
|
|
249
|
-
summary: SynchronizeSummary;
|
|
250
|
-
}): string;
|