Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/commandoperator/cmdop-sdk
/ functions
Functions
325 in github.com/commandoperator/cmdop-sdk
⨍
Functions
325
◇
Types & classes
118
↓ 49 callers
Method
_unary
(self, req: pb.Envelope)
python/src/cmdop/resources/base.py:52
↓ 17 callers
Function
_feed
Feed one length-delimited Envelope into the core->client stream.
python/tests/test_transport.py:83
↓ 17 callers
Method
_fleet
(self, fleet_id: str | None)
python/src/cmdop/resources/base.py:32
↓ 17 callers
Method
get
(self, slug: str, *, lang: str | None = None)
python/src/cmdop/resources/skills.py:65
↓ 17 callers
Method
resolve
Build a config, applying explicit > env > default precedence. Relay token sources: ``CMDOP_TOKEN`` then ``CMDOP_API_KEY`` (token wins
python/src/cmdop/config.py:36
↓ 15 callers
Function
feed
(env: Envelope)
node/tests/transport.test.ts:48
↓ 14 callers
Method
close
Close stdin (graceful drain) and reap the core process.
node/src/client.ts:79
↓ 13 callers
Method
aclose
Close stdin (graceful drain) and reap the core process.
python/src/cmdop/client.py:102
↓ 13 callers
Function
nextReq
(reqs: AsyncGenerator<Envelope>)
node/tests/transport.test.ts:59
↓ 13 callers
Function
resolveConfig
(opts: Partial<ClientConfig> = {})
node/src/config.ts:34
↓ 12 callers
Function
_read_request
(proc: FakeProc)
python/tests/test_transport.py:90
↓ 11 callers
Function
makeTransport
()
node/tests/transport.test.ts:35
↓ 10 callers
Function
_make_transport
()
python/tests/test_transport.py:73
↓ 10 callers
Function
core
()
python/tests/test_transport.py:104
↓ 9 callers
Method
write
(self, data: bytes)
python/tests/test_skills.py:29
↓ 8 callers
Function
_methods
(cls: type)
python/scripts/print_surface.py:31
↓ 8 callers
Function
_methods_of
Public, non-pagination instance methods declared on ``cls`` itself.
python/tests/test_parity.py:37
↓ 8 callers
Function
methodsOf
Public, non-pagination instance methods of a resource class, snake_cased.
node/src/_parity.ts:29
↓ 7 callers
Method
callStream
Open a streaming call (machines.ask). Returns an {@link AskStream}.
node/src/transport.ts:314
↓ 7 callers
Method
call_stream
Open a streaming call (machines.ask). Returns a :class:`FrameStream` whose first iteration sends the REQUEST and yields typed frames.
python/src/cmdop/_transport.py:286
↓ 6 callers
Function
_host_slug
Return ``<plat>-<arch>`` for this host, or None if unsupported.
python/src/cmdop/_locate.py:42
↓ 6 callers
Method
callUnary
* Send a REQUEST envelope, await the RESPONSE/ERROR on its id. `req` carries * the oneof payload arm; `id`/`kind` are filled here.
node/src/transport.ts:298
↓ 6 callers
Method
delete
(slug: string)
node/src/resources/skills.ts:138
↓ 6 callers
Method
end
()
node/src/transport.ts:69
↓ 6 callers
Function
locateBinary
()
node/src/locate.ts:86
↓ 6 callers
Method
push
(env: Envelope)
node/src/transport.ts:59
↓ 5 callers
Method
#failAll
(err: Error)
node/src/transport.ts:242
↓ 5 callers
Method
_offset_page
Convert a 1-based ``page`` + optional ``per_page`` to the proto ``OffsetPage{offset, per_page}`` the core expects.
python/src/cmdop/resources/base.py:43
↓ 5 callers
Method
call_unary
Send a REQUEST envelope, await the RESPONSE/ERROR on its id. ``req`` must already carry ``kind=KIND_REQUEST`` and the right oneof arm;
python/src/cmdop/_transport.py:269
↓ 5 callers
Function
locate_binary
Return an absolute path to a runnable ``cmdop-core`` binary. Raises :class:`FileNotFoundError` if neither the override nor a baked binary is
python/src/cmdop/_locate.py:69
↓ 4 callers
Function
_binary_name
The host's baked binary filename, e.g. ``cmdop-core-darwin-arm64``.
python/src/cmdop/_locate.py:51
↓ 4 callers
Method
_paginate_offset
Yield each offset page (1-based) until the offset+items covers total.
python/src/cmdop/resources/base.py:79
↓ 4 callers
Function
ev
(json: string)
node/tests/transport.test.ts:131
↓ 3 callers
Method
#write
(env: Envelope)
node/src/transport.ts:286
↓ 3 callers
Method
_ensure_started
(self)
python/src/cmdop/_transport.py:103
↓ 3 callers
Method
_fail_all
EOF / crash: fail every in-flight call.
python/src/cmdop/_transport.py:209
↓ 3 callers
Function
_read_delimited
Read one length-delimited protobuf body off ``reader``. Reads the varint length one byte at a time (high bit = continue), then the exact body
python/src/cmdop/_transport.py:62
↓ 3 callers
Method
_read_loop
(self)
python/src/cmdop/_transport.py:144
↓ 3 callers
Method
_write
(self, env: pb.Envelope)
python/src/cmdop/_transport.py:254
↓ 3 callers
Method
drain
(self)
python/tests/test_skills.py:35
↓ 3 callers
Method
ensureStarted
()
node/src/transport.ts:133
↓ 3 callers
Method
list
(opts: ListPageOptions & { fleetId?: string } = {})
node/src/resources/keys.ts:16
↓ 2 callers
Method
#startReader
* Reader: `sizeDelimitedDecodeStream` consumes the stdout (an * `AsyncIterable<Uint8Array>`) and yields fully-assembled Envelopes, * reassemblin
node/src/transport.ts:179
↓ 2 callers
Method
__init__
( self, message: str, *, status: int | None = None, code: str | None =
python/src/cmdop/errors.py:26
↓ 2 callers
Method
_alloc_id
(self)
python/src/cmdop/_transport.py:249
↓ 2 callers
Function
_feed
(proc: FakeProc, env: pb.Envelope)
python/tests/test_skills.py:72
↓ 2 callers
Function
_make_executable
(path: str)
python/src/cmdop/_locate.py:58
↓ 2 callers
Function
_make_transport
()
python/tests/test_skills.py:63
↓ 2 callers
Method
_paginate_cursor
Yield each cursor page; follow ``next_cursor`` until exhausted. Works over both ``MachineList`` (next_cursor + has_more) and ``Schedu
python/src/cmdop/resources/base.py:57
↓ 2 callers
Function
_read_request
(proc: FakeProc)
python/tests/test_skills.py:78
↓ 2 callers
Method
_require_id
(self)
python/src/cmdop/streaming.py:234
↓ 2 callers
Function
_stream_error
Raise the typed PIN exception for a PIN-gate verdict; otherwise the generic :class:`AgentStreamError` (the ask stream's error-frame contract).
python/src/cmdop/streaming.py:36
↓ 2 callers
Function
actualSurface
()
node/src/_parity.ts:45
↓ 2 callers
Method
answer
Write an ANSWER envelope on this stream's id.
node/src/streaming.ts:38
↓ 2 callers
Method
attachStreamsForTest
* @internal Test seam: drive the demux off a provided stdin/stdout pair * instead of spawning a binary. Used by the transport unit tests, mirroring
node/src/transport.ts:124
↓ 2 callers
Function
core
()
python/tests/test_skills.py:116
↓ 2 callers
Function
crash
()
node/tests/transport.test.ts:52
↓ 2 callers
Method
fail
(err: Error)
node/src/transport.ts:78
↓ 2 callers
Function
fakeClient
Minimal Client stand-in SkillsResource needs (transport + fleetId).
node/tests/skills.test.ts:52
↓ 2 callers
Function
feed
(env: Envelope)
node/tests/skills.test.ts:38
↓ 2 callers
Method
get
(self, schedule_id: str, *, fleet_id: str | None = None)
python/src/cmdop/resources/schedules.py:44
↓ 2 callers
Method
get
Find a fleet by id within the (offset-paginated) list.
python/src/cmdop/resources/fleets.py:51
↓ 2 callers
Method
keys
()
node/src/client.ts:69
↓ 2 callers
Method
kill
(self)
python/tests/test_skills.py:51
↓ 2 callers
Method
list
(opts: ListPageOptions = {})
node/src/resources/fleets.ts:36
↓ 2 callers
Method
list
(opts: ListPageOptions = {})
node/src/resources/tunnels.ts:43
↓ 2 callers
Method
list
(opts: ListPageOptions & { fleetId?: string } = {})
node/src/resources/schedules.ts:55
↓ 2 callers
Method
list
(opts: ListMachinesOptions = {})
node/src/resources/machines.ts:40
↓ 2 callers
Function
makeExecutable
(path: string)
node/src/locate.ts:116
↓ 2 callers
Function
makeTransport
()
node/tests/skills.test.ts:26
↓ 2 callers
Function
mapCoreError
(code: string, message: string)
node/src/errors.ts:107
↓ 2 callers
Function
map_core_error
Map a core ``ErrorInfo{code, message}`` to a typed exception.
python/src/cmdop/errors.py:128
↓ 2 callers
Function
nextReq
(reqs: AsyncGenerator<Envelope>)
node/tests/skills.test.ts:45
↓ 2 callers
Method
runs
Run history (cursor-paginated, newest first).
node/src/resources/schedules.ts:139
↓ 2 callers
Function
stripTrailingSlash
(url: string)
node/src/config.ts:63
↓ 2 callers
Method
wait
(self)
python/tests/test_skills.py:48
↓ 2 callers
Method
write_answer
Write an ANSWER envelope (pin/confirm) on an open stream's id.
python/src/cmdop/_transport.py:260
↓ 1 callers
Method
#dispatch
(env: Envelope)
node/src/transport.ts:196
↓ 1 callers
Method
#spawn
()
node/src/transport.ts:144
↓ 1 callers
Method
#toError
(env: Envelope)
node/src/transport.ts:237
↓ 1 callers
Function
_actual_surface
()
python/tests/test_parity.py:49
↓ 1 callers
Method
_dispatch
Route a frame by id, branch on kind (report 13 §4.1).
python/src/cmdop/_transport.py:160
↓ 1 callers
Method
_drain_stderr
Drain the core's stderr so its diagnostics never block / corrupt the protocol pipe. We discard it (set CMDOP_DEBUG=1 to have the core log to a
python/src/cmdop/_transport.py:131
↓ 1 callers
Function
_frame_from_envelope
Project one streamed Envelope onto a typed frame.
python/src/cmdop/streaming.py:116
↓ 1 callers
Method
_start_stream
Internal: register the stream id + send its REQUEST. Called lazily by :class:`FrameStream` on first iteration so the same stream object can be
python/src/cmdop/_transport.py:291
↓ 1 callers
Method
_to_error
(env: pb.Envelope)
python/src/cmdop/_transport.py:203
↓ 1 callers
Function
_write_delimited
Write ``env`` as a varint-size-prefixed protobuf frame.
python/src/cmdop/_transport.py:80
↓ 1 callers
Function
binaryName
()
node/src/locate.ts:38
↓ 1 callers
Method
close
Close a tunnel (idempotent).
python/src/cmdop/resources/tunnels.py:40
↓ 1 callers
Method
collect
Drain to the final text (the ``done`` frame's text, else accumulated event deltas). Raises :class:`AgentStreamError` on an error outcome.
python/src/cmdop/streaming.py:220
↓ 1 callers
Method
collect
* Drain to the final text (the `done` frame's text, else accumulated event * deltas). Throws {@link AgentStreamError} on an error outcome.
node/src/streaming.ts:160
↓ 1 callers
Method
confirm
Answer a ``confirm_required`` frame. ``accept=True`` resumes the stream onto the same id; ``accept=False`` ends it with a rejected DONE.
python/src/cmdop/streaming.py:209
↓ 1 callers
Method
confirm
* Answer a `confirm_required` frame. `accept=true` resumes the stream onto the * same id; `accept=false` ends it with a rejected `done`.
node/src/streaming.ts:146
↓ 1 callers
Method
envelopes
Async-iterate the raw envelopes for this stream (terminates on done).
node/src/streaming.ts:36
↓ 1 callers
Function
frameFromEnvelope
(env: Envelope)
node/src/streaming.ts:59
↓ 1 callers
Method
get
(slug: string, opts: { lang?: string } = {})
node/src/resources/skills.ts:84
↓ 1 callers
Method
install
Get the install payload (command, README, files, deps) for a skill.
python/src/cmdop/resources/skills.py:87
↓ 1 callers
Method
install
(slug: string)
node/src/resources/skills.ts:100
↓ 1 callers
Method
iter
(self, *, per_page: int | None = None)
python/src/cmdop/resources/fleets.py:83
↓ 1 callers
Method
iter
(opts: ListPageOptions = {})
node/src/resources/fleets.ts:43
next →
1–100 of 325, ranked by callers