poe-code 3.0.231 → 3.0.233
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/agent.js +12 -7
- package/dist/agent.js.map +3 -3
- package/dist/index.js +536 -229
- package/dist/index.js.map +4 -4
- package/dist/metafile.json +1 -0
- package/dist/providers/poe-agent.js +424 -126
- package/dist/providers/poe-agent.js.map +4 -4
- package/package.json +6 -1
- package/packages/agent-skill-config/dist/index.d.ts +1 -0
- package/packages/agent-skill-config/dist/index.js +1 -0
- package/packages/memory/dist/explain.js +1 -1
- package/packages/memory/dist/index.js +315 -44
- package/packages/memory/dist/index.js.map +4 -4
- package/packages/memory/dist/query.js +1 -1
- package/packages/memory/dist/tokens.js +1 -1
- package/packages/superintendent/dist/mcp.js +41194 -151
- package/packages/superintendent/dist/mcp.js.map +7 -0
- package/packages/tiny-stdio-mcp-server/dist/index.d.ts +1 -1
- package/packages/tiny-stdio-mcp-server/dist/server.d.ts +12 -2
- package/packages/tiny-stdio-mcp-server/dist/server.js +310 -40
- package/packages/tiny-stdio-mcp-server/dist/types.d.ts +136 -9
- package/packages/tiny-stdio-mcp-server/dist/types.js +2 -1
package/dist/index.js
CHANGED
|
@@ -26033,6 +26033,7 @@ var init_src12 = __esm({
|
|
|
26033
26033
|
init_apply();
|
|
26034
26034
|
init_resolve_skill_reference();
|
|
26035
26035
|
init_git_exclude();
|
|
26036
|
+
init_git_exclude();
|
|
26036
26037
|
init_bridge_active_skills();
|
|
26037
26038
|
}
|
|
26038
26039
|
});
|
|
@@ -36595,7 +36596,7 @@ var init_agent_host = __esm({
|
|
|
36595
36596
|
}
|
|
36596
36597
|
});
|
|
36597
36598
|
|
|
36598
|
-
// packages/mcp-oauth/
|
|
36599
|
+
// packages/mcp-oauth/src/resource-indicator.ts
|
|
36599
36600
|
function canonicalizeResourceIndicator(value) {
|
|
36600
36601
|
let url;
|
|
36601
36602
|
try {
|
|
@@ -36607,12 +36608,12 @@ function canonicalizeResourceIndicator(value) {
|
|
|
36607
36608
|
return url.toString();
|
|
36608
36609
|
}
|
|
36609
36610
|
var init_resource_indicator = __esm({
|
|
36610
|
-
"packages/mcp-oauth/
|
|
36611
|
+
"packages/mcp-oauth/src/resource-indicator.ts"() {
|
|
36611
36612
|
"use strict";
|
|
36612
36613
|
}
|
|
36613
36614
|
});
|
|
36614
36615
|
|
|
36615
|
-
// packages/mcp-oauth/
|
|
36616
|
+
// packages/mcp-oauth/src/client/auth-store-session-store.ts
|
|
36616
36617
|
import crypto3 from "node:crypto";
|
|
36617
36618
|
import path47 from "node:path";
|
|
36618
36619
|
function createAuthStoreSessionStore(options = {}) {
|
|
@@ -36680,24 +36681,32 @@ function createNamedSecretStore(key2, options, defaults) {
|
|
|
36680
36681
|
return createSecretStore({ ...options, fileStore, keychainStore }).store;
|
|
36681
36682
|
}
|
|
36682
36683
|
function createResourceSecretStore(resource, options) {
|
|
36683
|
-
return createNamedSecretStore(
|
|
36684
|
-
|
|
36685
|
-
|
|
36686
|
-
|
|
36687
|
-
|
|
36688
|
-
|
|
36684
|
+
return createNamedSecretStore(
|
|
36685
|
+
canonicalizeResourceIndicator(resource),
|
|
36686
|
+
options,
|
|
36687
|
+
{
|
|
36688
|
+
salt: DEFAULT_FILE_SALT,
|
|
36689
|
+
directory: DEFAULT_FILE_DIRECTORY,
|
|
36690
|
+
service: DEFAULT_KEYCHAIN_SERVICE,
|
|
36691
|
+
accountPrefix: "provider"
|
|
36692
|
+
}
|
|
36693
|
+
);
|
|
36689
36694
|
}
|
|
36690
36695
|
function createIssuerSecretStore(issuer, options) {
|
|
36691
|
-
return createNamedSecretStore(
|
|
36692
|
-
|
|
36693
|
-
|
|
36694
|
-
|
|
36695
|
-
|
|
36696
|
-
|
|
36696
|
+
return createNamedSecretStore(
|
|
36697
|
+
issuer,
|
|
36698
|
+
options,
|
|
36699
|
+
{
|
|
36700
|
+
salt: DEFAULT_CLIENT_FILE_SALT,
|
|
36701
|
+
directory: DEFAULT_CLIENT_FILE_DIRECTORY,
|
|
36702
|
+
service: DEFAULT_CLIENT_KEYCHAIN_SERVICE,
|
|
36703
|
+
accountPrefix: "issuer"
|
|
36704
|
+
}
|
|
36705
|
+
);
|
|
36697
36706
|
}
|
|
36698
36707
|
var DEFAULT_FILE_SALT, DEFAULT_FILE_DIRECTORY, DEFAULT_KEYCHAIN_SERVICE, DEFAULT_CLIENT_FILE_SALT, DEFAULT_CLIENT_FILE_DIRECTORY, DEFAULT_CLIENT_KEYCHAIN_SERVICE;
|
|
36699
36708
|
var init_auth_store_session_store = __esm({
|
|
36700
|
-
"packages/mcp-oauth/
|
|
36709
|
+
"packages/mcp-oauth/src/client/auth-store-session-store.ts"() {
|
|
36701
36710
|
"use strict";
|
|
36702
36711
|
init_src();
|
|
36703
36712
|
init_resource_indicator();
|
|
@@ -36710,7 +36719,7 @@ var init_auth_store_session_store = __esm({
|
|
|
36710
36719
|
}
|
|
36711
36720
|
});
|
|
36712
36721
|
|
|
36713
|
-
// packages/mcp-oauth/
|
|
36722
|
+
// packages/mcp-oauth/src/client/authorization-state.ts
|
|
36714
36723
|
import crypto4 from "node:crypto";
|
|
36715
36724
|
function createAuthorizationState(input) {
|
|
36716
36725
|
const payload = {
|
|
@@ -36740,12 +36749,12 @@ function parseAuthorizationState(value) {
|
|
|
36740
36749
|
}
|
|
36741
36750
|
}
|
|
36742
36751
|
var init_authorization_state = __esm({
|
|
36743
|
-
"packages/mcp-oauth/
|
|
36752
|
+
"packages/mcp-oauth/src/client/authorization-state.ts"() {
|
|
36744
36753
|
"use strict";
|
|
36745
36754
|
}
|
|
36746
36755
|
});
|
|
36747
36756
|
|
|
36748
|
-
// packages/mcp-oauth/
|
|
36757
|
+
// packages/mcp-oauth/src/client/loopback-authorization.ts
|
|
36749
36758
|
import http from "node:http";
|
|
36750
36759
|
async function createLoopbackAuthorizationSession(options = {}) {
|
|
36751
36760
|
const callbackPath = options.callbackPath ?? "/callback";
|
|
@@ -36938,13 +36947,13 @@ function buildSuccessPage(landingPage) {
|
|
|
36938
36947
|
].join("");
|
|
36939
36948
|
}
|
|
36940
36949
|
var init_loopback_authorization = __esm({
|
|
36941
|
-
"packages/mcp-oauth/
|
|
36950
|
+
"packages/mcp-oauth/src/client/loopback-authorization.ts"() {
|
|
36942
36951
|
"use strict";
|
|
36943
36952
|
init_authorization_state();
|
|
36944
36953
|
}
|
|
36945
36954
|
});
|
|
36946
36955
|
|
|
36947
|
-
// packages/mcp-oauth/
|
|
36956
|
+
// packages/mcp-oauth/src/client/pkce.ts
|
|
36948
36957
|
import crypto5 from "node:crypto";
|
|
36949
36958
|
function generateCodeVerifier() {
|
|
36950
36959
|
return crypto5.randomBytes(32).toString("base64url");
|
|
@@ -36953,12 +36962,12 @@ function generateCodeChallenge(verifier) {
|
|
|
36953
36962
|
return crypto5.createHash("sha256").update(verifier).digest("base64url");
|
|
36954
36963
|
}
|
|
36955
36964
|
var init_pkce = __esm({
|
|
36956
|
-
"packages/mcp-oauth/
|
|
36965
|
+
"packages/mcp-oauth/src/client/pkce.ts"() {
|
|
36957
36966
|
"use strict";
|
|
36958
36967
|
}
|
|
36959
36968
|
});
|
|
36960
36969
|
|
|
36961
|
-
// packages/mcp-oauth/
|
|
36970
|
+
// packages/mcp-oauth/src/client/token-endpoint.ts
|
|
36962
36971
|
function isRetryableOAuthError(error3) {
|
|
36963
36972
|
return error3 instanceof OAuthError && (error3.status >= 500 || error3.error === "server_error" || error3.error === "temporarily_unavailable");
|
|
36964
36973
|
}
|
|
@@ -37070,7 +37079,7 @@ function normalizeBearerTokenType(value) {
|
|
|
37070
37079
|
}
|
|
37071
37080
|
var OAuthError;
|
|
37072
37081
|
var init_token_endpoint = __esm({
|
|
37073
|
-
"packages/mcp-oauth/
|
|
37082
|
+
"packages/mcp-oauth/src/client/token-endpoint.ts"() {
|
|
37074
37083
|
"use strict";
|
|
37075
37084
|
init_resource_indicator();
|
|
37076
37085
|
OAuthError = class extends Error {
|
|
@@ -37098,7 +37107,7 @@ var init_token_endpoint = __esm({
|
|
|
37098
37107
|
}
|
|
37099
37108
|
});
|
|
37100
37109
|
|
|
37101
|
-
// packages/mcp-oauth/
|
|
37110
|
+
// packages/mcp-oauth/src/client/default-oauth-client-provider.ts
|
|
37102
37111
|
import { URL as URL2 } from "node:url";
|
|
37103
37112
|
function createOAuthClientProvider(options) {
|
|
37104
37113
|
if (isProviderOptions(options)) {
|
|
@@ -37132,10 +37141,16 @@ function createDefaultOAuthClientProvider(options) {
|
|
|
37132
37141
|
const resource = canonicalizeResourceIndicator(input.discovery.resource);
|
|
37133
37142
|
assertRequestMatchesResource(requestUrl, resource);
|
|
37134
37143
|
const forceRefresh = hasCachedAccessToken(await loadSession(resource)) && input.challenge?.params.error === "invalid_token";
|
|
37135
|
-
const session = await ensureAuthorizedSession(
|
|
37136
|
-
|
|
37137
|
-
|
|
37138
|
-
|
|
37144
|
+
const session = await ensureAuthorizedSession(
|
|
37145
|
+
resource,
|
|
37146
|
+
{
|
|
37147
|
+
...input.discovery,
|
|
37148
|
+
resource
|
|
37149
|
+
},
|
|
37150
|
+
input.fetch,
|
|
37151
|
+
true,
|
|
37152
|
+
forceRefresh
|
|
37153
|
+
);
|
|
37139
37154
|
if (session?.tokens?.accessToken === void 0) {
|
|
37140
37155
|
return { action: "fail" };
|
|
37141
37156
|
}
|
|
@@ -37201,7 +37216,11 @@ function createDefaultOAuthClientProvider(options) {
|
|
|
37201
37216
|
await saveSession(resource, clearedSession);
|
|
37202
37217
|
return clearedSession;
|
|
37203
37218
|
}
|
|
37204
|
-
if (shouldReRegisterStoredDynamicClient(
|
|
37219
|
+
if (shouldReRegisterStoredDynamicClient(
|
|
37220
|
+
error3,
|
|
37221
|
+
await loadRegisteredClient(discovery.authorizationServer),
|
|
37222
|
+
false
|
|
37223
|
+
)) {
|
|
37205
37224
|
await clearRegisteredClient(discovery.authorizationServer);
|
|
37206
37225
|
await clearSession(resource);
|
|
37207
37226
|
return null;
|
|
@@ -37363,7 +37382,10 @@ function createDefaultOAuthClientProvider(options) {
|
|
|
37363
37382
|
};
|
|
37364
37383
|
}
|
|
37365
37384
|
}
|
|
37366
|
-
const registrationBody = buildClientRegistrationBody(
|
|
37385
|
+
const registrationBody = buildClientRegistrationBody(
|
|
37386
|
+
getClientMetadata(options.client),
|
|
37387
|
+
redirectUri
|
|
37388
|
+
);
|
|
37367
37389
|
const response = await fetch2(registrationEndpoint, {
|
|
37368
37390
|
method: "POST",
|
|
37369
37391
|
headers: {
|
|
@@ -37502,7 +37524,9 @@ function buildAuthorizationUrl(input) {
|
|
|
37502
37524
|
}
|
|
37503
37525
|
function assertS256PkceSupport(metadata) {
|
|
37504
37526
|
if (!metadata.code_challenge_methods_supported.includes("S256")) {
|
|
37505
|
-
throw new Error(
|
|
37527
|
+
throw new Error(
|
|
37528
|
+
"Authorization server metadata must advertise code_challenge_methods_supported including S256"
|
|
37529
|
+
);
|
|
37506
37530
|
}
|
|
37507
37531
|
}
|
|
37508
37532
|
function normalizeHostname(hostname2) {
|
|
@@ -37540,7 +37564,9 @@ function assertNoAccessTokenInUrl(value, label) {
|
|
|
37540
37564
|
}
|
|
37541
37565
|
function assertRequestMatchesResource(requestUrl, resource) {
|
|
37542
37566
|
if (requestUrl !== resource) {
|
|
37543
|
-
throw new Error(
|
|
37567
|
+
throw new Error(
|
|
37568
|
+
`OAuth request URL ${requestUrl} does not match discovered resource ${resource}`
|
|
37569
|
+
);
|
|
37544
37570
|
}
|
|
37545
37571
|
}
|
|
37546
37572
|
function buildClientRegistrationBody(metadata, redirectUri) {
|
|
@@ -37584,7 +37610,7 @@ function shouldReRegisterStoredDynamicClient(error3, client, alreadyAttempted) {
|
|
|
37584
37610
|
return true;
|
|
37585
37611
|
}
|
|
37586
37612
|
var init_default_oauth_client_provider = __esm({
|
|
37587
|
-
"packages/mcp-oauth/
|
|
37613
|
+
"packages/mcp-oauth/src/client/default-oauth-client-provider.ts"() {
|
|
37588
37614
|
"use strict";
|
|
37589
37615
|
init_auth_store_session_store();
|
|
37590
37616
|
init_loopback_authorization();
|
|
@@ -37595,18 +37621,23 @@ var init_default_oauth_client_provider = __esm({
|
|
|
37595
37621
|
}
|
|
37596
37622
|
});
|
|
37597
37623
|
|
|
37598
|
-
// packages/mcp-oauth/
|
|
37599
|
-
import {
|
|
37624
|
+
// packages/mcp-oauth/src/server/jwks-token-verifier.ts
|
|
37625
|
+
import {
|
|
37626
|
+
decodeProtectedHeader,
|
|
37627
|
+
errors,
|
|
37628
|
+
importJWK,
|
|
37629
|
+
jwtVerify
|
|
37630
|
+
} from "jose";
|
|
37600
37631
|
var init_jwks_token_verifier = __esm({
|
|
37601
|
-
"packages/mcp-oauth/
|
|
37632
|
+
"packages/mcp-oauth/src/server/jwks-token-verifier.ts"() {
|
|
37602
37633
|
"use strict";
|
|
37603
37634
|
init_resource_indicator();
|
|
37604
37635
|
}
|
|
37605
37636
|
});
|
|
37606
37637
|
|
|
37607
|
-
// packages/mcp-oauth/
|
|
37608
|
-
var
|
|
37609
|
-
"packages/mcp-oauth/
|
|
37638
|
+
// packages/mcp-oauth/src/index.ts
|
|
37639
|
+
var init_src16 = __esm({
|
|
37640
|
+
"packages/mcp-oauth/src/index.ts"() {
|
|
37610
37641
|
"use strict";
|
|
37611
37642
|
init_auth_store_session_store();
|
|
37612
37643
|
init_default_oauth_client_provider();
|
|
@@ -37939,7 +37970,7 @@ var OAuthMetadataDiscovery;
|
|
|
37939
37970
|
var init_oauth_discovery = __esm({
|
|
37940
37971
|
"packages/tiny-mcp-client/src/oauth-discovery.ts"() {
|
|
37941
37972
|
"use strict";
|
|
37942
|
-
|
|
37973
|
+
init_src16();
|
|
37943
37974
|
OAuthMetadataDiscovery = class {
|
|
37944
37975
|
fetchImpl;
|
|
37945
37976
|
cache;
|
|
@@ -38250,10 +38281,10 @@ var MCP_PROTOCOL_VERSION, McpClient, ERROR_PARSE, ERROR_INVALID_REQUEST, ERROR_M
|
|
|
38250
38281
|
var init_internal = __esm({
|
|
38251
38282
|
"packages/tiny-mcp-client/src/internal.ts"() {
|
|
38252
38283
|
"use strict";
|
|
38253
|
-
|
|
38284
|
+
init_src16();
|
|
38254
38285
|
init_oauth_discovery();
|
|
38255
38286
|
init_oauth_discovery();
|
|
38256
|
-
|
|
38287
|
+
init_src16();
|
|
38257
38288
|
MCP_PROTOCOL_VERSION = "2025-03-26";
|
|
38258
38289
|
McpClient = class {
|
|
38259
38290
|
currentState = "disconnected";
|
|
@@ -39535,7 +39566,7 @@ var init_internal = __esm({
|
|
|
39535
39566
|
});
|
|
39536
39567
|
|
|
39537
39568
|
// packages/tiny-mcp-client/src/index.ts
|
|
39538
|
-
var
|
|
39569
|
+
var init_src17 = __esm({
|
|
39539
39570
|
"packages/tiny-mcp-client/src/index.ts"() {
|
|
39540
39571
|
"use strict";
|
|
39541
39572
|
init_internal();
|
|
@@ -39606,7 +39637,7 @@ var DEFAULT_MCP_CLIENT_INFO, PluginApiImpl;
|
|
|
39606
39637
|
var init_plugin_api_impl = __esm({
|
|
39607
39638
|
"packages/poe-agent/src/runtime/plugin-api-impl.ts"() {
|
|
39608
39639
|
"use strict";
|
|
39609
|
-
|
|
39640
|
+
init_src17();
|
|
39610
39641
|
init_hooks2();
|
|
39611
39642
|
init_config2();
|
|
39612
39643
|
init_tool_results();
|
|
@@ -40740,7 +40771,7 @@ __export(src_exports, {
|
|
|
40740
40771
|
systemPromptPlugin: () => poe_agent_plugin_system_prompt_default,
|
|
40741
40772
|
webPlugin: () => poe_agent_plugin_web_default
|
|
40742
40773
|
});
|
|
40743
|
-
var
|
|
40774
|
+
var init_src18 = __esm({
|
|
40744
40775
|
"packages/poe-agent/src/index.ts"() {
|
|
40745
40776
|
"use strict";
|
|
40746
40777
|
init_agent();
|
|
@@ -43544,7 +43575,7 @@ function toJsonSchema(schema2) {
|
|
|
43544
43575
|
}
|
|
43545
43576
|
}
|
|
43546
43577
|
var S;
|
|
43547
|
-
var
|
|
43578
|
+
var init_src19 = __esm({
|
|
43548
43579
|
"packages/toolcraft-schema/src/index.ts"() {
|
|
43549
43580
|
"use strict";
|
|
43550
43581
|
init_json2();
|
|
@@ -44153,14 +44184,14 @@ function getCommandSourcePath(command) {
|
|
|
44153
44184
|
return command[commandSourcePathSymbol];
|
|
44154
44185
|
}
|
|
44155
44186
|
var commandConfigSymbol, groupConfigSymbol, commandSourcePathSymbol;
|
|
44156
|
-
var
|
|
44187
|
+
var init_src20 = __esm({
|
|
44157
44188
|
"packages/toolcraft/src/index.ts"() {
|
|
44158
44189
|
"use strict";
|
|
44159
44190
|
init_types6();
|
|
44160
44191
|
init_config3();
|
|
44161
44192
|
init_user_error();
|
|
44162
44193
|
init_suggest();
|
|
44163
|
-
|
|
44194
|
+
init_src19();
|
|
44164
44195
|
init_package_metadata();
|
|
44165
44196
|
commandConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.command.config");
|
|
44166
44197
|
groupConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.group.config");
|
|
@@ -44243,7 +44274,7 @@ var builderRunParams, builderRunCommand, builderGroup;
|
|
|
44243
44274
|
var init_builder_group = __esm({
|
|
44244
44275
|
"packages/superintendent/src/commands/builder-group.ts"() {
|
|
44245
44276
|
"use strict";
|
|
44246
|
-
|
|
44277
|
+
init_src20();
|
|
44247
44278
|
init_src3();
|
|
44248
44279
|
init_parse2();
|
|
44249
44280
|
init_run_builder();
|
|
@@ -44354,7 +44385,7 @@ var fs5, installParams, installCommand, skillTemplateCache;
|
|
|
44354
44385
|
var init_install = __esm({
|
|
44355
44386
|
"packages/superintendent/src/commands/install.ts"() {
|
|
44356
44387
|
"use strict";
|
|
44357
|
-
|
|
44388
|
+
init_src20();
|
|
44358
44389
|
init_src7();
|
|
44359
44390
|
init_src12();
|
|
44360
44391
|
init_src10();
|
|
@@ -44553,7 +44584,7 @@ var inspectorListParams, inspectorRunParams, inspectorListCommand, inspectorRunC
|
|
|
44553
44584
|
var init_inspector_group = __esm({
|
|
44554
44585
|
"packages/superintendent/src/commands/inspector-group.ts"() {
|
|
44555
44586
|
"use strict";
|
|
44556
|
-
|
|
44587
|
+
init_src20();
|
|
44557
44588
|
init_parse2();
|
|
44558
44589
|
init_run_inspector();
|
|
44559
44590
|
inspectorListParams = S.Object({
|
|
@@ -44642,7 +44673,7 @@ var completeParams, completeCommand;
|
|
|
44642
44673
|
var init_complete = __esm({
|
|
44643
44674
|
"packages/superintendent/src/commands/complete.ts"() {
|
|
44644
44675
|
"use strict";
|
|
44645
|
-
|
|
44676
|
+
init_src20();
|
|
44646
44677
|
init_write();
|
|
44647
44678
|
completeParams = S.Object({
|
|
44648
44679
|
path: S.String({ description: "Path to the superintendent markdown document" }),
|
|
@@ -44712,7 +44743,7 @@ var fs6, planPathCommand;
|
|
|
44712
44743
|
var init_plan_path = __esm({
|
|
44713
44744
|
"packages/superintendent/src/commands/plan-path.ts"() {
|
|
44714
44745
|
"use strict";
|
|
44715
|
-
|
|
44746
|
+
init_src20();
|
|
44716
44747
|
init_src7();
|
|
44717
44748
|
fs6 = {
|
|
44718
44749
|
readFile: (p, encoding) => readFile7(p, encoding),
|
|
@@ -44769,7 +44800,7 @@ var init_poe_agent_runner = __esm({
|
|
|
44769
44800
|
"packages/superintendent/src/commands/poe-agent-runner.ts"() {
|
|
44770
44801
|
"use strict";
|
|
44771
44802
|
init_src2();
|
|
44772
|
-
|
|
44803
|
+
init_src18();
|
|
44773
44804
|
}
|
|
44774
44805
|
});
|
|
44775
44806
|
|
|
@@ -45233,7 +45264,7 @@ var init_emit_otel = __esm({
|
|
|
45233
45264
|
});
|
|
45234
45265
|
|
|
45235
45266
|
// packages/acp-telemetry/src/index.ts
|
|
45236
|
-
var
|
|
45267
|
+
var init_src21 = __esm({
|
|
45237
45268
|
"packages/acp-telemetry/src/index.ts"() {
|
|
45238
45269
|
"use strict";
|
|
45239
45270
|
init_redact();
|
|
@@ -45585,7 +45616,7 @@ function addMetric2(metrics, key2, value) {
|
|
|
45585
45616
|
var init_row_builder = __esm({
|
|
45586
45617
|
"packages/braintrust/src/row-builder.ts"() {
|
|
45587
45618
|
"use strict";
|
|
45588
|
-
|
|
45619
|
+
init_src21();
|
|
45589
45620
|
}
|
|
45590
45621
|
});
|
|
45591
45622
|
|
|
@@ -45702,7 +45733,7 @@ function emitSpawnTrace(client, ctx, parentSpan) {
|
|
|
45702
45733
|
var init_spawn3 = __esm({
|
|
45703
45734
|
"packages/braintrust/src/adapters/spawn.ts"() {
|
|
45704
45735
|
"use strict";
|
|
45705
|
-
|
|
45736
|
+
init_src21();
|
|
45706
45737
|
}
|
|
45707
45738
|
});
|
|
45708
45739
|
|
|
@@ -45849,7 +45880,7 @@ async function loadIntegrations(config) {
|
|
|
45849
45880
|
var init_load_integrations = __esm({
|
|
45850
45881
|
"packages/braintrust/src/load-integrations.ts"() {
|
|
45851
45882
|
"use strict";
|
|
45852
|
-
|
|
45883
|
+
init_src22();
|
|
45853
45884
|
}
|
|
45854
45885
|
});
|
|
45855
45886
|
|
|
@@ -45882,7 +45913,7 @@ function requiredString(value, field) {
|
|
|
45882
45913
|
}
|
|
45883
45914
|
throw new Error(`Braintrust integration is enabled but ${field} is missing`);
|
|
45884
45915
|
}
|
|
45885
|
-
var
|
|
45916
|
+
var init_src22 = __esm({
|
|
45886
45917
|
"packages/braintrust/src/index.ts"() {
|
|
45887
45918
|
"use strict";
|
|
45888
45919
|
init_client();
|
|
@@ -46800,10 +46831,10 @@ var init_run = __esm({
|
|
|
46800
46831
|
init_src15();
|
|
46801
46832
|
init_src2();
|
|
46802
46833
|
init_poe_agent_runner();
|
|
46803
|
-
|
|
46834
|
+
init_src20();
|
|
46804
46835
|
init_src3();
|
|
46805
46836
|
init_src7();
|
|
46806
|
-
|
|
46837
|
+
init_src22();
|
|
46807
46838
|
init_config_scope();
|
|
46808
46839
|
init_parse2();
|
|
46809
46840
|
init_loop();
|
|
@@ -47113,7 +47144,7 @@ var validateParams, validateCommand, superintendentGroup, superintendentMcpGroup
|
|
|
47113
47144
|
var init_superintendent_group = __esm({
|
|
47114
47145
|
"packages/superintendent/src/commands/superintendent-group.ts"() {
|
|
47115
47146
|
"use strict";
|
|
47116
|
-
|
|
47147
|
+
init_src20();
|
|
47117
47148
|
init_src3();
|
|
47118
47149
|
init_parse2();
|
|
47119
47150
|
init_tasks();
|
|
@@ -47184,7 +47215,7 @@ var init_commands = __esm({
|
|
|
47184
47215
|
});
|
|
47185
47216
|
|
|
47186
47217
|
// packages/superintendent/src/index.ts
|
|
47187
|
-
var
|
|
47218
|
+
var init_src23 = __esm({
|
|
47188
47219
|
"packages/superintendent/src/index.ts"() {
|
|
47189
47220
|
"use strict";
|
|
47190
47221
|
init_parse2();
|
|
@@ -48379,7 +48410,7 @@ var init_review_history = __esm({
|
|
|
48379
48410
|
});
|
|
48380
48411
|
|
|
48381
48412
|
// packages/github-review/src/index.ts
|
|
48382
|
-
var
|
|
48413
|
+
var init_src24 = __esm({
|
|
48383
48414
|
"packages/github-review/src/index.ts"() {
|
|
48384
48415
|
"use strict";
|
|
48385
48416
|
init_command();
|
|
@@ -49020,7 +49051,7 @@ function isSafeIdentifier(value) {
|
|
|
49020
49051
|
var init_review_state = __esm({
|
|
49021
49052
|
"packages/agent-code-review/src/review-state.ts"() {
|
|
49022
49053
|
"use strict";
|
|
49023
|
-
|
|
49054
|
+
init_src24();
|
|
49024
49055
|
}
|
|
49025
49056
|
});
|
|
49026
49057
|
|
|
@@ -49287,7 +49318,7 @@ var DEFAULT_CODE_REVIEW_REVIEWS_DIRECTORY, CODE_REVIEW_DIRECTORY, CODE_REVIEW_AR
|
|
|
49287
49318
|
var init_review_store = __esm({
|
|
49288
49319
|
"packages/agent-code-review/src/review-store.ts"() {
|
|
49289
49320
|
"use strict";
|
|
49290
|
-
|
|
49321
|
+
init_src24();
|
|
49291
49322
|
init_document_schemas();
|
|
49292
49323
|
init_review_state();
|
|
49293
49324
|
DEFAULT_CODE_REVIEW_REVIEWS_DIRECTORY = ".poe-code/code-review/reviews";
|
|
@@ -50201,7 +50232,7 @@ function requireDecision(decision) {
|
|
|
50201
50232
|
var init_commit = __esm({
|
|
50202
50233
|
"packages/agent-code-review/src/commit.ts"() {
|
|
50203
50234
|
"use strict";
|
|
50204
|
-
|
|
50235
|
+
init_src24();
|
|
50205
50236
|
init_document_schemas();
|
|
50206
50237
|
init_review_store();
|
|
50207
50238
|
}
|
|
@@ -50581,7 +50612,7 @@ var DEFAULT_CODE_REVIEW_INGEST_DIRECTORY, DEFAULT_CODE_REVIEW_PROFILES_DIRECTORY
|
|
|
50581
50612
|
var init_ingest = __esm({
|
|
50582
50613
|
"packages/agent-code-review/src/ingest.ts"() {
|
|
50583
50614
|
"use strict";
|
|
50584
|
-
|
|
50615
|
+
init_src24();
|
|
50585
50616
|
init_src15();
|
|
50586
50617
|
init_assets();
|
|
50587
50618
|
init_config4();
|
|
@@ -50601,7 +50632,8 @@ var init_types7 = __esm({
|
|
|
50601
50632
|
INVALID_REQUEST: -32600,
|
|
50602
50633
|
METHOD_NOT_FOUND: -32601,
|
|
50603
50634
|
INVALID_PARAMS: -32602,
|
|
50604
|
-
INTERNAL_ERROR: -32603
|
|
50635
|
+
INTERNAL_ERROR: -32603,
|
|
50636
|
+
RESOURCE_NOT_FOUND: -32002
|
|
50605
50637
|
});
|
|
50606
50638
|
ToolError = class extends Error {
|
|
50607
50639
|
constructor(code, message2) {
|
|
@@ -51146,13 +51178,25 @@ var init_convert = __esm({
|
|
|
51146
51178
|
|
|
51147
51179
|
// packages/tiny-stdio-mcp-server/src/server.ts
|
|
51148
51180
|
import * as readline2 from "readline";
|
|
51181
|
+
import AjvModule from "ajv";
|
|
51182
|
+
import uriTemplateParser from "uri-template";
|
|
51183
|
+
import UriTemplate from "uri-template-lite";
|
|
51149
51184
|
function createServer(options) {
|
|
51185
|
+
const Ajv = "default" in AjvModule ? AjvModule.default : AjvModule;
|
|
51186
|
+
const jsonSchemaValidator = new Ajv({ strict: false });
|
|
51187
|
+
const supportNotifications = options.supportNotifications !== false;
|
|
51188
|
+
const supportResourceSubscriptions = options.supportResourceSubscriptions !== false;
|
|
51150
51189
|
const tools = /* @__PURE__ */ new Map();
|
|
51190
|
+
const prompts = /* @__PURE__ */ new Map();
|
|
51191
|
+
const resources = /* @__PURE__ */ new Map();
|
|
51192
|
+
const resourceTemplates = /* @__PURE__ */ new Map();
|
|
51151
51193
|
const notificationListeners = /* @__PURE__ */ new Set();
|
|
51152
51194
|
const connectionNotificationListeners = /* @__PURE__ */ new Map();
|
|
51153
51195
|
const defaultLifecycle = {
|
|
51154
51196
|
initialized: false,
|
|
51155
|
-
initializeAccepted: false
|
|
51197
|
+
initializeAccepted: false,
|
|
51198
|
+
notificationReady: false,
|
|
51199
|
+
resourceSubscriptions: /* @__PURE__ */ new Set()
|
|
51156
51200
|
};
|
|
51157
51201
|
const messageLifecycles = /* @__PURE__ */ new Set([defaultLifecycle]);
|
|
51158
51202
|
const handleMessageWithLifecycle = async (method, lifecycle, params) => {
|
|
@@ -51162,12 +51206,20 @@ function createServer(options) {
|
|
|
51162
51206
|
if (method === "initialize") {
|
|
51163
51207
|
lifecycle.initializeAccepted = true;
|
|
51164
51208
|
lifecycle.initialized = true;
|
|
51209
|
+
lifecycle.notificationReady = false;
|
|
51165
51210
|
const requestedProtocol = typeof params?.protocolVersion === "string" ? params.protocolVersion : void 0;
|
|
51166
51211
|
const result = {
|
|
51167
51212
|
protocolVersion: requestedProtocol !== void 0 && SUPPORTED_PROTOCOL_VERSIONS.has(requestedProtocol) ? requestedProtocol : PROTOCOL_VERSION,
|
|
51168
51213
|
capabilities: {
|
|
51169
51214
|
tools: {
|
|
51170
|
-
listChanged: true
|
|
51215
|
+
...supportNotifications ? { listChanged: true } : {}
|
|
51216
|
+
},
|
|
51217
|
+
prompts: {
|
|
51218
|
+
...supportNotifications ? { listChanged: true } : {}
|
|
51219
|
+
},
|
|
51220
|
+
resources: {
|
|
51221
|
+
...supportNotifications ? { listChanged: true } : {},
|
|
51222
|
+
...supportResourceSubscriptions ? { subscribe: true } : {}
|
|
51171
51223
|
}
|
|
51172
51224
|
},
|
|
51173
51225
|
serverInfo: {
|
|
@@ -51186,6 +51238,7 @@ function createServer(options) {
|
|
|
51186
51238
|
}
|
|
51187
51239
|
};
|
|
51188
51240
|
}
|
|
51241
|
+
lifecycle.notificationReady = true;
|
|
51189
51242
|
return { result: void 0 };
|
|
51190
51243
|
}
|
|
51191
51244
|
if (!lifecycle.initialized) {
|
|
@@ -51199,10 +51252,10 @@ function createServer(options) {
|
|
|
51199
51252
|
if (method === "tools/list") {
|
|
51200
51253
|
const toolList = [];
|
|
51201
51254
|
for (const tool of tools.values()) {
|
|
51255
|
+
const descriptor = { ...tool };
|
|
51256
|
+
delete descriptor.handler;
|
|
51202
51257
|
toolList.push({
|
|
51203
|
-
|
|
51204
|
-
description: tool.description,
|
|
51205
|
-
inputSchema: tool.inputSchema
|
|
51258
|
+
...descriptor
|
|
51206
51259
|
});
|
|
51207
51260
|
}
|
|
51208
51261
|
return { result: { tools: toolList } };
|
|
@@ -51227,7 +51280,7 @@ function createServer(options) {
|
|
|
51227
51280
|
};
|
|
51228
51281
|
}
|
|
51229
51282
|
const toolArgs = params?.arguments ?? {};
|
|
51230
|
-
if (options.validateToolArguments !== false && !
|
|
51283
|
+
if (options.validateToolArguments !== false && !jsonSchemaValidator.validate(tool.inputSchema, toolArgs)) {
|
|
51231
51284
|
return {
|
|
51232
51285
|
error: {
|
|
51233
51286
|
code: JSON_RPC_ERROR_CODES.INVALID_PARAMS,
|
|
@@ -51241,6 +51294,9 @@ function createServer(options) {
|
|
|
51241
51294
|
throw new Error("Invalid tool result");
|
|
51242
51295
|
}
|
|
51243
51296
|
const result = isCallToolResult2(handlerResult) ? handlerResult : { content: toContentBlocks(handlerResult) };
|
|
51297
|
+
if (tool.outputSchema !== void 0 && (result.structuredContent === void 0 || !jsonSchemaValidator.validate(tool.outputSchema, result.structuredContent))) {
|
|
51298
|
+
throw new Error("Invalid structured tool result");
|
|
51299
|
+
}
|
|
51244
51300
|
return { result };
|
|
51245
51301
|
} catch (err) {
|
|
51246
51302
|
if (err instanceof ToolError) {
|
|
@@ -51259,6 +51315,94 @@ function createServer(options) {
|
|
|
51259
51315
|
return { result };
|
|
51260
51316
|
}
|
|
51261
51317
|
}
|
|
51318
|
+
if (method === "prompts/list") {
|
|
51319
|
+
return {
|
|
51320
|
+
result: {
|
|
51321
|
+
prompts: [...prompts.values()].map(({ handler: _handler, ...prompt }) => prompt)
|
|
51322
|
+
}
|
|
51323
|
+
};
|
|
51324
|
+
}
|
|
51325
|
+
if (method === "prompts/get") {
|
|
51326
|
+
const promptName = typeof params?.name === "string" ? params.name : void 0;
|
|
51327
|
+
if (promptName === void 0) {
|
|
51328
|
+
return invalidParams2("Prompt name required");
|
|
51329
|
+
}
|
|
51330
|
+
const prompt = prompts.get(promptName);
|
|
51331
|
+
if (prompt === void 0) {
|
|
51332
|
+
return invalidParams2(`Prompt not found: ${promptName}`);
|
|
51333
|
+
}
|
|
51334
|
+
const args = toStringArguments(params?.arguments);
|
|
51335
|
+
if (args === void 0 || !hasRequiredPromptArguments(prompt, args)) {
|
|
51336
|
+
return invalidParams2("Invalid prompt arguments");
|
|
51337
|
+
}
|
|
51338
|
+
try {
|
|
51339
|
+
const result = await prompt.handler(args);
|
|
51340
|
+
if (!isGetPromptResult(result)) {
|
|
51341
|
+
return internalError2("Invalid prompt result");
|
|
51342
|
+
}
|
|
51343
|
+
return { result };
|
|
51344
|
+
} catch (error3) {
|
|
51345
|
+
return internalError2(toErrorMessage3(error3));
|
|
51346
|
+
}
|
|
51347
|
+
}
|
|
51348
|
+
if (method === "resources/list") {
|
|
51349
|
+
return {
|
|
51350
|
+
result: {
|
|
51351
|
+
resources: [...resources.values()].map(({ handler: _handler, ...resource }) => resource)
|
|
51352
|
+
}
|
|
51353
|
+
};
|
|
51354
|
+
}
|
|
51355
|
+
if (method === "resources/templates/list") {
|
|
51356
|
+
return {
|
|
51357
|
+
result: {
|
|
51358
|
+
resourceTemplates: [...resourceTemplates.values()].map(
|
|
51359
|
+
({ handler: _handler, ...resourceTemplate }) => resourceTemplate
|
|
51360
|
+
)
|
|
51361
|
+
}
|
|
51362
|
+
};
|
|
51363
|
+
}
|
|
51364
|
+
if (method === "resources/read") {
|
|
51365
|
+
const uri = typeof params?.uri === "string" ? params.uri : void 0;
|
|
51366
|
+
if (uri === void 0 || !isValidUri(uri)) {
|
|
51367
|
+
return invalidParams2("Resource URI required");
|
|
51368
|
+
}
|
|
51369
|
+
const resource = findReadableResource(uri, resources, resourceTemplates);
|
|
51370
|
+
if (resource === void 0) {
|
|
51371
|
+
return resourceNotFound2(uri);
|
|
51372
|
+
}
|
|
51373
|
+
try {
|
|
51374
|
+
const result = await resource.handler(uri);
|
|
51375
|
+
if (!isReadResourceResult(result)) {
|
|
51376
|
+
return internalError2("Invalid resource result");
|
|
51377
|
+
}
|
|
51378
|
+
return { result };
|
|
51379
|
+
} catch (error3) {
|
|
51380
|
+
return internalError2(toErrorMessage3(error3));
|
|
51381
|
+
}
|
|
51382
|
+
}
|
|
51383
|
+
if (method === "resources/subscribe" || method === "resources/unsubscribe") {
|
|
51384
|
+
if (!supportResourceSubscriptions) {
|
|
51385
|
+
return {
|
|
51386
|
+
error: {
|
|
51387
|
+
code: JSON_RPC_ERROR_CODES.METHOD_NOT_FOUND,
|
|
51388
|
+
message: "Method not found"
|
|
51389
|
+
}
|
|
51390
|
+
};
|
|
51391
|
+
}
|
|
51392
|
+
const uri = typeof params?.uri === "string" ? params.uri : void 0;
|
|
51393
|
+
if (uri === void 0 || !isValidUri(uri)) {
|
|
51394
|
+
return invalidParams2("Resource URI required");
|
|
51395
|
+
}
|
|
51396
|
+
if (method === "resources/subscribe" && findReadableResource(uri, resources, resourceTemplates) === void 0) {
|
|
51397
|
+
return resourceNotFound2(uri);
|
|
51398
|
+
}
|
|
51399
|
+
if (method === "resources/subscribe") {
|
|
51400
|
+
lifecycle.resourceSubscriptions.add(uri);
|
|
51401
|
+
} else {
|
|
51402
|
+
lifecycle.resourceSubscriptions.delete(uri);
|
|
51403
|
+
}
|
|
51404
|
+
return { result: {} };
|
|
51405
|
+
}
|
|
51262
51406
|
return {
|
|
51263
51407
|
error: {
|
|
51264
51408
|
code: JSON_RPC_ERROR_CODES.METHOD_NOT_FOUND,
|
|
@@ -51266,15 +51410,23 @@ function createServer(options) {
|
|
|
51266
51410
|
}
|
|
51267
51411
|
};
|
|
51268
51412
|
};
|
|
51269
|
-
const createMessageSession = () => {
|
|
51413
|
+
const createMessageSession = (listener) => {
|
|
51270
51414
|
const lifecycle = {
|
|
51271
51415
|
initialized: false,
|
|
51272
|
-
initializeAccepted: false
|
|
51416
|
+
initializeAccepted: false,
|
|
51417
|
+
notificationReady: false,
|
|
51418
|
+
resourceSubscriptions: /* @__PURE__ */ new Set()
|
|
51273
51419
|
};
|
|
51274
51420
|
messageLifecycles.add(lifecycle);
|
|
51421
|
+
if (listener !== void 0) {
|
|
51422
|
+
connectionNotificationListeners.set(listener, lifecycle);
|
|
51423
|
+
}
|
|
51275
51424
|
return {
|
|
51276
51425
|
handleMessage: (method, params) => handleMessageWithLifecycle(method, lifecycle, params),
|
|
51277
51426
|
close: () => {
|
|
51427
|
+
if (listener !== void 0) {
|
|
51428
|
+
connectionNotificationListeners.delete(listener);
|
|
51429
|
+
}
|
|
51278
51430
|
messageLifecycles.delete(lifecycle);
|
|
51279
51431
|
}
|
|
51280
51432
|
};
|
|
@@ -51309,17 +51461,18 @@ function createServer(options) {
|
|
|
51309
51461
|
write2(formatSuccessResponse(requestWithId.id, result) + "\n");
|
|
51310
51462
|
}
|
|
51311
51463
|
};
|
|
51312
|
-
const broadcastNotification = async (method) => {
|
|
51464
|
+
const broadcastNotification = async (method, params, canSend = () => true) => {
|
|
51313
51465
|
const notification = {
|
|
51314
51466
|
jsonrpc: "2.0",
|
|
51315
|
-
method
|
|
51467
|
+
method,
|
|
51468
|
+
...params === void 0 ? {} : { params }
|
|
51316
51469
|
};
|
|
51317
51470
|
for (const listener of notificationListeners) {
|
|
51318
51471
|
listener(notification);
|
|
51319
51472
|
}
|
|
51320
51473
|
await Promise.all(
|
|
51321
51474
|
[...connectionNotificationListeners].map(async ([listener, lifecycle]) => {
|
|
51322
|
-
if (lifecycle.
|
|
51475
|
+
if (lifecycle.notificationReady && canSend(lifecycle)) {
|
|
51323
51476
|
await listener(notification);
|
|
51324
51477
|
}
|
|
51325
51478
|
})
|
|
@@ -51335,6 +51488,30 @@ function createServer(options) {
|
|
|
51335
51488
|
});
|
|
51336
51489
|
return server;
|
|
51337
51490
|
},
|
|
51491
|
+
registerTool(definition, handler) {
|
|
51492
|
+
tools.set(definition.name, {
|
|
51493
|
+
...definition,
|
|
51494
|
+
handler
|
|
51495
|
+
});
|
|
51496
|
+
return server;
|
|
51497
|
+
},
|
|
51498
|
+
prompt(definition, handler) {
|
|
51499
|
+
prompts.set(definition.name, { ...definition, handler });
|
|
51500
|
+
return server;
|
|
51501
|
+
},
|
|
51502
|
+
resource(definition, handler) {
|
|
51503
|
+
if (!isValidUri(definition.uri)) {
|
|
51504
|
+
throw new Error(`Invalid resource URI: ${definition.uri}`);
|
|
51505
|
+
}
|
|
51506
|
+
resources.set(definition.uri, { ...definition, handler });
|
|
51507
|
+
return server;
|
|
51508
|
+
},
|
|
51509
|
+
resourceTemplate(definition, handler) {
|
|
51510
|
+
uriTemplateParser.parse(definition.uriTemplate);
|
|
51511
|
+
new UriTemplate(definition.uriTemplate);
|
|
51512
|
+
resourceTemplates.set(definition.uriTemplate, { ...definition, handler });
|
|
51513
|
+
return server;
|
|
51514
|
+
},
|
|
51338
51515
|
onNotification(listener) {
|
|
51339
51516
|
notificationListeners.add(listener);
|
|
51340
51517
|
return () => {
|
|
@@ -51344,11 +51521,40 @@ function createServer(options) {
|
|
|
51344
51521
|
removeTool(name) {
|
|
51345
51522
|
return tools.delete(name);
|
|
51346
51523
|
},
|
|
51524
|
+
removePrompt(name) {
|
|
51525
|
+
return prompts.delete(name);
|
|
51526
|
+
},
|
|
51527
|
+
removeResource(uri) {
|
|
51528
|
+
return resources.delete(uri);
|
|
51529
|
+
},
|
|
51530
|
+
removeResourceTemplate(uriTemplate) {
|
|
51531
|
+
return resourceTemplates.delete(uriTemplate);
|
|
51532
|
+
},
|
|
51347
51533
|
async notifyToolsChanged() {
|
|
51348
|
-
if ([...messageLifecycles].some((lifecycle) => lifecycle.
|
|
51534
|
+
if (supportNotifications && [...messageLifecycles].some((lifecycle) => lifecycle.notificationReady)) {
|
|
51349
51535
|
await broadcastNotification("notifications/tools/list_changed");
|
|
51350
51536
|
}
|
|
51351
51537
|
},
|
|
51538
|
+
async notifyPromptsChanged() {
|
|
51539
|
+
if (supportNotifications && [...messageLifecycles].some((lifecycle) => lifecycle.notificationReady)) {
|
|
51540
|
+
await broadcastNotification("notifications/prompts/list_changed");
|
|
51541
|
+
}
|
|
51542
|
+
},
|
|
51543
|
+
async notifyResourcesChanged() {
|
|
51544
|
+
if (supportNotifications && [...messageLifecycles].some((lifecycle) => lifecycle.notificationReady)) {
|
|
51545
|
+
await broadcastNotification("notifications/resources/list_changed");
|
|
51546
|
+
}
|
|
51547
|
+
},
|
|
51548
|
+
async notifyResourceUpdated(uri) {
|
|
51549
|
+
if (!supportResourceSubscriptions) {
|
|
51550
|
+
return;
|
|
51551
|
+
}
|
|
51552
|
+
await broadcastNotification(
|
|
51553
|
+
"notifications/resources/updated",
|
|
51554
|
+
{ uri },
|
|
51555
|
+
(lifecycle) => lifecycle.resourceSubscriptions.has(uri)
|
|
51556
|
+
);
|
|
51557
|
+
},
|
|
51352
51558
|
createMessageSession,
|
|
51353
51559
|
handleMessage,
|
|
51354
51560
|
async listen() {
|
|
@@ -51359,7 +51565,7 @@ function createServer(options) {
|
|
|
51359
51565
|
},
|
|
51360
51566
|
async connect(transport) {
|
|
51361
51567
|
return new Promise((resolve10) => {
|
|
51362
|
-
const lifecycle = { initialized: false, initializeAccepted: false };
|
|
51568
|
+
const lifecycle = { initialized: false, initializeAccepted: false, notificationReady: false, resourceSubscriptions: /* @__PURE__ */ new Set() };
|
|
51363
51569
|
const messageHandler = (method, params) => handleMessageWithLifecycle(method, lifecycle, params);
|
|
51364
51570
|
messageLifecycles.add(lifecycle);
|
|
51365
51571
|
const listener = (notification) => {
|
|
@@ -51389,7 +51595,7 @@ function createServer(options) {
|
|
|
51389
51595
|
},
|
|
51390
51596
|
async connectSDK(transport) {
|
|
51391
51597
|
return new Promise((resolve10, reject) => {
|
|
51392
|
-
const lifecycle = { initialized: false, initializeAccepted: false };
|
|
51598
|
+
const lifecycle = { initialized: false, initializeAccepted: false, notificationReady: false, resourceSubscriptions: /* @__PURE__ */ new Set() };
|
|
51393
51599
|
const messageHandler = (method, params) => handleMessageWithLifecycle(method, lifecycle, params);
|
|
51394
51600
|
messageLifecycles.add(lifecycle);
|
|
51395
51601
|
const listener = (notification) => transport.send(notification);
|
|
@@ -51449,35 +51655,99 @@ function createServer(options) {
|
|
|
51449
51655
|
};
|
|
51450
51656
|
return server;
|
|
51451
51657
|
}
|
|
51452
|
-
function
|
|
51453
|
-
return
|
|
51658
|
+
function invalidParams2(message2) {
|
|
51659
|
+
return {
|
|
51660
|
+
error: {
|
|
51661
|
+
code: JSON_RPC_ERROR_CODES.INVALID_PARAMS,
|
|
51662
|
+
message: message2
|
|
51663
|
+
}
|
|
51664
|
+
};
|
|
51454
51665
|
}
|
|
51455
|
-
function
|
|
51456
|
-
return
|
|
51666
|
+
function internalError2(message2) {
|
|
51667
|
+
return {
|
|
51668
|
+
error: {
|
|
51669
|
+
code: JSON_RPC_ERROR_CODES.INTERNAL_ERROR,
|
|
51670
|
+
message: message2
|
|
51671
|
+
}
|
|
51672
|
+
};
|
|
51457
51673
|
}
|
|
51458
|
-
function
|
|
51459
|
-
|
|
51674
|
+
function resourceNotFound2(uri) {
|
|
51675
|
+
return {
|
|
51676
|
+
error: {
|
|
51677
|
+
code: JSON_RPC_ERROR_CODES.RESOURCE_NOT_FOUND,
|
|
51678
|
+
message: `Resource not found: ${uri}`
|
|
51679
|
+
}
|
|
51680
|
+
};
|
|
51681
|
+
}
|
|
51682
|
+
function toErrorMessage3(error3) {
|
|
51683
|
+
return error3 instanceof Error ? error3.message : String(error3);
|
|
51684
|
+
}
|
|
51685
|
+
function isValidUri(uri) {
|
|
51686
|
+
try {
|
|
51687
|
+
new URL(uri);
|
|
51688
|
+
return true;
|
|
51689
|
+
} catch {
|
|
51460
51690
|
return false;
|
|
51461
51691
|
}
|
|
51462
|
-
|
|
51463
|
-
|
|
51464
|
-
|
|
51465
|
-
|
|
51466
|
-
}
|
|
51692
|
+
}
|
|
51693
|
+
function toStringArguments(value) {
|
|
51694
|
+
if (value === void 0) {
|
|
51695
|
+
return {};
|
|
51467
51696
|
}
|
|
51468
|
-
|
|
51469
|
-
|
|
51470
|
-
|
|
51471
|
-
|
|
51472
|
-
|
|
51473
|
-
if (argument
|
|
51474
|
-
|
|
51475
|
-
}
|
|
51476
|
-
if (property.type === "array" && !Array.isArray(argument) || property.type === "object" && (typeof argument !== "object" || argument === null || Array.isArray(argument)) || property.type === "integer" && !Number.isInteger(argument) || property.type !== "array" && property.type !== "object" && property.type !== "integer" && typeof argument !== property.type) {
|
|
51477
|
-
return false;
|
|
51697
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
51698
|
+
return void 0;
|
|
51699
|
+
}
|
|
51700
|
+
const args = {};
|
|
51701
|
+
for (const [name, argument] of Object.entries(value)) {
|
|
51702
|
+
if (typeof argument !== "string") {
|
|
51703
|
+
return void 0;
|
|
51478
51704
|
}
|
|
51705
|
+
args[name] = argument;
|
|
51479
51706
|
}
|
|
51480
|
-
return
|
|
51707
|
+
return args;
|
|
51708
|
+
}
|
|
51709
|
+
function hasRequiredPromptArguments(prompt, args) {
|
|
51710
|
+
return (prompt.arguments ?? []).every(
|
|
51711
|
+
(argument) => argument.required !== true || args[argument.name] !== void 0
|
|
51712
|
+
);
|
|
51713
|
+
}
|
|
51714
|
+
function findReadableResource(uri, resources, resourceTemplates) {
|
|
51715
|
+
const resource = resources.get(uri);
|
|
51716
|
+
if (resource !== void 0) {
|
|
51717
|
+
return resource;
|
|
51718
|
+
}
|
|
51719
|
+
return [...resourceTemplates.values()].find(
|
|
51720
|
+
(template2) => matchesUriTemplate(template2.uriTemplate, uri)
|
|
51721
|
+
);
|
|
51722
|
+
}
|
|
51723
|
+
function matchesUriTemplate(template2, uri) {
|
|
51724
|
+
try {
|
|
51725
|
+
return new UriTemplate(template2).match(uri) !== null;
|
|
51726
|
+
} catch {
|
|
51727
|
+
return false;
|
|
51728
|
+
}
|
|
51729
|
+
}
|
|
51730
|
+
function isCallToolResult2(value) {
|
|
51731
|
+
return hasContentArray(value) && value.content.every(isContentItem2);
|
|
51732
|
+
}
|
|
51733
|
+
function isGetPromptResult(value) {
|
|
51734
|
+
if (typeof value !== "object" || value === null || !("messages" in value)) {
|
|
51735
|
+
return false;
|
|
51736
|
+
}
|
|
51737
|
+
return Array.isArray(value.messages) && value.messages.every(
|
|
51738
|
+
(message2) => typeof message2 === "object" && message2 !== null && "role" in message2 && (message2.role === "user" || message2.role === "assistant") && "content" in message2 && isPromptContentItem(message2.content)
|
|
51739
|
+
);
|
|
51740
|
+
}
|
|
51741
|
+
function isReadResourceResult(value) {
|
|
51742
|
+
if (typeof value !== "object" || value === null || !("contents" in value)) {
|
|
51743
|
+
return false;
|
|
51744
|
+
}
|
|
51745
|
+
return Array.isArray(value.contents) && value.contents.every(
|
|
51746
|
+
(content) => typeof content === "object" && content !== null && "uri" in content && typeof content.uri === "string" && isValidUri(content.uri) && ("text" in content && typeof content.text === "string" || "blob" in content && typeof content.blob === "string" && isBase64(content.blob))
|
|
51747
|
+
);
|
|
51748
|
+
}
|
|
51749
|
+
function hasContentArray(value) {
|
|
51750
|
+
return typeof value === "object" && value !== null && "content" in value && Array.isArray(value.content);
|
|
51481
51751
|
}
|
|
51482
51752
|
function isContentItem2(value) {
|
|
51483
51753
|
if (typeof value !== "object" || value === null || !("type" in value)) {
|
|
@@ -51488,13 +51758,41 @@ function isContentItem2(value) {
|
|
|
51488
51758
|
return typeof block.text === "string";
|
|
51489
51759
|
}
|
|
51490
51760
|
if (block.type === "image" || block.type === "audio") {
|
|
51491
|
-
return typeof block.data === "string" && typeof block.mimeType === "string";
|
|
51761
|
+
return typeof block.data === "string" && isBase64(block.data) && typeof block.mimeType === "string";
|
|
51762
|
+
}
|
|
51763
|
+
if (block.type === "resource_link") {
|
|
51764
|
+
return typeof block.uri === "string" && typeof block.name === "string";
|
|
51492
51765
|
}
|
|
51493
51766
|
if (block.type !== "resource" || typeof block.resource !== "object" || block.resource === null) {
|
|
51494
51767
|
return false;
|
|
51495
51768
|
}
|
|
51496
51769
|
const resource = block.resource;
|
|
51497
|
-
return typeof resource.uri === "string" && typeof resource.mimeType === "string" && (typeof resource.text === "string" || typeof resource.blob === "string");
|
|
51770
|
+
return typeof resource.uri === "string" && (resource.mimeType === void 0 || typeof resource.mimeType === "string") && (typeof resource.text === "string" || typeof resource.blob === "string" && isBase64(resource.blob));
|
|
51771
|
+
}
|
|
51772
|
+
function isBase64(value) {
|
|
51773
|
+
if (value.length === 0) {
|
|
51774
|
+
return true;
|
|
51775
|
+
}
|
|
51776
|
+
if (value.length % 4 !== 0) {
|
|
51777
|
+
return false;
|
|
51778
|
+
}
|
|
51779
|
+
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
51780
|
+
const paddingStart = value.indexOf("=");
|
|
51781
|
+
const encoded = paddingStart === -1 ? value : value.slice(0, paddingStart);
|
|
51782
|
+
const padding = paddingStart === -1 ? "" : value.slice(paddingStart);
|
|
51783
|
+
if (padding.length > 2 || [...padding].some((character) => character !== "=")) {
|
|
51784
|
+
return false;
|
|
51785
|
+
}
|
|
51786
|
+
if ([...encoded].some((character) => !alphabet.includes(character))) {
|
|
51787
|
+
return false;
|
|
51788
|
+
}
|
|
51789
|
+
return Buffer.from(value, "base64").toString("base64") === value;
|
|
51790
|
+
}
|
|
51791
|
+
function isPromptContentItem(value) {
|
|
51792
|
+
if (!isContentItem2(value)) {
|
|
51793
|
+
return false;
|
|
51794
|
+
}
|
|
51795
|
+
return !(typeof value === "object" && value !== null && "type" in value && value.type === "resource_link");
|
|
51498
51796
|
}
|
|
51499
51797
|
var PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS;
|
|
51500
51798
|
var init_server = __esm({
|
|
@@ -51555,7 +51853,7 @@ var init_content = __esm({
|
|
|
51555
51853
|
});
|
|
51556
51854
|
|
|
51557
51855
|
// packages/tiny-stdio-mcp-server/src/index.ts
|
|
51558
|
-
var
|
|
51856
|
+
var init_src25 = __esm({
|
|
51559
51857
|
"packages/tiny-stdio-mcp-server/src/index.ts"() {
|
|
51560
51858
|
"use strict";
|
|
51561
51859
|
init_server();
|
|
@@ -52128,7 +52426,7 @@ function parseArrayIndex(value) {
|
|
|
52128
52426
|
var init_json_schema_converter = __esm({
|
|
52129
52427
|
"packages/toolcraft/src/json-schema-converter.ts"() {
|
|
52130
52428
|
"use strict";
|
|
52131
|
-
|
|
52429
|
+
init_src19();
|
|
52132
52430
|
}
|
|
52133
52431
|
});
|
|
52134
52432
|
|
|
@@ -52567,7 +52865,7 @@ var init_mcp_proxy = __esm({
|
|
|
52567
52865
|
"packages/toolcraft/src/mcp-proxy.ts"() {
|
|
52568
52866
|
"use strict";
|
|
52569
52867
|
init_src3();
|
|
52570
|
-
|
|
52868
|
+
init_src17();
|
|
52571
52869
|
init_json_schema_converter();
|
|
52572
52870
|
GROUP_CONFIG_SYMBOL_DESCRIPTION = "toolcraft.group.config";
|
|
52573
52871
|
MCP_PROXY_SCHEMA_URL = "https://poe-platform.github.io/poe-code/schemas/toolcraft/mcp-proxy.schema.json";
|
|
@@ -53243,7 +53541,7 @@ var init_mock = __esm({
|
|
|
53243
53541
|
});
|
|
53244
53542
|
|
|
53245
53543
|
// packages/agent-human-in-loop/src/index.ts
|
|
53246
|
-
var
|
|
53544
|
+
var init_src26 = __esm({
|
|
53247
53545
|
"packages/agent-human-in-loop/src/index.ts"() {
|
|
53248
53546
|
"use strict";
|
|
53249
53547
|
init_request_approval();
|
|
@@ -53281,7 +53579,7 @@ var getDefaultProvider;
|
|
|
53281
53579
|
var init_default_provider = __esm({
|
|
53282
53580
|
"packages/toolcraft/src/human-in-loop/default-provider.ts"() {
|
|
53283
53581
|
"use strict";
|
|
53284
|
-
|
|
53582
|
+
init_src26();
|
|
53285
53583
|
init_user_error();
|
|
53286
53584
|
getDefaultProvider = createDefaultProviderFactory();
|
|
53287
53585
|
}
|
|
@@ -53605,7 +53903,7 @@ var init_runner2 = __esm({
|
|
|
53605
53903
|
"packages/toolcraft/src/human-in-loop/runner.ts"() {
|
|
53606
53904
|
"use strict";
|
|
53607
53905
|
init_src9();
|
|
53608
|
-
|
|
53906
|
+
init_src20();
|
|
53609
53907
|
init_approval_tasks();
|
|
53610
53908
|
init_gate();
|
|
53611
53909
|
MAX_AVAILABLE_COMMAND_PATHS = 20;
|
|
@@ -53761,8 +54059,8 @@ var init_approvals_commands = __esm({
|
|
|
53761
54059
|
"packages/toolcraft/src/human-in-loop/approvals-commands.ts"() {
|
|
53762
54060
|
"use strict";
|
|
53763
54061
|
init_src9();
|
|
53764
|
-
init_src18();
|
|
53765
54062
|
init_src19();
|
|
54063
|
+
init_src20();
|
|
53766
54064
|
init_approval_tasks();
|
|
53767
54065
|
init_runner2();
|
|
53768
54066
|
approvalsGroupSymbol = /* @__PURE__ */ Symbol("toolcraft.humanInLoop.approvalsBuiltIn");
|
|
@@ -54558,9 +54856,9 @@ var RESERVED_SERVICE_NAMES, RESERVED_SERVICE_NAMES_MESSAGE;
|
|
|
54558
54856
|
var init_mcp2 = __esm({
|
|
54559
54857
|
"packages/toolcraft/src/mcp.ts"() {
|
|
54560
54858
|
"use strict";
|
|
54561
|
-
|
|
54562
|
-
init_src18();
|
|
54859
|
+
init_src25();
|
|
54563
54860
|
init_src19();
|
|
54861
|
+
init_src20();
|
|
54564
54862
|
init_error_report();
|
|
54565
54863
|
init_approvals_commands();
|
|
54566
54864
|
init_human_in_loop();
|
|
@@ -55074,9 +55372,9 @@ var CODE_REVIEW_AGENT_MCP_ROLES, inlineCommentSchema, inlineCommentIndexSchema,
|
|
|
55074
55372
|
var init_mcp3 = __esm({
|
|
55075
55373
|
"packages/agent-code-review/src/mcp.ts"() {
|
|
55076
55374
|
"use strict";
|
|
55077
|
-
|
|
55375
|
+
init_src24();
|
|
55078
55376
|
init_src15();
|
|
55079
|
-
|
|
55377
|
+
init_src20();
|
|
55080
55378
|
init_mcp2();
|
|
55081
55379
|
init_assets();
|
|
55082
55380
|
init_document_schemas();
|
|
@@ -55252,7 +55550,7 @@ var ORCHESTRATOR_WORKFLOW_PROMPT;
|
|
|
55252
55550
|
var init_review2 = __esm({
|
|
55253
55551
|
"packages/agent-code-review/src/review.ts"() {
|
|
55254
55552
|
"use strict";
|
|
55255
|
-
|
|
55553
|
+
init_src24();
|
|
55256
55554
|
init_src15();
|
|
55257
55555
|
init_assets();
|
|
55258
55556
|
init_config4();
|
|
@@ -55351,7 +55649,7 @@ var agentMcpCommand, installCodeReviewAssetsCommand, listCodeReviewProfilesComma
|
|
|
55351
55649
|
var init_cli = __esm({
|
|
55352
55650
|
"packages/agent-code-review/src/cli.ts"() {
|
|
55353
55651
|
"use strict";
|
|
55354
|
-
|
|
55652
|
+
init_src20();
|
|
55355
55653
|
init_assets();
|
|
55356
55654
|
init_commit();
|
|
55357
55655
|
init_ingest();
|
|
@@ -55473,7 +55771,7 @@ var init_cli = __esm({
|
|
|
55473
55771
|
});
|
|
55474
55772
|
|
|
55475
55773
|
// packages/agent-code-review/src/index.ts
|
|
55476
|
-
var
|
|
55774
|
+
var init_src27 = __esm({
|
|
55477
55775
|
"packages/agent-code-review/src/index.ts"() {
|
|
55478
55776
|
"use strict";
|
|
55479
55777
|
init_config_scope2();
|
|
@@ -55524,9 +55822,9 @@ var init_config5 = __esm({
|
|
|
55524
55822
|
"use strict";
|
|
55525
55823
|
init_src5();
|
|
55526
55824
|
init_src7();
|
|
55527
|
-
|
|
55528
|
-
|
|
55529
|
-
|
|
55825
|
+
init_src18();
|
|
55826
|
+
init_src23();
|
|
55827
|
+
init_src27();
|
|
55530
55828
|
coreConfigScope = defineScope("core", {
|
|
55531
55829
|
apiKey: {
|
|
55532
55830
|
type: "string",
|
|
@@ -56467,7 +56765,7 @@ var init_resolve3 = __esm({
|
|
|
56467
56765
|
});
|
|
56468
56766
|
|
|
56469
56767
|
// packages/workspace-resolver/src/index.ts
|
|
56470
|
-
var
|
|
56768
|
+
var init_src28 = __esm({
|
|
56471
56769
|
"packages/workspace-resolver/src/index.ts"() {
|
|
56472
56770
|
"use strict";
|
|
56473
56771
|
init_parse3();
|
|
@@ -56508,7 +56806,7 @@ async function resolveSpawnWorkspace(candidate, options) {
|
|
|
56508
56806
|
var init_resolve_spawn_workspace = __esm({
|
|
56509
56807
|
"src/workspace/resolve-spawn-workspace.ts"() {
|
|
56510
56808
|
"use strict";
|
|
56511
|
-
|
|
56809
|
+
init_src28();
|
|
56512
56810
|
}
|
|
56513
56811
|
});
|
|
56514
56812
|
|
|
@@ -57315,7 +57613,7 @@ var init_oauth_client = __esm({
|
|
|
57315
57613
|
});
|
|
57316
57614
|
|
|
57317
57615
|
// packages/poe-oauth/src/index.ts
|
|
57318
|
-
var
|
|
57616
|
+
var init_src29 = __esm({
|
|
57319
57617
|
"packages/poe-oauth/src/index.ts"() {
|
|
57320
57618
|
"use strict";
|
|
57321
57619
|
init_check_auth();
|
|
@@ -58672,7 +58970,7 @@ var init_container = __esm({
|
|
|
58672
58970
|
init_service_registry();
|
|
58673
58971
|
init_context();
|
|
58674
58972
|
init_prompts3();
|
|
58675
|
-
|
|
58973
|
+
init_src29();
|
|
58676
58974
|
init_options();
|
|
58677
58975
|
init_logger2();
|
|
58678
58976
|
init_error_logger();
|
|
@@ -59133,7 +59431,7 @@ var init_spawn5 = __esm({
|
|
|
59133
59431
|
await init_container();
|
|
59134
59432
|
init_autonomous2();
|
|
59135
59433
|
init_src15();
|
|
59136
|
-
|
|
59434
|
+
init_src22();
|
|
59137
59435
|
init_shared();
|
|
59138
59436
|
init_isolated_env();
|
|
59139
59437
|
init_resolve_spawn_workspace();
|
|
@@ -60828,7 +61126,7 @@ var init_pipeline2 = __esm({
|
|
|
60828
61126
|
});
|
|
60829
61127
|
|
|
60830
61128
|
// packages/pipeline/src/index.ts
|
|
60831
|
-
var
|
|
61129
|
+
var init_src30 = __esm({
|
|
60832
61130
|
"packages/pipeline/src/index.ts"() {
|
|
60833
61131
|
"use strict";
|
|
60834
61132
|
init_loader();
|
|
@@ -61968,7 +62266,7 @@ var init_loop2 = __esm({
|
|
|
61968
62266
|
});
|
|
61969
62267
|
|
|
61970
62268
|
// packages/experiment-loop/src/index.ts
|
|
61971
|
-
var
|
|
62269
|
+
var init_src31 = __esm({
|
|
61972
62270
|
"packages/experiment-loop/src/index.ts"() {
|
|
61973
62271
|
"use strict";
|
|
61974
62272
|
init_types8();
|
|
@@ -62635,7 +62933,7 @@ var init_ralph = __esm({
|
|
|
62635
62933
|
});
|
|
62636
62934
|
|
|
62637
62935
|
// packages/ralph/src/index.ts
|
|
62638
|
-
var
|
|
62936
|
+
var init_src32 = __esm({
|
|
62639
62937
|
"packages/ralph/src/index.ts"() {
|
|
62640
62938
|
"use strict";
|
|
62641
62939
|
init_frontmatter3();
|
|
@@ -62921,10 +63219,10 @@ var FRONTMATTER_FENCE;
|
|
|
62921
63219
|
var init_format = __esm({
|
|
62922
63220
|
"packages/plan-browser/src/format.ts"() {
|
|
62923
63221
|
"use strict";
|
|
62924
|
-
init_src29();
|
|
62925
63222
|
init_src30();
|
|
62926
63223
|
init_src31();
|
|
62927
|
-
|
|
63224
|
+
init_src32();
|
|
63225
|
+
init_src23();
|
|
62928
63226
|
FRONTMATTER_FENCE = "---";
|
|
62929
63227
|
}
|
|
62930
63228
|
});
|
|
@@ -63378,7 +63676,7 @@ var init_browser2 = __esm({
|
|
|
63378
63676
|
});
|
|
63379
63677
|
|
|
63380
63678
|
// packages/plan-browser/src/index.ts
|
|
63381
|
-
var
|
|
63679
|
+
var init_src33 = __esm({
|
|
63382
63680
|
"packages/plan-browser/src/index.ts"() {
|
|
63383
63681
|
"use strict";
|
|
63384
63682
|
init_discovery4();
|
|
@@ -63613,7 +63911,7 @@ var defaultFs2;
|
|
|
63613
63911
|
var init_document = __esm({
|
|
63614
63912
|
"packages/markdown-reader/src/core/document.ts"() {
|
|
63615
63913
|
"use strict";
|
|
63616
|
-
|
|
63914
|
+
init_src20();
|
|
63617
63915
|
init_src3();
|
|
63618
63916
|
init_scan();
|
|
63619
63917
|
defaultFs2 = {
|
|
@@ -63642,7 +63940,7 @@ var readMarkdown;
|
|
|
63642
63940
|
var init_read_markdown = __esm({
|
|
63643
63941
|
"packages/markdown-reader/src/core/read-markdown.ts"() {
|
|
63644
63942
|
"use strict";
|
|
63645
|
-
|
|
63943
|
+
init_src20();
|
|
63646
63944
|
init_document();
|
|
63647
63945
|
readMarkdown = createReadMarkdown();
|
|
63648
63946
|
}
|
|
@@ -63675,7 +63973,7 @@ function resolveSection(sections, id) {
|
|
|
63675
63973
|
var init_resolve5 = __esm({
|
|
63676
63974
|
"packages/markdown-reader/src/core/resolve.ts"() {
|
|
63677
63975
|
"use strict";
|
|
63678
|
-
|
|
63976
|
+
init_src20();
|
|
63679
63977
|
}
|
|
63680
63978
|
});
|
|
63681
63979
|
|
|
@@ -63711,8 +64009,8 @@ var readParams, readTool, readSectionParams, readSectionTool;
|
|
|
63711
64009
|
var init_tools2 = __esm({
|
|
63712
64010
|
"packages/markdown-reader/src/mcp/tools.ts"() {
|
|
63713
64011
|
"use strict";
|
|
64012
|
+
init_src20();
|
|
63714
64013
|
init_src19();
|
|
63715
|
-
init_src18();
|
|
63716
64014
|
init_read_markdown();
|
|
63717
64015
|
init_read_section();
|
|
63718
64016
|
readParams = S.Object({
|
|
@@ -63746,7 +64044,7 @@ var markdownGroup;
|
|
|
63746
64044
|
var init_group = __esm({
|
|
63747
64045
|
"packages/markdown-reader/src/mcp/group.ts"() {
|
|
63748
64046
|
"use strict";
|
|
63749
|
-
|
|
64047
|
+
init_src20();
|
|
63750
64048
|
init_tools2();
|
|
63751
64049
|
markdownGroup = defineGroup({
|
|
63752
64050
|
name: "markdown-reader",
|
|
@@ -63809,7 +64107,7 @@ var init_run2 = __esm({
|
|
|
63809
64107
|
});
|
|
63810
64108
|
|
|
63811
64109
|
// packages/markdown-reader/src/index.ts
|
|
63812
|
-
var
|
|
64110
|
+
var init_src34 = __esm({
|
|
63813
64111
|
"packages/markdown-reader/src/index.ts"() {
|
|
63814
64112
|
"use strict";
|
|
63815
64113
|
init_read_markdown();
|
|
@@ -64478,9 +64776,9 @@ var init_plan = __esm({
|
|
|
64478
64776
|
async "src/cli/commands/plan.ts"() {
|
|
64479
64777
|
"use strict";
|
|
64480
64778
|
init_src3();
|
|
64481
|
-
init_src32();
|
|
64482
|
-
init_src12();
|
|
64483
64779
|
init_src33();
|
|
64780
|
+
init_src12();
|
|
64781
|
+
init_src34();
|
|
64484
64782
|
init_src2();
|
|
64485
64783
|
init_src7();
|
|
64486
64784
|
init_errors2();
|
|
@@ -64846,11 +65144,11 @@ var PIPELINE_ACTIVITY_TIMEOUT_RETRY_COUNT;
|
|
|
64846
65144
|
var init_pipeline3 = __esm({
|
|
64847
65145
|
async "src/sdk/pipeline.ts"() {
|
|
64848
65146
|
"use strict";
|
|
64849
|
-
|
|
65147
|
+
init_src30();
|
|
64850
65148
|
await init_pipeline_init();
|
|
64851
65149
|
init_SKILL_plan2();
|
|
64852
65150
|
await init_spawn5();
|
|
64853
|
-
|
|
65151
|
+
init_src30();
|
|
64854
65152
|
PIPELINE_ACTIVITY_TIMEOUT_RETRY_COUNT = 3;
|
|
64855
65153
|
}
|
|
64856
65154
|
});
|
|
@@ -64948,7 +65246,7 @@ var WorkflowLoadError;
|
|
|
64948
65246
|
var init_load = __esm({
|
|
64949
65247
|
"packages/agent-maestro/src/config/load.ts"() {
|
|
64950
65248
|
"use strict";
|
|
64951
|
-
|
|
65249
|
+
init_src34();
|
|
64952
65250
|
WorkflowLoadError = class extends Error {
|
|
64953
65251
|
code;
|
|
64954
65252
|
constructor(code, message2, options) {
|
|
@@ -66715,7 +67013,7 @@ var init_ralph2 = __esm({
|
|
|
66715
67013
|
"packages/agent-maestro/src/drivers/ralph.ts"() {
|
|
66716
67014
|
"use strict";
|
|
66717
67015
|
init_src15();
|
|
66718
|
-
|
|
67016
|
+
init_src32();
|
|
66719
67017
|
planPublicationSequence = 0;
|
|
66720
67018
|
ralphDriver = createRalphDriver();
|
|
66721
67019
|
}
|
|
@@ -67152,7 +67450,7 @@ function errorMessage8(error3) {
|
|
|
67152
67450
|
return error3 instanceof Error ? error3.message : String(error3);
|
|
67153
67451
|
}
|
|
67154
67452
|
var STOP_BUDGET_MS, logLevelPriority;
|
|
67155
|
-
var
|
|
67453
|
+
var init_src35 = __esm({
|
|
67156
67454
|
"packages/agent-maestro/src/index.ts"() {
|
|
67157
67455
|
"use strict";
|
|
67158
67456
|
init_src9();
|
|
@@ -68199,7 +68497,7 @@ var init_supervisor = __esm({
|
|
|
68199
68497
|
"packages/process-launcher/src/supervisor/supervisor.ts"() {
|
|
68200
68498
|
"use strict";
|
|
68201
68499
|
init_src8();
|
|
68202
|
-
|
|
68500
|
+
init_src28();
|
|
68203
68501
|
init_health_check();
|
|
68204
68502
|
init_log_writer();
|
|
68205
68503
|
init_state_store();
|
|
@@ -68743,7 +69041,7 @@ var init_launcher = __esm({
|
|
|
68743
69041
|
});
|
|
68744
69042
|
|
|
68745
69043
|
// packages/process-launcher/src/index.ts
|
|
68746
|
-
var
|
|
69044
|
+
var init_src36 = __esm({
|
|
68747
69045
|
"packages/process-launcher/src/index.ts"() {
|
|
68748
69046
|
"use strict";
|
|
68749
69047
|
init_state_store();
|
|
@@ -68865,7 +69163,7 @@ function createReusableE2bRalphRunner(options) {
|
|
|
68865
69163
|
var init_ralph3 = __esm({
|
|
68866
69164
|
async "src/sdk/ralph.ts"() {
|
|
68867
69165
|
"use strict";
|
|
68868
|
-
|
|
69166
|
+
init_src32();
|
|
68869
69167
|
init_src10();
|
|
68870
69168
|
init_src15();
|
|
68871
69169
|
await init_spawn5();
|
|
@@ -68957,7 +69255,7 @@ var init_experiment2 = __esm({
|
|
|
68957
69255
|
async "src/sdk/experiment.ts"() {
|
|
68958
69256
|
"use strict";
|
|
68959
69257
|
init_src10();
|
|
68960
|
-
|
|
69258
|
+
init_src31();
|
|
68961
69259
|
await init_spawn5();
|
|
68962
69260
|
}
|
|
68963
69261
|
});
|
|
@@ -69468,7 +69766,7 @@ function checkUserAllow(automation, commentAuthorAssociation) {
|
|
|
69468
69766
|
var init_check_user_allow = __esm({
|
|
69469
69767
|
"packages/github-workflows/src/exec/check-user-allow.ts"() {
|
|
69470
69768
|
"use strict";
|
|
69471
|
-
|
|
69769
|
+
init_src20();
|
|
69472
69770
|
}
|
|
69473
69771
|
});
|
|
69474
69772
|
|
|
@@ -69494,7 +69792,7 @@ function requireCommentPrefix(automation, commentBody) {
|
|
|
69494
69792
|
var init_require_comment_prefix = __esm({
|
|
69495
69793
|
"packages/github-workflows/src/exec/require-comment-prefix.ts"() {
|
|
69496
69794
|
"use strict";
|
|
69497
|
-
|
|
69795
|
+
init_src20();
|
|
69498
69796
|
}
|
|
69499
69797
|
});
|
|
69500
69798
|
|
|
@@ -69846,7 +70144,7 @@ var DEFAULT_RESULTS_FILE, DEFAULT_STDERR_FILE, COMMENT_MARKER, FIX_MESSAGE, defa
|
|
|
69846
70144
|
var init_trufflehog_pr_scan = __esm({
|
|
69847
70145
|
"packages/github-workflows/src/exec/trufflehog-pr-scan.ts"() {
|
|
69848
70146
|
"use strict";
|
|
69849
|
-
|
|
70147
|
+
init_src20();
|
|
69850
70148
|
init_src15();
|
|
69851
70149
|
DEFAULT_RESULTS_FILE = "/tmp/trufflehog-results.jsonl";
|
|
69852
70150
|
DEFAULT_STDERR_FILE = "/tmp/trufflehog-stderr.log";
|
|
@@ -69876,7 +70174,7 @@ function checkNodeVersion(version) {
|
|
|
69876
70174
|
var init_preflight = __esm({
|
|
69877
70175
|
"packages/github-workflows/src/preflight.ts"() {
|
|
69878
70176
|
"use strict";
|
|
69879
|
-
|
|
70177
|
+
init_src20();
|
|
69880
70178
|
}
|
|
69881
70179
|
});
|
|
69882
70180
|
|
|
@@ -69918,7 +70216,7 @@ var init_setup_agent = __esm({
|
|
|
69918
70216
|
"packages/github-workflows/src/setup-agent.ts"() {
|
|
69919
70217
|
"use strict";
|
|
69920
70218
|
init_src15();
|
|
69921
|
-
|
|
70219
|
+
init_src20();
|
|
69922
70220
|
}
|
|
69923
70221
|
});
|
|
69924
70222
|
|
|
@@ -70554,8 +70852,8 @@ var init_commands2 = __esm({
|
|
|
70554
70852
|
"packages/github-workflows/src/commands.ts"() {
|
|
70555
70853
|
"use strict";
|
|
70556
70854
|
init_src15();
|
|
70557
|
-
init_src18();
|
|
70558
70855
|
init_src19();
|
|
70856
|
+
init_src20();
|
|
70559
70857
|
init_src3();
|
|
70560
70858
|
init_discover2();
|
|
70561
70859
|
init_check_user_allow();
|
|
@@ -70996,7 +71294,7 @@ var init_commands2 = __esm({
|
|
|
70996
71294
|
});
|
|
70997
71295
|
|
|
70998
71296
|
// packages/github-workflows/src/index.ts
|
|
70999
|
-
var
|
|
71297
|
+
var init_src37 = __esm({
|
|
71000
71298
|
"packages/github-workflows/src/index.ts"() {
|
|
71001
71299
|
"use strict";
|
|
71002
71300
|
init_frontmatter4();
|
|
@@ -71079,7 +71377,7 @@ var metricEvaluatorSchema, metricSchema, evalYamlSchema, EvalYamlValidationError
|
|
|
71079
71377
|
var init_schema4 = __esm({
|
|
71080
71378
|
"packages/agent-eval/src/schema.ts"() {
|
|
71081
71379
|
"use strict";
|
|
71082
|
-
|
|
71380
|
+
init_src19();
|
|
71083
71381
|
metricEvaluatorSchema = S.OneOf({
|
|
71084
71382
|
discriminator: "kind",
|
|
71085
71383
|
branches: {
|
|
@@ -74919,9 +75217,9 @@ var init_run3 = __esm({
|
|
|
74919
75217
|
"packages/agent-eval/src/run/run.ts"() {
|
|
74920
75218
|
"use strict";
|
|
74921
75219
|
init_src15();
|
|
74922
|
-
init_src29();
|
|
74923
|
-
init_src22();
|
|
74924
75220
|
init_src30();
|
|
75221
|
+
init_src23();
|
|
75222
|
+
init_src31();
|
|
74925
75223
|
init_open2();
|
|
74926
75224
|
init_registry5();
|
|
74927
75225
|
init_budget();
|
|
@@ -75757,7 +76055,7 @@ var initParams, checkParams, lintParams, runParams3, reportParams, evalRunComman
|
|
|
75757
76055
|
var init_commands3 = __esm({
|
|
75758
76056
|
"packages/agent-eval/src/cli/commands.ts"() {
|
|
75759
76057
|
"use strict";
|
|
75760
|
-
|
|
76058
|
+
init_src20();
|
|
75761
76059
|
init_init2();
|
|
75762
76060
|
init_check2();
|
|
75763
76061
|
init_lint2();
|
|
@@ -76068,7 +76366,7 @@ var init_commands3 = __esm({
|
|
|
76068
76366
|
});
|
|
76069
76367
|
|
|
76070
76368
|
// packages/agent-eval/src/index.ts
|
|
76071
|
-
var
|
|
76369
|
+
var init_src38 = __esm({
|
|
76072
76370
|
"packages/agent-eval/src/index.ts"() {
|
|
76073
76371
|
"use strict";
|
|
76074
76372
|
init_schema4();
|
|
@@ -76403,8 +76701,8 @@ function resolveEngine(engine) {
|
|
|
76403
76701
|
var init_launch = __esm({
|
|
76404
76702
|
"src/sdk/launch.ts"() {
|
|
76405
76703
|
"use strict";
|
|
76406
|
-
|
|
76407
|
-
|
|
76704
|
+
init_src28();
|
|
76705
|
+
init_src36();
|
|
76408
76706
|
init_src8();
|
|
76409
76707
|
init_execution_context();
|
|
76410
76708
|
}
|
|
@@ -76678,7 +76976,7 @@ function toAgentSessionMcpServers(servers) {
|
|
|
76678
76976
|
}
|
|
76679
76977
|
return Object.keys(mappedServers).length > 0 ? mappedServers : void 0;
|
|
76680
76978
|
}
|
|
76681
|
-
function
|
|
76979
|
+
function toErrorMessage4(value) {
|
|
76682
76980
|
if (value instanceof Error) {
|
|
76683
76981
|
return value.message;
|
|
76684
76982
|
}
|
|
@@ -76982,7 +77280,7 @@ function createInMemoryAcpTransport2(options) {
|
|
|
76982
77280
|
}
|
|
76983
77281
|
if (method === "session/new") {
|
|
76984
77282
|
const request = params;
|
|
76985
|
-
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (
|
|
77283
|
+
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (init_src18(), src_exports));
|
|
76986
77284
|
const session = await createAgentSession2({
|
|
76987
77285
|
model: options.model,
|
|
76988
77286
|
cwd: request.cwd || options.cwd,
|
|
@@ -77101,7 +77399,7 @@ async function runPoeAgentAcpLifecycle(options) {
|
|
|
77101
77399
|
} catch (error3) {
|
|
77102
77400
|
emitEvent(options.onEvent, {
|
|
77103
77401
|
event: "error",
|
|
77104
|
-
message:
|
|
77402
|
+
message: toErrorMessage4(error3),
|
|
77105
77403
|
...toErrorStack(error3) ? { stack: toErrorStack(error3) } : {}
|
|
77106
77404
|
});
|
|
77107
77405
|
throw error3;
|
|
@@ -80660,7 +80958,7 @@ var init_cli2 = __esm({
|
|
|
80660
80958
|
"packages/toolcraft/src/cli.ts"() {
|
|
80661
80959
|
"use strict";
|
|
80662
80960
|
init_src3();
|
|
80663
|
-
|
|
80961
|
+
init_src20();
|
|
80664
80962
|
init_approvals_commands();
|
|
80665
80963
|
init_error_report();
|
|
80666
80964
|
init_human_in_loop();
|
|
@@ -80754,7 +81052,7 @@ var init_actions3 = __esm({
|
|
|
80754
81052
|
"packages/maestro-tui/src/actions.ts"() {
|
|
80755
81053
|
"use strict";
|
|
80756
81054
|
init_src3();
|
|
80757
|
-
|
|
81055
|
+
init_src33();
|
|
80758
81056
|
}
|
|
80759
81057
|
});
|
|
80760
81058
|
|
|
@@ -80948,7 +81246,7 @@ async function openWorkflowTaskList(workflowPath) {
|
|
|
80948
81246
|
var init_run4 = __esm({
|
|
80949
81247
|
"packages/maestro-tui/src/run.ts"() {
|
|
80950
81248
|
"use strict";
|
|
80951
|
-
|
|
81249
|
+
init_src35();
|
|
80952
81250
|
init_src3();
|
|
80953
81251
|
init_src9();
|
|
80954
81252
|
init_explorer_config2();
|
|
@@ -80956,7 +81254,7 @@ var init_run4 = __esm({
|
|
|
80956
81254
|
});
|
|
80957
81255
|
|
|
80958
81256
|
// packages/maestro-tui/src/index.ts
|
|
80959
|
-
var
|
|
81257
|
+
var init_src39 = __esm({
|
|
80960
81258
|
"packages/maestro-tui/src/index.ts"() {
|
|
80961
81259
|
"use strict";
|
|
80962
81260
|
init_explorer_config2();
|
|
@@ -81028,7 +81326,7 @@ function openInBrowser(url) {
|
|
|
81028
81326
|
var init_oauth_login = __esm({
|
|
81029
81327
|
"src/cli/oauth-login.ts"() {
|
|
81030
81328
|
"use strict";
|
|
81031
|
-
|
|
81329
|
+
init_src29();
|
|
81032
81330
|
init_src3();
|
|
81033
81331
|
}
|
|
81034
81332
|
});
|
|
@@ -81198,7 +81496,7 @@ var init_container2 = __esm({
|
|
|
81198
81496
|
init_service_registry();
|
|
81199
81497
|
init_context();
|
|
81200
81498
|
init_prompts3();
|
|
81201
|
-
|
|
81499
|
+
init_src29();
|
|
81202
81500
|
init_options();
|
|
81203
81501
|
init_logger2();
|
|
81204
81502
|
init_error_logger();
|
|
@@ -81916,7 +82214,7 @@ function registerAgentCommand(program, container) {
|
|
|
81916
82214
|
}
|
|
81917
82215
|
let session;
|
|
81918
82216
|
try {
|
|
81919
|
-
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (
|
|
82217
|
+
const { createAgentSession: createAgentSession2 } = await Promise.resolve().then(() => (init_src18(), src_exports));
|
|
81920
82218
|
session = await createAgentSession2({
|
|
81921
82219
|
model: options.model ?? DEFAULT_FRONTIER_MODEL,
|
|
81922
82220
|
apiKey: options.apiKey,
|
|
@@ -82533,7 +82831,7 @@ var init_spawn6 = __esm({
|
|
|
82533
82831
|
init_src3();
|
|
82534
82832
|
init_config5();
|
|
82535
82833
|
init_shared();
|
|
82536
|
-
|
|
82834
|
+
init_src22();
|
|
82537
82835
|
init_spawn_core();
|
|
82538
82836
|
await init_spawn5();
|
|
82539
82837
|
init_autonomous2();
|
|
@@ -84592,7 +84890,7 @@ var generateTextSchema, generateImageSchema, generateVideoSchema, generateAudioS
|
|
|
84592
84890
|
var init_mcp_server = __esm({
|
|
84593
84891
|
"src/cli/mcp-server.ts"() {
|
|
84594
84892
|
"use strict";
|
|
84595
|
-
|
|
84893
|
+
init_src25();
|
|
84596
84894
|
init_client_instance();
|
|
84597
84895
|
init_constants();
|
|
84598
84896
|
generateTextSchema = defineSchema({
|
|
@@ -85014,7 +85312,7 @@ var init_apply2 = __esm({
|
|
|
85014
85312
|
});
|
|
85015
85313
|
|
|
85016
85314
|
// packages/agent-mcp-config/src/index.ts
|
|
85017
|
-
var
|
|
85315
|
+
var init_src40 = __esm({
|
|
85018
85316
|
"packages/agent-mcp-config/src/index.ts"() {
|
|
85019
85317
|
"use strict";
|
|
85020
85318
|
init_configs4();
|
|
@@ -85215,7 +85513,7 @@ var init_mcp4 = __esm({
|
|
|
85215
85513
|
init_shared();
|
|
85216
85514
|
init_mcp_output_format();
|
|
85217
85515
|
init_command_not_found();
|
|
85218
|
-
|
|
85516
|
+
init_src40();
|
|
85219
85517
|
init_execution_context();
|
|
85220
85518
|
init_src6();
|
|
85221
85519
|
DEFAULT_MCP_AGENT = "claude-code";
|
|
@@ -87289,7 +87587,7 @@ var init_pipeline5 = __esm({
|
|
|
87289
87587
|
init_src10();
|
|
87290
87588
|
init_src12();
|
|
87291
87589
|
init_src7();
|
|
87292
|
-
|
|
87590
|
+
init_src22();
|
|
87293
87591
|
init_config5();
|
|
87294
87592
|
init_errors2();
|
|
87295
87593
|
await init_pipeline_init();
|
|
@@ -87297,7 +87595,7 @@ var init_pipeline5 = __esm({
|
|
|
87297
87595
|
init_pipeline_loop_agent();
|
|
87298
87596
|
await init_pipeline3();
|
|
87299
87597
|
await init_spawn5();
|
|
87300
|
-
|
|
87598
|
+
init_src30();
|
|
87301
87599
|
init_dashboard_loop_shared();
|
|
87302
87600
|
DEFAULT_PIPELINE_AGENT = "claude-code";
|
|
87303
87601
|
DEFAULT_PIPELINE_SCOPE = "local";
|
|
@@ -87892,7 +88190,7 @@ var init_ralph4 = __esm({
|
|
|
87892
88190
|
init_src3();
|
|
87893
88191
|
init_src2();
|
|
87894
88192
|
init_src10();
|
|
87895
|
-
|
|
88193
|
+
init_src32();
|
|
87896
88194
|
init_src7();
|
|
87897
88195
|
init_config5();
|
|
87898
88196
|
init_errors2();
|
|
@@ -88752,17 +89050,17 @@ var init_experiment3 = __esm({
|
|
|
88752
89050
|
"use strict";
|
|
88753
89051
|
init_src3();
|
|
88754
89052
|
init_src2();
|
|
88755
|
-
|
|
89053
|
+
init_src30();
|
|
88756
89054
|
init_src10();
|
|
88757
89055
|
init_src12();
|
|
88758
|
-
|
|
89056
|
+
init_src31();
|
|
88759
89057
|
init_errors2();
|
|
88760
89058
|
init_shared();
|
|
88761
89059
|
await init_experiment2();
|
|
88762
89060
|
await init_spawn5();
|
|
88763
89061
|
init_config5();
|
|
88764
89062
|
init_src7();
|
|
88765
|
-
|
|
89063
|
+
init_src22();
|
|
88766
89064
|
init_dashboard_loop_shared();
|
|
88767
89065
|
init_runtime_options();
|
|
88768
89066
|
DEFAULT_EXPERIMENT_AGENT = "claude-code";
|
|
@@ -90702,7 +91000,7 @@ var init_cache_cli = __esm({
|
|
|
90702
91000
|
}
|
|
90703
91001
|
});
|
|
90704
91002
|
|
|
90705
|
-
// packages/tokenfill/
|
|
91003
|
+
// packages/tokenfill/src/tokenizer.ts
|
|
90706
91004
|
import { get_encoding } from "tiktoken";
|
|
90707
91005
|
function createTokenizer(options = {}) {
|
|
90708
91006
|
const encoding = options.encoding ?? DEFAULT_ENCODING;
|
|
@@ -90730,10 +91028,14 @@ function createTokenizer(options = {}) {
|
|
|
90730
91028
|
try {
|
|
90731
91029
|
truncated = strictUtf8Decoder.decode(tokenizer.decode(tokens.slice(0, tokenCount)));
|
|
90732
91030
|
} catch {
|
|
90733
|
-
throw new Error(
|
|
91031
|
+
throw new Error(
|
|
91032
|
+
`Cannot truncate text to exactly ${tokenCount} tokens without corrupting UTF-8 text.`
|
|
91033
|
+
);
|
|
90734
91034
|
}
|
|
90735
91035
|
if (count(truncated) !== tokenCount) {
|
|
90736
|
-
throw new Error(
|
|
91036
|
+
throw new Error(
|
|
91037
|
+
`Cannot truncate text to exactly ${tokenCount} tokens without changing token boundaries.`
|
|
91038
|
+
);
|
|
90737
91039
|
}
|
|
90738
91040
|
return truncated;
|
|
90739
91041
|
};
|
|
@@ -90752,13 +91054,13 @@ function countTokens(text6) {
|
|
|
90752
91054
|
}
|
|
90753
91055
|
var DEFAULT_ENCODING, defaultTokenizer;
|
|
90754
91056
|
var init_tokenizer = __esm({
|
|
90755
|
-
"packages/tokenfill/
|
|
91057
|
+
"packages/tokenfill/src/tokenizer.ts"() {
|
|
90756
91058
|
"use strict";
|
|
90757
91059
|
DEFAULT_ENCODING = "cl100k_base";
|
|
90758
91060
|
}
|
|
90759
91061
|
});
|
|
90760
91062
|
|
|
90761
|
-
// packages/tokenfill/
|
|
91063
|
+
// packages/tokenfill/src/corpus.ts
|
|
90762
91064
|
import { readdirSync as readdirSync2, readFileSync as readFileSync10 } from "node:fs";
|
|
90763
91065
|
import { dirname as dirname8, join as join10 } from "node:path";
|
|
90764
91066
|
import { fileURLToPath as fileURLToPath12 } from "node:url";
|
|
@@ -90774,7 +91076,7 @@ function loadBuiltInCorpusArticles() {
|
|
|
90774
91076
|
}
|
|
90775
91077
|
var CORPUS_ARTICLE_SEPARATOR, corpusDirectoryPath, BUILT_IN_CORPUS_ARTICLES;
|
|
90776
91078
|
var init_corpus = __esm({
|
|
90777
|
-
"packages/tokenfill/
|
|
91079
|
+
"packages/tokenfill/src/corpus.ts"() {
|
|
90778
91080
|
"use strict";
|
|
90779
91081
|
CORPUS_ARTICLE_SEPARATOR = "\n\n";
|
|
90780
91082
|
corpusDirectoryPath = join10(dirname8(fileURLToPath12(import.meta.url)), "corpus");
|
|
@@ -90782,10 +91084,10 @@ var init_corpus = __esm({
|
|
|
90782
91084
|
}
|
|
90783
91085
|
});
|
|
90784
91086
|
|
|
90785
|
-
// packages/tokenfill/
|
|
91087
|
+
// packages/tokenfill/src/tokenfill.ts
|
|
90786
91088
|
var builtInCorpusText, builtInCorpusByteLength;
|
|
90787
91089
|
var init_tokenfill = __esm({
|
|
90788
|
-
"packages/tokenfill/
|
|
91090
|
+
"packages/tokenfill/src/tokenfill.ts"() {
|
|
90789
91091
|
"use strict";
|
|
90790
91092
|
init_corpus();
|
|
90791
91093
|
init_tokenizer();
|
|
@@ -90794,9 +91096,9 @@ var init_tokenfill = __esm({
|
|
|
90794
91096
|
}
|
|
90795
91097
|
});
|
|
90796
91098
|
|
|
90797
|
-
// packages/tokenfill/
|
|
90798
|
-
var
|
|
90799
|
-
"packages/tokenfill/
|
|
91099
|
+
// packages/tokenfill/src/index.ts
|
|
91100
|
+
var init_src41 = __esm({
|
|
91101
|
+
"packages/tokenfill/src/index.ts"() {
|
|
90800
91102
|
"use strict";
|
|
90801
91103
|
init_tokenizer();
|
|
90802
91104
|
init_tokenfill();
|
|
@@ -90897,7 +91199,7 @@ function isWithinRoot2(root, absPath) {
|
|
|
90897
91199
|
var init_tokens2 = __esm({
|
|
90898
91200
|
"packages/memory/src/tokens.ts"() {
|
|
90899
91201
|
"use strict";
|
|
90900
|
-
|
|
91202
|
+
init_src41();
|
|
90901
91203
|
init_pages();
|
|
90902
91204
|
}
|
|
90903
91205
|
});
|
|
@@ -91137,7 +91439,7 @@ function printMcpConfig() {
|
|
|
91137
91439
|
var init_mcp5 = __esm({
|
|
91138
91440
|
"packages/memory/src/mcp.ts"() {
|
|
91139
91441
|
"use strict";
|
|
91140
|
-
|
|
91442
|
+
init_src25();
|
|
91141
91443
|
}
|
|
91142
91444
|
});
|
|
91143
91445
|
|
|
@@ -91218,7 +91520,7 @@ var init_install3 = __esm({
|
|
|
91218
91520
|
"packages/memory/src/install.ts"() {
|
|
91219
91521
|
"use strict";
|
|
91220
91522
|
init_src12();
|
|
91221
|
-
|
|
91523
|
+
init_src40();
|
|
91222
91524
|
SKILL_NAME = "poe-code-memory";
|
|
91223
91525
|
}
|
|
91224
91526
|
});
|
|
@@ -91363,7 +91665,7 @@ function inferRepoRoot2(root) {
|
|
|
91363
91665
|
var init_query = __esm({
|
|
91364
91666
|
"packages/memory/src/query.ts"() {
|
|
91365
91667
|
"use strict";
|
|
91366
|
-
|
|
91668
|
+
init_src41();
|
|
91367
91669
|
init_src15();
|
|
91368
91670
|
init_src7();
|
|
91369
91671
|
init_pages();
|
|
@@ -91472,7 +91774,7 @@ function inferRepoRoot3(root) {
|
|
|
91472
91774
|
var init_explain = __esm({
|
|
91473
91775
|
"packages/memory/src/explain.ts"() {
|
|
91474
91776
|
"use strict";
|
|
91475
|
-
|
|
91777
|
+
init_src41();
|
|
91476
91778
|
init_src15();
|
|
91477
91779
|
init_src7();
|
|
91478
91780
|
init_pages();
|
|
@@ -91537,7 +91839,7 @@ var init_handle = __esm({
|
|
|
91537
91839
|
});
|
|
91538
91840
|
|
|
91539
91841
|
// packages/memory/src/index.ts
|
|
91540
|
-
var
|
|
91842
|
+
var init_src42 = __esm({
|
|
91541
91843
|
"packages/memory/src/index.ts"() {
|
|
91542
91844
|
"use strict";
|
|
91543
91845
|
init_paths2();
|
|
@@ -91934,7 +92236,7 @@ var init_memory2 = __esm({
|
|
|
91934
92236
|
"use strict";
|
|
91935
92237
|
init_src3();
|
|
91936
92238
|
init_src7();
|
|
91937
|
-
|
|
92239
|
+
init_src42();
|
|
91938
92240
|
init_SKILL_memory();
|
|
91939
92241
|
init_command_not_found();
|
|
91940
92242
|
init_errors2();
|
|
@@ -91965,7 +92267,7 @@ function registerMemoryMcpCommand(program, container) {
|
|
|
91965
92267
|
var init_memory_mcp = __esm({
|
|
91966
92268
|
"src/cli/commands/memory-mcp.ts"() {
|
|
91967
92269
|
"use strict";
|
|
91968
|
-
|
|
92270
|
+
init_src42();
|
|
91969
92271
|
}
|
|
91970
92272
|
});
|
|
91971
92273
|
|
|
@@ -93250,7 +93552,7 @@ function makeSchemaModule() {
|
|
|
93250
93552
|
var init_schema5 = __esm({
|
|
93251
93553
|
"packages/agent-harness/src/modules/schema.ts"() {
|
|
93252
93554
|
"use strict";
|
|
93253
|
-
|
|
93555
|
+
init_src19();
|
|
93254
93556
|
}
|
|
93255
93557
|
});
|
|
93256
93558
|
|
|
@@ -120274,7 +120576,7 @@ var init_time = __esm({
|
|
|
120274
120576
|
});
|
|
120275
120577
|
|
|
120276
120578
|
// packages/agent-script/src/index.ts
|
|
120277
|
-
var
|
|
120579
|
+
var init_src43 = __esm({
|
|
120278
120580
|
"packages/agent-script/src/index.ts"() {
|
|
120279
120581
|
"use strict";
|
|
120280
120582
|
init_parse4();
|
|
@@ -120408,7 +120710,7 @@ var SCHEMA_EXTRACTION_BUDGET;
|
|
|
120408
120710
|
var init_extract_schema = __esm({
|
|
120409
120711
|
"packages/agent-harness/src/loader/extract-schema.ts"() {
|
|
120410
120712
|
"use strict";
|
|
120411
|
-
|
|
120713
|
+
init_src43();
|
|
120412
120714
|
init_schema5();
|
|
120413
120715
|
SCHEMA_EXTRACTION_BUDGET = {
|
|
120414
120716
|
arrayLength: 1e3,
|
|
@@ -120426,7 +120728,7 @@ import { fileURLToPath as fileURLToPath13 } from "node:url";
|
|
|
120426
120728
|
var init_emit_schemas = __esm({
|
|
120427
120729
|
"packages/agent-harness/src/codegen/emit-schemas.ts"() {
|
|
120428
120730
|
"use strict";
|
|
120429
|
-
|
|
120731
|
+
init_src19();
|
|
120430
120732
|
init_extract_schema();
|
|
120431
120733
|
}
|
|
120432
120734
|
});
|
|
@@ -120563,7 +120865,7 @@ var FrontmatterValidationError;
|
|
|
120563
120865
|
var init_validate4 = __esm({
|
|
120564
120866
|
"packages/agent-harness/src/loader/validate.ts"() {
|
|
120565
120867
|
"use strict";
|
|
120566
|
-
|
|
120868
|
+
init_src19();
|
|
120567
120869
|
FrontmatterValidationError = class extends Error {
|
|
120568
120870
|
issues;
|
|
120569
120871
|
constructor(message2, issues) {
|
|
@@ -121055,7 +121357,7 @@ var init_run6 = __esm({
|
|
|
121055
121357
|
"packages/agent-harness/src/loader/run.ts"() {
|
|
121056
121358
|
"use strict";
|
|
121057
121359
|
init_src10();
|
|
121058
|
-
|
|
121360
|
+
init_src43();
|
|
121059
121361
|
init_schema5();
|
|
121060
121362
|
init_extract_schema();
|
|
121061
121363
|
init_pair();
|
|
@@ -121108,7 +121410,7 @@ var init_templates5 = __esm({
|
|
|
121108
121410
|
});
|
|
121109
121411
|
|
|
121110
121412
|
// packages/agent-harness/src/index.ts
|
|
121111
|
-
var
|
|
121413
|
+
var init_src44 = __esm({
|
|
121112
121414
|
"packages/agent-harness/src/index.ts"() {
|
|
121113
121415
|
"use strict";
|
|
121114
121416
|
init_schema5();
|
|
@@ -121546,8 +121848,8 @@ function formatDisplayPath2(container, filePath) {
|
|
|
121546
121848
|
var init_harness3 = __esm({
|
|
121547
121849
|
async "src/cli/commands/harness.ts"() {
|
|
121548
121850
|
"use strict";
|
|
121549
|
-
|
|
121550
|
-
|
|
121851
|
+
init_src44();
|
|
121852
|
+
init_src43();
|
|
121551
121853
|
init_src3();
|
|
121552
121854
|
init_errors2();
|
|
121553
121855
|
init_shared();
|
|
@@ -121613,7 +121915,7 @@ function hasNonEmptyString(value) {
|
|
|
121613
121915
|
var init_braintrust = __esm({
|
|
121614
121916
|
"src/cli/commands/braintrust.ts"() {
|
|
121615
121917
|
"use strict";
|
|
121616
|
-
|
|
121918
|
+
init_src22();
|
|
121617
121919
|
init_shared();
|
|
121618
121920
|
}
|
|
121619
121921
|
});
|
|
@@ -121859,7 +122161,7 @@ var DEFAULT_WORKFLOW_PATH, MAESTRO_TASK_STATE_MACHINE_STATES, TasksOptionsError;
|
|
|
121859
122161
|
var init_tasks_options = __esm({
|
|
121860
122162
|
"src/cli/commands/tasks-options.ts"() {
|
|
121861
122163
|
"use strict";
|
|
121862
|
-
|
|
122164
|
+
init_src37();
|
|
121863
122165
|
DEFAULT_WORKFLOW_PATH = "./WORKFLOW.md";
|
|
121864
122166
|
MAESTRO_TASK_STATE_MACHINE_STATES = [
|
|
121865
122167
|
"queued",
|
|
@@ -122365,7 +122667,7 @@ var init_package2 = __esm({
|
|
|
122365
122667
|
"package.json"() {
|
|
122366
122668
|
package_default2 = {
|
|
122367
122669
|
name: "poe-code",
|
|
122368
|
-
version: "3.0.
|
|
122670
|
+
version: "3.0.233",
|
|
122369
122671
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
122370
122672
|
type: "module",
|
|
122371
122673
|
main: "./dist/index.js",
|
|
@@ -122403,6 +122705,7 @@ var init_package2 = __esm({
|
|
|
122403
122705
|
"check:semver": `node -e "const semver=require('semver'); const pkg=require('./package.json'); if(!semver.valid(pkg.version)){console.error('Invalid semver version in package.json:', pkg.version); process.exit(1);}"`,
|
|
122404
122706
|
lint: "npm run lint:eslint && npm run lint:types && npm run lint:workflows",
|
|
122405
122707
|
"lint:workflows": "(command -v actionlint > /dev/null || bash scripts/setup-actionlint.sh) && (command -v actionlint > /dev/null && actionlint || ./actionlint)",
|
|
122708
|
+
"lint:packages": "poe-package-lint",
|
|
122406
122709
|
"lint:eslint": "eslint . --ext ts",
|
|
122407
122710
|
"lint:types": "tsc -p tsconfig.build.json --noEmit",
|
|
122408
122711
|
"labels:generate": "tsx scripts/generate-labels.ts",
|
|
@@ -122476,6 +122779,7 @@ var init_package2 = __esm({
|
|
|
122476
122779
|
packageManager: "npm@10.9.2",
|
|
122477
122780
|
dependencies: {
|
|
122478
122781
|
"@clack/prompts": "^1.0.0",
|
|
122782
|
+
ajv: "^8.20.0",
|
|
122479
122783
|
chalk: "^5.6.2",
|
|
122480
122784
|
commander: "^14.0.3",
|
|
122481
122785
|
"console-table-printer": "^2.15.0",
|
|
@@ -122494,6 +122798,8 @@ var init_package2 = __esm({
|
|
|
122494
122798
|
"smol-toml": "^1.6.0",
|
|
122495
122799
|
tiktoken: "^1.0.22",
|
|
122496
122800
|
turndown: "^7.2.4",
|
|
122801
|
+
"uri-template": "^2.0.0",
|
|
122802
|
+
"uri-template-lite": "^23.4.0",
|
|
122497
122803
|
yaml: "^2.8.2"
|
|
122498
122804
|
},
|
|
122499
122805
|
devDependencies: {
|
|
@@ -122525,6 +122831,7 @@ var init_package2 = __esm({
|
|
|
122525
122831
|
"@poe-code/maestro-tui": "*",
|
|
122526
122832
|
"@poe-code/markdown-reader": "*",
|
|
122527
122833
|
"@poe-code/memory": "*",
|
|
122834
|
+
"@poe-code/package-lint": "*",
|
|
122528
122835
|
"@poe-code/pipeline": "*",
|
|
122529
122836
|
"@poe-code/plan-browser": "*",
|
|
122530
122837
|
"@poe-code/poe-acp-client": "*",
|
|
@@ -123226,14 +123533,14 @@ var ROOT_HELP_COMMAND_SPECS, FORWARDABLE_TOOLCRAFT_FLAGS, maestroCommandSchema;
|
|
|
123226
123533
|
var init_program = __esm({
|
|
123227
123534
|
async "src/cli/program.ts"() {
|
|
123228
123535
|
"use strict";
|
|
123229
|
-
|
|
123536
|
+
init_src19();
|
|
123230
123537
|
init_cli2();
|
|
123231
|
-
init_src37();
|
|
123232
|
-
init_src36();
|
|
123233
|
-
init_src26();
|
|
123234
|
-
init_src22();
|
|
123235
|
-
init_src34();
|
|
123236
123538
|
init_src38();
|
|
123539
|
+
init_src37();
|
|
123540
|
+
init_src27();
|
|
123541
|
+
init_src23();
|
|
123542
|
+
init_src35();
|
|
123543
|
+
init_src39();
|
|
123237
123544
|
await init_container2();
|
|
123238
123545
|
init_src3();
|
|
123239
123546
|
init_configure();
|
|
@@ -123549,12 +123856,12 @@ var init_bootstrap = __esm({
|
|
|
123549
123856
|
// src/index.ts
|
|
123550
123857
|
await init_spawn5();
|
|
123551
123858
|
await init_pipeline3();
|
|
123552
|
-
|
|
123859
|
+
init_src35();
|
|
123553
123860
|
import { realpathSync as realpathSync2 } from "node:fs";
|
|
123554
123861
|
import { pathToFileURL as pathToFileURL3 } from "node:url";
|
|
123555
123862
|
|
|
123556
123863
|
// src/sdk/process-launcher.ts
|
|
123557
|
-
|
|
123864
|
+
init_src36();
|
|
123558
123865
|
|
|
123559
123866
|
// src/index.ts
|
|
123560
123867
|
await init_ralph3();
|
|
@@ -123659,7 +123966,7 @@ function normalizeBaseUrl(value) {
|
|
|
123659
123966
|
init_credentials();
|
|
123660
123967
|
|
|
123661
123968
|
// src/agent.ts
|
|
123662
|
-
|
|
123969
|
+
init_src18();
|
|
123663
123970
|
var agent2 = agent;
|
|
123664
123971
|
var openaiChatCompletionsPlugin2 = openaiChatCompletionsPlugin;
|
|
123665
123972
|
var openaiResponsesPlugin2 = openaiResponsesPlugin;
|
|
@@ -123686,9 +123993,9 @@ var planDocumentSchema = {
|
|
|
123686
123993
|
};
|
|
123687
123994
|
|
|
123688
123995
|
// src/index.ts
|
|
123689
|
-
init_src36();
|
|
123690
123996
|
init_src37();
|
|
123691
|
-
|
|
123997
|
+
init_src38();
|
|
123998
|
+
init_src27();
|
|
123692
123999
|
init_launch();
|
|
123693
124000
|
init_src15();
|
|
123694
124001
|
|