github-issue-tower-defence-management 2.204.1 → 2.205.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/bin/adapter/entry-points/cli/index.js +2 -0
- package/bin/adapter/entry-points/cli/index.js.map +1 -1
- package/bin/adapter/entry-points/console/webServer.js +54 -2
- package/bin/adapter/entry-points/console/webServer.js.map +1 -1
- package/bin/adapter/repositories/GitHubRepositoryFileReader.js +49 -0
- package/bin/adapter/repositories/GitHubRepositoryFileReader.js.map +1 -0
- package/bin/adapter/repositories/OpenAiLiveSessionRepository.js +34 -95
- package/bin/adapter/repositories/OpenAiLiveSessionRepository.js.map +1 -1
- package/bin/adapter/repositories/OpenAiLiveSessionSideband.js +65 -0
- package/bin/adapter/repositories/OpenAiLiveSessionSideband.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsoleLiveSessionConfig.js +297 -0
- package/bin/adapter/voice-console/voiceConsoleLiveSessionConfig.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsolePaging.js +25 -0
- package/bin/adapter/voice-console/voiceConsolePaging.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsolePendingAction.js +39 -0
- package/bin/adapter/voice-console/voiceConsolePendingAction.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsoleQueue.js +88 -0
- package/bin/adapter/voice-console/voiceConsoleQueue.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsoleSession.js +805 -0
- package/bin/adapter/voice-console/voiceConsoleSession.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsoleSideband.js +150 -0
- package/bin/adapter/voice-console/voiceConsoleSideband.js.map +1 -0
- package/bin/adapter/voice-console/voiceConsoleTaskDocument.js +52 -0
- package/bin/adapter/voice-console/voiceConsoleTaskDocument.js.map +1 -0
- package/package.json +1 -1
- package/types/adapter/entry-points/cli/index.d.ts.map +1 -1
- package/types/adapter/entry-points/console/webServer.d.ts +5 -0
- package/types/adapter/entry-points/console/webServer.d.ts.map +1 -1
- package/types/adapter/repositories/GitHubRepositoryFileReader.d.ts +7 -0
- package/types/adapter/repositories/GitHubRepositoryFileReader.d.ts.map +1 -0
- package/types/adapter/repositories/OpenAiLiveSessionRepository.d.ts.map +1 -1
- package/types/adapter/repositories/OpenAiLiveSessionSideband.d.ts +20 -0
- package/types/adapter/repositories/OpenAiLiveSessionSideband.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsoleLiveSessionConfig.d.ts +16 -0
- package/types/adapter/voice-console/voiceConsoleLiveSessionConfig.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsolePaging.d.ts +13 -0
- package/types/adapter/voice-console/voiceConsolePaging.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsolePendingAction.d.ts +24 -0
- package/types/adapter/voice-console/voiceConsolePendingAction.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsoleQueue.d.ts +15 -0
- package/types/adapter/voice-console/voiceConsoleQueue.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsoleSession.d.ts +66 -0
- package/types/adapter/voice-console/voiceConsoleSession.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsoleSideband.d.ts +24 -0
- package/types/adapter/voice-console/voiceConsoleSideband.d.ts.map +1 -0
- package/types/adapter/voice-console/voiceConsoleTaskDocument.d.ts +7 -0
- package/types/adapter/voice-console/voiceConsoleTaskDocument.d.ts.map +1 -0
- package/types/domain/usecases/adapter-interfaces/LiveSessionRepository.d.ts +1 -0
- package/types/domain/usecases/adapter-interfaces/LiveSessionRepository.d.ts.map +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.buildVoiceConsoleQueue = exports.VOICE_CONSOLE_QUEUE_TABS = void 0;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
exports.VOICE_CONSOLE_QUEUE_TABS = ['todo-by-human', 'prs'];
|
|
40
|
+
const isConsoleListFile = (value) => typeof value === 'object' &&
|
|
41
|
+
value !== null &&
|
|
42
|
+
'items' in value &&
|
|
43
|
+
Array.isArray(value.items) &&
|
|
44
|
+
'statusOptions' in value &&
|
|
45
|
+
Array.isArray(value.statusOptions);
|
|
46
|
+
const isNodeErrorWithCode = (error, code) => typeof error === 'object' &&
|
|
47
|
+
error !== null &&
|
|
48
|
+
'code' in error &&
|
|
49
|
+
error.code === code;
|
|
50
|
+
const readConsoleListFile = (filePath) => {
|
|
51
|
+
let content;
|
|
52
|
+
try {
|
|
53
|
+
content = fs.readFileSync(filePath, 'utf-8');
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
if (isNodeErrorWithCode(error, 'ENOENT')) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
const parsed = JSON.parse(content);
|
|
62
|
+
if (!isConsoleListFile(parsed)) {
|
|
63
|
+
throw new Error(`console list file has no items or statusOptions: ${filePath}`);
|
|
64
|
+
}
|
|
65
|
+
return parsed;
|
|
66
|
+
};
|
|
67
|
+
const buildVoiceConsoleQueue = (input) => {
|
|
68
|
+
const entries = [];
|
|
69
|
+
for (const tab of exports.VOICE_CONSOLE_QUEUE_TABS) {
|
|
70
|
+
for (const pjcode of input.projectPjcodes) {
|
|
71
|
+
const listFile = readConsoleListFile(path.join(input.consoleDataOutputDir, pjcode, tab, 'list.json'));
|
|
72
|
+
if (listFile === null) {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
for (const item of listFile.items) {
|
|
76
|
+
entries.push({
|
|
77
|
+
pjcode,
|
|
78
|
+
tab,
|
|
79
|
+
item,
|
|
80
|
+
statusOptions: listFile.statusOptions,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return entries;
|
|
86
|
+
};
|
|
87
|
+
exports.buildVoiceConsoleQueue = buildVoiceConsoleQueue;
|
|
88
|
+
//# sourceMappingURL=voiceConsoleQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voiceConsoleQueue.js","sourceRoot":"","sources":["../../../src/adapter/voice-console/voiceConsoleQueue.ts"],"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