sphica 0.6.30 → 0.6.32
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/capture.js +267 -0
- package/dist/cli.js +1457 -97
- package/dist/deliver.js +267 -0
- package/dist/mcp-record.js +267 -0
- package/dist/mcp.js +269 -0
- package/hooks/codex.json +9 -9
- package/package.json +1 -1
package/dist/deliver.js
CHANGED
|
@@ -11121,6 +11121,273 @@ import fs from "node:fs";
|
|
|
11121
11121
|
import path2 from "node:path";
|
|
11122
11122
|
import { fileURLToPath } from "node:url";
|
|
11123
11123
|
|
|
11124
|
+
// server/node_modules/smol-toml/dist/error.js
|
|
11125
|
+
/*!
|
|
11126
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11127
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11128
|
+
*
|
|
11129
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11130
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11131
|
+
*
|
|
11132
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11133
|
+
* list of conditions and the following disclaimer.
|
|
11134
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11135
|
+
* this list of conditions and the following disclaimer in the
|
|
11136
|
+
* documentation and/or other materials provided with the distribution.
|
|
11137
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11138
|
+
* may be used to endorse or promote products derived from this software without
|
|
11139
|
+
* specific prior written permission.
|
|
11140
|
+
*
|
|
11141
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11142
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11143
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11144
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11145
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11146
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11147
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11148
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11149
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11150
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11151
|
+
*/
|
|
11152
|
+
|
|
11153
|
+
// server/node_modules/smol-toml/dist/primitive.js
|
|
11154
|
+
/*!
|
|
11155
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11156
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11157
|
+
*
|
|
11158
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11159
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11160
|
+
*
|
|
11161
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11162
|
+
* list of conditions and the following disclaimer.
|
|
11163
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11164
|
+
* this list of conditions and the following disclaimer in the
|
|
11165
|
+
* documentation and/or other materials provided with the distribution.
|
|
11166
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11167
|
+
* may be used to endorse or promote products derived from this software without
|
|
11168
|
+
* specific prior written permission.
|
|
11169
|
+
*
|
|
11170
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11171
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11172
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11173
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11174
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11175
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11176
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11177
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11178
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11179
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11180
|
+
*/
|
|
11181
|
+
|
|
11182
|
+
// server/node_modules/smol-toml/dist/date.js
|
|
11183
|
+
/*!
|
|
11184
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11185
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11186
|
+
*
|
|
11187
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11188
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11189
|
+
*
|
|
11190
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11191
|
+
* list of conditions and the following disclaimer.
|
|
11192
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11193
|
+
* this list of conditions and the following disclaimer in the
|
|
11194
|
+
* documentation and/or other materials provided with the distribution.
|
|
11195
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11196
|
+
* may be used to endorse or promote products derived from this software without
|
|
11197
|
+
* specific prior written permission.
|
|
11198
|
+
*
|
|
11199
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11200
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11201
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11202
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11203
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11204
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11205
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11206
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11207
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11208
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11209
|
+
*/
|
|
11210
|
+
|
|
11211
|
+
// server/node_modules/smol-toml/dist/extract.js
|
|
11212
|
+
/*!
|
|
11213
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11214
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11215
|
+
*
|
|
11216
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11217
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11218
|
+
*
|
|
11219
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11220
|
+
* list of conditions and the following disclaimer.
|
|
11221
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11222
|
+
* this list of conditions and the following disclaimer in the
|
|
11223
|
+
* documentation and/or other materials provided with the distribution.
|
|
11224
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11225
|
+
* may be used to endorse or promote products derived from this software without
|
|
11226
|
+
* specific prior written permission.
|
|
11227
|
+
*
|
|
11228
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11229
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11230
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11231
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11232
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11233
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11234
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11235
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11236
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11237
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11238
|
+
*/
|
|
11239
|
+
|
|
11240
|
+
// server/node_modules/smol-toml/dist/util.js
|
|
11241
|
+
/*!
|
|
11242
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11243
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11244
|
+
*
|
|
11245
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11246
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11247
|
+
*
|
|
11248
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11249
|
+
* list of conditions and the following disclaimer.
|
|
11250
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11251
|
+
* this list of conditions and the following disclaimer in the
|
|
11252
|
+
* documentation and/or other materials provided with the distribution.
|
|
11253
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11254
|
+
* may be used to endorse or promote products derived from this software without
|
|
11255
|
+
* specific prior written permission.
|
|
11256
|
+
*
|
|
11257
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11258
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11259
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11260
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11261
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11262
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11263
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11264
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11265
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11266
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11267
|
+
*/
|
|
11268
|
+
|
|
11269
|
+
// server/node_modules/smol-toml/dist/struct.js
|
|
11270
|
+
/*!
|
|
11271
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11272
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11273
|
+
*
|
|
11274
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11275
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11276
|
+
*
|
|
11277
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11278
|
+
* list of conditions and the following disclaimer.
|
|
11279
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11280
|
+
* this list of conditions and the following disclaimer in the
|
|
11281
|
+
* documentation and/or other materials provided with the distribution.
|
|
11282
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11283
|
+
* may be used to endorse or promote products derived from this software without
|
|
11284
|
+
* specific prior written permission.
|
|
11285
|
+
*
|
|
11286
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11287
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11288
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11289
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11290
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11291
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11292
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11293
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11294
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11295
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11296
|
+
*/
|
|
11297
|
+
|
|
11298
|
+
// server/node_modules/smol-toml/dist/parse.js
|
|
11299
|
+
/*!
|
|
11300
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11301
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11302
|
+
*
|
|
11303
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11304
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11305
|
+
*
|
|
11306
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11307
|
+
* list of conditions and the following disclaimer.
|
|
11308
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11309
|
+
* this list of conditions and the following disclaimer in the
|
|
11310
|
+
* documentation and/or other materials provided with the distribution.
|
|
11311
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11312
|
+
* may be used to endorse or promote products derived from this software without
|
|
11313
|
+
* specific prior written permission.
|
|
11314
|
+
*
|
|
11315
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11316
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11317
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11318
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11319
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11320
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11321
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11322
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11323
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11324
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11325
|
+
*/
|
|
11326
|
+
|
|
11327
|
+
// server/node_modules/smol-toml/dist/stringify.js
|
|
11328
|
+
/*!
|
|
11329
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11330
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11331
|
+
*
|
|
11332
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11333
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11334
|
+
*
|
|
11335
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11336
|
+
* list of conditions and the following disclaimer.
|
|
11337
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11338
|
+
* this list of conditions and the following disclaimer in the
|
|
11339
|
+
* documentation and/or other materials provided with the distribution.
|
|
11340
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11341
|
+
* may be used to endorse or promote products derived from this software without
|
|
11342
|
+
* specific prior written permission.
|
|
11343
|
+
*
|
|
11344
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11345
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11346
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11347
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11348
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11349
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11350
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11351
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11352
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11353
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11354
|
+
*/
|
|
11355
|
+
var HAS_WELLFORMED = !!"".isWellFormed;
|
|
11356
|
+
|
|
11357
|
+
// server/node_modules/smol-toml/dist/index.js
|
|
11358
|
+
/*!
|
|
11359
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
11360
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
11361
|
+
*
|
|
11362
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11363
|
+
* modification, are permitted provided that the following conditions are met:
|
|
11364
|
+
*
|
|
11365
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
11366
|
+
* list of conditions and the following disclaimer.
|
|
11367
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11368
|
+
* this list of conditions and the following disclaimer in the
|
|
11369
|
+
* documentation and/or other materials provided with the distribution.
|
|
11370
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
11371
|
+
* may be used to endorse or promote products derived from this software without
|
|
11372
|
+
* specific prior written permission.
|
|
11373
|
+
*
|
|
11374
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
11375
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
11376
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
11377
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
11378
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
11379
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
11380
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
11381
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
11382
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
11383
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11384
|
+
*/
|
|
11385
|
+
|
|
11386
|
+
// server/src/codex-trust.ts
|
|
11387
|
+
var NO_MATCHER = new Set(["UserPromptSubmit", "Stop", "Interrupt"]);
|
|
11388
|
+
var CONTEXT = new Set(["PreToolUse", "PostToolUse", "SessionStart", "UserPromptSubmit", "SubagentStart"]);
|
|
11389
|
+
var SHORT = new Set(["SessionEnd", "Interrupt"]);
|
|
11390
|
+
|
|
11124
11391
|
// server/src/panel.ts
|
|
11125
11392
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
11126
11393
|
var title = (text) => `✦ ${text}`;
|
package/dist/mcp-record.js
CHANGED
|
@@ -45559,6 +45559,273 @@ import fs from "node:fs";
|
|
|
45559
45559
|
import path from "node:path";
|
|
45560
45560
|
import { fileURLToPath } from "node:url";
|
|
45561
45561
|
|
|
45562
|
+
// server/node_modules/smol-toml/dist/error.js
|
|
45563
|
+
/*!
|
|
45564
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45565
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45566
|
+
*
|
|
45567
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45568
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45569
|
+
*
|
|
45570
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45571
|
+
* list of conditions and the following disclaimer.
|
|
45572
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45573
|
+
* this list of conditions and the following disclaimer in the
|
|
45574
|
+
* documentation and/or other materials provided with the distribution.
|
|
45575
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45576
|
+
* may be used to endorse or promote products derived from this software without
|
|
45577
|
+
* specific prior written permission.
|
|
45578
|
+
*
|
|
45579
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45580
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45581
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45582
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45583
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45584
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45585
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45586
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45587
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45588
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45589
|
+
*/
|
|
45590
|
+
|
|
45591
|
+
// server/node_modules/smol-toml/dist/primitive.js
|
|
45592
|
+
/*!
|
|
45593
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45594
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45595
|
+
*
|
|
45596
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45597
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45598
|
+
*
|
|
45599
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45600
|
+
* list of conditions and the following disclaimer.
|
|
45601
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45602
|
+
* this list of conditions and the following disclaimer in the
|
|
45603
|
+
* documentation and/or other materials provided with the distribution.
|
|
45604
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45605
|
+
* may be used to endorse or promote products derived from this software without
|
|
45606
|
+
* specific prior written permission.
|
|
45607
|
+
*
|
|
45608
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45609
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45610
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45611
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45612
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45613
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45614
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45615
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45616
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45617
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45618
|
+
*/
|
|
45619
|
+
|
|
45620
|
+
// server/node_modules/smol-toml/dist/date.js
|
|
45621
|
+
/*!
|
|
45622
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45623
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45624
|
+
*
|
|
45625
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45626
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45627
|
+
*
|
|
45628
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45629
|
+
* list of conditions and the following disclaimer.
|
|
45630
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45631
|
+
* this list of conditions and the following disclaimer in the
|
|
45632
|
+
* documentation and/or other materials provided with the distribution.
|
|
45633
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45634
|
+
* may be used to endorse or promote products derived from this software without
|
|
45635
|
+
* specific prior written permission.
|
|
45636
|
+
*
|
|
45637
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45638
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45639
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45640
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45641
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45642
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45643
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45644
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45645
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45646
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45647
|
+
*/
|
|
45648
|
+
|
|
45649
|
+
// server/node_modules/smol-toml/dist/extract.js
|
|
45650
|
+
/*!
|
|
45651
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45652
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45653
|
+
*
|
|
45654
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45655
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45656
|
+
*
|
|
45657
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45658
|
+
* list of conditions and the following disclaimer.
|
|
45659
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45660
|
+
* this list of conditions and the following disclaimer in the
|
|
45661
|
+
* documentation and/or other materials provided with the distribution.
|
|
45662
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45663
|
+
* may be used to endorse or promote products derived from this software without
|
|
45664
|
+
* specific prior written permission.
|
|
45665
|
+
*
|
|
45666
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45667
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45668
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45669
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45670
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45671
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45672
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45673
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45674
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45675
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45676
|
+
*/
|
|
45677
|
+
|
|
45678
|
+
// server/node_modules/smol-toml/dist/util.js
|
|
45679
|
+
/*!
|
|
45680
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45681
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45682
|
+
*
|
|
45683
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45684
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45685
|
+
*
|
|
45686
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45687
|
+
* list of conditions and the following disclaimer.
|
|
45688
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45689
|
+
* this list of conditions and the following disclaimer in the
|
|
45690
|
+
* documentation and/or other materials provided with the distribution.
|
|
45691
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45692
|
+
* may be used to endorse or promote products derived from this software without
|
|
45693
|
+
* specific prior written permission.
|
|
45694
|
+
*
|
|
45695
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45696
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45697
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45698
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45699
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45700
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45701
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45702
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45703
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45704
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45705
|
+
*/
|
|
45706
|
+
|
|
45707
|
+
// server/node_modules/smol-toml/dist/struct.js
|
|
45708
|
+
/*!
|
|
45709
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45710
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45711
|
+
*
|
|
45712
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45713
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45714
|
+
*
|
|
45715
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45716
|
+
* list of conditions and the following disclaimer.
|
|
45717
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45718
|
+
* this list of conditions and the following disclaimer in the
|
|
45719
|
+
* documentation and/or other materials provided with the distribution.
|
|
45720
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45721
|
+
* may be used to endorse or promote products derived from this software without
|
|
45722
|
+
* specific prior written permission.
|
|
45723
|
+
*
|
|
45724
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45725
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45726
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45727
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45728
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45729
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45730
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45731
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45732
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45733
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45734
|
+
*/
|
|
45735
|
+
|
|
45736
|
+
// server/node_modules/smol-toml/dist/parse.js
|
|
45737
|
+
/*!
|
|
45738
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45739
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45740
|
+
*
|
|
45741
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45742
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45743
|
+
*
|
|
45744
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45745
|
+
* list of conditions and the following disclaimer.
|
|
45746
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45747
|
+
* this list of conditions and the following disclaimer in the
|
|
45748
|
+
* documentation and/or other materials provided with the distribution.
|
|
45749
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45750
|
+
* may be used to endorse or promote products derived from this software without
|
|
45751
|
+
* specific prior written permission.
|
|
45752
|
+
*
|
|
45753
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45754
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45755
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45756
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45757
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45758
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45759
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45760
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45761
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45762
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45763
|
+
*/
|
|
45764
|
+
|
|
45765
|
+
// server/node_modules/smol-toml/dist/stringify.js
|
|
45766
|
+
/*!
|
|
45767
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45768
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45769
|
+
*
|
|
45770
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45771
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45772
|
+
*
|
|
45773
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45774
|
+
* list of conditions and the following disclaimer.
|
|
45775
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45776
|
+
* this list of conditions and the following disclaimer in the
|
|
45777
|
+
* documentation and/or other materials provided with the distribution.
|
|
45778
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45779
|
+
* may be used to endorse or promote products derived from this software without
|
|
45780
|
+
* specific prior written permission.
|
|
45781
|
+
*
|
|
45782
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45783
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45784
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45785
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45786
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45787
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45788
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45789
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45790
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45791
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45792
|
+
*/
|
|
45793
|
+
var HAS_WELLFORMED = !!"".isWellFormed;
|
|
45794
|
+
|
|
45795
|
+
// server/node_modules/smol-toml/dist/index.js
|
|
45796
|
+
/*!
|
|
45797
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
45798
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45799
|
+
*
|
|
45800
|
+
* Redistribution and use in source and binary forms, with or without
|
|
45801
|
+
* modification, are permitted provided that the following conditions are met:
|
|
45802
|
+
*
|
|
45803
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
45804
|
+
* list of conditions and the following disclaimer.
|
|
45805
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
45806
|
+
* this list of conditions and the following disclaimer in the
|
|
45807
|
+
* documentation and/or other materials provided with the distribution.
|
|
45808
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
45809
|
+
* may be used to endorse or promote products derived from this software without
|
|
45810
|
+
* specific prior written permission.
|
|
45811
|
+
*
|
|
45812
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
45813
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
45814
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
45815
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
45816
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
45817
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
45818
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
45819
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
45820
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
45821
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
45822
|
+
*/
|
|
45823
|
+
|
|
45824
|
+
// server/src/codex-trust.ts
|
|
45825
|
+
var NO_MATCHER = new Set(["UserPromptSubmit", "Stop", "Interrupt"]);
|
|
45826
|
+
var CONTEXT = new Set(["PreToolUse", "PostToolUse", "SessionStart", "UserPromptSubmit", "SubagentStart"]);
|
|
45827
|
+
var SHORT = new Set(["SessionEnd", "Interrupt"]);
|
|
45828
|
+
|
|
45562
45829
|
// server/src/panel.ts
|
|
45563
45830
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
45564
45831
|
|