MCPcopy Create free account

hub / github.com/commandoperator/cmdop-sdk / functions

Functions325 in github.com/commandoperator/cmdop-sdk

↓ 49 callersMethod_unary
(self, req: pb.Envelope)
python/src/cmdop/resources/base.py:52
↓ 17 callersFunction_feed
Feed one length-delimited Envelope into the core->client stream.
python/tests/test_transport.py:83
↓ 17 callersMethod_fleet
(self, fleet_id: str | None)
python/src/cmdop/resources/base.py:32
↓ 17 callersMethodget
(self, slug: str, *, lang: str | None = None)
python/src/cmdop/resources/skills.py:65
↓ 17 callersMethodresolve
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 callersFunctionfeed
(env: Envelope)
node/tests/transport.test.ts:48
↓ 14 callersMethodclose
Close stdin (graceful drain) and reap the core process.
node/src/client.ts:79
↓ 13 callersMethodaclose
Close stdin (graceful drain) and reap the core process.
python/src/cmdop/client.py:102
↓ 13 callersFunctionnextReq
(reqs: AsyncGenerator<Envelope>)
node/tests/transport.test.ts:59
↓ 13 callersFunctionresolveConfig
(opts: Partial<ClientConfig> = {})
node/src/config.ts:34
↓ 12 callersFunction_read_request
(proc: FakeProc)
python/tests/test_transport.py:90
↓ 11 callersFunctionmakeTransport
()
node/tests/transport.test.ts:35
↓ 10 callersFunction_make_transport
()
python/tests/test_transport.py:73
↓ 10 callersFunctioncore
()
python/tests/test_transport.py:104
↓ 9 callersMethodwrite
(self, data: bytes)
python/tests/test_skills.py:29
↓ 8 callersFunction_methods
(cls: type)
python/scripts/print_surface.py:31
↓ 8 callersFunction_methods_of
Public, non-pagination instance methods declared on ``cls`` itself.
python/tests/test_parity.py:37
↓ 8 callersFunctionmethodsOf
Public, non-pagination instance methods of a resource class, snake_cased.
node/src/_parity.ts:29
↓ 7 callersMethodcallStream
Open a streaming call (machines.ask). Returns an {@link AskStream}.
node/src/transport.ts:314
↓ 7 callersMethodcall_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 callersFunction_host_slug
Return ``<plat>-<arch>`` for this host, or None if unsupported.
python/src/cmdop/_locate.py:42
↓ 6 callersMethodcallUnary
* 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 callersMethoddelete
(slug: string)
node/src/resources/skills.ts:138
↓ 6 callersMethodend
()
node/src/transport.ts:69
↓ 6 callersFunctionlocateBinary
()
node/src/locate.ts:86
↓ 6 callersMethodpush
(env: Envelope)
node/src/transport.ts:59
↓ 5 callersMethod#failAll
(err: Error)
node/src/transport.ts:242
↓ 5 callersMethod_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 callersMethodcall_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 callersFunctionlocate_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 callersFunction_binary_name
The host's baked binary filename, e.g. ``cmdop-core-darwin-arm64``.
python/src/cmdop/_locate.py:51
↓ 4 callersMethod_paginate_offset
Yield each offset page (1-based) until the offset+items covers total.
python/src/cmdop/resources/base.py:79
↓ 4 callersFunctionev
(json: string)
node/tests/transport.test.ts:131
↓ 3 callersMethod#write
(env: Envelope)
node/src/transport.ts:286
↓ 3 callersMethod_ensure_started
(self)
python/src/cmdop/_transport.py:103
↓ 3 callersMethod_fail_all
EOF / crash: fail every in-flight call.
python/src/cmdop/_transport.py:209
↓ 3 callersFunction_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 callersMethod_read_loop
(self)
python/src/cmdop/_transport.py:144
↓ 3 callersMethod_write
(self, env: pb.Envelope)
python/src/cmdop/_transport.py:254
↓ 3 callersMethoddrain
(self)
python/tests/test_skills.py:35
↓ 3 callersMethodensureStarted
()
node/src/transport.ts:133
↓ 3 callersMethodlist
(opts: ListPageOptions & { fleetId?: string } = {})
node/src/resources/keys.ts:16
↓ 2 callersMethod#startReader
* Reader: `sizeDelimitedDecodeStream` consumes the stdout (an * `AsyncIterable<Uint8Array>`) and yields fully-assembled Envelopes, * reassemblin
node/src/transport.ts:179
↓ 2 callersMethod__init__
( self, message: str, *, status: int | None = None, code: str | None =
python/src/cmdop/errors.py:26
↓ 2 callersMethod_alloc_id
(self)
python/src/cmdop/_transport.py:249
↓ 2 callersFunction_feed
(proc: FakeProc, env: pb.Envelope)
python/tests/test_skills.py:72
↓ 2 callersFunction_make_executable
(path: str)
python/src/cmdop/_locate.py:58
↓ 2 callersFunction_make_transport
()
python/tests/test_skills.py:63
↓ 2 callersMethod_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 callersFunction_read_request
(proc: FakeProc)
python/tests/test_skills.py:78
↓ 2 callersMethod_require_id
(self)
python/src/cmdop/streaming.py:234
↓ 2 callersFunction_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 callersFunctionactualSurface
()
node/src/_parity.ts:45
↓ 2 callersMethodanswer
Write an ANSWER envelope on this stream's id.
node/src/streaming.ts:38
↓ 2 callersMethodattachStreamsForTest
* @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 callersFunctioncore
()
python/tests/test_skills.py:116
↓ 2 callersFunctioncrash
()
node/tests/transport.test.ts:52
↓ 2 callersMethodfail
(err: Error)
node/src/transport.ts:78
↓ 2 callersFunctionfakeClient
Minimal Client stand-in SkillsResource needs (transport + fleetId).
node/tests/skills.test.ts:52
↓ 2 callersFunctionfeed
(env: Envelope)
node/tests/skills.test.ts:38
↓ 2 callersMethodget
(self, schedule_id: str, *, fleet_id: str | None = None)
python/src/cmdop/resources/schedules.py:44
↓ 2 callersMethodget
Find a fleet by id within the (offset-paginated) list.
python/src/cmdop/resources/fleets.py:51
↓ 2 callersMethodkeys
()
node/src/client.ts:69
↓ 2 callersMethodkill
(self)
python/tests/test_skills.py:51
↓ 2 callersMethodlist
(opts: ListPageOptions = {})
node/src/resources/fleets.ts:36
↓ 2 callersMethodlist
(opts: ListPageOptions = {})
node/src/resources/tunnels.ts:43
↓ 2 callersMethodlist
(opts: ListPageOptions & { fleetId?: string } = {})
node/src/resources/schedules.ts:55
↓ 2 callersMethodlist
(opts: ListMachinesOptions = {})
node/src/resources/machines.ts:40
↓ 2 callersFunctionmakeExecutable
(path: string)
node/src/locate.ts:116
↓ 2 callersFunctionmakeTransport
()
node/tests/skills.test.ts:26
↓ 2 callersFunctionmapCoreError
(code: string, message: string)
node/src/errors.ts:107
↓ 2 callersFunctionmap_core_error
Map a core ``ErrorInfo{code, message}`` to a typed exception.
python/src/cmdop/errors.py:128
↓ 2 callersFunctionnextReq
(reqs: AsyncGenerator<Envelope>)
node/tests/skills.test.ts:45
↓ 2 callersMethodruns
Run history (cursor-paginated, newest first).
node/src/resources/schedules.ts:139
↓ 2 callersFunctionstripTrailingSlash
(url: string)
node/src/config.ts:63
↓ 2 callersMethodwait
(self)
python/tests/test_skills.py:48
↓ 2 callersMethodwrite_answer
Write an ANSWER envelope (pin/confirm) on an open stream's id.
python/src/cmdop/_transport.py:260
↓ 1 callersMethod#dispatch
(env: Envelope)
node/src/transport.ts:196
↓ 1 callersMethod#spawn
()
node/src/transport.ts:144
↓ 1 callersMethod#toError
(env: Envelope)
node/src/transport.ts:237
↓ 1 callersFunction_actual_surface
()
python/tests/test_parity.py:49
↓ 1 callersMethod_dispatch
Route a frame by id, branch on kind (report 13 §4.1).
python/src/cmdop/_transport.py:160
↓ 1 callersMethod_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 callersFunction_frame_from_envelope
Project one streamed Envelope onto a typed frame.
python/src/cmdop/streaming.py:116
↓ 1 callersMethod_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 callersMethod_to_error
(env: pb.Envelope)
python/src/cmdop/_transport.py:203
↓ 1 callersFunction_write_delimited
Write ``env`` as a varint-size-prefixed protobuf frame.
python/src/cmdop/_transport.py:80
↓ 1 callersFunctionbinaryName
()
node/src/locate.ts:38
↓ 1 callersMethodclose
Close a tunnel (idempotent).
python/src/cmdop/resources/tunnels.py:40
↓ 1 callersMethodcollect
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 callersMethodcollect
* 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 callersMethodconfirm
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 callersMethodconfirm
* 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 callersMethodenvelopes
Async-iterate the raw envelopes for this stream (terminates on done).
node/src/streaming.ts:36
↓ 1 callersFunctionframeFromEnvelope
(env: Envelope)
node/src/streaming.ts:59
↓ 1 callersMethodget
(slug: string, opts: { lang?: string } = {})
node/src/resources/skills.ts:84
↓ 1 callersMethodinstall
Get the install payload (command, README, files, deps) for a skill.
python/src/cmdop/resources/skills.py:87
↓ 1 callersMethodinstall
(slug: string)
node/src/resources/skills.ts:100
↓ 1 callersMethoditer
(self, *, per_page: int | None = None)
python/src/cmdop/resources/fleets.py:83
↓ 1 callersMethoditer
(opts: ListPageOptions = {})
node/src/resources/fleets.ts:43
next →1–100 of 325, ranked by callers