@hearsay-tools/squawk 0.18.0-dev.5842 → 0.18.0-dev.5850
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 +1 -1
- package/dist/automations/automation-cli.js +5 -0
- package/dist/automations/automation-cli.js.map +1 -1
- package/dist/automations/github-baseline.js +2 -0
- package/dist/automations/github-baseline.js.map +1 -1
- package/dist/automations/github-repository.d.ts +22 -0
- package/dist/automations/github-repository.js +40 -0
- package/dist/automations/github-repository.js.map +1 -0
- package/dist/automations/scheduler.d.ts +2 -3
- package/dist/automations/scheduler.js +31 -11
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +4 -0
- package/dist/automations/task-template.js +12 -2
- package/dist/automations/task-template.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/contract/automation-storage.d.ts +4 -0
- package/dist/contract/automations.d.ts +26 -0
- package/dist/contract/index.js +22 -0
- package/dist/delegation/routes.d.ts +13 -13
- package/dist/delegation/transport.d.ts +71 -71
- package/dist/server/forge/github-cli.d.ts +14 -0
- package/dist/server/forge/github-cli.js +25 -0
- package/dist/server/forge/github-cli.js.map +1 -0
- package/dist/server/forge/github-repo-handle.d.ts +42 -0
- package/dist/server/forge/github-repo-handle.js +160 -0
- package/dist/server/forge/github-repo-handle.js.map +1 -0
- package/dist/server/forge/github.d.ts +11 -17
- package/dist/server/forge/github.js +22 -139
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +1546 -1538
- package/dist/server/server.js +7 -11
- package/dist/server/server.js.map +1 -1
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/run/wait-engine.d.ts +72 -72
- package/package.json +4 -4
- package/web/dist/assets/{activity-motion-2nE59DAT.js → activity-motion-BdGFmrw-.js} +1 -1
- package/web/dist/assets/{activity-route-R9lPc2jy.js → activity-route-1OFUVP3A.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-BJyNYmCY.js → commit-diff-panel-BiNPMHC6.js} +1 -1
- package/web/dist/assets/{diff-D_9MtICR.js → diff-BHwQUS2W.js} +2 -2
- package/web/dist/assets/{diff-view-xRPxXHXl.js → diff-view-BBhxSIlf.js} +1 -1
- package/web/dist/assets/{git-toolbar-D9taioU5.js → git-toolbar-BnOaO_OH.js} +1 -1
- package/web/dist/assets/{github-bv_pBGc5.js → github-CXc8nroh.js} +1 -1
- package/web/dist/assets/{global-activity-route-QxTPDyx-.js → global-activity-route-Dt83uvZc.js} +1 -1
- package/web/dist/assets/{index-DgU3yYUl.js → index-B5LayM4y.js} +6 -6
- package/web/dist/assets/{preview-pane-connected-cD-MTiVN.js → preview-pane-connected-JHeCgq7I.js} +1 -1
- package/web/dist/assets/{repo-git-E_4Ighvg.js → repo-git-wEXDON29.js} +1 -1
- package/web/dist/assets/{report-reader-XVNQsXB4.js → report-reader-DJ_0htSx.js} +1 -1
- package/web/dist/assets/{reports-B_PVTBzP.js → reports-BIXmTBFJ.js} +1 -1
- package/web/dist/assets/{run-header-wm0gSs6X.js → run-header-Bgtlx-vc.js} +1 -1
- package/web/dist/assets/{skills-D2RLxUIc.js → skills-BJ2nSfyr.js} +1 -1
- package/web/dist/assets/{task-changes-DNtkfFzQ.js → task-changes-Dz0udwrE.js} +1 -1
- package/web/dist/assets/{task-commits-CivO-OrN.js → task-commits-5uILgm5M.js} +1 -1
- package/web/dist/assets/{task-files-dczkxV_G.js → task-files-DGZjTKSS.js} +1 -1
- package/web/dist/assets/{task-github-item-DKV4yrcf.js → task-github-item-npfGLu9C.js} +1 -1
- package/web/dist/assets/{task-thread-DIaTTGEF.js → task-thread-DnpkXb5P.js} +1 -1
- package/web/dist/assets/{thread-state-DIozHuHb.js → thread-state-BfrO2t7g.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-D58ayxI4.js → use-hand-to-agent-state-DyVB4IBv.js} +1 -1
- package/web/dist/assets/{workflows-YMEsGXeB.js → workflows-ByduCwgu.js} +1 -1
- package/web/dist/index.html +1 -1
package/dist/server/server.js
CHANGED
|
@@ -58,6 +58,7 @@ import { createAutomationService, onceCreateAnswer } from '../automations/servic
|
|
|
58
58
|
import { createAutomationToolService } from '../automations/tool-adapter.js';
|
|
59
59
|
import { AutomationCoordinator } from '../automations/coordinator.js';
|
|
60
60
|
import { GithubPoller } from '../automations/github-poller.js';
|
|
61
|
+
import { githubRepository } from '../automations/github-repository.js';
|
|
61
62
|
import { ProjectAutomationScheduler, WorkspaceAutomationScheduler } from '../automations/scheduler.js';
|
|
62
63
|
import { AutomationProjectUnavailableError } from '../automations/schedule-runner.js';
|
|
63
64
|
import { launchAutomationRun, launchScheduledRun, rebaselineIdleAutomations, reconcileAutomationReceipts, } from '../automations/task-template.js';
|
|
@@ -152,7 +153,7 @@ import { createSocketHub, socketHubRoute } from './ws.js';
|
|
|
152
153
|
import { attachUpgradeRouter } from './upgrade-router.js';
|
|
153
154
|
import { createPreviewSockets } from './preview-sockets.js';
|
|
154
155
|
import { browseDirectory, isInsideBrowseRoot, isLexicallyInsideBrowseRoot, resolveBrowseRoot } from './fs-browse.js';
|
|
155
|
-
import {
|
|
156
|
+
import { forgeRepositoryUrl, resolveForge, forgeWebRoot, resolveForgeRoot } from './forge/index.js';
|
|
156
157
|
import { refNumberFromUrl } from '../contract/index.js';
|
|
157
158
|
import { GithubPrNotFoundError, GH_CHECKS_MAX, GH_REF_STATUS_MAX } from './forge/index.js';
|
|
158
159
|
import { projectAdmissionRefusal, withProjectAdmission } from './cockpit-ownership.js';
|
|
@@ -2638,15 +2639,14 @@ export function createApp(deps) {
|
|
|
2638
2639
|
void withProjectAdmission(project.dataDir, async function manualCheck() {
|
|
2639
2640
|
check.status = 'running';
|
|
2640
2641
|
try {
|
|
2641
|
-
const
|
|
2642
|
-
|
|
2643
|
-
if (!remote || forgeKindOfRemote(repoRemote) !== 'github')
|
|
2642
|
+
const repository = githubRepository(project.root, (await getRepoInfo(project.root))?.remote);
|
|
2643
|
+
if (!repository)
|
|
2644
2644
|
throw new Error('No GitHub remote is configured');
|
|
2645
2645
|
const scheduler = new ProjectAutomationScheduler({
|
|
2646
2646
|
projectId: project.id,
|
|
2647
2647
|
store,
|
|
2648
2648
|
timeZone: localTimeZone(),
|
|
2649
|
-
github: {
|
|
2649
|
+
github: { ...repository, poller: new GithubPoller() },
|
|
2650
2650
|
launch: parsed.data.mode === 'execute'
|
|
2651
2651
|
? (definition, candidate, receiptId) => launchAutomationRun({ root: project.root, manager: project.manager, store: project.store, definition, candidate, receiptId })
|
|
2652
2652
|
: undefined,
|
|
@@ -4698,12 +4698,8 @@ export function startServer(deps, port, listener) {
|
|
|
4698
4698
|
// a github.com remote, and only then does the project's handle poll.
|
|
4699
4699
|
const automationProjects = new Map();
|
|
4700
4700
|
const rememberAutomationProject = async (id, root) => {
|
|
4701
|
-
const
|
|
4702
|
-
|
|
4703
|
-
automationProjects.set(id, {
|
|
4704
|
-
root,
|
|
4705
|
-
...(parsed && forgeKindOfRemote(repoRemote) === 'github' ? { github: { owner: parsed.owner, repo: parsed.repo } } : {}),
|
|
4706
|
-
});
|
|
4701
|
+
const github = githubRepository(root, (await getRepoInfo(root))?.remote);
|
|
4702
|
+
automationProjects.set(id, { root, ...(github ? { github } : {}) });
|
|
4707
4703
|
};
|
|
4708
4704
|
const emitWorkspaceAutomationChange = (projectId) => (automationId, revision) => workspaceEvents.emit('automation-change', { project: projectId, automationId, revision });
|
|
4709
4705
|
/**
|