@bussolabs/closeyourit-cli 0.25.1 → 0.27.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/README.md +91 -4
- package/dist/base.d.ts +3 -18
- package/dist/base.js +16 -66
- package/dist/commands/kb/context.d.ts +12 -0
- package/dist/commands/kb/context.js +93 -0
- package/dist/commands/kb/doctor.d.ts +21 -0
- package/dist/commands/kb/doctor.js +107 -0
- package/dist/commands/kb/search.d.ts +1 -0
- package/dist/commands/kb/search.js +7 -0
- package/dist/commands/mcp.d.ts +10 -0
- package/dist/commands/mcp.js +33 -0
- package/dist/lib/api.d.ts +16 -0
- package/dist/lib/api.js +21 -1
- package/dist/lib/git.d.ts +17 -0
- package/dist/lib/git.js +56 -0
- package/dist/lib/knowledge-context.d.ts +27 -0
- package/dist/lib/knowledge-context.js +68 -0
- package/dist/lib/knowledge-doctor.d.ts +127 -0
- package/dist/lib/knowledge-doctor.js +310 -0
- package/dist/lib/knowledge.d.ts +30 -0
- package/dist/lib/knowledge.js +64 -0
- package/dist/lib/lookup.d.ts +30 -0
- package/dist/lib/lookup.js +82 -0
- package/dist/lib/mcp/protocol.d.ts +51 -0
- package/dist/lib/mcp/protocol.js +67 -0
- package/dist/lib/mcp/server.d.ts +41 -0
- package/dist/lib/mcp/server.js +221 -0
- package/dist/lib/mcp/tools.d.ts +43 -0
- package/dist/lib/mcp/tools.js +340 -0
- package/oclif.manifest.json +4276 -4081
- package/opencli.json +154 -2
- package/package.json +1 -1
package/opencli.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"opencli": "0.1",
|
|
4
4
|
"info": {
|
|
5
5
|
"title": "closeyourit",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.27.0",
|
|
7
7
|
"description": "CLI for CloseYourIt — manage org, errors, tokens and tickets with your user token",
|
|
8
8
|
"license": {
|
|
9
9
|
"name": "MIT",
|
|
@@ -3737,6 +3737,58 @@
|
|
|
3737
3737
|
"closeyourit kb consolidate <page-id> --path global/git.md --json"
|
|
3738
3738
|
]
|
|
3739
3739
|
},
|
|
3740
|
+
{
|
|
3741
|
+
"name": "context",
|
|
3742
|
+
"description": "Print the knowledge context of the current project: the short list of pages whoever starts working here should already know",
|
|
3743
|
+
"options": [
|
|
3744
|
+
{
|
|
3745
|
+
"name": "--yes",
|
|
3746
|
+
"description": "Confirm a dangerous action the server would otherwise refuse (R422-CONFIRM-001)"
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"name": "--project",
|
|
3750
|
+
"aliases": [
|
|
3751
|
+
"-p"
|
|
3752
|
+
],
|
|
3753
|
+
"description": "Project id (UUID) or key; omitted, it is resolved from the git remote of the current directory",
|
|
3754
|
+
"arguments": [
|
|
3755
|
+
{
|
|
3756
|
+
"name": "PROJECT",
|
|
3757
|
+
"required": true
|
|
3758
|
+
}
|
|
3759
|
+
]
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"name": "--limit",
|
|
3763
|
+
"description": "How many pages to print at most",
|
|
3764
|
+
"arguments": [
|
|
3765
|
+
{
|
|
3766
|
+
"name": "LIMIT",
|
|
3767
|
+
"required": true
|
|
3768
|
+
}
|
|
3769
|
+
]
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"name": "--quiet",
|
|
3773
|
+
"description": "Never fail: outside a project print nothing, on an unreachable service print one line — always exit 0 (for session-start hooks)"
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
"name": "--timeout",
|
|
3777
|
+
"description": "Seconds to wait for the service before giving up (0 = no limit)",
|
|
3778
|
+
"arguments": [
|
|
3779
|
+
{
|
|
3780
|
+
"name": "TIMEOUT",
|
|
3781
|
+
"required": true
|
|
3782
|
+
}
|
|
3783
|
+
]
|
|
3784
|
+
}
|
|
3785
|
+
],
|
|
3786
|
+
"examples": [
|
|
3787
|
+
"closeyourit kb context",
|
|
3788
|
+
"closeyourit kb context --project ACME --limit 5",
|
|
3789
|
+
"closeyourit kb context --quiet --timeout 3"
|
|
3790
|
+
]
|
|
3791
|
+
},
|
|
3740
3792
|
{
|
|
3741
3793
|
"name": "create",
|
|
3742
3794
|
"description": "Create a knowledge page in one or more projects (and groups)",
|
|
@@ -3931,6 +3983,65 @@
|
|
|
3931
3983
|
"closeyourit kb detach <page-id> --attachment <attachment-id> --confirm"
|
|
3932
3984
|
]
|
|
3933
3985
|
},
|
|
3986
|
+
{
|
|
3987
|
+
"name": "doctor",
|
|
3988
|
+
"description": "Check the health of the knowledge base: unfindable pages, dangling links, queues nobody moved. Reads only — exits 1 when a check fails",
|
|
3989
|
+
"options": [
|
|
3990
|
+
{
|
|
3991
|
+
"name": "--yes",
|
|
3992
|
+
"description": "Confirm a dangerous action the server would otherwise refuse (R422-CONFIRM-001)"
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
"name": "--project",
|
|
3996
|
+
"aliases": [
|
|
3997
|
+
"-p"
|
|
3998
|
+
],
|
|
3999
|
+
"description": "Only the pages of this project (key or UUID)",
|
|
4000
|
+
"arguments": [
|
|
4001
|
+
{
|
|
4002
|
+
"name": "PROJECT",
|
|
4003
|
+
"required": true
|
|
4004
|
+
}
|
|
4005
|
+
]
|
|
4006
|
+
},
|
|
4007
|
+
{
|
|
4008
|
+
"name": "--stale-days",
|
|
4009
|
+
"description": "Days after which a queue counts as stuck",
|
|
4010
|
+
"arguments": [
|
|
4011
|
+
{
|
|
4012
|
+
"name": "STALE-DAYS",
|
|
4013
|
+
"required": true
|
|
4014
|
+
}
|
|
4015
|
+
]
|
|
4016
|
+
},
|
|
4017
|
+
{
|
|
4018
|
+
"name": "--docs-root",
|
|
4019
|
+
"description": "Path of the knowledge-base repository, to check that the filed documents are really there",
|
|
4020
|
+
"arguments": [
|
|
4021
|
+
{
|
|
4022
|
+
"name": "DOCS-ROOT",
|
|
4023
|
+
"required": true
|
|
4024
|
+
}
|
|
4025
|
+
]
|
|
4026
|
+
},
|
|
4027
|
+
{
|
|
4028
|
+
"name": "--limit",
|
|
4029
|
+
"description": "How many pages to read at most, per listing",
|
|
4030
|
+
"arguments": [
|
|
4031
|
+
{
|
|
4032
|
+
"name": "LIMIT",
|
|
4033
|
+
"required": true
|
|
4034
|
+
}
|
|
4035
|
+
]
|
|
4036
|
+
}
|
|
4037
|
+
],
|
|
4038
|
+
"examples": [
|
|
4039
|
+
"closeyourit kb doctor",
|
|
4040
|
+
"closeyourit kb doctor --project acme-api",
|
|
4041
|
+
"closeyourit kb doctor --docs-root ~/knowledge-base",
|
|
4042
|
+
"closeyourit kb doctor --stale-days 14 --json"
|
|
4043
|
+
]
|
|
4044
|
+
},
|
|
3934
4045
|
{
|
|
3935
4046
|
"name": "list",
|
|
3936
4047
|
"description": "List knowledge pages across the projects you can see",
|
|
@@ -4179,6 +4290,22 @@
|
|
|
4179
4290
|
}
|
|
4180
4291
|
]
|
|
4181
4292
|
},
|
|
4293
|
+
{
|
|
4294
|
+
"name": "--status",
|
|
4295
|
+
"description": "Filter by review state",
|
|
4296
|
+
"arguments": [
|
|
4297
|
+
{
|
|
4298
|
+
"name": "STATUS",
|
|
4299
|
+
"required": true,
|
|
4300
|
+
"acceptedValues": [
|
|
4301
|
+
"published",
|
|
4302
|
+
"in_review",
|
|
4303
|
+
"rejected",
|
|
4304
|
+
"all"
|
|
4305
|
+
]
|
|
4306
|
+
}
|
|
4307
|
+
]
|
|
4308
|
+
},
|
|
4182
4309
|
{
|
|
4183
4310
|
"name": "--per",
|
|
4184
4311
|
"description": "Page size",
|
|
@@ -4214,7 +4341,8 @@
|
|
|
4214
4341
|
"closeyourit kb search kamal deploy rollback",
|
|
4215
4342
|
"closeyourit kb search \"connection pool timeout\" --project acme-api",
|
|
4216
4343
|
"closeyourit kb search kamal rollback --with-related",
|
|
4217
|
-
"closeyourit kb search retry backoff --kind decision --json"
|
|
4344
|
+
"closeyourit kb search retry backoff --kind decision --json",
|
|
4345
|
+
"closeyourit kb search cache in prova --status all"
|
|
4218
4346
|
]
|
|
4219
4347
|
},
|
|
4220
4348
|
{
|
|
@@ -5134,6 +5262,30 @@
|
|
|
5134
5262
|
}
|
|
5135
5263
|
]
|
|
5136
5264
|
},
|
|
5265
|
+
{
|
|
5266
|
+
"name": "mcp",
|
|
5267
|
+
"description": "Serve the knowledge base over the Model Context Protocol on stdin/stdout, so any assistant that speaks MCP can search it, ask it and propose pages — with your own access and no instructions written for it",
|
|
5268
|
+
"options": [
|
|
5269
|
+
{
|
|
5270
|
+
"name": "--yes",
|
|
5271
|
+
"description": "Confirm a dangerous action the server would otherwise refuse (R422-CONFIRM-001)"
|
|
5272
|
+
},
|
|
5273
|
+
{
|
|
5274
|
+
"name": "--timeout",
|
|
5275
|
+
"description": "Seconds to wait for git when recognising the project of the current directory",
|
|
5276
|
+
"arguments": [
|
|
5277
|
+
{
|
|
5278
|
+
"name": "TIMEOUT",
|
|
5279
|
+
"required": true
|
|
5280
|
+
}
|
|
5281
|
+
]
|
|
5282
|
+
}
|
|
5283
|
+
],
|
|
5284
|
+
"examples": [
|
|
5285
|
+
"closeyourit mcp",
|
|
5286
|
+
"CLOSEYOURIT_TOKEN=cyi_u_… closeyourit mcp"
|
|
5287
|
+
]
|
|
5288
|
+
},
|
|
5137
5289
|
{
|
|
5138
5290
|
"name": "members",
|
|
5139
5291
|
"description": "Organization members: profile, role, access scope",
|