@installagent/sdk 0.14.0 → 0.15.0
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/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export { opInstallCommand, opInstallFix, opIntegrationFix } from "./op-cli.js";
|
|
|
40
40
|
export { defaultOpTitle, type MintImpls, type MintToOpOptions, type MintToOpRequest, type MintToOpResult, mintToOnePassword, } from "./op-store.js";
|
|
41
41
|
export { type PingResult, ping } from "./ping.js";
|
|
42
42
|
export { detectPlatform, detectPlatformInfo, detectShell, opNeedsAnotherShell, type Platform, type PlatformInfo, type Shell, } from "./platform.js";
|
|
43
|
-
export { DEFAULT_PORTAL_URL, PORTAL_ADMIN_SECRET_ENV, PORTAL_BUILD_TYPES, PORTAL_PASSWORD_WARNING, PORTAL_SYNC_MAX_DAYS, PORTAL_TODO_ACCESS_TABS, PORTAL_TODO_CHANGES, PORTAL_TODO_KINDS, PORTAL_URL_ENV, type PortalAddTodoInput, type PortalAddTodoResult, type PortalAddUserInput, type PortalAddUserResult, PortalAdminAuthError, type PortalAdminOptions, type PortalAgent, type PortalAgentSyncRow, type PortalBuild, type PortalBuildType, type PortalCreateAgentInput, type PortalCreateBuildInput, type PortalCreateOrgInput, type PortalCreateOrgResult, type PortalListAgentsResult, type PortalListBuildsResult, type PortalListOrgsResult, type PortalListTodosResult, type PortalOrg, type PortalOrgUser, PortalRequestError, type PortalSetAgentNameInput, type PortalSetAgentNameResult, type PortalSetAgentStatusInput, type PortalSetAgentStatusResult, type PortalSetAgentTriageResult, type PortalSetAgentWorkflowInput, type PortalSetAgentWorkflowResult, type PortalSetBuildDetailsInput, type PortalSetBuildDetailsResult, type PortalSetBuildStatusInput, type PortalSetDriveFolderResult, type PortalSetPasswordResult, type PortalSetTodoInput, type PortalSetTodoResult, type PortalSetUserInput, type PortalSetUserResult, type PortalSyncRunsResult, type PortalTodo, type PortalTodoAccessTab, type PortalTodoChange, type PortalTodoKind, type PortalTodoStatus, type PortalTriageBackfillResult, type PortalTriageProvider, type PortalTriageRecordsPage, portalAddTodo, portalAddUser, portalBackfillTriageRecords, portalBuildType, portalBuildWorkflowId, portalCreateAgent, portalCreateBuild, portalCreateOrg, portalListAgents, portalListBuilds, portalListOrgs, portalListTodos, portalReadTriageRecords, portalSetAgentName, portalSetAgentStatus, portalSetAgentTriage, portalSetAgentWorkflow, portalSetBuildDetails, portalSetBuildName, portalSetBuildStatus, portalSetBuildTriage, portalSetBuildWorkflow, portalSetDriveFolder, portalSetOrgSlackChannel, portalSetPassword, portalSetTodo, portalSetUser, portalSyncRuns, validatePortalBuildFields, } from "./portal-admin.js";
|
|
43
|
+
export { DEFAULT_PORTAL_URL, PORTAL_ADMIN_SECRET_ENV, PORTAL_BUILD_TYPES, PORTAL_PASSWORD_WARNING, PORTAL_SYNC_MAX_DAYS, PORTAL_TODO_ACCESS_TABS, PORTAL_TODO_CHANGES, PORTAL_TODO_KINDS, PORTAL_URL_ENV, type PortalAddTodoInput, type PortalAddTodoResult, type PortalAddUserInput, type PortalAddUserResult, PortalAdminAuthError, type PortalAdminOptions, type PortalAgent, type PortalAgentSyncRow, type PortalBuild, type PortalBuildType, type PortalCreateAgentInput, type PortalCreateBuildInput, type PortalCreateOrgInput, type PortalCreateOrgResult, type PortalListAgentsResult, type PortalListBuildsResult, type PortalListOrgsResult, type PortalListTodosResult, type PortalOrg, type PortalOrgUser, PortalRequestError, type PortalSetAgentNameInput, type PortalSetAgentNameResult, type PortalSetAgentStatusInput, type PortalSetAgentStatusResult, type PortalSetAgentTriageResult, type PortalSetAgentWorkflowInput, type PortalSetAgentWorkflowResult, type PortalSetBuildDetailsInput, type PortalSetBuildDetailsResult, type PortalSetBuildStatusInput, type PortalSetDriveFolderResult, type PortalSetPasswordResult, type PortalSetTodoInput, type PortalSetTodoResult, type PortalSetUserInput, type PortalSetUserResult, type PortalSyncRunsResult, type PortalSyncTodosResult, type PortalTodo, type PortalTodoAccessTab, type PortalTodoChange, type PortalTodoKind, type PortalTodoStatus, type PortalTriageBackfillResult, type PortalTriageProvider, type PortalTriageRecordsPage, portalAddTodo, portalAddUser, portalBackfillTriageRecords, portalBuildType, portalBuildWorkflowId, portalCreateAgent, portalCreateBuild, portalCreateOrg, portalListAgents, portalListBuilds, portalListOrgs, portalListTodos, portalReadTriageRecords, portalSetAgentName, portalSetAgentStatus, portalSetAgentTriage, portalSetAgentWorkflow, portalSetBuildDetails, portalSetBuildName, portalSetBuildStatus, portalSetBuildTriage, portalSetBuildWorkflow, portalSetDriveFolder, portalSetOrgSlackChannel, portalSetPassword, portalSetTodo, portalSetUser, portalSyncRuns, portalSyncTodos, validatePortalBuildFields, } from "./portal-admin.js";
|
|
44
44
|
export { BUILD_DESCRIPTION_MAX, BUILD_NAME_MAX, BUILDS_MANIFEST_END, BUILDS_MANIFEST_START, type BuildsManifest, type BuildsManifestSource, type BuildsManifestState, type BuildsSyncAction, type BuildsSyncActionResult, type BuildsSyncOptions, type BuildsSyncOrgResult, type BuildsSyncPlan, type BuildsSyncResult, type ManifestBuild, type ManifestBuildStatus, parseBuildsManifest, planBuildsSync, type RemoteClientMdReader, syncBuilds, } from "./portal-sync-builds.js";
|
|
45
45
|
export { expectedGithubAccount, type PrOpenOptions, type PrOpenResult, parseGithubRemote, prOpen, } from "./pr-open.js";
|
|
46
46
|
export { parseRoadmapRows, ROADMAP_LABELS, ROADMAP_SOURCES, type RoadmapMigrateClient, type RoadmapMigrateOptions, type RoadmapMigrateResult, type RoadmapMigrateRow, type RoadmapRow, roadmapMigrate, } from "./roadmap-migrate.js";
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ export { opInstallCommand, opInstallFix, opIntegrationFix } from "./op-cli.js";
|
|
|
43
43
|
export { defaultOpTitle, mintToOnePassword, } from "./op-store.js";
|
|
44
44
|
export { ping } from "./ping.js";
|
|
45
45
|
export { detectPlatform, detectPlatformInfo, detectShell, opNeedsAnotherShell, } from "./platform.js";
|
|
46
|
-
export { DEFAULT_PORTAL_URL, PORTAL_ADMIN_SECRET_ENV, PORTAL_BUILD_TYPES, PORTAL_PASSWORD_WARNING, PORTAL_SYNC_MAX_DAYS, PORTAL_TODO_ACCESS_TABS, PORTAL_TODO_CHANGES, PORTAL_TODO_KINDS, PORTAL_URL_ENV, PortalAdminAuthError, PortalRequestError, portalAddTodo, portalAddUser, portalBackfillTriageRecords, portalBuildType, portalBuildWorkflowId, portalCreateAgent, portalCreateBuild, portalCreateOrg, portalListAgents, portalListBuilds, portalListOrgs, portalListTodos, portalReadTriageRecords, portalSetAgentName, portalSetAgentStatus, portalSetAgentTriage, portalSetAgentWorkflow, portalSetBuildDetails, portalSetBuildName, portalSetBuildStatus, portalSetBuildTriage, portalSetBuildWorkflow, portalSetDriveFolder, portalSetOrgSlackChannel, portalSetPassword, portalSetTodo, portalSetUser, portalSyncRuns, validatePortalBuildFields, } from "./portal-admin.js";
|
|
46
|
+
export { DEFAULT_PORTAL_URL, PORTAL_ADMIN_SECRET_ENV, PORTAL_BUILD_TYPES, PORTAL_PASSWORD_WARNING, PORTAL_SYNC_MAX_DAYS, PORTAL_TODO_ACCESS_TABS, PORTAL_TODO_CHANGES, PORTAL_TODO_KINDS, PORTAL_URL_ENV, PortalAdminAuthError, PortalRequestError, portalAddTodo, portalAddUser, portalBackfillTriageRecords, portalBuildType, portalBuildWorkflowId, portalCreateAgent, portalCreateBuild, portalCreateOrg, portalListAgents, portalListBuilds, portalListOrgs, portalListTodos, portalReadTriageRecords, portalSetAgentName, portalSetAgentStatus, portalSetAgentTriage, portalSetAgentWorkflow, portalSetBuildDetails, portalSetBuildName, portalSetBuildStatus, portalSetBuildTriage, portalSetBuildWorkflow, portalSetDriveFolder, portalSetOrgSlackChannel, portalSetPassword, portalSetTodo, portalSetUser, portalSyncRuns, portalSyncTodos, validatePortalBuildFields, } from "./portal-admin.js";
|
|
47
47
|
export { BUILD_DESCRIPTION_MAX, BUILD_NAME_MAX, BUILDS_MANIFEST_END, BUILDS_MANIFEST_START, parseBuildsManifest, planBuildsSync, syncBuilds, } from "./portal-sync-builds.js";
|
|
48
48
|
export { expectedGithubAccount, parseGithubRemote, prOpen, } from "./pr-open.js";
|
|
49
49
|
export { parseRoadmapRows, ROADMAP_LABELS, ROADMAP_SOURCES, roadmapMigrate, } from "./roadmap-migrate.js";
|
package/dist/portal-admin.d.ts
CHANGED
|
@@ -301,6 +301,30 @@ export declare function portalAddTodo(input: PortalAddTodoInput, options?: Porta
|
|
|
301
301
|
* the row; `reopen` clears the tick, the confirm and a cancel. Never deletes.
|
|
302
302
|
*/
|
|
303
303
|
export declare function portalSetTodo(input: PortalSetTodoInput, options?: PortalAdminOptions): Promise<PortalSetTodoResult>;
|
|
304
|
+
export interface PortalSyncTodosResult {
|
|
305
|
+
slug: string;
|
|
306
|
+
/** False when that source was not read: no Linear project, an outage, no client-words access tracker. */
|
|
307
|
+
linearRead: boolean;
|
|
308
|
+
accessRead: boolean;
|
|
309
|
+
inserted: number;
|
|
310
|
+
updated: number;
|
|
311
|
+
confirmed: number;
|
|
312
|
+
canceled: number;
|
|
313
|
+
/** Client ticks sent to Linear (the issue moved to In Review). */
|
|
314
|
+
ticksSent: number;
|
|
315
|
+
/** Items opened again because a technician moved the issue back out of review. */
|
|
316
|
+
reopened: number;
|
|
317
|
+
/** Reasons with no client text. */
|
|
318
|
+
problems: string[];
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Bring one org's sourced To-do items in line with their sources now
|
|
322
|
+
* (POST /api/admin/todos/sync): Linear issues with the `client-todo` label and
|
|
323
|
+
* a `Client to-do:` / `Client question:` line, and the access rows the client
|
|
324
|
+
* still owes. Hand-made items are never touched. The portal runs the same
|
|
325
|
+
* sync on the client's To-do page and once a day.
|
|
326
|
+
*/
|
|
327
|
+
export declare function portalSyncTodos(slug: string, options?: PortalAdminOptions): Promise<PortalSyncTodosResult>;
|
|
304
328
|
/**
|
|
305
329
|
* The client-side check of a create: an agent needs its n8n workflow id, an
|
|
306
330
|
* app must not carry one, and a url (either type) must be https. The portal
|
package/dist/portal-admin.js
CHANGED
|
@@ -201,6 +201,18 @@ export async function portalSetTodo(input, options = {}) {
|
|
|
201
201
|
}
|
|
202
202
|
return portalRequest("PATCH", "/api/admin/todos", options, { slug, item, change: input.change });
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Bring one org's sourced To-do items in line with their sources now
|
|
206
|
+
* (POST /api/admin/todos/sync): Linear issues with the `client-todo` label and
|
|
207
|
+
* a `Client to-do:` / `Client question:` line, and the access rows the client
|
|
208
|
+
* still owes. Hand-made items are never touched. The portal runs the same
|
|
209
|
+
* sync on the client's To-do page and once a day.
|
|
210
|
+
*/
|
|
211
|
+
export async function portalSyncTodos(slug, options = {}) {
|
|
212
|
+
return portalRequest("POST", "/api/admin/todos/sync", options, {
|
|
213
|
+
slug: normalizeSlug(slug, "org"),
|
|
214
|
+
});
|
|
215
|
+
}
|
|
204
216
|
// ─── Builds registry (named `agents` before 2026-10-13) ─────────────────────
|
|
205
217
|
//
|
|
206
218
|
// The portal renamed its `agents` registry to `builds` and added a build type
|
package/package.json
CHANGED
|
@@ -90,6 +90,19 @@ line:` is internal: the client never sees it. The portal never shows an issue
|
|
|
90
90
|
title or any other part of the description, and drops a line with `$` or a
|
|
91
91
|
ticket id.
|
|
92
92
|
|
|
93
|
+
**Something the client must do or answer** goes on their portal To-do tab
|
|
94
|
+
from Linear. Give the issue the `client-todo` label and one line in its
|
|
95
|
+
description: `Client to-do: <what the client must do>` or `Client question:
|
|
96
|
+
<the question>` (160 characters at most; no ticket number, no dollar amount, no
|
|
97
|
+
email address; the client never sees that a ticket is behind the item). The
|
|
98
|
+
portal follows the issue: the client's tick moves it to **In Review** with a
|
|
99
|
+
comment; move it to **Done** to confirm the item for the client, or back to In
|
|
100
|
+
Progress to open the item again; cancel the issue or remove the label to take
|
|
101
|
+
the item off the tab. Access the client still owes needs no issue: a MISSING
|
|
102
|
+
or REQUESTED row in `docs/04-access-checklist.md` §1 is an item, and HAVE
|
|
103
|
+
confirms it. `ia portal sync-todo --slug <slug>` runs the sync now; the portal
|
|
104
|
+
also runs it when the client opens the tab and once a day.
|
|
105
|
+
|
|
93
106
|
**A new client ask** is a new issue in the client's project: its `Client
|
|
94
107
|
line:`, the `client-ask` label, and a priority. The account owner places it.
|
|
95
108
|
|