codebot-ai 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/games/tic-tac-toe.d.ts +0 -6
- package/dist/games/tic-tac-toe.js +0 -64
package/README.md
CHANGED
|
@@ -254,7 +254,7 @@ CodeBot v2.0.0 is built with security as a core architectural principle:
|
|
|
254
254
|
- **SSRF protection** — blocks localhost, private IPs, cloud metadata endpoints
|
|
255
255
|
- **Path safety** — blocks writes to system directories, detects path traversal
|
|
256
256
|
|
|
257
|
-
See [SECURITY.md](SECURITY.md)
|
|
257
|
+
See [SECURITY.md](SECURITY.md), [docs/HARDENING.md](docs/HARDENING.md), and [docs/SOC2_COMPLIANCE.md](docs/SOC2_COMPLIANCE.md) for the full security model and compliance readiness.
|
|
258
258
|
|
|
259
259
|
## Stability
|
|
260
260
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.sarifToString = exports.exportSarif = exports.RiskScorer = exports.MetricsCollector = exports.listReplayableSessions = exports.compareOutputs = exports.loadSessionForReplay = exports.ReplayProvider = exports.verifyMessages = exports.verifyMessage = exports.signMessage = exports.deriveSessionKey = exports.CapabilityChecker = exports.detectProvider = exports.getModelInfo = exports.PROVIDER_DEFAULTS = exports.MODEL_REGISTRY = exports.loadMCPTools = exports.loadPlugins = exports.parseToolCalls = exports.MemoryManager = exports.SessionManager = exports.buildRepoMap = exports.ContextManager = exports.ToolRegistry = exports.AnthropicProvider = exports.OpenAIProvider = exports.Agent = exports.VERSION = void 0;
|
|
18
|
-
exports.VERSION = '2.0.
|
|
18
|
+
exports.VERSION = '2.0.1';
|
|
19
19
|
var agent_1 = require("./agent");
|
|
20
20
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
21
21
|
var openai_1 = require("./providers/openai");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebot-ai",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Zero-dependency autonomous AI agent. Code, browse, search, automate. Works with any LLM — Ollama, Claude, GPT, Gemini, DeepSeek, Groq, Mistral, Grok.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// src/games/tic-tac-toe.ts
|
|
3
|
-
// Simple console-based Tic-Tac-Toe game
|
|
4
|
-
const gameBoard = Array(3).fill(null).map(() => Array(3).fill(null));
|
|
5
|
-
let currentPlayer = 'X';
|
|
6
|
-
const printBoard = () => {
|
|
7
|
-
for (const row of gameBoard) {
|
|
8
|
-
console.log(row.join(' | '));
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
const checkWin = () => {
|
|
12
|
-
// Check rows
|
|
13
|
-
for (let i = 0; i < 3; i++) {
|
|
14
|
-
if (gameBoard[i][0] === currentPlayer &&
|
|
15
|
-
gameBoard[i][1] === currentPlayer &&
|
|
16
|
-
gameBoard[i][2] === currentPlayer) {
|
|
17
|
-
console.log(`Player ${currentPlayer} wins!`);
|
|
18
|
-
process.exit(0);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
// Check columns
|
|
22
|
-
for (let j = 0; j < 3; j++) {
|
|
23
|
-
if (gameBoard[0][j] === currentPlayer &&
|
|
24
|
-
gameBoard[1][j] === currentPlayer &&
|
|
25
|
-
gameBoard[2][j] === currentPlayer) {
|
|
26
|
-
console.log(`Player ${currentPlayer} wins!`);
|
|
27
|
-
process.exit(0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
// Check diagonals
|
|
31
|
-
if ((gameBoard[0][0] === currentPlayer &&
|
|
32
|
-
gameBoard[1][1] === currentPlayer &&
|
|
33
|
-
gameBoard[2][2] === currentPlayer) ||
|
|
34
|
-
(gameBoard[0][2] === currentPlayer &&
|
|
35
|
-
gameBoard[1][1] === currentPlayer &&
|
|
36
|
-
gameBoard[2][0] === currentPlayer)) {
|
|
37
|
-
console.log(`Player ${currentPlayer} wins!`);
|
|
38
|
-
process.exit(0);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const gameLoop = () => {
|
|
42
|
-
printBoard();
|
|
43
|
-
process.stdin.on('data', (input) => {
|
|
44
|
-
const [row, col] = input.toString().trim()
|
|
45
|
-
.split(',')
|
|
46
|
-
.map(Number);
|
|
47
|
-
if (row < 0 || row > 2 || col < 0 || col > 2) {
|
|
48
|
-
console.log('Invalid move. Try again.');
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (gameBoard[row][col]) {
|
|
52
|
-
console.log('Spot taken! Try again.');
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
gameBoard[row][col] = currentPlayer;
|
|
56
|
-
checkWin();
|
|
57
|
-
currentPlayer = currentPlayer === 'X' ? 'O' : 'X';
|
|
58
|
-
process.stdin.removeAllListeners('data');
|
|
59
|
-
gameLoop();
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
// Start game
|
|
63
|
-
gameLoop();
|
|
64
|
-
//# sourceMappingURL=tic-tac-toe.js.map
|