ax 0.2.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +32 -0
- package/LICENSE +21 -0
- package/README.md +403 -0
- package/dist/api/audit.d.ts +47 -0
- package/dist/api/deep-journey.d.ts +90 -0
- package/dist/api/platform.d.ts +139 -0
- package/dist/api/shared.d.ts +14 -0
- package/dist/api/skills.d.ts +25 -0
- package/dist/contract/index.d.ts +22 -0
- package/dist/contract/types.gen.d.ts +3270 -0
- package/dist/contract/version.d.ts +2 -0
- package/dist/index.cjs +600 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +563 -0
- package/dist/main.cjs +597 -0
- package/package.json +70 -23
- package/ReadMe.md +0 -15
- package/ax.coffee +0 -38
- package/ax.js +0 -65
package/package.json
CHANGED
|
@@ -1,25 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"name": "ax",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Score any site's agent readiness and watch real AI agents navigate it — powered by ora",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"packageManager": "pnpm@10.34.5",
|
|
7
|
+
"bin": {
|
|
8
|
+
"ax": "./dist/main.cjs"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.cjs",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"files": ["dist", ".env.example"],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.4.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "rm -rf dist && tsup && tsc -p tsconfig.lib.json",
|
|
25
|
+
"contract:gen": "node scripts/contract-gen.mjs",
|
|
26
|
+
"smoke": "node scripts/smoke.mjs",
|
|
27
|
+
"smoke:webmcp": "node scripts/smoke-webmcp.mjs",
|
|
28
|
+
"verify:pack": "node scripts/verify-pack.mjs",
|
|
29
|
+
"test": "vitest",
|
|
30
|
+
"test:ci": "vitest run --coverage",
|
|
31
|
+
"test:capture": "vitest run src/webmcp/capture.live.test.ts",
|
|
32
|
+
"lint": "biome check .",
|
|
33
|
+
"lint:fix": "biome check --write .",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"prepublishOnly": "npm run build"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@biomejs/biome": "^2.5.7",
|
|
39
|
+
"@commitlint/cli": "^21.2.2",
|
|
40
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
41
|
+
"@types/node": "^26.2.0",
|
|
42
|
+
"@vitest/coverage-v8": "^3",
|
|
43
|
+
"citty": "^0.2.2",
|
|
44
|
+
"openapi-typescript": "^6.7.6",
|
|
45
|
+
"picocolors": "^1",
|
|
46
|
+
"tsup": "^8",
|
|
47
|
+
"typescript": "^7.0.2",
|
|
48
|
+
"vitest": "^3"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"pnpm": {
|
|
54
|
+
"onlyBuiltDependencies": ["@biomejs/biome", "esbuild"]
|
|
55
|
+
},
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"homepage": "https://ora.ai",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+https://github.com/eralabs-ai/ora-cli.git"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"ai",
|
|
64
|
+
"agents",
|
|
65
|
+
"agent-readiness",
|
|
66
|
+
"agent-experience",
|
|
67
|
+
"llms.txt",
|
|
68
|
+
"ora",
|
|
69
|
+
"cli",
|
|
70
|
+
"scan"
|
|
71
|
+
]
|
|
25
72
|
}
|
package/ReadMe.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
## Ax: Simple Logging Servce
|
|
2
|
-
|
|
3
|
-
Ax provides a very simple multi-level logging interface.
|
|
4
|
-
|
|
5
|
-
Ax = require "ax"
|
|
6
|
-
logger = new Ax level: "debug"
|
|
7
|
-
|
|
8
|
-
logger.info "Greetings, Professor Falken"
|
|
9
|
-
logger.warn "Warning, Will Robinson!"
|
|
10
|
-
logger.error "If I may say so, sir, I noticed earlier the hyperdrive
|
|
11
|
-
motivator has been damaged. It's impossible to go to lightspeed."
|
|
12
|
-
logger.debug "Instruments register only those things they're designed
|
|
13
|
-
to register. Space still contains infinite unknowns."
|
|
14
|
-
|
|
15
|
-
You can also pass a `stream` option to log to a stream instead of `stdout`.
|
package/ax.coffee
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{sprintf} = require "sprintf"
|
|
2
|
-
|
|
3
|
-
w = (string) -> string.split " "
|
|
4
|
-
|
|
5
|
-
module.exports = class Ax
|
|
6
|
-
|
|
7
|
-
_suppress:
|
|
8
|
-
"error": w "warn info debug verbose"
|
|
9
|
-
"warn": w "info debug verbose"
|
|
10
|
-
"info": w "debug verbose"
|
|
11
|
-
"debug": w "verbose"
|
|
12
|
-
"verbose": w ""
|
|
13
|
-
|
|
14
|
-
constructor: (configuration) ->
|
|
15
|
-
{@level,@stream,@name} = configuration
|
|
16
|
-
@name ?= "-"
|
|
17
|
-
@stream ?= process.stdout
|
|
18
|
-
|
|
19
|
-
log: (level,message) ->
|
|
20
|
-
unless level in @_suppress[@level]
|
|
21
|
-
@print sprintf "%7s [%s] %s '%s'",
|
|
22
|
-
level.toUpperCase(),
|
|
23
|
-
new Date().toISOString(),
|
|
24
|
-
@name,
|
|
25
|
-
message
|
|
26
|
-
|
|
27
|
-
print: (string) -> @stream.write string + "\n"
|
|
28
|
-
|
|
29
|
-
error: (message) -> @log "error", message
|
|
30
|
-
|
|
31
|
-
warn: (message) -> @log "warn", message
|
|
32
|
-
|
|
33
|
-
info: (message) -> @log "info", message
|
|
34
|
-
|
|
35
|
-
debug: (message) -> @log "debug", message
|
|
36
|
-
|
|
37
|
-
verbose: (message) -> @log "verbose", message
|
|
38
|
-
|
package/ax.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.8.0
|
|
2
|
-
(function() {
|
|
3
|
-
var Ax, sprintf, w,
|
|
4
|
-
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
|
5
|
-
|
|
6
|
-
sprintf = require("sprintf").sprintf;
|
|
7
|
-
|
|
8
|
-
w = function(string) {
|
|
9
|
-
return string.split(" ");
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
module.exports = Ax = (function() {
|
|
13
|
-
Ax.prototype._suppress = {
|
|
14
|
-
"error": w("warn info debug verbose"),
|
|
15
|
-
"warn": w("info debug verbose"),
|
|
16
|
-
"info": w("debug verbose"),
|
|
17
|
-
"debug": w("verbose"),
|
|
18
|
-
"verbose": w("")
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
function Ax(configuration) {
|
|
22
|
-
this.level = configuration.level, this.stream = configuration.stream, this.name = configuration.name;
|
|
23
|
-
if (this.name == null) {
|
|
24
|
-
this.name = "-";
|
|
25
|
-
}
|
|
26
|
-
if (this.stream == null) {
|
|
27
|
-
this.stream = process.stdout;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
Ax.prototype.log = function(level, message) {
|
|
32
|
-
if (__indexOf.call(this._suppress[this.level], level) < 0) {
|
|
33
|
-
return this.print(sprintf("%7s [%s] %s '%s'", level.toUpperCase(), new Date().toISOString(), this.name, message));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
Ax.prototype.print = function(string) {
|
|
38
|
-
return this.stream.write(string + "\n");
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
Ax.prototype.error = function(message) {
|
|
42
|
-
return this.log("error", message);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
Ax.prototype.warn = function(message) {
|
|
46
|
-
return this.log("warn", message);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
Ax.prototype.info = function(message) {
|
|
50
|
-
return this.log("info", message);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
Ax.prototype.debug = function(message) {
|
|
54
|
-
return this.log("debug", message);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
Ax.prototype.verbose = function(message) {
|
|
58
|
-
return this.log("verbose", message);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return Ax;
|
|
62
|
-
|
|
63
|
-
})();
|
|
64
|
-
|
|
65
|
-
}).call(this);
|