@drakulavich/oura-cli 0.1.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/CHANGELOG.md +21 -0
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/index.js +3764 -0
- package/docs/schemas/activity.json +15 -0
- package/docs/schemas/describe.json +59 -0
- package/docs/schemas/hr.json +14 -0
- package/docs/schemas/readiness.json +15 -0
- package/docs/schemas/sleep.json +15 -0
- package/docs/schemas/spo2.json +15 -0
- package/docs/schemas/stress.json +15 -0
- package/docs/schemas/workout.json +15 -0
- package/package.json +60 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/activity.json",
|
|
4
|
+
"title": "oura-cli activity output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/describe.json",
|
|
4
|
+
"title": "oura-cli describe manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["name", "version", "auth", "globalFlags", "exitCodes", "commands"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": { "const": "oura-cli" },
|
|
9
|
+
"version": { "type": "string" },
|
|
10
|
+
"auth": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["envVars", "tokenFile", "loginCommand"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"envVars": { "type": "array", "items": { "type": "string" } },
|
|
15
|
+
"tokenFile": { "type": "string" },
|
|
16
|
+
"loginCommand": { "type": "string" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"globalFlags": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": { "$ref": "#/$defs/arg" }
|
|
22
|
+
},
|
|
23
|
+
"exitCodes": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"required": ["code", "meaning"],
|
|
28
|
+
"properties": { "code": { "type": "integer" }, "meaning": { "type": "string" } }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"commands": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": ["name", "description", "args"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"name": { "type": "string" },
|
|
38
|
+
"description": { "type": "string" },
|
|
39
|
+
"args": { "type": "array", "items": { "$ref": "#/$defs/arg" } },
|
|
40
|
+
"outputSchema": { "type": "string" }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$defs": {
|
|
46
|
+
"arg": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"required": ["name", "type"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"name": { "type": "string" },
|
|
51
|
+
"type": { "type": "string" },
|
|
52
|
+
"required": { "type": "boolean" },
|
|
53
|
+
"format": { "type": "string" },
|
|
54
|
+
"description": { "type": "string" },
|
|
55
|
+
"values": { "type": "array", "items": { "type": "string" } }
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/hr.json",
|
|
4
|
+
"title": "oura-cli hr output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["timestamp"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"timestamp": { "type": "string", "format": "date-time", "description": "ISO 8601 timestamp of the sample" }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/readiness.json",
|
|
4
|
+
"title": "oura-cli readiness output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/sleep.json",
|
|
4
|
+
"title": "oura-cli sleep output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/spo2.json",
|
|
4
|
+
"title": "oura-cli spo2 output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/stress.json",
|
|
4
|
+
"title": "oura-cli stress output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/workout.json",
|
|
4
|
+
"title": "oura-cli workout output",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": true,
|
|
9
|
+
"required": ["id", "day"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": { "type": "string", "description": "Oura record id" },
|
|
12
|
+
"day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@drakulavich/oura-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Oura Ring CLI — query and analyze Oura Ring health data from the command line, designed for humans and AI agents.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oura",
|
|
7
|
+
"oura-ring",
|
|
8
|
+
"cli",
|
|
9
|
+
"health",
|
|
10
|
+
"sleep",
|
|
11
|
+
"readiness",
|
|
12
|
+
"activity",
|
|
13
|
+
"agent",
|
|
14
|
+
"mcp"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"bin": {
|
|
18
|
+
"oura-cli": "dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "bun build src/index.ts --outdir dist --target bun --banner '#!/usr/bin/env bun'",
|
|
22
|
+
"dev": "bun run src/index.ts",
|
|
23
|
+
"test": "bun test",
|
|
24
|
+
"prepublishOnly": "bun run build"
|
|
25
|
+
},
|
|
26
|
+
"exports": {
|
|
27
|
+
".": "./src/index.ts"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"docs/schemas",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"CHANGELOG.md"
|
|
35
|
+
],
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"author": "drakulavich",
|
|
38
|
+
"homepage": "https://github.com/drakulavich/oura-cli",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/drakulavich/oura-cli.git"
|
|
42
|
+
},
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/drakulavich/oura-cli/issues"
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"bun": ">=1.0.0"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"chalk": "^5.6.2",
|
|
54
|
+
"commander": "^14.0.3"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^25.3.3",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
}
|
|
60
|
+
}
|